2

Goal: mount a UNIX NAS (WD myCloud) to a UNIX router.

What has been done (do not assume it is correct):

  1. Checked router is running NFS client:

    ps | grep nfsd 
    

    19243 username 1376 R grep nfsd

  2. Checked NAS is running NFS server from macbook:

    rpcinfo -T udp 192.168.X.XXX | grep nfs
       100003       2     tcp      0.0.0.0.8.1          nfs        unknown
       100003       3     tcp      0.0.0.0.8.1          nfs        unknown
       100003       2     udp      0.0.0.0.8.1          nfs        unknown
       100003       3     udp      0.0.0.0.8.1          nfs        unknown
    
  3. Attempt to mount NAS directory use syntax:

    mount -t nfs server_IP_addr:/share_name /local_mount_point

    mount -t NFS 192.168.X.XXX:/shares/Public/Data /mnt/nas
    

    The error response:

mount: mounting 192.168.X.XXX:/shares/Public/Data/ on /mnt/nas failed: No such device

I am interested in understanding how to diagnose the cause of 'no such device'. Is there a procedure (series of command-line tests) that systematically flush out the issue?

Updates / Detailed Responses to Questions / Requests:

nfs server module not found and unable to load:

root@WDMyCloud root # service nfs status
-sh: service: not found
root@WDMyCloud root # systemctl status nfs-server
-sh: systemctl: not found
root@WDMyCloud root # lsmod | grep nfs
root@WDMyCloud root # modprobe nfs
modprobe: chdir(/lib/modules): No such file or directory   
root@WDMyCloud root # ipkg
-sh: ipkg: **not found**

ps command:

root@WDMyCloud root # ps | grep -i nfs
  375 root         0 SW<  [nfsiod]
 2813 root         0 SW   [nfsd]
 2814 root         0 SW   [nfsd]
 2815 root         0 SW   [nfsd]
 2816 root         0 SW   [nfsd]
 2817 root         0 SW   [nfsd]
 2818 root         0 SW   [nfsd]
 2819 root         0 SW   [nfsd]
 2820 root         0 SW   [nfsd]
11491 root      2592 S    grep -i nfs

showmount -e 192.168.X.X returns an empty export list

  • I'm not sure that NFS-server is started. What service is responsible for NFS-server? Please, show output on: 'systemctl status nfs-server' or 'service nfs status'. – Yurij Goncharuk Mar 12 '18 at 9:59
  • 1
    Also check if the nfs module is loaded with lsmod | grep nfs or just insert it with modprobe nfs. To see more info, you could add -v to your mount command. – Thomas Mar 12 '18 at 10:55
  • @Thomas Please see update in OP for results. Server nfs module is not loaded and modprobe fails. ipkg also fails – gatorback Mar 12 '18 at 14:45
  • @YurijGoncharuk Both commands are unavailable and ipkg is unavailable – gatorback Mar 12 '18 at 14:48
  • @gatorback Hmm... Do you have '/shares/Public/Data' in '/etc/export'? Try to see in logs on NFS-server (/var/log/messages or something else) for events like NFS. What say 'mount -v'? P.S. Maybe it's typo, but no need to write 'nfs' in 'mount' command in uppercase. – Yurij Goncharuk Mar 12 '18 at 15:18
2

Special thanks to YurijGoncharuk who spent hours experimenting with NFS.

How to Mount a WD MyCloud NAS to Asus Merlin Router

|improve this answer|||||
  • Don't forget to mark this post as solver. And 'show mount' has typo - 'showmount'. – Yurij Goncharuk Mar 13 '18 at 9:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.