USB drives and device names
Michael ODonnell
michael.odonnell at comcast.net
Fri Jan 25 16:56:30 EST 2008
It looks like there's some sophisticated stuff under /etc/usb/
that'll do anything you can imagine, but if all you want is to
ensure that a particular USB-resident filesystem gets mounted on
the correct mount-point regardless of what its device name is,
you could (assuming it's one of the filesystems that support
labels like the ext[23] filesystems do) create an /etc/fstab
entry that looks something like this:
LABEL=myUSBdisk /mnt/someDir ext3 defaults,errors=remount-ro 0 0
...and then label that filesystem accordingly thus:
/sbin/e2label /dev/sdc1 myUSBdisk #ASSUME: filesys currently on sdc1
...after which this should "just work":
mount /mnt/someDir
...even if your disk wanders around in the SCSI namespace.
More information about the gnhlug-discuss
mailing list