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:
OpenMediaVault Storage section with Disks option circled in red showing available storage management options including SMART Software RAID File Systems and Shared FoldersIt should show the SD card and the Harddrive:OpenMediaVault Storage Disks page showing two detected drives mmcblk0 at 29.72 GiB and the external WDC WD3200BPVT hard drive at 298.09 GiB circled in red for NAS setup on Raspberry Pi

Setup the FileSystem

Select File Systems → Hard Drive → MountOpenMediaVault File Systems page with File Systems menu circled and mount button arrow showing dev mmcblk0p2 EXT4 partition with 25.08 GiB available and 2.69 GiB used mounted and onlineThen, select the Hard Drive and click saveOpenMediaVault Mount dialog selecting dev sda1 NTFS 298.08 GiB file system circled in red with 85 percent usage warning threshold and HDD tag for mounting on Raspberry Pi NASNow, confirm the changes by clicking on the tick in the yellow box.OpenMediaVault File Systems page showing pending configuration changes banner with dev sda1 NTFS partition online and ready to be configured for the Raspberry Pi NASGive it some time to complete the configuration changes and we can see the following:OpenMediaVault File Systems page showing successfully mounted dev sda1 NTFS drive with 262.60 GiB available and 35.49 GiB used with online status on Raspberry Pi NAS

Add Shared folders:

We will now add the folders from the Hard drive that we want to shareGo to Storage → Shared Folders → Create.OpenMediaVault Shared Folders page with add button and Shared Folders menu circled in red showing empty shared folders list ready for creating new network shares on Raspberry Pi NASWe 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.OpenMediaVault Create Shared Folder dialog with name Movies, file system dev sda1 NTFS with 262.59 GiB available, relative path Movies, and permissions set to admin and users read write

Accessing the Hard Drive:

We need to use services like NFS (Linux/Mac) or SMB (Windows)Services → SMB → Settings → EnableOpenMediaVault SMB CIFS Settings page showing Enabled checkbox, WORKGROUP name, Home directories and WINS server options for configuring Samba file sharing on Raspberry Pi NAS Click Services → SMB → Shares → CreateOpenMediaVault SMB CIFS Shares page showing empty shares list with add edit and delete buttons ready to create new Samba network shares for Raspberry Pi NAS OpenMediaVault SMB CIFS Shares Create dialog with Enabled checkbox, Movies shared folder selected, Public set to No, Browseable enabled, and options for Time Machine and transport encryption

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 *