In the article RaspberryPi – NetworkAttachedStorage / build your own NAS from a RaspberryPi 4, I had already described that the (relatively) new Raspberry Pi 4B is also very well suited to building an inexpensive but powerful “Network Attached Storage” or NAS.
A NAS is a hard drive that is connected to the network and thus makes the data available in the entire network. So you can access it from multiple computers or smartphones. This is useful, for example, as a data store for family photos or as a backup drive for the data on your computers.
Open Media Vault or OMV for short is a package that brings many important functions for a NAS. It can be installed very easily on a Linux computer (also on a Raspberry Pi) and then conveniently configured via a web interface. So you can set up file sharing relatively easily or set up a media server to stream content to your Smart TV.
How you can install Open Media Vault on your Raspberry Pi is described in the following article.
- 1 Safety instructions
- 2 Affiliate links / advertising links
- 3 Requirements
- 4 Prepare the Raspberry Pi image
- 5 Log in via SSH on the RaspberryPi
- 6 Update package management
- 7 Install OpenMediaVault on the Raspberry Pi
- 8 The first login and change default password
- 9 More articles related to Open Media Vault
- 10 Have fun with the project
I know the following hints are always a bit annoying and seem unnecessary. But unfortunately, many people who knew it "better" from carelessness lost their eyes, fingers or other things or hurt themselves. In comparison, a loss of data is almost not worth mentioning, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Even the coolest project is worth no injury or other annoyance. https://www.nerdiy.de/en/sicherheitshinweise/
The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and shop via this link, Nerdiy.de receives a commission from the online shop or provider concerned. The price doesn't change for you. If you do your purchases via these links, you will support Nerdiy.de in being able to offer further useful projects in the future. 🙂
Before you start this article, you should have prepared a Raspberry Pi so that it can be reached via the network and controlled via SSH.
The following articles describe what needs to be done to prepare the Raspberry Pi.
- RaspberryPi – Setup for nerdiys!
- RaspberryPi – The first configuration!
- RaspberryPi – Control the RaspberryPi via SSH
In the following lists you will find all the parts you need to implement this article.
|1x||Raspberry Pi Bei Amazon kaufen|
|1x||Raspberry Pi Netzteil Bei Amazon kaufen|
|1x||Raspberry Pi Gehäuse Bei Amazon kaufen|
|1x||Micro SD Karte 64GB Bei Amazon kaufen|
Prepare the Raspberry Pi image
An important detail when installing OMV on the Raspberry Pi is that you use the Raspberry Pi image from the Raspberry Pi OS without a desktop interface. OMV cannot be installed on a Raspberry Pi OS incl. desktop interface.
So click on in the Raspberry Pi Imager
- OS Select
… then on
- Raspberry Pi OS
and select a version of Raspberry Pi OS without “desktop environment”.
Then install this image on the SD card of your Raspberry PI. You can find more information about the installation in the article
Log in via SSH on the RaspberryPi
To get started, you first need to log in to RasPi with SSH on Putty. How to do it is described in the article
Update package management
The package management in Linux is a "central point" over which various software packages can be installed. For this to work reliably, the lists and sources of package management should be updated before installing any new packages.
sudo apt-get update && sudo apt-get upgrade
Install OpenMediaVault on the Raspberry Pi
Installing Open Media Vault is super easy thanks to an installation script. So only one command has to be executed to start the installation. Information about the installation script can be found in the associated Git repository under the following link.
To start the installation of Open Media Vault you have to enter the following command in the console of your Raspberry Pi.
sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
The installation then runs mostly automatically.
All required packages are installed and OMV configured.
Towards the end of the installation, the network interfaces are also restarted.
This interrupts the SSH connection, which is why you cannot see any further information about the installation process.
In this case, simply wait another five minutes. The installation should then be complete and you can proceed to the next step.
The first login and change default password
The installation of OMV should now be complete. You can now log in to the OMV web interface.
To do this, enter the address of your Raspberry Pi in the address bar of your browser.
You can find out the address by entering the following command in the console of your Raspberry PI.
Arrived on the configuration interface, you can then log in with the following standard login data.
- Default username: admin
- Default password: openmediavault
After the first login you should(!) change the default password.
Remember: Many IT attacks are only possible because administrators have not changed default passwords.
Click on the
- Gear at top right
and then on
- “Change Password”
Enter your new password in the text fields shown and save it by clicking on the “Save” button.
You will then be redirected to the Open Media Vault home page.
This completes the installation of OMV. I have described the many other functions in other articles. There you will also find information on how to expand the functionality of your OMV installation accordingly. These articles are all grouped into the following categories.
Have fun with the project
I hope everything worked as described. If not or you have any other questions or suggestions, please let me know in the comments. Also, ideas for new projects are always welcome. 🙂
P.S. Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you appreciate it that I share these information with you, I would be happy about a small donation to the coffee box. 🙂