Creating a NAS with Ubuntu Server
This tutorial guide will explains how to create a Network Attached Storage (NAS) system with Ubuntu Server and MDADM software RAID; and how to create Samba and NFS shares.
Use this guide along with my Youtube Video: How to Create a NAS with Ubuntu Server
- Wired Network Connection
- Small USB Flash drive (or CD) to install the OS
- 8GB (Minimum) Flash drive to run the OS / or Small SSD
- A couple of spare hours
A NAS device can be created with minimal hardware, such as: Single core 1.0GHz CPU, 512 MB RAM, 160GB Hard Drive, and a USB 2.0 Flash drive.
For my NAS I’m using: AMD Sempron 3850 AM1 1.3GHz Quad Core CPU, ASUS AM1M-A Motherboard, 8GB DDR3 RAM, 4x 3TB Seagate hard drives, and a SanDisk SATA 2 32GB for the Ubuntu Server 18.04 OS.
The system is running with RAID5, giving me a single 9TB drive mounted in /mnt. It has SMB shares setup, which allows shared access for all devices (computers, media player, and Android tablet) on my LAN.
I’m also using the system as a Media Downloader to download files from Usenet.
Majority of user interaction is done via Web GUI, although there’s remote access terminal available via SSH. Since everything can be done remotely over the network the NAS sits there running as a headless server (no keyboard or monitor connected).
I used to run the system from a USB 3.0 Flash drive, but I found that it would sometimes break Grub when the kernel was updated. Long term it has been a lot easier to run the OS from a cheap Solid State Disk.