Skip to content
Home » Embedded Systems » Projects » Build Your own Network Attached Storage on Rasbperry Pi using Open Media Vault

Build Your own Network Attached Storage on Rasbperry Pi using Open Media Vault

Raspberry Pi connected to monitor displaying Open Media Vault interface with battery modules and GPIO cables on workbench

KEY TAKEAWAYS

  • Open Media Vault (OMV) turns a Raspberry Pi into a network-attached storage (NAS) device
  • Install OMV on Raspberry Pi OS and connect an external USB drive for storage
  • Configure shared folders and user permissions through the OMV web interface
  • SMB/CIFS and NFS protocols allow file access from Windows, Mac, and Linux devices on the network
Looking to create your own Network Attached Storage (NAS) on a budget? With a Raspberry Pi and OpenMediaVault (OMV), you can turn your Pi into a powerful, energy-efficient NAS solution. Whether you’re storing personal files, media libraries, or backups, this DIY project allows you to access your data securely from anywhere, without the costs of commercial alternatives. In this guide, we’ll walk you through the steps to set up your own NAS using OpenMediaVault on a Raspberry Pi, making it an ideal solution for tech enthusiasts and beginners alike.

Install

wget -O - <https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/installScript/master/install> | sudo bash
The installation will take some time to complete.After installation, SSH is not possible because openmediavault disables it.

Login:

Open the ip address of the pi on browser. Default:username – adminpassword – openmediavaultChange them

Enable SSH:

Go to users and select the existing user. It should be the same one as on the raspi. Enable the SSH permission.

Setup the Network Attached Storage (NAS)

Check if Disk is detected:

  1. Connect the Hard drive
  2. Check the following option:
It should show the SD card and the Harddrive:

Setup the FileSystem

Select File Systems → Hard Drive → MountThen, select the Hard Drive and click saveNow, confirm the changes by clicking on the tick in the yellow box.Give it some time to complete the configuration changes and we can see the following:

Add Shared folders:

We will now add the folders from the Hard drive that we want to shareGo to Storage → Shared Folders → Create.We want to share the folder named “Movies” and we select that in the available folders in the third option.The first option is the name how it will appear. You can give it any name you want.

Accessing the Hard Drive:

We need to use services like NFS (Linux/Mac) or SMB (Windows)Services → SMB → Settings → Enable Click Services → SMB → Shares → Create 

Mapping the Network Attached Storage to Windows:

Open ‘This PC’, right click and add network locationenter \\raspberrypi.local\MoviesEnter the username and password. And you are done.You now have your own Network Attached Storage. And using the same processes, you can add more Hard Drives to it, more folders etc.

Leave a Reply

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