A DIY NAS is a home server you build yourself, drive by drive, instead of buying a finished box. This DIY NAS build guide covers picking parts for a 4-bay home server: the case, the CPU, the memory, the drives, and the power supply. Get those five right and the box runs quietly for years. Get one wrong and you will hear about it, or pay for it, every month.
Four bays is the sweet spot for a home build. Two bays fill up too fast, and six or eight bays push you into bigger cases, louder fans, and a higher bill. A 4-bay build holds a mirror pair plus room to grow, or three drives with one spare slot. Prices below are rough ranges, so check official pricing before you order. The diy nas parts in this guide are picked for a quiet, low-power box, and the order below follows the order you should buy them in if you want to build a home nas that lasts.
Start with the case: 4 bays, hot-swap, airflow
The case decides how loud the server is and how easy it is to live with. Look for four hot-swap bays, so you can pull a failed drive without opening the box, and at least one 120 mm fan mount for intake. Small cases with 40 mm fans scream; a case that fits a 120 mm fan stays quiet. Check the depth too: some compact NAS cases only take short power supplies or low-profile coolers, and finding out after you bought the parts is an expensive lesson.
Good airflow matters more than looks. Drives last longer when they stay cool, and a case with a clear path from intake to exhaust keeps them there. If the case has a fan filter, clean it every few months. A dusty filter is a slow way to cook your drives.
CPU: low power beats fast cores
A NAS spends most of its life idle, so idle power matters more than peak speed. An Intel N100, N305, or a recent low-power Ryzen chip handles file serving, a media server, and a few containers without effort. Older desktop CPUs work, but check idle draw: a chip that idles at 40 watts costs real money over a year of 24/7 running. If you plan to transcode video, pick a chip with a hardware encoder, such as Intel Quick Sync, so the CPU does not have to do that work in software.
Four cores are enough for a 4-bay build. Spend the money you save on RAM or drives instead. The CPU is rarely the bottleneck in a home NAS; the drives and the network are.
RAM: ECC or not
16 GB is the floor for a DIY NAS, and 32 GB is comfortable if you run ZFS, which uses RAM as a read cache. ECC memory catches memory errors before they can corrupt data, and it is the recommended choice for a NAS. But it needs a board and CPU that support it, and the price premium is real. For a home build with good backups, non-ECC RAM is a fair trade. For a build that holds the only copy of family photos, ECC is worth the stretch. Either way, buy RAM in a matched pair and leave a slot free for the day you add more.
Drives: what to buy and what to avoid
Buy NAS-rated hard drives in matched sizes: two 4 TB drives to start, with room for two more. NAS-rated drives are built for always-on use and vibration from neighbouring drives. Before you buy, check the spec sheet for SMR recording and avoid it for a NAS that rewrites data often; SMR drives slow down badly under rewrite loads, and the spec sheet is the only place the difference shows.
Use an SSD for the operating system, separate from the data drives. A small 250 GB SSD is enough. Mixing the OS and the data on the same drive means a reinstall risks your files, and it also means the OS competes with file transfers for the same disk. Keep them apart.
Power supply and UPS
A NAS runs all day, so a good power supply pays for itself. Pick an efficient unit, 80 Plus Gold or better, sized at about twice your expected load: a 4-bay build with low-power parts draws well under 100 watts most of the time, so a 300 to 450 watt unit is plenty. A cheap power supply is the one part that can kill every other part in the box, so this is not the place to save money.
Add a small UPS once your data matters. It gives the NAS time to shut down cleanly during a power cut instead of cutting power mid-write. Our guide to the best UPS for a homelab in 2026 covers what to look for, including the runtime you actually need for a clean shutdown.
The OS decision
The parts above work with any NAS operating system, but the OS decides how the drives are used. TrueNAS Scale is the common pick for a DIY build: free, built on ZFS, and happy on standard PC hardware. Unraid is the paid alternative with easier drive mixing. Our comparison of Unraid vs TrueNAS Scale covers that choice, and the Synology vs TrueNAS vs DIY NAS guide helps you check whether building is even the right call versus buying a prebuilt box like the ones in our TrueNAS Mini vs Synology Plus comparison.
DIY NAS build guide: a sample parts list for a 4-bay home server
| Part | Pick | Notes |
|---|---|---|
| Case | 4-bay hot-swap, 120 mm fan | Check PSU length and cooler clearance |
| CPU | Intel N100 or similar low-power chip | Hardware transcoding if you stream video |
| RAM | 16 GB, ECC if the board supports it | Leave a slot free |
| Boot drive | 250 GB SSD | Separate from data drives |
| Data drives | 2x 4 TB NAS-rated HDD | Matched sizes, avoid SMR |
| Power supply | 300-450 W, 80 Plus Gold | Do not buy the cheapest unit |
That list is a starting point, not a shopping list: check that the case, board, and cooler fit together before you order, and check prices the week you buy. A DIY NAS build guide can only narrow the choices; the final check is your own parts list against the case manual. Build it once, test it with a backup before you trust it with real data, and add drives when the first pair fills up, not before.