TrueNAS Installation — A Complete Step-by-Step Guide for Beginners

Turn a spare PC into a TrueNAS storage server: install it, build a protected ZFS pool, share a folder with your home network, and set up snapshots and off-site backups.

A Mohammed Habib Aug 30, 2026 22 min read 315 views Updated Oct 24, 2026
Cover for TrueNAS Installation — A Complete Step-by-Step Guide for Beginners

In this guide you'll turn a spare PC into a network storage box (a NAS) running TrueNAS. By the end you'll have a protected storage pool, a shared folder you can open from any computer at home, and automatic snapshots and backups. I use TrueNAS for everything I don't want to lose: backups, my media library, VM storage and homelab app data.

What you need

  • A computer to be the NAS. An old desktop works. See the hardware table in Step 0.
  • At least two data drives of the same size, plus a separate small SSD for the operating system.
  • A USB stick (8 GB or larger) to hold the installer.
  • A second computer to download the installer and open the TrueNAS web interface.
  • A network cable from the NAS to your router. Wi-Fi isn't a good fit for a NAS.
  • About two hours, most of it waiting.

You don't need any prior Linux, FreeBSD or storage knowledge.

Warning: Installing TrueNAS erases the boot drive, and creating a pool erases the data drives. Copy anything you want to keep off those drives first.


What TrueNAS is

Project TrueNAS (Linux-based, formerly called SCALE)
Purpose Network-attached storage (NAS) with ZFS
Interface Web UI + optional shell
License Open source
Documentation truenas.com/docs

A NAS (network-attached storage) is a computer whose job is to store files and share them with other devices over your network.

TrueNAS used to come in two flavors:

  • TrueNAS CORE was based on FreeBSD. It has reached end of life: 13.3-U1.2 is its final release, and iXsystems points CORE users to the Linux-based version.
  • TrueNAS SCALE is based on Debian Linux and can run apps (Plex, Home Assistant and so on) next to your storage. In 2025 it was renamed TrueNAS Community Edition. You'll still see "SCALE" in download filenames and older guides.

This guide covers the Linux-based version. Menu names move around a little between releases, so if a button isn't exactly where I say, look one level up or down in the same section.


Why storage is hard to get right

Most people start with a USB drive plugged into a router, then a Raspberry Pi with an external disk, then an old desktop with three mismatched drives. Sooner or later a drive dies and takes files with it.

TrueNAS stores everything with ZFS, a filesystem that also manages the disks underneath it. It checks every block of data for damage and can repair it from a second copy. Here is how the pieces fit together:

A few terms you'll see throughout:

  • Pool: all your data drives grouped into one big storage space.
  • vdev: a group of drives inside a pool that protect each other (a mirror or a RAIDZ group).
  • Dataset: a folder-like area inside a pool with its own settings.
  • Snapshot: a read-only picture of a dataset at one moment, which you can restore files from.
  • Scrub: a background job that reads every block and fixes any damage it finds.

ZFS itself isn't the hard part. The hard part is the decisions you make before creating the pool:

  • How many drives, and what layout (mirror, RAIDZ1 or RAIDZ2)?
  • Do you need ECC RAM?
  • Which drive holds the operating system?
  • How fast is your network?
  • Where do backups go?

The steps below answer each of these.


Step 0: Plan your hardware

Minimum requirements

Component Minimum Recommended
CPU 2 cores (x86_64) 4+ cores, AES-NI
RAM 8 GB 16–32 GB + ECC
Boot Drive 16 GB USB / 64 GB SSD 128 GB+ NVMe (mirrored)
Storage Drives 2× same size 4+ drives, same model
Network 1 GbE 2.5/10 GbE NIC
HBA Optional LSI 9201-16i / 9300-16i (IT mode)

An HBA (host bus adapter) is a card that adds more drive ports. You only need one if your motherboard doesn't have enough SATA ports. "IT mode" means it passes drives straight through to TrueNAS without its own RAID layer, which is what ZFS wants.

The TrueNAS installer itself warns against USB flash drives as the boot device. Use a small SSD if you can.

Pick a drive layout

Drives Topology Usable Capacity Fault Tolerance Notes
2 Mirror 1× drive 1 drive Simplest, best performance
3 RAIDZ1 2× drives 1 drive Good balance
4 RAIDZ1 3× drives 1 drive —
4 RAIDZ2 2× drives 2 drives Recommended for 4+ drives
5 RAIDZ2 3× drives 2 drives —
6 RAIDZ2 4× drives 2 drives —
8 RAIDZ2 6× drives 2 drives Or 2× 4-drive mirrors

A mirror keeps an identical copy on each drive. RAIDZ1 spreads data plus one drive's worth of repair information (parity) across the group. RAIDZ2 uses two drives' worth of parity.

Rule of thumb: For 4+ drives, use RAIDZ2 (dual parity). The extra parity costs one drive but survives any two simultaneous failures. RAIDZ1 survives only one.

You can't change a vdev's layout after creating it without moving all the data off, so take your time on this choice.

ECC RAM

ECC (error-correcting code) memory detects and fixes the occasional flipped bit in RAM. ZFS trusts whatever is in memory, so bad RAM can write bad data to disk with a valid checksum. TrueNAS recommends ECC for data you care about.

ECC support depends on both the CPU and the motherboard. Many AMD Ryzen desktop chips work with unbuffered ECC on boards that support it, while most Intel desktop Core chips don't support it at all. Check the spec pages for your exact CPU and board before buying ECC sticks. Plenty of people run TrueNAS without ECC; just know the trade-off.


Step 1: Download and verify the installer

  1. Go to truenas.com/download.
  2. Choose the Community Edition and download the latest ISO file. An ISO is a disk image of the installer. The filename includes the version, for example TrueNAS-SCALE-24.04.1.1.iso when I first wrote this. Yours will be newer.
  3. Verify the checksum. A checksum is a fingerprint of the file. If yours matches the one on the download page, the file arrived intact.
# Linux/macOS
sha256sum TrueNAS-SCALE-*.iso
# Compare to the SHA256 on the download page

On macOS, if sha256sum isn't found, use shasum -a 256 TrueNAS-SCALE-*.iso. On Windows, run certutil -hashfile TrueNAS-SCALE-<version>.iso SHA256 in Command Prompt.

Check it worked: the long string printed matches the SHA256 on the download page character for character. If it doesn't, download again.


Step 2: Make a bootable USB stick

Option A: Ventoy (what I use)

Ventoy installs once onto a USB stick. After that you copy ISO files onto it like normal files and pick one from a menu at boot.

# Install Ventoy on Linux
sudo ./VentoyWeb.sh
# Or on Windows: Ventoy2Disk.exe
  1. Plug in the USB stick, open Ventoy, select the device and click Install. This wipes the stick.
  2. Copy TrueNAS-SCALE-*.iso to the USB stick.
  3. Safely eject it.

Option B: Write the ISO directly (dd / Rufus / balenaEtcher)

On Windows or macOS, balenaEtcher or Rufus is the easiest route: pick the ISO, pick the USB stick, click Flash. On Linux you can use dd:

# Linux/macOS - BE CAREFUL WITH /dev/sdX
sudo dd if=TrueNAS-SCALE-*.iso of=/dev/sdX bs=1M status=progress conv=fsync

Run lsblk first to find your USB stick's name (for example /dev/sdb) and replace /dev/sdX with it.

Warning: dd destroys data on the target device. Triple-check /dev/sdX.

Check it worked: the tool finishes without errors. With Ventoy, the ISO file is visible on the stick.


Step 3: Boot and install

  1. Boot from USB. Plug the stick into the NAS, power it on and press the boot menu key (usually F12, F11, F8 or Del). Pick the USB stick. With Ventoy, then pick the TrueNAS ISO from its menu.
  2. Wait for the TrueNAS installer menu and select Install/Upgrade.
  3. Select the boot drive. Use the arrow keys and press Space to mark your boot SSD. Do not pick a data drive. If you mark two drives, the installer mirrors the boot device, so the system still starts if one fails. Confirm that the drive will be erased.
  4. Choose how to log in. Pick Administrative user (truenas_admin) and set a strong password. This creates the truenas_admin account you'll use for the web interface. (Older releases asked for a root password here instead.) The other choice, Configure using Web UI, lets you set the admin account on first login instead.
  5. EFI question. If you booted the installer in legacy BIOS mode, it asks whether to allow EFI boot. Choose Yes on modern hardware. If you booted in UEFI mode, you won't see this.
  6. Wait for Installation Succeeded, select OK, then reboot and remove the USB stick.

Check it worked: the NAS boots on its own into a text console menu showing the TrueNAS version and a web address.


Step 4: First boot and login

  1. The console shows something like: TrueNAS SCALE 24.04.1.1 Web UI: http://192.168.1.42 (or your DHCP address) DHCP means your router handed the NAS an address automatically.
  2. On your other computer, open that address in a browser.
  3. Log in as truenas_admin with the password from Step 3. If you chose Configure using Web UI, you'll be asked to create the admin account now.
  4. Set your time zone under System Settings → General, and a host name (for example truenas-homelab) under Network, in the Global Configuration section. Leave networking on DHCP for now.

Check it worked: you see the TrueNAS dashboard with widgets for system info, CPU and memory.


Step 5: Harden the basics

5.1 Give the NAS a fixed address

A NAS should keep the same IP address so your shares and bookmarks don't break. You have two options:

  • Easiest: in your router's settings, add a DHCP reservation that always gives the NAS the same address.
  • On the NAS: use option 1 in the console setup menu, or Network → Interfaces → Edit in the web UI. Turn off DHCP, add your chosen address as an alias (for example 192.168.1.50/24), and set your gateway and DNS servers (for example 1.1.1.1, 9.9.9.9) in the Global Configuration section of the Network screen.

When you change networking in the web UI, TrueNAS asks you to Test Changes. You then have 60 seconds to reconnect at the new address and confirm, or it reverts to the old settings. This saves you from locking yourself out.

Write down the new IP. You'll lose the DHCP address.

Check it worked: the web UI loads at the new address after you confirm.

5.2 Turn on SSH (optional, admin only)

SSH gives you a remote command line on the NAS. You don't need it for anything in this guide, so skip it if you like.

Go to System Settings → Services, find SSH, click the edit (pencil) icon, then switch it on.

  • Keep root login disabled. Log in as truenas_admin and use sudo when needed.
  • Prefer key login over passwords. On your laptop:
# On your laptop
ssh-keygen -t ed25519 -C "admin@truenas"
cat ~/.ssh/id_ed25519.pub  # copy to TrueNAS SSH keys

Paste the public key into the admin user's settings under Credentials → Users.

Check it worked: ssh truenas_admin@192.168.1.50 logs you in.

5.3 Set up email alerts

You want to hear about a dying drive before it's too late. Click the Alerts bell in the top bar, open the settings icon and choose Email. Enter your mail provider's SMTP details, then send a test email.

Check it worked: the test email arrives (check spam).

5.4 Updates

Under System → Update, stay on the stable release train, not nightly or beta builds. I prefer to download updates automatically but install them myself, after reading the release notes.

5.5 Cloud credentials (for backups)

If you plan to back up to a cloud provider (Backblaze B2, Wasabi, AWS S3 and others), add the account under Credentials → Backup Credentials → Cloud Credentials → Add. You'll pick it in Step 9.


Step 6: Create your storage pool

This is the step to get right the first time.

6.1 Identify your disks

Open Storage → Disks. All your data drives should be listed, but not the boot drive.

  • Note each drive's serial number.
  • Label each physical drive with its serial (masking tape and a marker work fine). When a drive fails, you'll know which one to pull.

6.2 Create the pool

Go to Storage → Create Pool. A wizard walks you through it.

Field Value
Name tank (or storage, data, pool1)
Vdev layout Choose based on drive count (see table above)
Encryption Yes if drives leave your house (AES-256-GCM)
Compression lz4 (default, always on)
Atime Off (saves writes)

Compression and atime are dataset settings. You can set them on the pool's top dataset after creation, and new datasets inherit them. Atime records when each file was last read; turning it off avoids a disk write every time a file is opened.

If you enable encryption, download and safely store the encryption key when TrueNAS offers it. Without it, nobody can read the pool, including you.

Example: 4× 8 TB drives in RAIDZ2

Pool: tank
  VDEV: raidz2
    - ada1 (8 TB, serial WD1234)
    - ada2 (8 TB, serial WD1235)
    - ada3 (8 TB, serial WD1236)
    - ada4 (8 TB, serial WD1237)
Usable: ~14.5 TB
Tolerance: 2 drive failures

Click Create, confirm that all data on the drives will be erased, and wait.

6.3 Check pool health

Check it worked: the Storage dashboard shows your pool with an online, healthy status and no degraded or faulted disks. On an empty pool, a manual scrub finishes in minutes.


Step 7: Create datasets

Datasets are separate areas of the pool, each with its own settings and snapshots. I make one per kind of data.

Go to Datasets, select your pool, and click Add Dataset.

Dataset Name Purpose Key Properties
backups Machine backups compression=zstd, atime=off, snapdir=visible
media Movies/TV/Music compression=lz4, atime=off, recordsize=1M
vm-storage VM disks compression=zstd, sync=always
app-data Container configs compression=zstd, atime=off
documents Personal files compression=zstd, atime=off, copies=2

What the properties mean:

  • compression: lz4 is fast, zstd squeezes harder. Both are safe.
  • recordsize=1M: larger blocks suit big media files.
  • snapdir=visible: shows the hidden .zfs snapshot folder so you can browse old versions.
  • sync=always: forces every write to be confirmed on disk, which VMs want.
  • copies=2: stores two copies of every block in that dataset.

VM disks usually live in a zvol (a block device carved out of the pool) rather than a plain dataset. Block size for a zvol is set with volblocksize (for example 16K) when you create the zvol.

About copies=2: it protects against bad sectors and small corruption on irreplaceable data like documents and photos. It doesn't replace a mirror or RAIDZ, and it doubles the space that dataset uses.

Check it worked: each dataset appears under your pool, at a path like /mnt/tank/media.


Step 8: Share a folder over the network (SMB)

SMB is the file-sharing protocol Windows, macOS and Linux all understand.

Create a user

Go to Credentials → Users → Add.

Field Value
Username media_user
Full Name Media User
Password Strong password
Shell /usr/sbin/nologin (no shell)
Samba Authentication Yes

nologin means this account can access shares but can't log in to the NAS command line.

Create the share

Go to Shares → SMB → Add.

Field Value
Name Media
Path /mnt/tank/media
Read Only No
Browseable Yes
Guest Access No

If TrueNAS asks whether to start the SMB service, say yes.

Older guides (including an earlier version of this one) add "fruit" lines to an Auxiliary Parameters field for better Mac support. That field was removed from the share screen in TrueNAS 23.10. For Macs, look for the Apple SMB2/3 protocol extensions option in the SMB service settings instead.

Set permissions

Edit the share's filesystem ACL (the ACL is the list of who may read or write):

  • Add media_user with Read/Write.
  • Remove builtin_administrators if you don't need it.

Test from another computer

# macOS
open smb://192.168.1.50/Media

# Windows
\\192.168.1.50\Media

# Linux
gio mount smb://192.168.1.50/Media

On Windows, type the \\192.168.1.50\Media path into File Explorer's address bar.

Check it worked: you're asked for a username and password, media_user gets in, and you can create and delete a test file.


Step 9: Automatic backups

A pool with redundancy survives a dead drive. It does not survive deleting the wrong folder, ransomware, fire or theft. Snapshots and off-site copies cover those.

9.1 Local snapshots (fast undo)

Go to Data Protection → Periodic Snapshot Tasks → Add.

Field Value
Dataset tank/media (repeat for each)
Naming Schema custom-%Y%m%d-%H%M
Schedule Every 1 hour (or 15 min for critical)
Snapshot Lifetime 2 weeks
Recursive Yes

Each task has one lifetime. For hourly snapshots kept 2 weeks and daily snapshots kept 3 months, create two tasks.

Recursive means child datasets get snapshotted too. The naming schema must include %Y, %m, %d, %H and %M.

Snapshots are near-instant, use no extra space until files change (that's copy-on-write), and are read-only. Deleted a file? Browse .zfs/snapshot/ in the share and copy it back.

Check it worked: after the first scheduled run, the snapshot shows up under Storage → Snapshots.

9.2 Replication to another TrueNAS (off-site)

Replication copies snapshots to a second ZFS system. If you have a second TrueNAS at a friend's house or a colo:

Go to Data Protection → Replication Tasks → Add.

Field Value
Source tank/media
Destination remote_tank/media (on remote TrueNAS)
Transport SSH
Schedule Daily at 02:00
Also Include Snapshots

The first run sends all the data, which takes a while. Later runs only send the blocks that changed.

9.3 Cloud sync (Backblaze B2 / Wasabi / S3)

Go to Data Protection → Cloud Sync Tasks → Add.

Field Value
Direction PUSH
Provider Backblaze B2 (or your provider)
Credential Select from Step 5.5
Bucket truenas-backups-media
Folder media/
Schedule Daily 03:00
Transfer Mode SYNC (or COPY for immutable)
Encryption AES-256 (client-side)
Filename Encryption Yes

SYNC makes the cloud copy match the NAS, deletions included. COPY only adds files and never deletes them on the cloud side. With client-side encryption, the provider only ever sees scrambled data. Keep the encryption password somewhere safe outside the NAS.

Cloud storage is billed per TB per month. Check your provider's current price before sending a large library; for pure off-site copies it can still come out cheaper than a second NAS.

Check it worked: run the task once by hand and confirm the files appear in your bucket.


Step 10: Monitoring and maintenance

10.1 Drive health (SMART)

SMART is a self-monitoring system built into every drive that reports early signs of failure.

TrueNAS 25.10 changed how this works. It collects SMART data from your drives in the background, but the screen for scheduling SMART self-tests was removed. Existing scheduled tests become cron jobs when you upgrade. On older releases, you schedule tests under Data Protection → S.M.A.R.T. Tests.

On 25.10 you can run a test by hand from the shell:

sudo smartctl -t short /dev/sda

A short test weekly and a long test monthly is a sensible pace. Keep tests from overlapping with scrubs. The attributes I watch are Reallocated_Sector_Ct and Current_Pending_Sector: anything above zero means it's time to plan a replacement.

10.2 Scrub schedule

Check the Scrub Tasks section on Data Protection. If your pool has no scrub task, add one:

Field Value
Pool tank
Schedule Monthly, 1st Sunday 03:00
Threshold 35 days

A scrub reads every block, checks it against its checksum, and repairs it from redundancy if needed. Monthly is a sensible pace.

10.3 Alerts

Open the Alerts bell and its settings to choose which alerts you want and how they reach you (email, plus services like Slack or Telegram). At minimum, make sure pool, disk and SMART problems reach you.


Step 11: Apps

TrueNAS can run apps right next to your storage. Since TrueNAS 24.10 ("Electric Eel"), apps run on Docker (a way to run software in isolated containers). Older releases used Kubernetes and the third-party TrueCharts catalog. TrueCharts apps don't install on 24.10 and later, so ignore older guides that mention them.

  1. Open Apps. The first time, TrueNAS asks you to choose a pool for apps. Pick one and click Save. An SSD pool is best if you have one.
  2. Click Discover Apps, find an app, and follow its install wizard.
  3. When the wizard asks for storage, point it at a dataset (a "host path") so your data lives where you can snapshot it.

Apps I'd look at first:

App Purpose Notes
Plex / Jellyfin Media server Mount /mnt/tank/media
Home Assistant Home automation Persistent config in app-data
Paperless-ngx Document scanner Mount /mnt/tank/documents
Immich Photo backup Mount /mnt/tank/photos
AdGuard Home DNS ad-block Run on host network
Uptime Kuma Service monitoring Small footprint
Grafana + Prometheus Metrics Dashboards for your homelab

I give each app its own dataset under app-data so its settings survive updates and get snapshotted.

Check it worked: the app shows as Running on the Apps screen and its web UI opens from the app's page.


Troubleshooting

The installer doesn't see my drives. Check the BIOS: SATA should be in AHCI mode, not RAID. If the drives sit on an HBA card, it needs IT-mode firmware.

The web UI address doesn't load. Make sure your computer is on the same network. Use the console menu on the NAS to check the IP address it got. If the console shows no address, check the cable and your router's DHCP.

Test Changes reverted my network settings. You have 60 seconds to reach the new address and confirm. Open the new IP in a new tab right away. Make sure the gateway is correct; a wrong one is the usual cause. If you get stuck, use option 1 in the console menu on the NAS itself.

The pool shows DEGRADED. A drive has failed or dropped out. Your data is still there if you're within your fault tolerance. Note the serial number of the failed drive in Storage → Disks, find the matching label, and replace it. Don't pull drives at random.

Windows can't connect to the share. Confirm the SMB service is running under System Settings → Services, that the user has Samba Authentication turned on, and that the ACL gives that user access. Windows also caches old logins; signing out and back in clears them.

A Cloud Sync task fails. Recheck the credential, the bucket name, and that your provider key has write permission to that bucket.


What I'd tell anyone building one

  1. Mirror your boot drive. Mark two SSDs in the installer and TrueNAS mirrors them for you.
  2. Don't mix drive sizes in a vdev. A 4 TB + 8 TB mirror gives you 4 TB usable. Buy identical drives.
  3. Label every drive physically. When a drive fails, and one will, you need to pull the right one. Serial on the drive = serial in TrueNAS = label on the chassis.
  4. Test your restores. A backup you've never restored is a wish. Once a quarter, pick a random file, delete it, and restore it from a snapshot. Once a year, do a full disaster recovery drill.
  5. Write down your setup. Pool layout, drive serials, IP addresses, replication targets, cloud buckets. Passwords and encryption keys go in a password manager, not the text file. If something happens to you, someone else can recover the data.
  6. Get a UPS. A battery backup with NUT support (System Settings → Services → UPS) lets TrueNAS shut down cleanly when the power goes out. ZFS usually recovers from a hard power cut, but there's no reason to test that.

Next steps

  • Put a media server on your new pool: install Plex or Jellyfin from Apps and point it at /mnt/tank/media.
  • Set up an off-site copy (Step 9.2 or 9.3) if you haven't yet. One NAS in one house is not a backup.

Get it


Last updated: 2026-10-24. First written for TrueNAS SCALE 24.04 (Dragonfish) and updated for the installer, apps and SMART changes in 24.10 through 25.10. Menu names can shift between releases.

Comments (0)

Join the discussion — sign in to comment.

Sign in

No comments yet — be the first to share your thoughts.

Related reading