Stephen Gran on 23 Apr 2006 14:08:21 -0000 |
On Sun, Apr 23, 2006 at 09:25:09AM -0400, Jeff Abrahamson said: > > One solution is to have the script use the findfs tool to identify the > > correct device: > > > > findfs LABEL=backup-320 > > > > Or, you may be able to put something along the lines of the following > > in your fstab: > > > > # untested > > LABEL=backup-320 /backup auto rw,noauto 0 0 > > Thanks. This works correctly if I mount the drive with mount. The > hotplug mounter doesn't respect this. Hmm. I may finally have to > figure out what spirit is watching for device insertion and taking > care of it. On a reasonably up to date etch system, udev is the man behind the curtain for removable devices. For that to work reliably, you'll need to specify sysfs attributes to differentiate between drives. For instance, I have: BUS=="usb", SYSFS{manufacturer}=="LEXAR MEDIA", SYSFS{product}=="JUMPDRIVE ELITE", \ KERNEL=="sd*", SYMLINK+="pendrive%n", MODE="0660", GROUP="cdrom" BUS=="usb", SYSFS{manufacturer}=="Apple", SYSFS{product}=="iPod mini", \ KERNEL=="sd*", SYMLINK+="ipod%n", MODE="0660", GROUP="cdrom" To handle a couple of devices, and then I mount /dev/pendrive1 or /dev/ipod in fstab. HTH, -- -------------------------------------------------------------------------- | Stephen Gran | If it weren't for the last minute, | | steve@lobefin.net | nothing would ever get done. | | http://www.lobefin.net/~steve | | -------------------------------------------------------------------------- Attachment:
signature.asc ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|