Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOW TO] - Automount USB-storage & PCMCIA HDDs via autof
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
lady3jane
n00b
n00b


Joined: 01 Oct 2004
Posts: 21

PostPosted: Mon Oct 04, 2004 11:16 pm    Post subject: [HOW TO] - Automount USB-storage & PCMCIA HDDs via autof Reply with quote

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!
:roll:
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

THANKS greenfly!

Automounting USB & PCMCIA HDDs via autofs:

Ensure that scsi emulation, usb-storage, hotplug autofs enabled and started.

USB:

check to see that your usb drive is available, /dev/sda1
if so, continue. if not, look to sort hotplug and/or usb-storage

#cd /etc/autofs
#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

#/etc/init.d/autofs stop
#/etc/init.d/autofs start

you should now be able access your data in /mnt/iriver

PCMCIA HDD:

check to see that your pcmcia hdd is available, /dev/hde1
#cd /etc/autofs
#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

#/etc/init.d/autofs stop
#/etc/init.d/autofs start

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! :P


Last edited by lady3jane on Tue Oct 05, 2004 8:28 pm; edited 3 times in total
Back to top
View user's profile Send private message
kENNy_
n00b
n00b


Joined: 06 Dec 2002
Posts: 45
Location: Hannover/Germany

PostPosted: Mon Oct 04, 2004 11:23 pm    Post subject: Reply with quote

I don't know if autofs is the best way for this.
Let's do hotplug the work of mounting and umounting:)

I wrote a HowTo for this a few minutes ago:
https://forums.gentoo.org/viewtopic.php?t=232606

mfg
kENNy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum