Joined: 01 Oct 2004
|Posted: Mon Oct 04, 2004 11:16 pm Post subject: [HOW TO] - Automount USB-storage & PCMCIA HDDs via autof
|i've seen this question asked here and i felt the answers left a little to be desired or didn't suit my needs so let's add other to the list and hope it helps someone and saves 'em some time.... here we are!
i got most of this information from http://www.greenfly.org/tips/usb_drive.html. follow his full method to allow "smarter" identification of devices in the event you'd like to create seperate mount points
Automounting USB & PCMCIA HDDs via autofs:
Ensure that scsi emulation, usb-storage, hotplug autofs enabled and started.
check to see that your usb drive is available, /dev/sda1
if so, continue. if not, look to sort hotplug and/or usb-storage
#vi auto.jump (create this file or something like it) to add the following line (or something like it). this says to create a virtual mount point jump in your autofs directory (mine here is /var/autofs/usbdrive per auto.master)
jump -fstype=auto :/dev/sda1
#vi auto.master to add the following line (or something like it). this references your device(s) in auto.jump and tells their mount point to expire after 5 seconds (adjust as neccesary) of no use.
/var/autofs/usbdrive /etc/autofs/auto.jump --timeout=5
#ln -s /var/autofs/usbdrive/hdd /mnt/iriver
you should now be able access your data in /mnt/iriver
check to see that your pcmcia hdd is available, /dev/hde1
#vi auto.pcmcia to add the following line (or something like it)
hdd -fstype=auto :/dev/hde1
#vi auto.master to add the following line (or something like it). this lets your device(s) in auto.pcmcia mount point to expire in 5 seconds (adjust as neccesary)
/var/autofs/pcmcia /etc/autofs/auto.pcmcia --timeout=5
#ln -s /var/autofs/pcmcia/hdd /mnt/pcmcia
you should now be able to change to /mnt/pcmcia and have you data available
i assume this would keep CF and other memory cards safe too. one might want to look @ mount options to use in conjunction with autofs these products safely
others here seem to be fooling around with hotplug, udev and supermount. none of which i found a clear answer within. as well, i had thought i could sort the pcmcia mount by using /etc/pcmcia/ide.opts but, that never happened. don't know why it didn't work and still would like to
btw, corrections, discussion and/or flames welcome!
Last edited by lady3jane on Tue Oct 05, 2004 8:28 pm; edited 3 times in total