Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174935 - autofs4 fails to mount devices and network shares
Summary: autofs4 fails to mount devices and network shares
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-17 17:03 UTC by charles gruenwald
Modified: 2008-05-03 09:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description charles gruenwald 2007-04-17 17:03:00 UTC
net-fs/autofs-4.1.3-r7 fails to work on my new Thinkpad X60s, using gentoo-linux-2.6.19-r5. The init file runs without error, but nothing gets mounted, and --ghost fails to show any new directories. For comparison, autofs works perfectly with another gentoo machine on same network, with config files set up the same way.The new laptop does have a SATA hard drive and Intel dual-core processor.All the devices listed in /etc/autofs/auto.auto can otherwise be mounted normally as set in /etc/fstab.
I don't know how to proceed further...

Reproducible: Always

Steps to Reproduce:
1./etc/init.d/autofs start
2.
3.

Actual Results:  
#  /etc/init.d/autofs start
* Starting automounter ...
 /mnt/auto                                                                                                                              [ ok ]


# mount shows only one new mounted item:

automount(pid10010) on /mnt/auto type autofs (rw,fd=4,pgrp=10010,minproto=2,maxproto=4)

Expected Results:  
new mounts to show for for boot, cdrom, and the network shares: data and media

I'll provide any additional information upon request...
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2008-01-01 16:22:21 UTC
got the same error here.

problem: autofs needs netmount.

instead of 'need localmount' there should be something like 'need localmount netmount' in the init-script.

But since 'netmount' itself only scans in '/etc/fstab' for NFS-mounts, 'portmap' will only be required if there're NFS-mounts there. So, real fix, 'netmount' should be expanded to check auto.* configs also and 'autofs' should depend on 'netmount'.

quick help for you (and me, since I'm not the maintainer of autofs and netmount):

1. rc-update add portmap default
2. rc-update add netmount default
Comment 2 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-03 11:40:10 UTC
New maintainer, net-fs/autofs-5.0.3-r1 is now in the tree.  
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2008-02-04 22:57:21 UTC
Seems a bit related with bug #163210.  

The comment I added there amounts to: I think it's the administrator's responsibility to install portmap/rpc.statd on machines that are going to mount nfs.  The suggestion made here is that the maps are scanned when autofs is started.  With autofs-4, that may have been the way to go, because it was the init script's responsability to initialize all mount points.  With autofs-5, the daemon itself reads all the maps (whether they are on-disk, or acquired through nis or ldap, regardless of the map names).  
It is my gut-feeling that if you want nfs prepared automatically when necessary, a clean solution would be to associate the loading of the nfs-module with the starting of portmap and rpc.statd.  But that's not my decision to make if this is to be a distribution-wide addition.  

All this is open for discussion of course...
Comment 4 Stefaan De Roeck (RETIRED) gentoo-dev 2008-05-03 09:57:00 UTC
The autofs init-script already contains:
          use ypbind nfs slapd portmap net
So whenever one of these services is supposed to be started, it will be started before autofs.  Enabling these services is the responsibility of the administrator.  A comment in the ebuild also warns the administrator to enable portmap if nfs is to be used.  
Therefore closing this as fixed.