• Cyrus

Project: Making a NAS with Raspberry Pi

Updated: Jan 22, 2019


My Raspberry Pi

Hello everyone, I decided i'll go over how to make a Network Attached Storage (NAS) with a Raspberry Pi. This tutorial is like all over the internet, but I just wanted to go over it.


You'll need:


1. A Raspberry Pi along with a power supply. I'm using the Raspberry Pi model B.

2. An SD card. 8 Gigs should be fine.

3. An external drive.

4. An ethernet cable and access to your modem.

(Optional)

5. An SD card reader, in case your computer doesn't have one

6. A monitor/keyboard.

7. A case. It's highly recommended, but it's technically optional I guess. I used my school's 3d printer to make mine.


First, you'll want to download OpenMediaVault. You can get the images for Raspberry Pi here: https://sourceforge.net/projects/openmediavault/files/Raspberry%20Pi%20images/


After you download that, you'll want to download something that can be used to burn the image to the SD card. OMV recommends etcher (https://www.balena.io/etcher/) and that is what I used. It seems to be a bit finicky about the SD card, but I've used it without any real issues.


Select your image on the left, select the drive on the middle, and select "Flash!" to... well.. flash.

You might get an error that goes along the lines of "1 device failed". This happened to me and I'm honestly not too sure why, however, this never presented any real issues.


Once you're done with that, go ahead and install the SD card onto the Pi. On the model I have, there's a little slot on the bottom where it goes.


You can do this headless with SSH or just look up the IP address of the pi on your router, but I just preferred to do it via monitor.


Once you have your SD card, external drive, ethernet cable, and peripherals hooked up, you can fire up this bad boy.


What you should see along with an artful edit in photoshop

After this point, you'll need to configure everything via the web interface.


To access the web interface, you input the IP address that should be where the large and super artsy black box with the artsy black arrow labeled "IP" is.


You should see something like this

After putting in the IP address, you should see something like the image above. The default username is "admin" and the default password is "openmediavault".


First things first, I suggest changing your password. You can do that by going to general settings, and clicking on "web administrator password".


Once you have that sorted out, you can then get into the fun stuff.




First, we'll be setting up groups. This is useful if you have family who would like to use your NAS for backup purposes and maybe friends who like to store stuff on your drive. Sharing is caring, right? Navigate over to "users" under Access Rights Management. Make some users who might be accessing your NAS and then move on down to groups. After that, you can add the users to groups. This lets us manage users easier. Make sure you make a user for yourself that has all the permissions.


Now, we can get into the really fun stuff.





Click add. After that, give it some kind of name and select what drive you want to use. Also make sure you set up permissions. This is what mine looks like.





After this, you'll want to activate SMB so you can access the folder from your file browser.



This is what my SMB settings look like. You can name the workgroup whatever you want, but make sure that it is enabled. After you're done with that, go over to shares and add the folder you made earlier. Below is what mine looks like.




And with that, you should be able to access your files and stuff on your network drive. It's kind of hard to devise a way to make this work for everyone 100% of the time with no issues. I've followed guides that didn't really work for me. This is just what worked for me. Google is your best friend and if something doesn't quite work out, try seeing how other people did it and tweak some things.


In a later post i'll go over how you can set up a VPN so you can access your files from anywhere.


I hope you enjoyed reading this, it took a lot of effort. If you're interested in this kind of thing make sure you subscribe, i'll try and post most of the projects I work on here.


0 views