Automount (not working)

Jan 07, 2013 23:13

I use autofs.

My /etc/auto.master (with comments removed here, for brevity) reads:

+dir:/etc/auto.master.d
+auto.master
/mnt/video /etc/auto.video
/- /etc/auto.music

I think that the +dir: directive is supposed to read files from the subdirectory. But I've not got that working, hence the last two lines.
/etc/auto.video reads:

DVD -nouser,nodev,noauto,noexec,nosuid,atime,rw n4100plus:/raid/Video
torrents -nouser,nodev,noauto,noexec,nosuid,atime,rw thecus:/raid/Video/torrents

Since the auto.master specifies /mnt/video, these two are mount points below that. Thus /mnt/video/DVD and /mnt/video/torrents.

/etc/auto.music is:

/mnt/music -nouser,nodev,noauto,noexec,nosuid,atime,rw n4100plus:/raid/Music
Since the auto.master specifies /-, this file specifies the full path to the mount point. Thus the it mounts /mnt/music. I could configure this the same way I've done the video files, by putting the path in auto.master, and just the directory name in here. But that means putting /mnt in the master, and (possibly) results in autofs being checked for any access to that directory, which would be poor (doubly so when remembering that the video directory fits with that as well! Better play on the safe side!

At least, that's the theory. In practice, nothing's appearing.

A little exploration shows that /var/log/daemon.log (not messages!) is gaining:
rpc.statd[11879]: failed to create RPC listeners, exiting
And a little more hunting after that brings: http://www.linuxquestions.org/questions/linux-networking-3/rpc-statd-not-running-872348/

And the fix is: sudo /etc/init.d/rpcbind start. And it turns out that I've got /etc/rc2.d/K07rpcbind. That'll be wrong then. sudo mv K07rpcbin S07rpcbind; sudo update-rc.d rpcbind defaults
(Apparently the official default runlevels are S, 2-5. In my case, I've no got it just on 2. And someday, I'll bother to find out what that "defaults" parameter does :)
Previous post Next post
Up