Install a NAS with OpenMediaVault on Raspberry Pi 5 and dual NVMe

Turning a Raspberry Pi 5 into a home storage server is one of the most useful projects you can build with a mini computer. With the arrival of the PCIe connector and NVMe solutions, the Pi 5 finally reaches sufficient throughput to run a real NAS (Network Attached Storage) capable of centralising your documents, photos and backups. In this step-by-step guide, we install OpenMediaVault, the leading open source distribution for network storage, on a Raspberry Pi 5 fitted with two NVMe SSDs.

Why a NAS on Raspberry Pi 5?

Off-the-shelf NAS units are effective but expensive and not very modular. By contrast, a Pi 5 uses only a few watts, stays silent and gives you full control over your data. With the PCIe 2.0 port (or even 3.0 by forcing the configuration), NVMe throughput far exceeds that of a microSD card or a USB drive. This is a major change compared with previous generations, as we explained in our article How to boot a Raspberry Pi from an SSD.

For this project, two approaches are possible: assemble the components yourself, or start from a ready-to-use base like our Raspberry Pi 5 NAS Kit - Dual NVMe, which already includes the board, the case and the M.2 slots.

The hardware you need

Step 1: prepare the system

Start by flashing Raspberry Pi OS Lite (64-bit) to the microSD card using Raspberry Pi Imager. The Lite version, with no graphical interface, is ideal for a server: it leaves all memory available for services. Remember to enable SSH in the Imager's advanced options, which will let you control the Pi remotely without a screen. If you are new to this step, our tutorial How to flash a Raspberry Pi covers the whole procedure in detail.

Once the Pi has booted and is accessible over SSH, update the system:

sudo apt update && sudo apt full-upgrade -y
sudo reboot

Step 2: install OpenMediaVault

OpenMediaVault provides an official installation script that automates the whole configuration. The project is fully open source and its code is available on the official GitHub repository. Run the following command:

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

Installation takes about ten minutes and reboots the Pi automatically. Afterwards, OpenMediaVault is accessible from a browser by entering the Pi's IP address. The default credentials are admin / openmediavault : change them immediately in the settings.

Step 3: configure the NVMe drives

In the interface, go to “Storage > Disks”: your two NVMe SSDs should appear. Then format them in “File Systems” (ext4 is a safe, high-performance choice). If you have two identical disks, you can create a RAID 1 array via the dedicated menu for redundancy: if one disk fails, your data remains intact. For pure performance, RAID 0 doubles capacity and throughput, but without protection.

Step 4: create network shares

Create a “Shared Folder” on your NVMe file system, then enable the SMB/CIFS service to make it accessible from Windows, macOS and Linux. For Apple users, the AFP protocol is no longer needed: SMB is enough. Define users and precise permissions so that not everyone can access everything. You can also enable NFS for Linux machines, which offers better performance on a local network.

Step 5: go further with Docker

The real strength of OpenMediaVault lies in its extension omv-extras, which adds support for Docker and Portainer. You can then deploy containers directly on your NAS: media server, download manager or backup solution. To understand the value of containerization on an SBC, see our article Why use Docker on Raspberry Pi. Many users pair it with a media server such as Jellyfin or Plex.

Performance and reliability tips

A NAS runs continuously, so cooling is not optional. Keep an eye on the temperature of the Pi 5, which can heat up under sustained load, and choose a ventilated case. Also think about your backup strategy: a NAS is not a backup in itself. Set up regular copies of your critical data to an external drive or a remote service. Finally, a stable, certified power supply is essential to avoid data corruption on the SSDs.

Conclusion

With OpenMediaVault and a Raspberry Pi 5 fitted with NVMe, you get a fast, energy-efficient NAS that is fully under your control, for a fraction of the price of a proprietary solution. It is an excellent gateway into self-hosting, which you can expand over time with Docker containers. If you would rather save time, our Raspberry Pi 5 NAS kit includes everything you need to get started in a few minutes.