> From [email protected] Thu Mar 21 21:20:10 2013
> Date: Thu, 21 Mar 2013 17:13:26 -0400
> From: "Cliff McDiarmid" <[email protected]>
> Subject: Re: [blfs-support] Autofs problem on LFS7.2
> To: "akhiezer" <[email protected]>,
> "BLFS Support List"
> <[email protected]>
>
.
.
> 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
following:
---
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
'reload'):
$ /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).
akh
--
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page