Flip any arduous drive into networked storage with Raspberry Pi

Networked arduous drives are tremendous handy. You may entry information it doesn't matter what laptop you are on -- and even remotely.

However they're costly. Except you utilize the Raspberry Pi.

When you occur to have a couple of of arduous drives laying round you may put them to good use with a Raspberry Pi by creating your personal, very low cost NAS setup. My present setup is 2 4TB arduous drives and one 128GB arduous drive, related to my community and accessible from wherever utilizing the Raspberry Pi.

Here is how.

What you will have

raspberry-pi-nas-openmediavault.jpg
Taylor Martin/CNET

For starters, you want an exterior storage drive, similar to an HDD, SSD or a flash drive.

You additionally want a Raspberry Pi. Fashions 1 and a couple of work simply tremendous for this software however you're going to get a bit of higher assist from the Raspberry Pi 3. With the Pi 3, you are still restricted to USB 2.0 and 100Mbps by way of Ethernet. Nonetheless, I used to be in a position to energy one exterior HDD with a Pi 3, whereas the Pi 2 Mannequin B couldn't provide sufficient energy to the identical HDD.

In my Raspberry Pi NAS, I at present have one powered 4TB HDD, one non-powered 4TB HDD and a 128GB flash drive mounted with out difficulty. To make use of a Pi 1 or 2 with this, chances are you'll wish to think about using a powered USB hub on your exterior drives or utilizing a HDD that requires exterior energy.

Moreover, you want a microSD card -- 8GB is really helpful -- and the OpenMediaVault OS picture, which you'll download here.

Putting in the OS

To put in the working system, we'll use the identical method used for installing any OS without NOOBS. Briefly:

Extra detailed set up directions can be found here for each Home windows and Mac. Simply substitute the Raspbian picture with OpenMediaVault.

Setup

Screenshot by Taylor Martin/CNET

After the picture has been written to the SD card, join peripherals to the Raspberry Pi. For the primary boot, you want a keyboard, monitor and an area community connection by way of Ethernet. Subsequent, join energy to the Raspberry Pi and let it full the preliminary boot course of.

As soon as that's completed, use the default internet interface credentials to register. (By default, the username is admin and the password is openmediavault.) This may give you the IP tackle of the Raspberry Pi. After you've that, you'll not want a keyboard and monitor related to the Pi.

Join your storage drives to the Raspberry Pi and open an online browser on a pc on the identical community. Enter the IP tackle into the tackle bar of the browser and press return. Enter the identical login credentials once more ( admin for the username and openmediavault for the password) and you can be taken to the online interface on your set up of OpenMediaVault.

Mounting the disks

Screenshot by Taylor Martin/CNET

The very first thing you'll want to do to get your NAS on-line is to mount your exterior drives. Click on File Methods within the navigation menu to the left below Storage.

Find your storage drives, which might be listed below the System column as one thing like /dev/sda1 or /dev/sdc2. Click on one drive to pick it and click on Mount. After a couple of seconds have handed, click on Apply within the higher proper nook to verify the motion.

Repeat this step to mount any extra drives.

Making a shared folder

Screenshot by Taylor Martin/CNET

Subsequent, you will have to create a shared folder in order that the drives will be accessed by different units on the community. To do that:

  • Click on Shared Folders within the navigation pane below Entry Rights Administration.
  • Click on Add and provides the folder a reputation.
  • Choose one of many storage drives within the dropdown menu to the correct of Quantity.
  • Specify a path (if you need it to be totally different from the identify).
  • Click on save.

Enabling SMB/CFIS

Screenshot by Taylor Martin/CNET

Lastly, to entry these folders and drives from an exterior laptop on the community, that you must allow SMB/CFIS.

Click on SMB/CFIS below Providers within the left navigation pane and click on the toggle button beside Allow. Click on Save and Apply to verify the adjustments.

Subsequent, click on on the Shares tab close to the highest of the window. Click on Add, choose one of many folders you created within the dropdown menu beside Shared folder and click on Save. Repeat this step for shared folders you created.

Accessing the drives over your community

Now that your NAS is up and working, that you must map these drives from one other laptop to see them. This course of is totally different for Home windows and Mac, however ought to solely take a couple of seconds.

Home windows

raspberry-pi-map-network-folder-windows.png
Screenshot by Taylor Martin/CNET

To entry a networked drive on Home windows, open File Explorer and click on This PC. Choose the Pc tab and click on Map community drive.

Within the dropdown menu beside Drive select an unused drive letter. Within the Folder area, enter the trail to the community drive. By default, it ought to look one thing like RASPBERRYPI[folder name]. (As an example, one in all my folders is HDD, so the folder path is RASPBERRYPIHDD). Click on End and enter the login credentials. By default, the username is pi and the password is raspberry. When you change or forgot the login for the person, you may reset it or create a brand new person and password within the internet interface below Consumer in Entry Rights Administration.

Mac

mount-network-drive-mac-raspberry-pi.png

To open a networked folder in OS X, open Finder and press Command + Okay. Within the window that seems, kind smb://raspberrypi or smb://[IP address] and click on Join. Within the subsequent window, spotlight the volumes you wish to mount and click on OK.

It is best to now be capable to see and entry these drives inside Finder or File Explorer and transfer information on or off the networked drives.

There are tons of settings to tweak inside OpenMediaVault, together with the flexibility to reboot the NAS remotely, setting the date and time, energy administration, a plugin supervisor and far, rather more. But when all you want is a community storage answer, you will by no means must dig any deeper.



Source link

Leave a Reply

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