Connecting a Raspberry Pi up to a WD the Cloud Network Attached hard disk drive:

Connecting a Raspberry Pi up to a WD the Cloud Network Attached hard disk drive:

Recently during a residence move, we dropped my trusted old fashioned dependable Raspberry Pi – hard disk Network Attached space product. Fundamentally I connected my outside hard disk drive to a Raspberry Pi together with a Network Attached Storage drive which permitted us to get into my news from any unit to my house system.

When I realised it absolutely was time for you to buy a dedicated NAS.

I shelled down for the WE the Cloud 4 TB host, which by all reports is just a great bit of gear – but i desired one thing significantly more than a standalone NAS and I also wished to have the ability to access the WD the Cloud from my Pi.

Here’s exactly how we connected my Pi towards the the Cloud! The guide below should benefit any NAS – not merely the WD our Cloud.

Get the ip of one’s NAS:

In the event that you don’t understand the internet protocol address of one’s NAS, it is possible to perform an “arp-scan” from your Raspberry Pi to get it, right here’s the way I found mine:

In the event that you nevertheless can’t discover the internet protocol address, for the WD the Cloud you’ll find the internet protocol address in your settings, depending on the directions right here.

Within my instance my NAS ip was: 192.168.192.62

Mounting the NAS towards the Raspberry Pi:

The step that is first accessing the NAS from your Raspberry Pi is always to install the outside HDD as a file system in the Raspberry Pi, this can enable you to see the NAS https://besthookupwebsites.net/talkwithstranger-review/, while you would any directory in the Pi. This can be pretty simple actually, whilst the CIFS (CIFS Common Web File Share, a protocol dictating just just just how different OS’ share files among them, including Windows and Linux) protocol takes care of everything.

First produce a directory for the share:

Next mount the drive utilising the internet protocol address additionally the Raspberry Pi directory you wish to install to:

In this instance, i will be mounting the folder that is“Public on my NAS to your wdmycloud folder positioned to my Raspberry Pi.

The demand syntax is: mount-o that is-t

After performing the mount demand, you ought to now have the ability to access the NAS file system as you would any kind of directory!

Immediately mount the NAS on power up:

Edit the FSTAB to install your NAS immediately on switch on:

To really make the mount permanent, we have to include the NAS file system towards the Raspberry Pi’s /etc/fstab file – the File System dining Table.

Edit the FSTAB file.

Include the NAS being a file system within the FSTAB file.

Incorporating the NAS towards the FSTAB.

You can observe through the line that is last the FSTAB file above, We have added the NAS being a file system within my FSTAB file.

This can immediately install the NAS every right time you switch on your Raspberry Pi!

Testing the NAS is linked immediately on switch on:

First rung on the ladder, reboot your Pi… :

Next thing, look at your NAS directory through the Pi:

Confirm the share is working.

Success! The mount works, I’m able to now access each of my images, music and films from my Raspberry Pi. All things are properly saved back at my WD My Cloud, which will keep 2 copies of most of my data – so if such a thing goes incorrect, I’ll always have my data copied 😉

12 Remarks

Hi Allyn, nice work! exactly what we needed seriously to get my WDmycloud dealing with Rpi. We nevertheless have actually a number of conditions that We cannot resolve.

1. I’ve added the line to FSTAB nevertheless it doesn’t work to my Rpi3. I will be guessing it really is attempting to install the NAS ahead of the system is up. Any some some a few ideas? 2. i will just compose to your general general public directories SUDO that is using, CHOWN doesn’t work. BTW there was a typo:

Hi David, I’ll have actually to always check this away again. Right after composing this, within home move, my Pi had been fallen and broke!

I do believe for what I happened to be doing, read access ended up being enough, at that time. I really do remember authorization problems, but I’ll need to check on once again.

I’m on vacation during the brief minute and can give it a try once I get back home. I’ve fixed the typo – thanks 🙂

Hi Allyn I’ve used your guide as well as the NAS mounted okay and all worked.the issue I’m having is that we cant get it to automobile mount i followed your guidelines however when i reboot the drive does not install

Hi there, what precisely you wanting to too mount the NAS? A Raspberry Pi? You type: sudo mount -a Does the mount appear when you type?: cat /etc/fstab when you log in does the drive mount when

Yes im attempting to install it to a raspberry pi 3 b+ no the drive doesn’t install whenever i kind the lines you stated. let me reveal a duplicate associated with display

Compartir: