> ----- Original Message ----- > From: [email protected] > Sent: 03/27/13 07:57 PM > To: BLFS Support List > Subject: Re: [blfs-support] Autofs problem on LFS7.2 > > > Date: Wed, 27 Mar 2013 14:29:10 -0400 > > From: "Cliff McDiarmid" <[email protected]> > > To: "akhiezer" <[email protected]>, > > "BLFS Support List" > > <[email protected]> > > Subject: Re: [blfs-support] Autofs problem on LFS7.2 > > > > > Date: Mon, 25 Mar 2013 16:17:33 +0000 > > > > From: [email protected] (akhiezer) > > > > To: BLFS Support List <[email protected]> > > > > Subject: Re: [blfs-support] Autofs problem on LFS7.2 > > > > > . > . > > > > Right. I've recompiled autofs(had to include MIT Kerberos)and the results > > were intially promising. > > > > 'automount -v -f -d /etc/auto.master' gave: > > > > Starting automounter version 5.0.7, master map /etc/auto.master > > using kernel protocol version 5.02 > > lookup_nss_read_master: reading master file /etc/auto.master > > parse_init: parse(sun): init gathered global options: (null) > > lookup_read_master: lookup(file): read entry /testautomount > > master_do_mount: mounting /testautomount > > automount_path_to_fifo: fifo name /run/autofs.fifo-testautomount > > lookup_nss_read_map: reading map file /etc/auto.testautomount > > parse_init: parse(sun): init gathered global options: (null) > > mounted indirect on /testautomount with timeout 300, freq 75 seconds > > st_ready: st_ready(): state = 0 path /testautomount > > > > Then after approx. 1min > > > > st_expire: state 1 path /testautomount > > expire_proc: exp_proc = 3060792128 path /testautomount > > expire_cleanup: got thid 3060792128 path /testautomount stat 0 > > expire_cleanup: sigchld: exp 3060792128 finished, switching from 2 to 1 > > st_ready: st_ready(): state = 2 path /testautomount > > > > However, when inserting the usbstick and try and list any contents, it is > > only on > > > > /testautomount, i.e. the dir. sandisk is not available and can not be > > created: > > > > mkdir: cannot create directory '/testautomount/sandisk': Permission > > denied. > > > > I only get the following again > > $ > > total 4 > > drwxr-xr-x 2 root root 4096 Mar 23 09:38 ./ > > drwxr-xr-x 2 root root 4096 Mar 23 09:38 ../ > > > > > With automount not running, remove the empty dir (iff it's empty) > /testautomount , > and retry the 'automount -v -f -d /etc/auto.master', see if it the > whole path '/testautomount/sandisk', shows the contents of the usbstick ok > under > '/testautomount/sandisk', and then when you exit automount, does it remove > the > entire path '/testautomount/sandisk' ?
Ok. It auto-generates '/testautomount' when started with 'automount -v -f -d /etc/auto.master', but not '/testautomount/sandisk'. Only the following again is shown under '/testautomount': total 4 drwxr-xr-x 2 root root 0 Mar 27 21:01 ./ drwxr-xr-x 26 root root 4096 Mar 27 21:01 ../ When I exit automount the '/testautomount' disappears. In the meantime the following diagnostics appear untill I stop autofs: handle_packet: type = 3 handle_packet_missing_indirect: token 1, name sandisk, request pid 1996 attempting to mount entry /testautomount/sandisk lookup_mount: lookup(program): looking up sandisk lookup(program): lookup for sandisk failed dev_ioctl_send_fail: token = 1 failed to mount /testautomount/sandisk st_expire: state 1 path /testautomount expire_proc: exp_proc = 3060792128 path /testautomount expire_cleanup: got thid 3060792128 path /testautomount stat 0 expire_cleanup: sigchld: exp 3060792128 finished, switching from 2 to 1 st_ready: st_ready(): state = 2 path /testautomount ^Cdo_notify_state: signal 2 master_notify_state_change: sig 2 switching /testautomount from 1 to 5 st_prepare_shutdown: state 1 path /testautomount expire_proc: exp_proc = 3059739456 path /testautomount expire_cleanup: got thid 3059739456 path /testautomount stat 0 expire_cleanup: sigchld: exp 3059739456 finished, switching from 5 to 7 st_shutdown: state 5 path /testautomount umount_multi: path /testautomount incl 0 umounted indirect mount /testautomount automount_path_to_fifo: fifo name /run/autofs.fifo-testautomount shut down path /testautomount autofs stopped thanks MAC -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
