I'm not really familiar with embedded systems so ...

On Wed, 30 Jun 2004, Fabricio Lima wrote:

> The libs were copied correctly to /usr/lib/autofs/*,  and the autofs.o module 
> is loaded at the startup.

What versions of kernel and autofs are you using?
Any autofs patches been applied to the kernel?
Are you using kernel module versioning?
If so does the autofs module version match the kernel version?
Have you tried compiling autofs into the kernel?
Does that work?

> 
> I had made a modified version of rc.autofs (see below) to make it work with 
> slackware, but even if I type 'automount /mnt file /etc/auto.misc' it stops 
> running and when I type '/etc/rc.d/rc.autofs status' it shows:
> Mount points configured:
> ------------------------
> /usr/sbin/automount /mnt file /etc/auto.misc
> 
> Active mount points:
> --------------------
> #

What do you mean it stops running?
No process or just no mounts?

> 
> Some interesting observations about my enviroment:
> -The root filesystem is readonly (cramfs!) I boot the system from /boot 
> (ext2) and /var and /tmp is mounted using /dev/ram0. (/mnt resides at my read-
> only root file system)
> 
> /etc/fstab:
> /dev/hda1        /boot            ext2        ro               1   0
> /dev/hda2        /                cramfs      ro               1   0
> /dev/hda3        /Data/Files   ext3    sync,data=journal       1   0
> devpts           /dev/pts         devpts      gid=5,mode=620   0   0
> proc             /proc            proc        defaults         0   0
> 
> As the /etc/mtab is never updated (readonly filesystem) that�s what is 

But autofs expects the mtab to be up to date.
What mount are you using?
Is it modified to not update mtab?
You might try linking it to /proc/mounts.

> mounted at run-time:
> #cat /proc/mounts:
> rootfs / rootfs ro 0 0
> /dev/root / cramfs ro 0 0
> /dev/hda1 /boot ext2 ro 0 0
> /dev/hda3 /root/2m2b/Data/Files ext3 rw,sync 0 0
> devpts /dev/pts devpts rw 0 0
> proc /proc proc rw 0 0
> /dev/ram2 /var ext2 rw 0 0
> /dev/ram2 /var/tmp/autofs-bind-40e28eec-5c/dir2\040(deleted) ext2 rw 0 0
> automount(pid92) /mnt autofs rw 0 0
> 
> main part of rc.sysinit:
> dd if=/var.fs of=/dev/ram2
> mount -n /dev/ram2 /var
> (tmp is linked to /var/tmp)
> /etc/rc.d/rc.autofs start
> 
> /etc/auto.master:
> /mnt    /etc/auto.misc
> 
> /etc/auto.misc:
> usb   -fstype=vfat,sync,nodev,nosuid   :/dev/sda1
> 

To work out what's happenng we need more info.

How about using autofs-4.1.3 and using the --debug option to get debug 
output.

Is the syslog you use able to send output to a loghost?

Ian


_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to