2005-09-19 06:50:46

by Sumeet Gupta

[permalink] [raw]
Subject: NFS Problem : --"mount : fs type nfs not supported by kernel"

Hi

I have compiled kernel-2.6.9 on kernel 2.4 .
I am able to compile it successfully after alot of troubles but finally
while booting i am facing following issues.
Kindly help me out if possible.

If I see the /var/log messages the following error appears

Sep 12 19:27:36 rncpet31 nfs: Starting NFS services: succeeded
Sep 12 19:27:36 rncpet31 nfs: rpc.rquotad startup succeeded
Sep 12 19:27:36 rncpet31 nfsd[1698]: nfssvc: No such device
Sep 12 19:27:36 rncpet31 nfs: rpc.nfsd startup failed
Sep 12 19:27:36 rncpet31 nfs: rpc.mountd startup succeeded

Sep 12 19:28:09 rncpet31 automount[1654]: attempting to mount entry
/home1/amsethi
Sep 12 19:28:09 rncpet31 kernel: nfs warning: mount version older than kernel
Sep 12 19:28:09 rncpet31 automount[1654]: attempting to mount entry
/home1/labuser
Sep 12 19:28:09 rncpet31 kernel: nfs warning: mount version older than kernel
Sep 12 19:28:09 rncpet31 automount[1654]: attempting to mount entry
/home1/sumgupta
Sep 12 19:28:12 rncpet31 kernel: nfs warning: mount version older than kernel

If I run the following command to check the nfs status it shows the nfs
demon is stopped demon i.e. rpc.nfsd

[root@rncpet31 root]# service nfs status
rpc.mountd (pid 1711) is running...
nfsd is stopped
rpc.rquotad (pid 1700) is running...


and while booting the kernel on the booting screen the following message
appears too :

Starting NFS daemon: [FAILED]
mount : fs type nfs not supported by kernel


The /proc/filesystems didn't contained the entry for nfs when we booted
the kernel for the first time i.e. the module was compiled with the kernel
but didn't started at the boot time. So we added the following script to
start the nfs automatically during bootup but this script only starts the
client end demon, the server side nfs demon still didn't started up

KERNEL=$(uname -r | cut -b 1-4)
if [ $KERNEL = "2.6." ] ; then
/sbin/modprobe nfs
fi


Thanking You.

Regards
Sumeet Gupta