Mounting WD My Cloud on Ubuntu

After the january firmware update (2.12.127) I couldn’t mount my Western Digital My Cloud anymore. I took a look at the release notes and sure enough “security was improved“.
That’s probably the reason I got a “mount: /media/NAS: mount(2) system call failed: Connection refused.” everytime I tried to mount the My Cloud.

What they didn’t mention was how to fix this. Luckily it’s not that hard.

On your My Cloud

My cloud needs to know who can access the drive and who can not.
Log in on your My Cloud via ssh and edit the exports file:

vi /etc/exports

if Public is the folder you want to mount, just add:

/nfs/Public *(rw,all_squash,sync,no_subtree_check,insecure,crossmnt,anonuid=65534,anongid=1000)

Note that I added a * here which means everyone has access. You should add the ip-address of the client instead.
After this run

sudo service nfs-kernel-server nfs-mountd restart 
sudo service nfs restart

On your computer

At this point you should be able to mount your My Cloud again

sudo mount -t nfs MYCLOUD_IP:/nfs/Public /media/NAS/

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.