Raspberry Pi – NAS Storage

In my previous blog here I wanted to extend my storage but it also has to be redundant, so I don’t loss any data. That’s why I build a Raspberry Pi® 3 with RAID Storage using Some old 2.5″ HD drives (You can also use USB sticks). Now we going to extend this installation to a NAS Storage.

Install and Setup SAMBA

SAMBA is a Windows file sharing system that runs on Linux, works flawlessly, and is easy to setup too. Let’s install SAMBA and then configure it with the following code:

sudo apt-get install samba samba-common-bin -y

After SAMBA finishes installing, let’s add user:pi and share password by entering the following code (enter a password at the prompts):

Press enter to see a dump of your service definitions. If the line reads “Loaded services file OK.” then you’re good to go. Finally, we need to restart the SAMBA service by entering the following command:

sudo /etc/init.d/samba restart

Connect to your NAS

Now we need to connect to your NAS share and make it automatically show up in your Network drive. Open File Explorer (Win8/10 search “File Explorer” and open top result) (WinXP/Vista go to Start > Computer), then click on the Network item on left-side window pane. Click inside the address bar, then type

\\RASPINAS

(or whatever you chose for a hostname during Debian setup, if you’re unsure enter the following command hostname) and hit Enter
Enter your Raspberry Pi’s hostname

Login to your NAS

You should now see your nas folder so click it on, then enter your username pi and password you entered when we setup SAMBA:
Click on your NAS folder, then enter your credentials.

That It!

REFERENCE

Raspberry Pi® (2019), The Raspberry Pi is a tiny and affordable computer that you can use to learn programming through fun, practical projects, https://www.raspberrypi.org

Donate

Since October 2015, StudioPieters® has been writing this blog. Help accelerate its development with a small contribution! StudioPieters® is open source, and 100% free . Please consider donating to StudioPieters® before starting the fun of building and learning. StudioPieters® is a non-profit organisation devoted to making creative use of electronics accessible to everyone.