首页 » 拼多多店群 » 正文

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

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

Recently during a residence move, we dropped my classic dependable Raspberry Pi – hard disk Network Attached Storage product. Essentially we connected my outside disk drive to a Raspberry Pi together with a Network Attached Storage drive which permitted us to get into my news from any unit back at my house system.

When I realised it absolutely was time and energy to buy a passionate NAS.

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

Here’s exactly just how we connected my Pi towards the My Cloud! The guide below should work with any NAS – not only the WD the Cloud.

Get the internet protocol address of the NAS:

You can perform an “arp-scan” from your Raspberry Pi to find it, here’s how I found mine if you don’t know the IP address of your NAS:

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, according to the directions right here.

Within my situation my NAS IP address had been: 192.168.192.62

Mounting the NAS towards the Raspberry Pi:

The first faltering step to accessing the NAS from your Raspberry Pi would be to install the outside HDD being a file system regarding the Raspberry Pi, this may permit you to see the NAS, while you would any directory from the Pi. This is certainly pretty simple actually, while the CIFS (CIFS Common Web File Share, a protocol dictating just how OS’ that is different share among them, including Windows and Linux) protocol takes proper care of every thing.

First produce a directory for the share:

Next mount the drive utilising the internet protocol address together with Raspberry Pi directory you need to install to:

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

The command syntax is: mount -t -o

After performing the mount command, you really need to now manage to access the NAS file system while you would every other directory!

Immediately mount the NAS on switch on:

Edit the FSTAB to install your NAS immediately on power up:

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

Edit the FSTAB file.

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

Adding the NAS towards the FSTAB.

You can observe through the final line in the FSTAB file above, we have actually added the NAS as being a file system in my own FSTAB file.

This may automatically 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, always check your NAS directory through the Pi:

Confirm the share is working.

Triumph! The mount works, i could now access every one of my images, music and films from my Raspberry Pi. All things are properly kept to my WD My Cloud, which keeps 2 copies of all of the of my data – so if such a thing goes incorrect, I’ll always have my data copied 😉

12 Feedback

Hi Allyn, good work! precisely what we necessary to get my WDmycloud dealing with Rpi. We nevertheless have actually a few problems that We cannot resolve.

1. We have added the relative line to FSTAB nonetheless it can not work on my Rpi3. I’m guessing it really is attempting to install the NAS prior to the network is up. Any some a few some ideas? 2. i will just compose to your general public directories making use of SUDO, – CHOWN doesn’t work. BTW there was a typo:

Hi David, I’ll have actually to again check this out. Right after composing this, during a homely household move, my Pi had been fallen and broke!

I do believe for just what I became doing, read access had been sufficient, at that time. I really do recall authorization problems, but I’ll need to check on once more.

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

Hi Allyn I’ve accompanied your guide in addition to NAS mounted okay and all worked.the issue I’m having is it to auto mount i followed your instructions but when i reboot the drive doesn’t mount that i cant get

Hi here, what precisely you attempting 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 up to a raspberry pi 3 positive singles b+ no the drive doesn’t install whenever i kind the lines you stated. let me reveal a content of this display

发表评论