[Solved] NFS Failed to mount: Nothing Happened or “No such device” Error

Troubleshooting other directory phenomena


[root@Zeratul:~]# mkdir  /mnt/sd0
[root@Zeratul:~]# mount /mnt/sd0 -t nfs -o nolock;cd /mnt/sd0
[root@Zeratul:sd0]# ls

After mounting NFS, there is nothing.

Or removing -t NFS will directly report an error.

[root@Zeratul:sd0]#  mount /mnt/sd0  -o nolock;cd /mnt/sd0
mount: mounting on /mnt/sd0 failed: No such device


1. Ping target machine –> OK

2. View the NFS module of the board end system

[root@Zeratul:sd0]# modprobe nfs
modprobe: applet not found

You can see that the NFS module is not loaded in the kernel.


In the Linux source code directory, make menuconfig make the following settings

File systems  ---> 
           [*] Network File Systems  --->  
                   <*>   NFS client support
                    [*]         NFS client support for NFS version 3
                    [*]               NFS client support for the NFSv3 ACL protocol extension
                    [*]         NFS client support for NFS version 4 (EXPERIMENTAL) 
                    [*]               NFS client support for NFSv4.1 (DEVELOPER ONLY) 
                    [*]         Root file system on NFS
 [*] Networking support  ---> 
          Networking options  ---> 
                    [*]   IP: kernel level autoconfiguration 

After configuration, make uimage compile uimage

Re burn kernel



Sometimes when you enter make menuconfig in the terminal, you will be prompted

$ make menuconfig 
  HOSTCC  scripts/kconfig/mconf.o
<command-line>:0:12: fatal error: curses.h: No such file or directory
compilation terminated.
scripts/Makefile.host:108: recipe for target 'scripts/kconfig/mconf.o' failed
make[1]: *** [scripts/kconfig/mconf.o] Error 1
Makefile:542: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

sudo apt-get install libncurses5-dev

Similar Posts: