> ----- Original Message -----
> From: [email protected]
> Sent: 03/09/13 04:23 PM
> To: BLFS Support List
> Subject: Re: [blfs-support] Autofs problem on LFS7.2
>
> > Date: Sat, 09 Mar 2013 00:21:57 -0500
> > From: "Cliff McDiarmid" <[email protected]>
> > To: "BLFS Support List" <[email protected]>
> > Subject: Re: [blfs-support] Autofs problem on LFS7.2
> >
> .
> .
> > Sorry about the delay, have been offline, but here are the files. No luck
> > manually creating the relevant dirs.
> >
>
>
> No probs re 'delay'. Thanks for files. We'll test a few of the more-immediate
> things, and if that's no-pasa then we can take a step back and check the
> wider
> picture (e.g. kernel config, modules, /proc). Btw, am not assuming that you
> don't already know some or all of the stuff in the following; am erring on
> the
> side of perhaps over-including info.
>
>
> Let's focus on the sandisk for now - presumably it's a usb-stick?
YES
> For things to work ok with those two configs, you must have *at least*:
> --
> * /media/auto is an already-existing directory: automount (IME) won't create
> it,
> whether automatically or otherwise.
> Normally want (owner, group, perms) = (root, root, 0755) for both /media and
> /media/auto
>
> * The usbstick is assigned device '/dev/sdb' .
> NB and be clear that the assig of '/dev/sdb' to the usbstick, is not done by
> automount.
> Verify device-assig via e.g. /var/log/{messages,debug,syslog} or similar.
>
> * The settings '-fstype=vfat,sync,gid=floppy,umask=002' settings in
> auto.misc,
> should be not at odds with either how the usbstick is formatted, or the
> user-permissions/umask/group-memberships/&c of the user that is trying to
> use
> the automount facility
This was all right as far as I was concerned at the time. I have since altered
it(see below)with no effect.
> --
> There are other files & setup that might need to be adjusted; we can as noted
> come to that if necessary - it's normally not complicated.
>
>
> If the above is all-ok, then you should see the following behaviour:
> ==
> * connect usbstick to usb port of computer.
> * the command 'ls /media/auto/sandisk' should show you the contents of the
> usbstick.
> Note that just doing 'ls /media/auto' will likely just show an
> apparently-empty
> dir: instead, you need to specify the full '/media/auto/sandisk' path.
None of this was or is happening.
> * work directly as root-user.
> * use a new test area for automounting to:
> if [ ! -e /testautomount ] ; then
> install -o root -g root -m 0755 -d /testautomount ;
> fi;
> * have only the following in /etc/auto.master :
> /testautomount /etc/auto.testautomount
> * create a new test automount-map:
> if [ ! -e /etc/auto.testautomount ] ; then
> install -o root -g root -m 0644 /dev/null /etc/auto.testautomount ;
> fi;
> * have only the following in /etc/auto.testautomount :
> sandisk -fstype=vfat,sync,gid=floppy,umask=002 :/dev/sdb
> Just to double-check: if you mount /dev/sdb manually using those mount-opts,
> then it goes all-ok?
Checked '-fstype=vfat,sync,gid=floppy,umask=002 :/dev/sdb' This did not work
when mounted manually, the only command that worked was 'mount /dev/sdb
/mnt/sandisk(or any other mount point)' i.e. it would not accept'-fstype',
either with vfat or ext2.
Anyway - created all the above and reduced the /etc/auto.testautomount file to
'sandisk :/dev/sdb'. Nothing would mount. I can mount manually and see the
contents of the USB stick, but not with automount.
Where do we go from here?
many thanks
MAC
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page