Hi,
   I've a problem with automount when booting. 
This is the output to /var/syslog (mystampede is the name of my installation
of the stampede distrib.):

  Oct  3 16:45:16 mystampede automount[59]: starting automounter version
  3.1.3, path = /disk, maptype = file, mapname = /etc/auto.disk
  Oct  3 16:45:16 mystampede automount[59]: Map argc = 1
  Oct  3 16:45:16 mystampede automount[59]: Map argv[0] = /etc/auto.disk
  Oct  3 16:45:16 mystampede automount[67]: starting automounter version
  3.1.3, path = /cdrom, maptype = file, mapname = /etc/auto.cdrom
  Oct  3 16:45:16 mystampede automount[67]: Map argc = 1
  Oct  3 16:45:16 mystampede automount[67]: Map argv[0] = /etc/auto.cdrom
  Oct  3 16:45:16 mystampede automount[67]: using kernel protocol version 3
  Oct  3 16:45:16 mystampede automount[59]: >> can't create lock file       
<---- !!!
  /etc/mtab~~: No such file or directory (use -n flag to override)
  Oct  3 16:45:16 mystampede automount[59]: /disk: mount failed!

The result of mount is:
  mystampede:~# mount
  /dev/hda10 on / type ext2 (rw)
  none on /proc type proc (rw)
  automount(pid67) on /cdrom type autofs (rw,fd=5,pgrp=67,minproto=2,maxproto=3)

Strangely if I check /proc/mounts I got:
  mystampede:~# cat /proc/mounts
  /dev/root / ext2 rw 0 0
  none /proc proc rw 0 0
  automount(pid59) /disk autofs rw 0 0      <---- !!!!!!!!
  automount(pid67) /cdrom autofs rw 0 0

Strangely, of the 2 mount points /cdrom and /disk, is not always the same that
suffers of this problem, sometime one, sometime the other.

By tries, one solution is umount what is not mounted:
  mystampede:# umount -v -n /disk
  Could not find /disk in mtab
  /disk umounted
so now /proc/mounts reads:
  mystampede:# cat /proc/mounts
  /dev/root / ext2 rw 0 0
  none /proc proc rw 0 0
  automount(pid67) /cdrom autofs rw 0 0
and now one can restart:
  mystampede:/var/log# /etc/rc.d/rc.autofs restart
  Checking for changes to /etc/auto.master ....
  Start automount /disk file /etc/auto.disk

The kernel is 2.2.2, the autofs is version 3.1.3 that I compiled for the
stampede 0.89.
Is the problem a sign of a bad previous shutdown?
Is a problem of /etc/rc.autofs ? maybe a sync is needed between one mount
point and the other?
Many thanks in advance
Bye

Reply via email to