Install openmediavault on Raspberry Pi

March 22, 2022

1. First things first, what is openmediavault?

According to the openmediavault official website:

“openmediavault is the next generation network attached storage (NAS) solution based on Debian Linux. It contains services like SSH, (S)FTP, SMB/CIFS, DAAP media server, RSync, BitTorrent client and many more. Thanks to the modular design of the framework it can be enhanced via plugins.

openmediavault is primarily designed to be used in small offices or home offices, but is not limited to those scenarios. It is a simple and easy to use out-of-the-box solution that will allow everyone to install and administrate a Network Attached Storage without deeper knowledge.”

So this is a perfect solution for people who wants to make some storage available across the local network and easy to install and manage infrastructure around it. Raspberry Pi is the perfect platform to run it, thanks to its Ethernet and USB 3.0 interfaces. I will be using a Raspberry Pi 4 Model B 4GB RAM model but this is probably too much for this task and I probably will be changing it with a lot less memory. Currently, only 3.1% of the memory is being used over 4GB.

2. Let’s get started, install the Raspberry Pi

Follow this post to install Raspberry Pi. Use Raspberry Pi OS ‘Lite’, this is very important because openmediavault won’t work on Raspberry Pi with desktop environment installed (even if it is disabled).

Do not forget to attach the hard disk or another storage unit to your Raspberry Pi after the installation.

3. Download the installer script, make it executable and run!

After the initial installation, ssh into the Raspberry Pi and use the command below to download the installer script.

wget https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install

1

When the installer script is downloaded, you need to make it executable by running this command:

chmod +x install

2

Then run the executable file with sudo privileges. If you are controlling your Raspberry Pi over a wireless network, the ‘-n’ flag is important. The flag makes the installer skip the network configuration which disables the wifi interface after the reboot.

sudo ./install -n

The installation will take a while depending on your network speed, after the installation the Raspberry Pi will be automatically restarted.

3

4. Connect to the Raspberry Pi

After Raspberry Pi boots up, open your browser and go to Raspberry Pi’s IP address. The default credentials are below:

admin
openmediavault

4

After login, you should be able to access your OMV dashboard. This is the place where you will manage the services, users, and sharing settings.

5

5. Security first

Go to the System -> General Settings and switch to the Your administrator password tab. Change the default password.

6

6. Sharing the storage

I would recommend you to follow the up-to-date OMV documentation for these changes because it would differ for your infrastructure and your client-side expectations but I will briefly explain how to share your storage.

  • First you should go to Storage -> File Systems and mount the relative storage partitions to your Raspberry Pi
  • Then you should go to Access Rights Management -> User and add a new user
  • Then you should go to Access Rights Management -> Shared Folders and add shared folders for those partitions, if you give only ’/’ for the path, it will use the partition root as the shared folder.
  • After the Shared Folders are created, click once on the Shared folder you want and click to Privileges and give your user read and write privileges by checking the checkboxes.
  • If you are going to access your storage through FTP, go to Services -> FTP and enable it. You should know that Finder in macOS supports FTP connections read-only, if you want to read and write the files, you should use another protocol like SMB or you should install a third-party client to write your storage. After enabling the FTP, go to the Shares tab in there and add your Shared Folders to be shared over FTP.
  • If you are going to use SMB, go to Services -> SMB and enable it. After enabling it you should add your shared folders in the Shares tab just like in the FTP section.

7. Accessing the storage

When you are done with setting up FTP/SMB, you can use your computer to access your storage over the network. If you don’t have how to do it I would recommend searching it on Google in form of ‘Connecting to SMB server with MacOS’. Since there are multiple client platforms and multiple services, the combination would be big enough not to cover in this post.

Have fun with your Network Attached Storage!


Profile picture

Written by Can Berk Durmus, a computer engineer. He uses OpenCV, CUDA, and QT with Python and C++. He feels comfortable around resource-limited tiny computers and autonomously flying robots.

© 2022