OpenMediaVaultLab
Raspberry Pi board with microSD card linked by blue Ethernet cables to a two-bay NAS enclosure beside an open hard drive on a dark navy background
homelab

How to Install OpenMediaVault 8 on Raspberry Pi

Install OpenMediaVault 8 on a Raspberry Pi 3B, 4 or 5 with Raspberry Pi OS Lite and the OMV-Extras script. Set up USB storage, SMB, Wi-Fi and backups.

By OpenMediaVaultLab Editorial · ·Updated · 7 min read

To install OpenMediaVault 8 on a Raspberry Pi, flash Raspberry Pi OS Lite 64-bit based on Debian 13 Trixie, connect the Pi by Ethernet, and run the OMV-Extras installer over SSH. After it reboots, open the web interface to set up a separate USB data drive and an SMB share. OMV-Extras Raspberry Pi installation guide

The steps are based on the OpenMediaVault 8 documentation and the OMV-Extras guide and installer README for Debian 13 Trixie. The steps were not run on hardware for this guide.

Who this is for

A Raspberry Pi 4 or 5 can run OpenMediaVault 8 for a home NAS. Have a separate USB HDD or SSD for data.

The OpenMediaVault installation docs point ARM single-board computers to the Debian installation route. Use the Lite image because OpenMediaVault denies installation when it detects a graphical desktop.

Hardware that works

HardwareWhat to know
Raspberry Pi 5Raspberry Pi recommends a 5 V, 5 A USB-C supply and says the board performs best with active cooling. With a 5 V, 3 A supply, the USB ports and fan header share a 600 mA budget.
Raspberry Pi 4 Model BIt has Gigabit Ethernet and two USB 3.0 ports. Raspberry Pi lists 5 V DC via USB-C with a standard minimum of 3 A.
Raspberry Pi 3B or 3B+OMV 8 requires a 64-bit kernel and userland. OMV-Extras compatibility guide

Use a microSD card for the OS and connect the Pi to the internet over wired Ethernet for installation. The OMV-Extras guide specifies at least 8 GB and suggests a 16 GB card. Raspberry Pi also recommends at least 8 GB for Raspberry Pi OS Lite.

Use a powered USB hub if a spinning disk needs more power. Raspberry Pi USB storage documentation

Install OMV 8 on Raspberry Pi OS

Use Raspberry Pi Imager 2.x. Choose your Pi model, open the Raspberry Pi OS category for other images, and select Raspberry Pi OS Lite (64-bit) based on Debian Trixie. OMV-Extras Imager walkthrough

  1. In Customisation, set a hostname, create a user with a password, and set your locale. OMV-Extras Imager walkthrough
  2. Enable SSH in Remote Access. Use public key authentication if you have a key ready. Raspberry Pi Imager documentation, Raspberry Pi SSH documentation
  3. Leave Wi-Fi unconfigured. Write the image to the microSD card, insert it into the Pi, connect Ethernet, and boot. Find the Pi’s IP address on your DHCP server, which usually runs on your router. OMV-Extras first boot instructions

Connect from your computer using the username you created and the Pi’s IP address. Replace both placeholders. Raspberry Pi SSH documentation

ssh YOUR_USER@PI_ADDRESS

The preinstall and install commands download scripts and run them with administrator privileges. In the SSH session, update the OS, run the preinstall command, and reboot. OMV-Extras preinstall instructions

sudo apt-get update
sudo apt-get upgrade -y
sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/preinstall | sudo bash
sudo reboot

Reconnect over SSH and run the installer. It installs OpenMediaVault 8, OMV-Extras, and the writecache plugin on Debian 13 Trixie. OMV-Extras installer README

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

Keep the SSH client open while the script runs. The OMV-Extras guide says installation can take up to 30 minutes. After the automatic reboot, wait 3 to 5 minutes before opening the web interface. Check your DHCP server if the old address stops responding. OMV-Extras install and first login instructions

Skip the install script’s network setup

The installer can change existing network settings and may break Wi-Fi. To skip the main installer’s network setup, use this command sequence in place of the single install command above. OMV-Extras installer README

wget https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install
chmod +x install
sudo ./install -n

First login

From your LAN, open the Pi’s IP address in a browser. Sign in as admin with the documented default password openmediavault. OMV-Extras first login instructions

Open the administrator settings, choose Change Password, and save a new password. OMV 8 New User Guide

Disable root login under Services > SSH. OMV 8 SSH documentation

Add Wi-Fi after the install

Configure the wireless interface in the web UI after installation. OMV-Extras Wi-Fi instructions

  1. Go to Network > Interfaces > + Add > Wi-Fi.
  2. Pick the wireless interface from the Device list.
  3. Enter the network’s SSID and Password.
  4. Under IPv4, set Method to DHCP.
  5. Click Save, then apply the changes using the yellow banner.

Create the data disk and SMB share

Use a separate disk for data, consistent with OpenMediaVault’s default system and data layout. The OMV 8 New User Guide shows the storage and SMB menus.

  1. Plug in the USB drive. In Storage > Disks, check the model and capacity. With a USB adapter, OMV may show the USB-to-SATA controller’s details in place of the disk model. The reported capacity should still match the disk. Identify the disk before wiping it, and wipe it only if you intend to erase its contents. OMV 8 Disks documentation
  2. In Storage > File Systems, choose Mount directly for a drive that already contains data on a supported filesystem. Formatting erases data. For a blank drive, use Create to format it as ext4, then mount it and apply the changes. OMV 8 filesystem documentation, OMV 8 New User Guide, OpenMediaVault file system types
  3. In Users > Users, create a regular user with a password. In Storage > Shared Folders, create a named folder on the mounted data disk. Open the folder’s Permissions and grant the new user Read/Write access for SMB. The underlying filesystem must also allow the user to read and write. OMV 8 Users, OMV 8 Shared Folders, shared folder guide
  4. In Services > SMB/CIFS > Settings, enable SMB, save, and apply the changes in the yellow banner. Under Shares, create an entry for your shared folder. In Public, choose the setting that requires sign-in and disallows guest access. Save and apply. OMV 8 Samba documentation, OMV 8 New User Guide

Substitute the Pi’s IP address and your share name in the corresponding address. When prompted, sign in as the regular user you created for the share.

ClientShare address
WindowsUNC path \\PI_ADDRESS\sharename
macOSFinder > Go > Connect to Server at smb://PI_ADDRESS/sharename
Linux with GNOME FilesConnect to Server at smb://PI_ADDRESS/sharename

If you want a stable IP, reserve the Pi’s address in your router’s DHCP settings. OMV 8 New User Guide

To run apps in containers on the finished NAS, see the Docker Compose setup guide.

Common installation problems

Storage and backups

Keep a second copy of your files on a different disk or NAS. Under Services > Rsync, schedule a Local job between folders on separate disks or a Remote job in Push mode to another server. OMV supports SSH for remote jobs. Prefer an off-site copy of irreplaceable files. OMV 8 Rsync documentation, OMV-Extras backup guide

Save a copy of /etc/openmediavault/config.xml with your backups as a reference for rebuilding after a clean install. OMV 8 FAQ on backing up the configuration

Networking and remote access

Avoid exposing the server through port forwarding if its SMB share permissions are open. OMV 8 New User Guide

For private remote access, Tailscale documents NAS access over WireGuard. If you need to publish an HTTP app without a public IP, see the Cloudflare Tunnel documentation.

Operations, updates, logs, and alerts

Sources

  1. OpenMediaVault 8 Installation
  2. OpenMediaVault 8: Installing on Debian
  3. OMV-Extras installScript README
  4. OMV-Extras Raspberry Pi Installation Guide
  5. Raspberry Pi Getting Started Documentation
  6. Raspberry Pi Remote Access Documentation
  7. Raspberry Pi 5 product page
  8. Raspberry Pi 4 Model B product page
  9. Raspberry Pi hardware documentation: USB mass storage
  10. Raspberry Pi hardware documentation: power supply
  11. OMV-Extras OpenMediaVault 8 New User Guide
  12. OpenMediaVault 8 SSH Documentation
  13. OpenMediaVault 8 Disks Documentation
  14. OpenMediaVault 8 Filesystems Documentation
  15. OpenMediaVault 8 Users Documentation
  16. OpenMediaVault 8 Shared Folders Documentation
  17. OpenMediaVault 8 Samba Documentation
  18. Microsoft Windows File Path Formats
  19. Samba Documentation for macOS Clients
  20. GNOME Files Network Share Documentation
  21. OpenMediaVault 8 FAQ
  22. OpenMediaVault 8 Rsync Documentation
  23. OMV-Extras OpenMediaVault 8 Utilities, Maintenance and Backup
  24. Tailscale NAS Documentation
  25. Cloudflare Tunnel documentation
  26. OpenMediaVault 8 Software and Update Management
  27. OpenMediaVault 8 Notifications Documentation
  28. OpenMediaVault 8 Features and Diagnostics

Related