New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

[Solved] Autofs "FATAL: Module autofs4 not found"

Got problems with your B2 or B3? Share and get helped!
Post Reply
jmv
Posts: 23
Joined: 20 Jun 2007, 08:51

[Solved] Autofs "FATAL: Module autofs4 not found"

Post by jmv »

Hi all,

I am trying to use Autofs with Bubba|2 server (I am already using Autofs with Bubba|1. It works)

-I tried to start it and got this error.
bubba3:/tmp# /etc/init.d/autofs start
Starting automounter: loading autofs4 kernel module,FATAL: Module autofs4 not found.
done.

-Found this post http://forum.excito.net/viewtopic.php?t ... e&start=15
and tried to follow it.

Code: Select all


wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.5.tar.bz2

tar xjf linux-2.6.26.5.tar.bz2

cd linux-2.6.26.5

cp /proc/config.gz .

gunzip config.gz

cp config .config

nano .config

# changes
CONFIG_AUTOFS_FS=y
CONFIG_AUTOFS4_FS=y

Code: Select all

make modules  #get some error 

make arch/powerpc/lib/crtsavres.o

make modules

mkdir -v /lib/modules/2.6.26.5/kernel/fs/nfs_common # all  of them useless as the directories already exists
mkdir -v /lib/modules/2.6.26.5/kernel/fs/nfsd
mkdir -v /lib/modules/2.6.26.5/kernel/fs/dlm
mkdir -v /lib/modules/2.6.26.5/kernel/fs/ntfs
mkdir -v /lib/modules/2.6.26.5/kernel/fs/udf
mkdir -v /lib/modules/2.6.26.5/kernel/fs/fuse
mkdir -v /lib/modules/2.6.26.5/kernel/fs/cifs
mkdir -v /lib/modules/2.6.26.5/kernel/fs/exportfs
mkdir -v /lib/modules/2.6.26.5/kernel/fs/isofs

cp -v fs/nfs_common/nfs_acl.ko /lib/modules/2.6.26.5/kernel/fs/nfs_common/nfs_acl.ko
cp -v fs/nfsd/nfsd.ko /lib/modules/2.6.26.5/kernel/fs/nfsd/nfsd.ko
cp -v fs/dlm/dlm.ko /lib/modules/2.6.26.5/kernel/fs/dlm/dlm.ko
cp -v fs/ntfs/ntfs.ko /lib/modules/2.6.26.5/kernel/fs/ntfs/ntfs.ko
cp -v fs/udf/udf.ko /lib/modules/2.6.26.5/kernel/fs/udf/udf.ko
cp -v fs/fuse/fuse.ko /lib/modules/2.6.26.5/kernel/fs/fuse/fuse.ko
cp -v fs/cifs/cifs.ko /lib/modules/2.6.26.5/kernel/fs/cifs/cifs.ko
cp -v fs/exportfs/exportfs.ko /lib/modules/2.6.26.5/kernel/fs/exportfs/exportfs.ko
cp -v fs/isofs/isofs.ko /lib/modules/2.6.26.5/kernel/fs/isofs/isofs.ko

depmod -a
modprobe nfsd
dmesg
lsmod
/etc/init.d/autofs stop
/etc/init.d/autofs start

I got the same error.
bubba3:/tmp# /etc/init.d/autofs start
Starting automounter: loading autofs4 kernel module,FATAL: Module autofs4 not found.
done.

Any help will be appreciate
Thanks
Last edited by jmv on 08 Apr 2009, 17:14, edited 1 time in total.
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Post by 6feet5 »

That's a lot of modules you've copied, but where's the one for autofs, or am I missing something here?

As far as I can tell not one of the modules you've copied have much to do with autofs. Shouldn't there at least be a module named autofs4.ko in that list of modules (I would think so, judging by the error you mention).

/Johan
jmv
Posts: 23
Joined: 20 Jun 2007, 08:51

Post by jmv »

6feet5 wrote:Shouldn't there at least be a module named autofs4.ko in that list of modules (I would think so, judging by the error you mention).

/Johan
I searched for it. But no autofs4.ko available.

The most approaching elements are listed below.

fs/autofs:
autofs_i.h dirhash.c init.c inode.c Makefile modules.order root.c symlink.c waitq.c

fs/autofs4:
autofs_i.h expire.c init.c inode.c Makefile modules.order root.c symlink.c waitq.c

I am not confident wih compiling ... but i did try a "make" in the directory. It gave an error.

make: *** Pas de cibles. Arrêt.
i.e. *** No targets. Stop
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Post by 6feet5 »

Ok, what if you try to build only that driver? Try

Code: Select all

make fs/autofs4/autofs4.ko
/Johan
jmv
Posts: 23
Joined: 20 Jun 2007, 08:51

Post by jmv »

Thanks for your help.

I did
- make fs/autofs4/autofs4.ko
- make fs/autofs/autofs.ko
- make modules

It gave me this
- make fs/autofs4/autofs4.ko
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
make[1]: « fs/autofs4/autofs4.o » est à jour.
MODPOST 333 modules

"est à jour" means "is up to date"

Now the *.ko are still missing

ls -rt fs/autofs*

fs/autofs4:
waitq.c symlink.c root.c Makefile inode.c init.c expire.c autofs_i.h init.o inode.o root.o symlink.o waitq.o expire.o autofs4.o modules.order

fs/autofs:
waitq.c symlink.c root.c Makefile inode.c init.c dirhash.c autofs_i.h dirhash.o init.o inode.o root.o symlink.o waitq.o autofs.o modules.order

I missed something??
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Post by 6feet5 »

Ahh, now I see your mistake.

You shouldn't enter 'y' in the config file. 'y' means you want it included in the kernel, but you don't want a new kernel. You want it as a module so you enter 'm', like:
# changes
CONFIG_AUTOFS_FS=m
CONFIG_AUTOFS4_FS=m
/Johan
jmv
Posts: 23
Joined: 20 Jun 2007, 08:51

Post by jmv »

Mea culpa, mea maxima culpa :)

Thanks for your help.
I modified the .config file and

$ make modules
$ mkdir /lib/modules/2.6.26.5/kernel/fs/autofs
$ mkdir /lib/modules/2.6.26.5/kernel/fs/autofs4
$ cp -v fs/autofs/autofs.ko /lib/modules/2.6.26.5/kernel/fs/autofs/autofs.ko
$ cp -v fs/autofs4/autofs4.ko /lib/modules/2.6.26.5/kernel/fs/autofs4/autofs4.ko

$ depmod -a
$ modprobe autofs4

$ /etc/init.d/autofs restart
Stopping automounter: done.
Starting automounter: done.

:P

autofs and autofs4 seems mutually exclusive for modprobe (autofs or autofs4 but not the 2 in the same time)

I need to check the differences. And choose the right one.

Again, thank for your patience !
Post Reply