Build a Raspberry Pi 5 NAS in 30 Minutes: Step‑by‑Step Guide for Beginners

You’ve probably heard the buzz about “NAS” and thought it was something only big companies use. The truth is, a tiny Raspberry Pi 5 can become a reliable home storage box in half an hour. If you’re tired of juggling USB sticks or paying for cloud space, this guide will show you how to get a working NAS up and running, no PhD required.

Why a Pi‑Based NAS Makes Sense Right Now

Home data is exploding – photos, movies, backups, you name it. A dedicated NAS keeps everything in one place, safe from accidental deletion, and accessible from any device on your network. The Pi 5 gives you enough power to handle multiple streams, and it costs a fraction of a commercial unit. Plus, building it yourself means you control the software, the security, and the bragging rights.

What You’ll Need (All Available for Under $100)

ItemWhy It’s Needed
Raspberry Pi 5 (4 GB or 8 GB)The brain of the NAS
Official power supply (5 V 3 A)Stable power, no brown‑outs
Micro‑SD card (32 GB, Class 10)OS and boot files
USB‑C to SATA adapter or a small USB‑3.0 enclosureConnects your hard drive
2 TB (or any size) 3.5″ HDD or SSDYour storage
Ethernet cable (Cat6)Fast, reliable network link
Optional: heatsink + fanKeeps the Pi cool under load

All of these can be found on the same online store, so you won’t waste time hunting for parts.

Step 1 – Flash the OS onto the Micro‑SD Card

  1. Download Ubuntu Server 22.04 LTS for Raspberry Pi from the official site. It’s lightweight and works well with NAS software.
  2. Install Balena Etcher on your PC – it’s free and simple.
  3. Insert the micro‑SD card, select the Ubuntu image, and click “Flash”.
  4. When it finishes, safely eject the card.

Pro tip: I always label the card with a marker. It saves me from swapping the wrong one later.

Step 2 – First Boot and Basic Setup

  1. Pop the micro‑SD card into the Pi, connect the power supply, and plug an Ethernet cable into your router.
  2. Wait about a minute for the Pi to boot.
  3. Find its IP address by checking your router’s device list (look for “raspberrypi”).
  4. Open a terminal on your PC and SSH into the Pi:
ssh ubuntu@<IP_ADDRESS>

The default password is “ubuntu”. The system will ask you to change it on first login – pick something strong.

Step 3 – Update the System

Run these commands to make sure everything is current:

sudo apt update
sudo apt upgrade -y

This usually takes a few minutes. While it’s running, I like to sip a coffee and think about the movies I’ll stream from my new NAS.

Step 4 – Install OpenMediaVault (OMV)

OpenMediaVault is a friendly web interface that turns your Pi into a full‑featured NAS.

  1. Add the OMV repository:
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
  1. The script will download and install OMV and its dependencies. It may ask you to confirm a few times – just hit Enter.

When it’s done, the Pi will reboot automatically.

Step 5 – Connect Your Hard Drive

  1. Plug the HDD or SSD into the USB‑C to SATA adapter, then into one of the Pi’s USB‑3.0 ports.
  2. Log back into OMV’s web UI. Open a browser and go to http://<IP_ADDRESS>.
  3. The default login is admin / openmediavault. Change the password right away.

Step 6 – Configure Storage in OMV

6.1 – Identify the Disk

  • Navigate to Storage → Disks.
  • You should see your new drive listed (e.g., /dev/sda). Click it, then Wipe to clear any old partitions. Choose Quick and confirm.

6.2 – Create a File System

  • Go to Storage → File Systems.
  • Click Create, select the wiped disk, and choose EXT4 as the file system. EXT4 works well with Linux and is reliable for home use.
  • After creation, click Mount, then set the mount point to something like /srv/dev-disk-by-label-MyNAS.

6.3 – Set Up Shared Folders

  • Head to Access Rights Management → Shared Folders.
  • Click Add, give the folder a name (e.g., Media), and point it to the mount point you just created.
  • Set permissions to Read/Write for the user you’ll create next.

Step 7 – Create a User for Access

  1. In Access Rights Management → Users, click Add.
  2. Give the user a name (e.g., homeuser) and a strong password.
  3. Assign the user to the users group and grant access to the shared folder you made.

Step 8 – Enable Services (SMB/CIFS for Windows, NFS for Linux)

  • Go to Services → SMB/CIFS. Turn the service ON, then click Apply.
  • If you have Linux machines, enable NFS the same way.

Now your NAS is ready to be seen on any computer in the house. On Windows, open File Explorer and type \\<IP_ADDRESS>\Media. On a Mac, use Finder → Go → Connect to Server and type smb://<IP_ADDRESS>/Media.

Step 9 – Tweak Performance (Optional but Worth It)

  • Cooling: If you plan to stream 4K video or run backups all day, attach the fan and heatsink. The Pi runs cooler, and the drive stays happy.
  • Power: Use a powered USB hub if you add more than one drive. The Pi’s own power supply can only handle so much.
  • Backup: Even a NAS can fail. Set up a second external drive and use OMV’s built‑in rsync plugin to mirror critical data.

Step 10 – Celebrate!

You’ve just built a functional NAS in 30 minutes. It’s a modest setup, but it will hold photos, movies, and backups for years. The best part? You built it yourself, so you know exactly where every byte lives.

If you ever need more space, just plug another drive into a USB hub and add it in OMV. The Pi 5’s USB‑3.0 ports make adding storage painless, and the web UI keeps everything tidy.


Reactions