Fwd: undelete bookmark folder

Matt Graham danceswithcrows at usa.net
Wed Jul 10 15:34:19 MST 2013


From: Michael Havens 
>> If you mount a disk on /mnt/backup , then rsync your ~ to
>> /mnt/backup/bmike/ , that means that /mnt/backup/bmike/ will contain
>> an exact copy of your ~.
> bmike1 at PresarioLapTop1:~$ sudo mount /dev/sdc /mnt/sdc

You made an fstab entry for the device by editing /etc/fstab as root with a
text editor, didn't you?  I put that as step 3 in my original message on
2013-06-29.  One like so:

LABEL=MY_BACKUPS   /mnt/backup   ext3   noauto,users   0  0

...this fstab line means "The device with label MY_BACKUPS is mounted on
directory /mnt/backup , has a filesystem type of ext3, is not mounted
automatically on boot, users are allowed to mount or umount it, and it is not
auto-fscked or dumped".  This allows you to mount the device as a normal user
by just doing "mount /mnt/backup", which was in the script.

> mount: no medium found on /dev/sdc

USB disks can be associated with different device nodes, depending on how many
other devices are plugged in.  This is the whole point of using a filesystem
label; you don't have to worry about which device node the USB disk is seen
as.

Note that if you're using udev (almost everything is), you can take a look at
/dev/disk/by-label/ and see entries in there for every block device that has a
filesystem label that's connected to the machine.  You can also put
/dev/disk/by-label/A_LABEL in an fstab entry, which will work fine provided
udev is running and the device is plugged in.

> bmike1 at PresarioLapTop1:~$ ls /mnt/backup
> ls: reading directory /mnt/backup: Input/output error
> How does one list from a device with a label?

One mounts the device on a mountpoint first, then one does "ls
/that/mountpoint".

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see



More information about the PLUG-discuss mailing list