Introduction
FreeNAS (now rebranded as TrueNAS Core) is a powerful, open-source
network–attached storage (NAS) OS built on FreeBSD. Despite the common “Linux or bust” mindset,
your files crave the rock-solid reliability of ZFS on FreeBSD—plus a snazzy web interface.
Buckle up: this is your very detailed, slightly humorous guide to turning
an old PC (or brand-new server) into a file-serving powerhouse.
1. What You’ll Need
Hardware
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 64-bit x86 (Intel/AMD) | Multi-core 64-bit with AES-NI |
| RAM | 8 GB | 16 GB (ZFS loves memory) |
| Storage | 8 GB USB or SSD (boot) | 120 GB SSD for OS |
| Data Disks | At least 2× HDDs/SSDs | 4× (RAIDZ or mirror) |
| Network | 1 GbE NIC | 10 GbE for high throughput |
Software Tools
- FreeNAS ISO image (download from
https://www.truenas.com/download-truenas-core/) - Rufus, balenaEtcher or dd (to create bootable media)
- Another computer for preparation and web-GUI access
2. Downloading the FreeNAS ISO
- Visit the official download page:
TrueNAS Core Downloads. - Select the latest stable “ISO” build. Don’t pick betas unless you like living dangerously.
- Verify the checksum (SHA256) on your existing system:
sha256sum FreeNAS-13.x.iso
Confirm it matches the website’s published value.
3. Preparing Bootable Media
- Insert your USB stick (8 GB ).
- Open Rufus (Windows) or balenaEtcher (macOS/Linux).
- Select the downloaded ISO, choose the USB drive, then click “Start.”
- When prompted, accept any warning about data destruction—your USB stick signed up for this.
4. BIOS/UEFI Setup
- Reboot your target machine and enter BIOS/UEFI (commonly F2, Del or Esc).
- Disable Secure Boot (FreeBSD doesn’t hold hands with Secure Boot).
- Set USB drive as first boot device.
- Enable AHCI mode for SATA controllers (no IDE emulation, please).
5. Installing FreeNAS
- Boot from USB—you’ll see the FreeNAS installer menu.
- Select Install/Upgrade and press Enter.
- Choose your target boot device (the SSD/USB you’ll dedicate to the OS).
- Confirm wiping—these precious bits will be formatted.
- Set a root (administrator) password pick something strong but memorable.
- When installation completes, remove the USB and reboot into your new FreeNAS system.
6. Initial Network Configuration
- At the console menu, choose Configure Network Interfaces.
- Assign a static IP (e.g., 192.168.1.100) or enable DHCP.
- Set gateway and DNS servers if using static IP.
- Reboot if prompted.
Now point a browser on another machine to
http://your-FreeNAS-IP. You should see the sleek FreeNAS web GUI.
7. Storage Pool Dataset Creation
ZFS is the star here. It offers snapshots, checksums, compression, and more.
- Go to Storage gt Pools gt Add.
- Select Create new pool, give it a name (e.g., “tank”).
- Pick your data disks. Combine them in a mirror or RAIDZ for redundancy.
- Enable compression (lz4) and at your discretion, encryption.
- Click Add and then Confirm. ZFS will resilver to glory.
8. Sharing Your Files (SMB, NFS, iSCSI)
SMB (Windows/CIFS)
- Services gt SMB gt Enable.
- Sharing gt Windows (SMB) Shares gt Add.
- Select path (e.g., /mnt/tank/shared), name your share (e.g., “Media”).
- Set permissions: guest ok? read-only? your call.
- Save amp Start SMB service. Browse from Windows with FreeNAS-IPMedia.
NFS (Unix/Linux)
- Services gt NFS gt Enable.
- Sharing gt UNIX (NFS) Shares gt Add.
- Define path, authorized networks (e.g., 192.168.1.0/24).
- Save amp Start NFS. Mount on Linux:
mount -t nfs 192.168.1.100:/mnt/tank/shared /mnt/share
9. Users Permissions
- Accounts gt Users: Create local users or sync with LDAP/AD.
- Accounts gt Groups: Group up users for easy share permissioning.
- Storage gt Pools gt your pool gt Permissions: assign user/group read/write.
10. Snapshots Replication
ZFS snapshots are your time machine. They’re instant and space-efficient.
- Tasks gt Snapshots gt Add.
- Choose dataset, schedule (e.g., hourly, daily).
- Enable and let ZFS capture your data in time.
- For offsite safety, set up Replication Tasks to another FreeNAS/TrueNAS box.
11. Plugins Jails (Optional)
If you need Plex, Nextcloud, or other services, dive into:
- Plugins gt Available: pick your app (e.g., plexmediaserver).
- Install into a jail configure networking (bridge or host). Let it run wild!
12. Maintenance Tips
- Keep it updated: System gt Update gt Check for updates weekly.
- Monitor health: Storage gt Reports (SMART, ZFS usage).
- Back up configuration: System gt General gt Save Config.
- Security: Change default SSH port, disable root login over SSH.
Conclusion
Congratulations, you’ve transformed mere hardware into a robust, ZFS-powered NAS that can
stand toe-to-toe with expensive enterprise solutions. Revel in your newfound storage
mastery—and remember: with great redundancy comes great responsibility (and plenty of
snapshots).
Enjoy your FreeNAS adventure! And may your scrubbing cycles always finish without errors.
Leave a Reply