[blfs-support] Autofs problem on LFS7.2

akhiezer lfs65 at cruziero.com
Thu Mar 21 12:38:26 PDT 2013


> Date: Wed, 20 Mar 2013 18:53:34 -0400
> From: "Cliff McDiarmid" <cliffhanger at gardener.com>
> To: "akhiezer" <lfs65 at cruziero.com>,
>         "BLFS Support List"
> 	<blfs-support at linuxfromscratch.org>
> Subject: Re: [blfs-support] Autofs problem on LFS7.2
>
> > ----- Original Message -----
> > From: lfs65 at cruziero.com
> > Sent: 03/20/13 12:30 AM
> > To: BLFS Support List
> > Subject: Re: [blfs-support] Autofs problem on LFS7.2
> > 
> > > Date: Tue, 19 Mar 2013 17:23:26 -0400
> > > From: "Cliff McDiarmid" <cliffhanger at gardener.com>
> > > To: "BLFS Support List" <blfs-support at linuxfromscratch.org>
> > > Subject: Re: [blfs-support] Autofs problem on LFS7.2
> > >
> > .
> > .
> > >
> > > > * 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.
> > >
> > 
> > When are you available to debug this back'n'forth over a few days and nail it 
> > down inside that time-frame: it's kinda sub-optimal to have such long gaps 
> > between stages.
>
> Fair comment - I'm back at home now after travelling and in a position to sort this, let's go. I can answer every evening.  Apoligies again.
>


Hi, no need at all for apols: was just trying to guard against me overlooking 
something as the thread gets dropped then resumed after a long-ish gap.


Am on UK GMT time (shortly to be GMT+1, as 'summertime' begins while it's still 
snowing); so most likely to be mailing ca 9am GMT & ca 5pm-7pm GMT - but of course 
no need to adjust your time-of-day timetable to suit; main thing is at least 
day-to-day back'n'forth - hopefully nailed within not too many steps.


For the duration of the debug, it would be useful if the usbstick can be kept 
at a constant known partitioning and formatting (filesystem) on it. If you need 
to use the usbstick for other work during that time, then we can go with whatever 
partitioning/filesystem scheme you'd need for that. When you have done so, can you 
post back the output of:

$ fdisk -l /dev/sdb


Before tracing this through from top-to-bottom (kernel config, etc), can I check 
on the following.


The mount() command won't accept '-fstype=...' directly: it's got a slightly 
different syntax from automount on that. You'd need to do such as (assuming here 
a fat or similar filesys):

$ mount -t vfat -o 'sync,gid=floppy,umask=002' /dev/sdb /mnt/sandisk

Does that work OK?


If it doesn't, then can you do the manual mount that _did_ work OK recently, and 
with the usbstick still mounted, do (and post the output back here - don't worry 
if it's a lot of lines):

$ cat /proc/mounts
$ cat /etc/mtab	# In case it differs from /proc/mount
$ grep -v 'sda' /etc/fstab


Thanks. Meantime I'll double-check at this end the full list of what's needed 
for all the stuff to work OK, to help ensure no omissions, before mailing over 
to you. The automount stuff _does_ work reliably and robustly: there's probly 
(hopefully) something simple that's causing what you're seeing.



Best regards,

akhiezer





--



More information about the blfs-support mailing list