mount:nfsmount failed: Bad file descriptor

hinko.kocevar at cetrtapot.si hinko.kocevar at cetrtapot.si
Mon Aug 27 11:39:04 UTC 2007


xiao.liang at cn.alps.com wrote:
> 
> Hi,
>    I have encoutered a problem when mount a nfs filesystem. The nfs 
> server's ip is 192.168.1.6 and busybox version is 1.1.3. All the must 
> configure features in busybox and kernel is turn on. 
> CONFIG_FEATURE_MOUNT_NFS is set to y. And kernel's config CONFIG_NFS_FS, 
> CONFIG_NFS_V3 are set to y. The command i use is
> 
>  "mount -t nfs -o nolock,vers=2 102.168.1.6:/home/tom /home/tom",
> 
> the error message is "
> 
> mount:RPC: Timed out
> mount: nfsmount failed: Bad file descriptor
> mount :mounting ......................on /hom/tom failed:Bad file 
> descriptor

What does NFS servers log say? See dmesg or /var/log/messages.

> 
> I have tried remove vers=2 and sth stupid of the command but that does 
> not work, any suggestion is appreciate!

Can you mount the NFS share from another machine? Or even from the same 
machine that NFS server runs on?

I've mounted NFS share on my setup with no problems - this is on busybox 
1.1.2 though:
# uname -a
Linux cpot-0016F9000000 2.6.19-cpot-car2-R1 #20 Tue Aug 7 09:54:47 CEST 
2007 cris unknown
# zcat /proc/config.gz | grep NFS
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
# CONFIG_NFS_DIRECTIO is not set
# CONFIG_NFSD is not set
CONFIG_ROOT_NFS=y
CONFIG_NFS_COMMON=y
# mount -t nfs -o nolock 10.0.0.1:/home/hinkok/servisnfs /mnt
# mount
/dev/root on / type jffs2 (rw)
proc on /proc type proc (rw)
tmpfs on /var type tmpfs (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
10.0.0.1:/home/hinkok/servisnfs on /mnt type nfs 
(rw,vers=3,rsize=32768,wsize=32768,hard,nolock,proto=udp,timeo=7,retrans=3,sec=sys,addr=10.0.0.1)

HTH,
Hinko

-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si




More information about the busybox mailing list