How To Install Openmediavault 5 on Raspberry Pi 4 – Episode 5

17, Jan 2021 | Raspberry Pi Series | 25 comments

Difficulty = Easy

Today we are going to be showing you how to install Openmediavault 5 on Raspberry Pi 4. This is episode 5 of our Raspberry Pi Series. If you haven’t followed our other episodes please do this first to catch up with where we are today (Optional).

OpenMediaVault is a Network Attached Storage solution (NAS). It can be installed onto a Raspberry Pi 4 which will turn the Raspberry Pi into a fully-fledged networked server. Allowing a graphical user interface (GUI) to administrate the server.

Openmediavault (OMV) is great for creating network folders (Shares) and serving media files. It is also excellent for installing services and applications that can be accessed across the network. It allows docker installation and management through Portainer or Yacht. All without having to interact with the command line.

Please follow our other Episodes to bring you up to date with this Episode. If you would like to just get on with installing OMV then below are the prerequisites.

Prerequisite:

  • Raspberry Pi 4 with external USB hard drive storage.
  • Raspberry Pi OS Lite (Legacy) installed. You will need to have the Raspberry Pi OS Lite (Legacy) version installed which is based on Raspberry Pi OS Buster. This is because OMV5 is not supported in the latest version of Raspberry Pi OS Bullseye only the latest OMV 6 is compatible with it. To date (Updated 24th December 2021) it is recommended to use OMV 5 as it is the only stable version.
  • SSH access over the network

How to Install Openmediavault 5 on Raspberry Pi 4

Open a terminal window and connect to your Raspberry Pi 4 over SSH. If you’re on the latest version of Windows 10 you can use the cmd terminal or Powershell. If not you will need PuTTY. Follow our installation guide here.

Connect to your Raspberry Pi over SSH on Linux type.

ssh -p PORT [email protected]

Connect to your Raspberry Pi over SSH on Windows using PuTTY. Replace the IP and Port number with your setup: (How to find your Raspberry Pi’s IP address)

Now we have connected.

The first thing we need to do is to update and upgrade the Raspberry Pi OS to ensure it has all the latest package updates installed.

sudo apt upgrade -y && sudo apt update -y

Then we will run the following to make sure the Raspberry Pi OS is up to date.

sudo apt-get upgrade -y

Finally, we will run the following command.

sudo rm -f /etc/systemd/network/99-default.link

Now we will need to reboot the Raspberry Pi.

sudo reboot

Once rebooted we will need to reconnect to the Raspberry Pi via SSH and log in. From there type the following to execute the OMV bash install script from Github (Note the installation can take up to 30 minutes to complete).

sudo wget -O - https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/installScript/master/install | sudo bash

Please note: if you have made any SSH port or username changes installing OMV using this script will reset them. If you can’t get back into SSH please go to the Users section in Openmediavault and go to your custom user account. Add that user to the SSH group and re-enter your password twice and save and apply the changes. This will give you back SSH access for your custom user account. Please watch our YouTube video above for more information.

Once the install script finishes. The Raspberry Pi 4 will reboot. Once it does you can navigate to your chosen browser and connect to the Openmediavault interface by putting the following into the address bar:

http://PIIPADDRESS

If you get a warning page please accept the security warning and proceed. (This warning is due to the way the browser handles websites and SSL/TLS certificates. As this is not a website on the internet it perfectly safe to accept this warning and proceed to the log in page.)

You have now successfully installed Openmediavault on your Raspberry Pi 4.

how to install Openmediavault 5 on Raspberry Pi 4

To log in the default Username and Password is:

Username: admin
Password: openmediavault

If you would like to know how to configure Openmediavault then please watch our YouTube video at the top of this page

It goes into every great detail about each setting and shows you how to configure drives, file shares, users and how to install Docker & Portainer.

How did you get on with the installation and configuration of OMV?. Let us know in the comments. If you have any questions we like to help so feel free to ask.

25 Comments

  1. sbc

    Noob here, I’ve manager to set everything up that’s on your playlist OMV, Nginx, Cloudflare & Nextcloud I’ve check though all the logs and everything is installed and running correctly. I’m just having an issue with Nginx Proxy Manager in Portainer. If say for instance I restart the server or it loses internet connection Nginx doesn’t restart it just says stopped. And I have to manually start them both nginx_db_1 & nginx_app_1 is there any way around this.

    Reply
    • sbc

      Noob here again, If I added restart: always below image on app & db to the docker-compose.yml file would that solve the issue I’m having.

      Reply
      • Addicted2Tech

        You could recreate the container and add restart: always. You won’t lose any settings.

        Reply
  2. TwistedCore

    Ive followed your Raspberry Pi series up to installing and configuring Open Media Vault, Docker & Portainer then when I look at the Portainer Logs I see I have got an error any ideas?

    portainer_logs
    25 17:36:19 server: Reverse tunnelling enabled
    2021/05/25 17:36:19 server: Fingerprint f6:ca:17:a4:6b:0d:cf:de:7a:51:ed:9e:cf:56:8c:b3
    2021/05/25 17:36:19 server: Listening on 0.0.0.0:8000…
    2021/05/25 17:36:19 Starting Portainer 2.5.0 on :9000
    2021/05/25 17:36:19 [DEBUG] [chisel, monitoring] [check_interval_seconds: 10.000000] [message: starting tunnel management process]
    2021/05/25 17:36:19 [DEBUG] [internal,init] [message: start initialization monitor ]
    2021/05/25 17:36:26 http error: Invalid JWT token (err=Invalid JWT token) (code=401)
    2021/05/25 17:36:26 http error: Unauthorized (err=Unauthorized) (code=401)
    2021/05/25 17:36:26 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)
    2021/05/25 17:36:26 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)
    2021/05/25 17:36:26 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)
    2021/05/25 17:37:33 [ERROR] [http,client] [message: unexpected status code] [status_code: 403]
    2021/05/25 17:57:11 [ERROR] [http,client] [message: unexpected status code] [status_code: 403]
    2021/05/25 17:57:15 [ERROR] [http,client] [message: unexpected status code] [status_code: 403]

    Reply
    • Addicted2Tech

      It is difficult to know what you have done wrong as the scope for error is high. All I can suggest is to go back over the steps and try again. See if that solves it for you. Let us know how you get on 🙂 .

      Reply
  3. AL

    Good Morning,
    Love this series because as a hyper-noob on PI and OMV, this helped immensely.
    I am backing up via OMV over LAN, but was wanting to do incremental backups over wireless so I could place my setup in a convenient location not easily accessible to a Cat-5e cable. I’ve tried a couple of times via omv-firstaid and everything breaks. Might you be thinking about doing a video about setting up wireless on OMV?
    Thank you again for your awesome series!

    Reply
  4. Miki

    Thank you for creating this great Raspberry Pi tutorial series.
    I’m stuck on creating the Test Shared Folder.
    When I try to choose a drive for the shared folder location, OMV doesn’t show me any drives, so I cant create a shared folder.
    This also mean’s I can’t create shared folders for the next tutorial episodes
    I am currently running my Raspberry Pi with just one SSD drive, that has two partitions: boot and rootfs.
    Could that be the reason I can’t create the Test Shared Folder?
    Does OMV require a second SSD/HDD to create shared folders on?
    Meaning, OMV doesn’t allow to create shared folders on the rootfs drive?

    Reply
    • Addicted2Tech

      Yes OMV treats the boot drive as one. To create a shared folder you will need an additional drive.

      Reply
      • Miki

        Thank you for your help 🙂

        Reply
  5. John

    I have an issue that after I get to reboot from installing OMV I get no connection at all, cannot ping the Pi and my router has the listing under DHCP.
    Thought I may have messed something up so went through a second time from the start with no luck at all same issue, cannot connect to the Pi after install of OMV, tried ssh as well as web browser with no luck.

    Reply
    • Patrick

      Same issue here. Were you able to figure it out?

      Reply
  6. Brent

    Is this required to be installed onto an SSD or am I able to keep this on the SD card?

    Everytime I install openmediavault I am not able to access the pi after it reboots. Either via entering the IP address into a web client or via ssh. I have already set a static IP address in my modem and continue to check with my modem that it continues to assign the correct IP address but nothing.

    Reply
    • Addicted2Tech

      Should work fine from an SD card. Please try again following the instructions. Good luck 🙂

      Reply
  7. sergio

    Hey i like how your blog show the info . I´ve got a question that also i tryied to resolve by my own googling but with no luck.
    Is there any option to install OMV with the desktop enviroment. ?
    I went also to OMV web but there only can download the iso file and i tryied to mount it but with no exit as i am a little noob with Linux.
    I also tried to install it throug ssh but it said that : this sustem is running a desktop enviroment and this is not supported

    Could you help me why this or maybe helpme ?

    Reply
  8. Anon

    See the comment from wyextay on this reddit thread. He explains how to fix this.
    TLDR use this command instead

    Reply
  9. L Cirillo

    Spent considerable time troubleshooting the shared folder creation. The issue was with my windows 10 where Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters

    AllowInsecureGuestAuth

    Needed to be set to 1

    After that W10 was able to see the shared folders and allowed me to connect.

    Reply
  10. robert ball

    this is a great series.

    what episode do you cover backups?

    you mention backups in the intro to this episode however I do not recall any guidance shown.

    I have a third hard drive connected to my pi 4 4gb for backups and would like guidance on config settings.

    would this also back up the os and everything that has been created for example docker etc…

    Reply
  11. Gazza

    When I try to install openmediavault. I get following –
    This system is running a desktop environment!
    Please use a Lite version of the image or
    do not choose to install a desktop environment.
    This install is not supported. Exiting…

    How do I fix this?

    Reply
  12. can

    omv bash install script to install omv6. not install omv5. Why ?

    Reply
    • Addicted2Tech

      You will need to use the Raspberry Pi OS Lite (legacy) version based on buster and it will install OMV 5. For more details read above under Prerequisites.

      Reply
  13. paul rogers

    Hi, great vid but unfortunately i got this error at the end of the install…
    Summary for MyRaspi
    ————
    Succeeded: 5 (changed=5)
    Failed: 1
    ————
    Total states run: 6
    Total run time: 22.054 s
    ERROR: The state ‘flashmemory’ does not exist
    Synchronizing state of proftpd.service with SysV service script with /lib/system d/systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install disable proftpd
    Adding pi user to ssh group …
    Removing network-manager and dhcpcd5 …
    E: Conflicting values set for option Signed-By regarding source https://download .docker.com/linux/debian/ bullseye: /usr/share/keyrings/docker-archive-keyring.g pg !=
    E: The list of sources could not be read.
    E: Conflicting values set for option Signed-By regarding source https://download .docker.com/linux/debian/ bullseye: /usr/share/keyrings/docker-archive-keyring.g pg !=
    E: The list of sources could not be read.
    Enable and start systemd-resolved …
    Unblocking wifi with rfkill …
    eth0 already found in database. Skipping…
    veth48f7192 already found in database. Skipping…
    veth986c41e already found in database. Skipping…
    It is recommended to reboot and then setup the network adapter in the openmediav ault web interface.

    i rebooted pi and them ssh to it and tried to run sudo apt-get update && sudo apt-get upgrade command and then got this error….

    E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ bullseye: /usr/share/keyrings/docker-archive-keyring.gpg !=
    E: The list of sources could not be read.

    any advice would be greatly appreciated…. the strange thing is that OMV is working when i access it through web interface on laptop?

    I hope you can shed some light on what i need to do. thanks

    Reply
  14. Uffe

    Hi. Thx for great video. I cannot create shared folder, as I have no File Systems showing 🙁
    I have used your tutorial/video to use a SSD drive with much more space than SDcard, so I hoped to be able to use if for more data.. Why else would we use such a large drive?
    No need to use 2xxGB or 4xxGB SSD drive if we can only use it as boot and not share files.
    I don’t get it.. pls help.
    Should I go back to SDcard as boot and only use SSD for data??

    Reply
  15. Beetle

    Complete beginner at this kind of stuff and honestly the instructions at 21:04 are unclear. I don’t want docker installed to my sdcard so depending on what drives I have connected to my pi I need to configure that to match’em is not particularly clear on what to do here, how to point to the external drive etc. I have an external hdd drive detected, how do I point docker to that (I think that is what I have to do here?”

    Reply

Submit a Comment

Your email address will not be published.

<a href="https://www.addictedtotech.net/author/attadmin/" target="_self">Addicted2Tech</a>

Addicted2Tech

We love technology and enjoy sharing helpful FREE content for others to enjoy. We believe in community. If you like what we do please support us by sharing and liking our tutorials & Subscribing to our YouTube channel. You can also follow us on social media.

Support Our Work!

Donate Via Patreon

Raspberry Pi 4 Model B [8GB] RAM Single Board Computer

Last update on 2022-05-19 / Affiliate links / Images from Amazon Product Advertising API

CanaKit Raspberry Pi 4 Extreme Kit – 128GB Edition (4GB RAM)

Last update on 2022-05-19 / Affiliate links / Images from Amazon Product Advertising API

We Are An Affiliate!

Just so you know, we may collect a share of sales or other compensation from the links on this page. As an Amazon Associate I earn from qualifying purchases.

The Affiliate link recommendations come at no extra cost to you.

We hope you love the products we recommend!

Thank you if you use our links, we really appreciate it!

Related Posts