LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need automount help (https://www.linuxquestions.org/questions/linux-newbie-8/need-automount-help-700735/)

rohit_k 01-29-2009 03:23 AM

need automount help
 
Hi,

I want configure automount such that i could use 2 pen drives or 2 usb-floppy drives or 1 pen + 1 usb-floppy drive simultaneously.

I configured /etc/permanent.devices files as follows :

Code:

usbstore-0        -fstype=auto,fmask=0000,dmask=0000      :/dev/sda1
usbstore-1        -fstype=auto,fmask=0000,dmask=0000      :/dev/sdb1
usbfloppydrive-0        -fstype=auto,fmask=0000,dmask=0000      :/dev/sda
usbfloppydrive-1        -fstype=auto,fmask=0000,dmask=0000      :/dev/sdb

and automounted it during boot time as :

Code:

/usb/sbin/automount --timeout 5 /auto file /etc/permanent.devices
Now whenever i insert 2 pen drives they are readily available for use. Similarly whenever i insert 2 usb-floppy drives they are available for use.

But when i insert 1 pen drive and 1 floppy drive, second device is not accessible ( either pen drive or floppy ).

Can someone figure out why ?

Thanks,
Rohit

wet-willy 01-29-2009 04:41 AM

I don't use the distributions listed in your profile, but do use Debian and Mandriva, Ubuntu, sometimes Fedora (hate that one as it's a hog). I never go through all the hassel you went through, I just plug them in (pen drive, usb floppy) whenever and in whatever order, as many as I want (got 3 pen drives), and they are always readily accessible soon after plugging them in.
Maybe your problem is you never tried the same before playing with configuration to see if it would work like in my case.
And the best way to get smarter will always be accomplished by reading in an environment that allows you to comprehend what you read, not by playing.

Oh!
And don't be reading comics or fictitious crap and/or brainstorming novels, that can actually make a serial killer out of you. Read the facts.
Playing is akin to two stags butting heads...just honing masculinity, trying to impress the opposite sex.

rohit_k 01-29-2009 04:56 AM

I'm trying to fix this in some different customized OS.

Ok..pls me know why usb-floppy is referred as /dev/sda or /dev/sdb.
I can mount it by doing
# mount /dev/sda /mnt

Should'nt it be sda[1-9] ?
# mount /dev/sda[1-9] /mnt


All times are GMT -5. The time now is 02:09 AM.