[blfs-support] Autofs problem on LFS7.2

akhiezer lfs65 at cruziero.com
Thu Mar 21 15:54:01 PDT 2013

> From cliffhanger at gardener.com Thu Mar 21 21:20:10 2013
> Date: Thu, 21 Mar 2013 17:13:26 -0400
> From: "Cliff McDiarmid" <cliffhanger at gardener.com>
> Subject: Re: [blfs-support] Autofs problem on LFS7.2
> To: "akhiezer" <lfs65 at cruziero.com>,
>         "BLFS Support List"
>  <blfs-support at linuxfromscratch.org>
> This does work:  mount -t ext2 /dev/sdb /mnt/sandisk

OK. Keep the usbstick formatted as-is, and with the ext2 filesystem. Create a 
small file on it at the top-level dir, and call the file, for example, 
'hello-world', and make it contain the text 'yes-im-here' or similar.

(Re-)create the working environment/setup per the latter part of the email of 
16:23pm on 9th March, but for /etc/auto.testautomount make it contain only the 
sandisk     -fstype=ext2    :/dev/sdb
And just to check, your /etc/auto.master should contain only:
/testautomount      /etc/auto.testautomount
Then tell automount to read the new maps (you may need to use 
'/etc/init.d/autofs reload' or '/etc/rc.d/rc.autofs reload' depending on where 
the 'autofs' script is located; and you may need to use 'restart' instead of 

$ /etc/rc.d/init.d/autofs  reload

Then insert the usbstick, wait the proverbial few seconds (to be on safe side, 
wait 5-10 secs) for the usbstick to 'settle' (usb drives can take a few secs to 
become 'visible' to the OS &c), and then do:

$ \ls -la /testautomount/sandisk

Does it show you the contents of the usbstick: can you see the file 
'hello-world' listed; if so can you cat() it and see the text 'yes-im-here' ?

If that doesn't work, can you verify has the usbstick been registered as /dev/sdb 
by the OS: look at 'dmesg', /var/log/{syslog,messages,debug}, and try 
'fdisk -l /dev/sdb' (or /dev/sdc &c).



More information about the blfs-support mailing list