
Disclosure: As an Amazon Associate I earn from qualifying purchases.
A home NAS is a hard drive the whole house can reach — photos, homework, and backups on one quiet box in a corner instead of scattered across laptops and cloud subscriptions. A Raspberry Pi 5 finally makes that build honest: its PCIe slot takes a real NVMe drive, so the storage is fast, and the little computer sips power while it serves files all day.
Get the full kit → jumps to the parts list. If you are starting from zero, read the starter-kit guide first. Good companions: the Pi-hole ad blocker (Project 02), the other always-on server in this series, and the AI bird camera (Project 11), the Pi 5's other big job.
Why a Pi 5, and Why NVMe Instead of a Card
Older Pi NAS builds all shared the same weakness: the files lived on a microSD card or a USB stick. Both wear out under a file server's constant small writes, and both crawl when two people open files at once. A card that dies takes the family photos with it — exactly the failure a NAS is supposed to prevent.
The Pi 5 changes the deal. Its PCIe connector takes a small adapter board, the M.2 HAT+, which holds a standard NVMe SSD — the same kind of drive in a modern laptop. The drive talks to the Pi over PCIe instead of USB, so transfers run several times faster than a card, and an SSD is built for exactly this work: thousands of small reads and writes, all day, for years. The whole box draws a few watts, so it can stay on around the clock cheaply. Be honest about what this is: a one-drive Pi NAS is a fast, private file home — not a replacement for a big multi-bay NAS, and not a backup by itself. A NAS holds your files; a backup is a second copy somewhere else.
What You’ll Need
- A Raspberry Pi 5, 8 GB — ~$80 est. The 8 GB model: file serving plus the odd extra service later, with memory to spare.
- An official M.2 HAT+ — ~$12 est. The adapter that connects an NVMe drive to the Pi 5's PCIe slot.
- An NVMe SSD, 1 TB, M.2 2280 — ~$55 est. The actual storage — one terabyte holds a family photo library with room to grow. Buy a known brand; this drive holds everything.
- A Pi 5 case with room for the HAT — ~$20 est. It must fit the Pi plus the HAT and drive stacked on top, with airflow — check the listing says it fits the M.2 HAT+.
- An official 27 W USB-C power supply — ~$12 est. The Pi 5 plus an NVMe drive draws more than older boards. A weak charger causes brownouts that corrupt writes.
- A microSD card, 32 GB — ~$10 est. Only for the first boot and setup — once the system runs from NVMe, the card goes in a drawer as a spare.
Total: ~$190 in parts, est. (November 2026). The software is free. You will also need an ethernet cable — wire the NAS to the router, never run a file server over Wi-Fi — and a keyboard and screen for the first hour.
Step 1 — Assemble the Hardware (20 Minutes)
Start with the Pi on a clean table, powered off. Fit the M.2 HAT+ onto the board's standoffs and connect its short ribbon cable to the Pi's PCIe port — the cable only fits one way, and it should sit flat with no twist. Slide the NVMe drive into the HAT's slot at a shallow angle, press it down, and fix it with the small screw. Seat the stack in the case with the airflow path clear and plug in the ethernet cable while the case is open. Leave it powered off — the first boot uses the microSD card to install the system onto the NVMe drive.
Step 2 — Install the System on the NVMe Drive (30 Minutes)
Flash Raspberry Pi OS Lite onto the microSD card with the Raspberry Pi Imager, boot the Pi, and confirm the drive is visible as an NVMe device. Then copy the system onto the drive and set the Pi to boot from NVMe: clone the card, change the boot order to try NVMe first, power off, remove the card, and boot again. If it comes up clean with no card in the slot, the NAS runs entirely from solid-state storage. Check the drive's health readout — a fresh drive should report no errors and a cool temperature.
Step 3 — Share One Folder with the House (30 Minutes)
A NAS is only useful if the other computers can see it. The standard way is Samba, the file-sharing protocol Windows and macOS already speak: install it, create one shared folder on the NVMe drive, and point Samba at it. Every laptop in the house can then open it like any network drive. Keep the shares simple: one folder for the family files everyone shares, and one folder per person for private space. Give the family share read-write for the home network, and the private folders to their owners only. Test from a second computer first: copy a photo in, open it from a laptop, and confirm it is really there.
Step 4 — Users, Permissions, and the Backup Habit (30 Minutes)
Now the part most first NAS builds skip: decide who can do what. Create a user account on the Pi for each person, give each one a password they actually know, and match the Samba permissions to the folders from Step 3. The admin account gets a strong password written down on paper, not reused from anywhere else. Then set the backup habit, because a NAS is not a backup: once a week, copy the family share to a USB drive in a different room. And test a restore once: delete a file from a laptop and pull it back from the NAS. A backup you have never restored is a hope, not a plan.
Step 5 — Prove It, Then Leave It Alone (10 Minutes, Plus a Week)
Before calling it done, prove the numbers. Copy a gigabyte of video onto the NAS and time it, then copy it back. Over a wired connection you should see far faster transfers than any SD-card build could manage. Then pull the power plug, wait ten seconds, and plug it back in: the NAS should come back by itself, shares and all. Then live with it for a week. A cool, quiet box that nobody thinks about is a NAS doing its job.
What NOT to Buy
- A cheap no-name NVMe drive. The drive holds every file in the house. Unknown brands with no warranty are the wrong place to save fifteen dollars.
- A USB flash drive or SD card as the data drive. Both wear out under constant writes and crawl when two people open files at once. The whole point of this build is the NVMe drive.
- A Pi 4 for this job. No PCIe slot, so the NVMe drive would hang off USB instead — slower, and the adapter costs as much as the HAT anyway.
- A spinning 2.5-inch hard drive in a USB caddy. Slower, noisier, thirstier, and more fragile than the SSD — the old laptop drive is a backup drive, not a NAS drive.
- RAID on a single-drive Pi. Mirroring needs two drives and a controller that can keep up. One good drive plus a real backup beats a fake RAID.
- A "NAS" enclosure that needs a cloud account. If the box only works through a company's servers, it is a subscription with a drive attached. This build is local: your files, your network, no account.
The Total, Honestly
- Pi 5 (8 GB): ~$80 est. · M.2 HAT+: ~$12 est. · NVMe SSD 1 TB: ~$55 est. · Case: ~$20 est. · Power supply: ~$12 est. · microSD card: ~$10 est.
- Total: ~$190 in parts, est. (November 2026). A 2 TB drive adds roughly $45. There is no subscription, and the box costs a few dollars a year in electricity.
Build It This Weekend
Stack the HAT and the drive, boot from NVMe, share one folder with the house, set real users and real passwords, and back the whole thing up somewhere else. Two hours, about a hundred and ninety dollars, and the family files have a home that is not a cloud bill.
Where the series goes next: tomorrow's build listens instead of storing — a BirdNET station that names every bird singing in your yard. And the full project library holds everything built so far.