How to Build a DIY NAS Server: Parts, TrueNAS or Unraid, and What Drives Now Cost

A DIY NAS built in November 2026 buys you drive bays, PCIe slots, CPU headroom and freedom from a vendor’s software, and it does not buy savings. WunderTech’s build guide says it bluntly: “A DIY NAS is not really going to save you money.” Drive prices have sharpened that. ComputingForgeeks reports that a 4TB CMR NAS drive moved from $100-$120 to about $280 where new US stock exists, and a 20TB drive from $280-$400 to about $880 for the cheapest current listing, comparing June with September and October 2026.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Where building beats buying: bay count, not percentage saved

What WunderTech credits to building your own is more drive bays, more PCIe slots, CPU headroom for things like VMs, and no lock-in. The published price percentages disagree with each other. HomeServerCalc compared builds at the same 24 TB usable and found that DIY saves roughly a tenth, because identical drives account for roughly 60 to 67 percent of each total. NASCompares lists DIY as “30-50% cheaper than equivalent pre-built solutions”.

Both cannot hold when the drives are the same. If drives are 60 to 67 percent of a prebuilt’s total, everything else is 33 to 40 percent of it. A 30 percent saving would need the DIY non-drive parts to cost 75 to 91 percent less (30 divided by 40, and 30 divided by 33), and a 50 percent saving is larger than the entire non-drive share. The NASCompares range can only hold if the comparison leaves drives out or measures against a premium chassis, while HomeServerCalc’s tenth is consistent with the arithmetic. At the September and October 2026 drive prices the drive share is higher still (74 to 90 percent in the layouts priced below), so the percentage saved shrinks even where the dollar gap holds.

Where the break-even sits depends on who you ask. RAIDSize says DIY pulls clearly ahead at six bays and beyond, because a large turnkey chassis carries a steep premium while a six-to-eight-bay build reuses the same board and case whether you fill three bays or eight; at two to four bays it finds a prebuilt usually wins. HomeServerCalc draws the line higher: buy the appliance for the software and the hour-long setup, and “build your own for ECC memory, more than eight bays, or ZFS on hardware you chose.” It also puts a time on the choice: about 1 hour to a working share for a turnkey NAS, a weekend for a DIY tower, and ten hours a year and up of administration on the tower.

OptionListed priceListed hardware
Aoostar WTR PRO barebones$399.95 regular, $379 saleFour SATA bays, two M.2 NVMe slots, dual 2.5G ports; RAM and storage not included
QNAP TS-432XeU-4G-US$679.00One 10GbE SFP+ port, two 2.5GbE ports, Docker container support, three-year warranty
Ugreen NASync DXP6800 Ultra$1,449.99Six bays
Ugreen NASync DXP8800 Ultra$1,779.99Eight bays
Minisforum N5 MAX AI NAS$2,399 sale, $2,999 regular (64GB model)128GB option: $3,679 sale, $4,599 regular

Our assessment: at four bays or fewer, with no need for ECC memory, VMs or extra PCIe cards, the units in the table are the shorter route and, by RAIDSize’s finding, usually the cheaper one. The Minisforum N5 MAX AI NAS is the most expensive row, at $2,399 on sale for the 64GB model. The Aoostar barebones is the cheapest row at $399.95 regular, although its listing showed Sold out when read, and it leaves RAM, boot drive, storage and operating system to you, which is a sensible size of project for a four-bay build. From six bays up, or when you want ECC, an HBA or VMs, building is what the money buys.

TrueNAS or Unraid: choose the software first, because it decides the parts

WunderTech’s build order starts here because ZFS on TrueNAS uses RAM as cache while Unraid accepts mixed drive sizes, so “the OS decides the parts”. TrueNAS SCALE was renamed TrueNAS Community Edition in 25.04, and the TrueNAS version notes list 25.10.8 as released on November 5, 2026, with a Linux kernel update that the notes say addresses more than 1,600 upstream CVEs. The TrueNAS hardware guide for 25.10 lists the minimum as a 2-core 64-bit processor, 8 GB of memory, a 16 GB SSD boot device and two identically sized devices for a single storage pool. The same page says a single-disk or striped pool is not recommended rather than impossible, and that the SSD is advice, not a requirement: a spinner or USB stick as boot device is discouraged.

The TrueNAS 27 version notes describe pre-release builds as early-stage software intended for testing and feedback, not production use, so a new build should start on the 25.10 branch above.

Unraid is paid software. Per WunderTech, the Starter license (six storage devices) and the Unleashed license (unlimited) include a year of updates, and Lifetime includes updates for life, so on the first two you pay periodically to keep receiving them. Unraid’s licensing FAQ, read on November 13, 2026, puts that annual extension fee at $36 for Starter and Unleashed, and lists one-time upgrades of $69 from Starter to Unleashed, $149 from Unleashed to Lifetime and $209 from Starter to Lifetime. Licenses are per server, all sales are final, and a free 30-day trial comes first. The FAQ does not list the purchase price of each license and points to the Unraid website for it, so this guide does not quote one. Unraid’s own docs on creating your bootable media say that as of November 12, 2026, versions 7.3 and later let you choose the boot mode at onboarding: “Flash boot keeps Unraid on the USB drive. Internal boot moves Unraid to one supported internal boot device or two mirrored internal boot devices.” A USB drive is still needed to start a new server, but Unraid does not always run from the stick.

ConstraintTrueNAS Community EditionUnraid
Drive sizesTwo identically sized devices for a pool (the hardware guide’s listed minimum; it discourages, rather than forbids, a single disk or striped pool)Mixed sizes allowed
RedundancyRAIDZ1 (single parity) or RAIDZ2 (double parity, any two drives can fail)Single or dual parity; the parity disk must be at least as large as the largest data disk
Boot deviceSeparate SSD, 16 GB minimum (a spinner or USB stick is discouraged)USB flash, or one internal device, or two mirrored internal devices (7.3 and later); USB still needed to start a new server

Unraid’s storage-management docs put the parity rule this way: “If you use dual parity, both drives should be at least the size of your largest data disk, but they can be different sizes from each other.” In practice, if you expect to add 20TB data disks later, buy the parity disk at 20TB first. The choice then follows your drives: a fresh purchase at November prices suits ZFS if you can buy a matched set up front, and a pile of existing drives of different sizes suits Unraid.

Drives are most of the bill: what the price jump does to 4TB and 20TB layouts

Dividing ComputingForgeeks’ prices by capacity, our own arithmetic rather than a test, gives the cost per raw terabyte. The 4TB drive went from $25-$30 per TB (the $100-$120 drive over four terabytes) to $70 per TB (about $280), a rise of 2.3x to 2.8x. The 20TB drive went from $14-$20 per TB to $44, a rise of 2.2x to 3.1x. The June midpoints of those ranges are $27.50 and $17.00; the later figures are new US stock and the cheapest current listing, not averages of listings, and both are ComputingForgeeks’ readings that this guide did not confirm against a retailer listing.

Pricing four layouts from those figures (a calculation from the sourced prices and the Aoostar listing, before formatting overhead) shows where the budget lands. The table prices only the two sizes with sourced figures, 4TB and 20TB, and does not interpolate between them.

LayoutDrive costUsableDrive cost per usable TBDrives plus $399.95 barebonesDrive share
Two 20TB drives, mirror2 x $880 = $1,76020TB$88$2,159.9581%
Four 4TB drives, RAIDZ14 x $280 = $1,12012TBabout $93$1,519.9574%
Four 20TB drives, RAIDZ14 x $880 = $3,52060TBabout $59$3,919.9590%
Four 20TB drives, RAIDZ24 x $880 = $3,52040TB$88$3,919.9590%

Moving four 20TB drives from RAIDZ1 to RAIDZ2 costs 20TB of usable space, the capacity of one $880 drive, and takes the drive cost from about $59 to $88 per usable TB. RAIDSize describes six 12TB drives in RAIDZ2 as roughly 48TB usable with a “safety margin that matters as capacities climb”, and homelabstarter notes that four 16TB drives in RAIDZ1 give 48TB usable, where matching that with 8TB drives would take eight drives in RAIDZ2. Those layouts use sizes without a sourced price here, so they are described rather than priced.

Buy NAS-rated CMR drives. The TrueNAS hardware guide says the team does not recommend SMR drives with TrueNAS or ZFS, citing slower write and overwrite performance and the potential for instability or even data loss during resilver operations, and Terabytewise lists NAS-rated CMR drives (never SMR) first among the needs of a TrueNAS build.

Flash is for a fast tier or a small all-SSD pool, not bulk storage. Sandisk’s press release of August 20, 2026 gives starting US MSRPs of $179.99 for the NAS 600 SATA SSD (500GB) and $309.99 for the NAS 800 NVMe SSD (960GB), available from September 2026 at Sandisk.com and retail partners. That is about $360 and $323 per TB at the starting MSRPs, against the $44 per TB of the 20TB hard drive above. Used enterprise drives need the burn-in described in the setup section before they hold data.

Board, memory and cache: a 16 GB ceiling, an $850 ECC module and the SLOG you can skip

WunderTech describes the N100 and N150 chips as four cores at 6 W, with a single memory channel, a 16 GB memory maximum, nine PCIe Gen 3 lanes shared by everything on the board, and no ECC support. That is fine for file serving and a ceiling for VMs or a big ZFS cache. A desktop board lifts those limits, but its chipset, Wi-Fi, audio and USB controllers draw power before a drive spins, and so does an HBA, WunderTech notes. Many used LSI HBAs ship in IR mode, which homelabstarter says adds a hardware RAID layer you do not want; flash the card to IT mode so the drives pass straight to ZFS.

Memory guidance comes in two kinds. The TrueNAS docs give 8 GB as the minimum to run; Terabytewise gives “16GB baseline, about 1GB per TB, ECC preferred”. A 12TB layout comes to about 12 GB at the per-TB figure, under the 16GB baseline. A 60TB layout comes to about 60 GB by the same rule, far beyond the 16 GB cap of N100 and N150 boards, so large pools belong on desktop-class platforms.

RAIDSize, citing OpenZFS, says ECC is recommended, not required. ComputingForgeeks, pricing a tower build in October 2026, found a 32GB DDR5 ECC UDIMM at about $850, so its 64GB costs more than the board, CPU, case and power supply put together; two such modules come to $1,700. Our assessment: at that price ECC is a deliberate budget line, and if the choice is between it and a second copy of your data, buy the second copy first.

Skip the SLOG. On its own test pool, ComputingForgeeks measured about 334,000 IOPS with sync=standard and about 2,041 with sync=always, a penalty of roughly 160x once every write had to reach stable storage before it was acknowledged. A log device only earns its slot when writes are synchronous: NFS datastores for virtual machines, iSCSI, or a database on the pool. Typical home SMB file copies are not in that group.

Boot SSD, power supply and UPS: size the PSU to the load, not the label

The operating system lives on a small drive that is separate from the pool. RAIDSize says a cheap 128-256 GB SATA or NVMe SSD is plenty, and the TrueNAS minimum is a 16 GB SSD. On Unraid 7.3 and later the boot SSD is optional, because internal boot is one of the two boot modes.

An oversized power supply wastes electricity all year. HomeServerCalc’s example is a 450 W or 550 W unit running a 55 W load, below the load where its efficiency curve peaks, and so throws away several watts continuously. By our division, 55 W is 12 percent of 450 W (55 divided by 450) and 10 percent of 550 W (55 divided by 550). Size the supply to the measured idle load plus drive spin-up, and read the spin-up current from the datasheet of the drive you chose rather than from a GPU you will never install.

WunderTech’s advice on power loss is that “A UPS is cheap insurance, and one with a USB port lets the OS shut the NAS down cleanly”. Buy one with the USB port; the closing test below depends on it. For the case, pick by bay count and by whether a fan pushes air across the drive cage, or take a finished enclosure and skip the choice.

From burn-in to first share: what to do in the web UI and what to leave alone

Burn in used drives before they hold data

homelabstarter says a full badblocks test takes 24-48 hours on a large drive, and a drive that finishes with zero bad blocks is good to use. The script below runs that test on one drive that holds nothing you want. It refuses a device that is mounted or in use as swap (a mount-point check only, so confirm yourself that the drive belongs to no pool or array), asks you to type the full device path, runs a long SMART self-test before and after, and aborts a running self-test if you interrupt it. Pass the by-id path so you cannot mix up drives, run it in tmux or screen, and read the SMART table it prints at the end for reallocated and pending sectors.

#!/bin/sh
# Destructive burn-in for a drive that holds no data yet.
# Usage: sudo ./burnin.sh /dev/disk/by-id/ata-YOUR-DRIVE
set -eu

DEV=${1:?usage: burnin.sh /dev/disk/by-id/DRIVE}
REAL=$(readlink -f "$DEV")
LOG=/var/tmp/badblocks-$(basename "$REAL").txt
SELFTEST=no

cleanup() {
  if [ "$SELFTEST" = yes ]; then
    smartctl -X "$REAL" >/dev/null || true
  fi
}
trap cleanup EXIT
trap 'exit 1' INT TERM

[ -b "$REAL" ] || { echo "$REAL is not a block device" >&2; exit 1; }
[ "$(lsblk -dnro TYPE "$REAL")" = disk ] || { echo "pass the whole disk" >&2; exit 1; }

if lsblk -nro MOUNTPOINT "$REAL" | grep -q .; then
  echo "refusing: $REAL or one of its partitions is mounted or in use as swap" >&2
  exit 1
fi

lsblk -o NAME,SIZE,MODEL,SERIAL "$REAL"
printf 'This ERASES %s. Type the full device path to continue: ' "$REAL"
read -r ANSWER
[ "$ANSWER" = "$REAL" ] || { echo "no match, nothing changed" >&2; exit 1; }

# badblocks uses 32-bit block counts: above 16 TiB it needs larger blocks
SIZE=$(blockdev --getsize64 "$REAL")
BS=4096
if [ "$SIZE" -gt 17592186044416 ]; then BS=8192; fi

run_selftest() {
  SELFTEST=yes
  smartctl -t long "$REAL" >/dev/null
  sleep 60
  while smartctl -c "$REAL" | grep -q "Self-test routine in progress"; do
    sleep 60
  done
  SELFTEST=no
  smartctl -H "$REAL"
}

run_selftest
badblocks -wsv -b "$BS" -o "$LOG" "$REAL"
run_selftest
smartctl -A "$REAL"

if [ -s "$LOG" ]; then
  echo "FAIL: bad blocks listed in $LOG" >&2
  exit 1
fi
echo "PASS: zero bad blocks. Check the SMART table above for reallocated or pending sectors."

Install, create the pool and share it

Install TrueNAS onto the boot SSD, not a storage drive, and check the target by size and serial before you confirm. Then open the web interface from another machine and create the pool there, with identically sized devices in the layout you chose above. On Unraid, use a USB drive to start the new server and choose flash or internal boot. Then, on the Main tab, assign one or two parity drives and the rest as data disks, and click Start Array. Per Unraid’s configure your array docs, Unraid formats the new data disks (XFS by default) and “a parity sync will run in the background to protect the array even before formatting is complete”. The parity disk must be at least as large as your largest data disk.

Create the SMB share in the web interface and give each person or device its own account, so one can be revoked without touching the others. Export NFS only to the hosts that need it, scope it to your LAN subnet and leave root squashing on. Pool creation, datasets, share paths and permissions all belong in the web interface here. The TrueNAS docs warn that updating with apt or any method other than the web interface can make the system inoperable, so keep every change inside the web interface.

Alerts, updates and the off-box copy

TrueNAS’s drive health docs say SMART polls drives every 90 minutes and that TrueNAS alerts the user when a polled attribute crosses a threshold indicating a likely failure. Set up email or another alert service on day one so that alert reaches you, and update only from the web interface. Redundancy covers a drive failure; a second copy off the box is a separate job, and a cloud storage service is one place to keep it, such as the services in our Dropbox vs Google Drive and Tresorit vs Sync.com vs Proton Drive comparisons. Keep the admin interface on your local network, use a wired link, and reach the NAS from outside through a VPN rather than by opening ports to it.

Buy in this order, then pull the plug

  1. Settle the software and layout first: matched drives and ZFS, or existing mixed drives and Unraid parity.
  2. Price the drives next, because they are most of the bill in every example layout, and buy NAS-rated CMR drives only.
  3. Pick the platform from the bay count: an N100 or N150 board for file serving up to 16 GB of RAM, a finished barebones such as the Aoostar WTR PRO, or a desktop board plus an HBA flashed to IT mode. If you will stay at four bays or fewer and do not want ECC, a prebuilt is the shorter route: about 1 hour to a working share against a weekend.
  4. Decide the memory and whether ECC is worth its price, and skip the SLOG.
  5. Add a 128-256 GB boot SSD, a power supply sized to the real load, and a UPS with a USB port.
  6. Burn in any used drive with the script, install, create the pool and the share in the web interface, and set up SMART alerts.
  7. With the UPS connected over USB and the NAS set to shut down on battery, copy a test file, let the pool go idle, then pull the UPS’s wall plug. The NAS should power itself off cleanly. Power it back up and run the two commands below: each pool should read ONLINE with no errors, and the second command should report that all pools are healthy.
zpool status
zpool status -x
Nadia Dubois

Nadia Dubois

AI, software and the business of tech

Nadia Dubois covers AI, software and the business of tech for Tech Insider: AI models and the products built on them, developer and productivity software, pricing, and the company decisions and regulation that shape the industry.

View all articles