You are not logged in.

#1 2007-05-07 11:08:22

kazikcz
Member
Registered: 2007-02-11
Posts: 3

Autofs fails to start

I've noticed that automount/autofs isn't working for me anymore some time ago. I don't know when exactly did it break, so it's kind of hard to investigate the cause basing on the history of changes in my system.

I've looked over the forums here and there, but couldn't find any solution, and encountered tips just wouldn't work for me.

Someone here had mentioned (and what is also mentioned on the wiki) that improper file permissions for autofs may cause problems. I checked that several times, re-chmod'ed and even reinstalled autofs package (including removing all config files possible). However, the problem still persists.

I'll try to provide as much information as possible on this matter. I hope you guys will help me get autofs back to work again at some point. Here it goes.

$ ls -l /etc/autofs /etc/conf.d/autofs
-rw-r--r-- 1 root root  100 maj  7 12:18 /etc/conf.d/autofs

/etc/autofs:
razem 16
-rw-r--r-- 1 root root  254 maj  7 12:44 auto.master
-rw-r--r-- 1 root root   46 maj  7 12:43 auto.media
-rw-r--r-- 1 root root  424 maj  7 12:41 auto.misc
-rwxr-xr-x 1 root root 1087 maj  7 12:32 auto.net
$ cat /etc/autofs/auto.master
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).

#/var/autofs/misc    /etc/autofs/auto.misc
#/var/autofs/net      /etc/autofs/auto.net
/media      /etc/autofs/auto.media --timeout=3

Note: has proper EOF

$ cat /etc/autofs/auto.media
dvd    -fstype=iso9660,ro,nodev,nosuid    :/dev/hdd
$ cat /etc/conf.d/autofs
# e.g. localoptions='rsize=8192,wsize=8192'
localoptions=''

# e.g. --timeout=60
daemonoptions='-g'
sudo /etc/rc.d/autofs start
:: Starting automounter                                                  [BUSY]
 /media                                                                  [DONE]

And this is what I see in the /var/log/everything.log regarding automount:

May  7 12:45:17 kazikbox automount[7032]: starting automounter version 4.1.4, path = /media, maptype = file, mapname = /etc/autofs/auto.misc
May  7 12:45:17 kazikbox automount[7032]: mount(bind): bind_works = 1
May  7 12:45:17 kazikbox automount[7032]: failed to mount autofs path /media
May  7 12:45:17 kazikbox automount[7032]: /media: mount failed!

The /media directory always disappears after starting autofs daemon. If I won't recreate it, the logs show me one more message so it looks like:

May  7 12:44:34 kazikbox automount[7006]: starting automounter version 4.1.4, path = /media, maptype = file, mapname = /etc/autofs/auto.misc
May  7 12:44:34 kazikbox automount[7006]: mount(bind): bind_works = 1
May  7 12:44:34 kazikbox automount[7006]: failed to mount autofs path /media
May  7 12:44:34 kazikbox automount[7006]: /media: mount failed!
May  7 12:44:34 kazikbox automount[7006]: failed to remove dir /media: No such file or directory

I use '2.6.20-beyond #1' kernel from the rep.
Any ideas ?..

Offline

#2 2007-05-07 14:58:00

Lord_Bad
Member
Registered: 2005-04-17
Posts: 54

Re: Autofs fails to start

I don't have any idea what might be causing your problem, but I'd suggest you to drop autofs entirely in favour of the combination dbus + hal + some volume manager. I did so recently and I'm very pleased from the results. Autofs is practically an archaic solution these days...

Offline

Board footer

Powered by FluxBB