Installing and Configuring FreeNAS (Network-attached Storage) – Part 1

FreeNAS is an open source network-attached storage (NAS) operating system based on BSD and the ZFS filesystem with integrated RAID support. FreeNAS operating system is totally based on BSD and can be installed on virtual machines or in physical machines to share data storage via a computer network.

Using FreeNAS software you can easily build your own centralized and easily accessible data storage at home and same can be managed via a dedicated web interface originally written in PHP language, later re-written using Python/Django language from scratch.

Install FreeNAS Server
FreeNAS Installation and Configuration

FreeNAS supports Linux, Windows and OS X and numerous virtualization hosts such as VMware and XenServer using protocols such as CIFS (SAMBA), NFS, iSCSI, FTP, rsync etc.

Home users can build FreeNAS storage to store there videos, files and stream from FreeNAS to every network devices or to smart TVs etc. If you are planning to build torrent site, you can use FreeNAS to setup one for you. There are several plugins available for FreeNAS which is as follows.

  1. Own-Cloud = To build Own cloud Storage.
  2. Plex Media Server = To build Own video streaming server.
  3. Bacula = Used as a network backup server.
  4. Transmission = Create torrent server.

Features of FreeNAS

  1. Support ZFS file system.
  2. Support inbuilt RAID with parity support, cronjobs, Smart tests.
  3. Supports Directory services such as LDAP, NIS, NT4, Active Directory.
  4. Support NFS, FTP, SSH, CIFS, iSCSI Protocols.
  5. Supports for windows based file-system such as NTFS and FAT.
  6. Periodic Snapshot and replication support, rsync.
  7. Web interface with GUI and SSL.
  8. Reporting systems such as email notification.
  9. Disk Encryption and much more features are available.
  10. Adding UPS for Backup power systems.
  11. A Rich GUI graph reports for Memory, CPU, Storage, Network etc..

In this FreeNAS 4-article series, we will cover the installation and configuration of FreeNAS with storage and in later articles will cover setting up a video streaming & torrent server.

Part 1: Installing and Configuring FreeNAS 9.2.1.8
Part 4: Upgrading FreeNAS from Older Version to Newer
My Server Setup
Hardware		:	Virtual Machine 64-bit
Operating System        :	FreeNAS-9.2.1.8-RELEASE-x64
IP Address	      	:	192.168.0.225
8GB RAM		        :	Minimum RAM 
1 Disk (5GB)	      	:	Used for OS Installation
8 Disks (5GB)		:	Used for Storage

Download FreeNAS 9.2.1.8

To set up a FreeNAS operating system, you will need to download latest stable installation ISO Image (i.e. version 9.2.1.8) from the FreeNAS download page, or you can use the following links to download image for your system architecture. I’ve included download links for CD/DVD and USB bootable images of FreeNAS, so select and download images as per your requirements.

CD/DVD Images
  1. Download FreeNAS-9.2.1.8-RELEASE-x86.iso – (185MB)
  2. Download FreeNAS-9.2.1.8-RELEASE-x64.iso – (199MB)
USB Images
  1. Download FreeNAS-9.2.1.8-RELEASE-x86.img.xz – (135MB)
  2. Download FreeNAS-9.2.1.8-RELEASE-x64.img.xz – (143MB)

Installing FreeNAS System

1. Now its time to install and configure FreeNAS. As every Operating system FreeNAS too have the similar steps for installation and it won’t take more than 2 minutes to Install.

2. After you download FreeNAS ISO image from the links above, if you’ve a CD/DVD drive, burn that ISO image to a disc and then boot it, or if you’re using USB Image you can directly boot it.

3. After booting the system with FreeNAS image, by default it will start the installation, if not we have to press enter to continue the installation.

Booting FreeNAS
Booting FreeNAS

4. For installing FreeNAS, we have to choose Install/Upgrade. This will install the FreeNAS if its not existed.

Install FreeNAS
Install FreeNAS

5. In this step, we need to choose where FreeNAS should be installed. We have total 9 drives, so here I’m using first 5 GB ada0 drive for my FreeNAS installation and other 8 Drives are used for Storage (will be discussed in next part of this series).

Choose ada0 drive from the listed drives and press Enter to continue.

FreeNAS Install Drive
Choose FreeNAS Install Drive

6. After selecting the drive, on the next screen you will warned for data loss, If you have any important data in that selected drive, please take a backup before installing FreeNAS on the drive.

After pressing ‘Yes‘ all the data in that drive will be destroyed during installation.

Warning: Please take a backup of selected drive before starting FreeNAS setup.

FreeNAS Intallation Drive
Drive Data Loss Warning

7. After few minutes it will take us to the end of the installation process. Choose OK to reboot the machine and remove the installation Disk.

FreeNAS Intallation Completed
FreeNAS Intallation Completed

8. On the next screen, choose the 3rd option to reboot the machine and remove the setup Disk.

Reboot System
Reboot System

9. After FreeNAS setup completed, we can get the console setup menu to add the DNS IP Address to access the FreeNAS web dashboard.

By default at first it will assign a dynamic IP address and we have to configure it manually. Here we can see that, we’ve got a dynamic IP address as 192.168.0.10 now we have to configure our static ip.

FreeNAS Console Setup
FreeNAS Console Setup

Note: First let me configure the DNS, I have a valid name resolver at my end, so let me configure my DNS settings.

10. To configure DNS choose number 6 and press enter, then we have to enter the DNS information such as domain, IP address of DNS server and Press Enter.

Configuring the DNS settings before IP Address will resolve the name from DNS. In your side, if you don’t have a valid DNS server you can skip this step.

Configure FreeNAS DNS
Configure DNS for FreeNAS

11. After configuring DNS settings, now it’s time to configure network interface. To configure the interface, press 1 and select the default first interface.

Use the following settings for configuring static IP:

Enter an option from 1-11:	1
1) vtnet0
Select an interface (q to quit):	1
Reset network configuration? (y/n)	n
Configure interface for DHCP? (y/n)	n
Configure IPv4? (y/n)	y
Interface name: eth0
IPv4 Address: 192.168.0.225		
IPv4 Netmask: 255.255.255.0		
Savinf interface configuration:	OK	
Configure IPv6?	n		

Finally, at last choosing IPv6 no and pressing enter will configure the interface and get saved automatically.

Configure FreeNAS Network
Configure FreeNAS Network

12. After configuring network interface settings, you will see that the IP address has been changed to 192.168.0.225 from 192.168.0.10. Now we can use this address to access FreeNAS GUI from any one of the web browser.

Confirm FreeNAS IPaddress
Confirm FreeNAS IPaddress

13. To access the FreeNAS GUI interface, open the web browser and enter the ip address which we had used to configure the interface setup.

http://192.168.0.225

At first login, we need to define a PASSWORD for the root user to access GUI interface. Set a strong password for your storage server and continue login.

Set FreeNAS root Password
Set FreeNAS root Password

14. After login, you will see informations about FreeNAS server such as domain name, version, total memory available, system time, up time, system load, etc.

FreeNAS Server Information
FreeNAS Server Information

That’s it, In this article, we’ve installed and configured the FreeNAS server. In the next article we will be discussing on how to configure FreeNAS settings in step by step process and how can we define storage in FreeNAS, till then stay tuned for updates and don’t forget to add your comments.

Read More: http://www.freenas.org/

Babin Lonston
I'm Working as a System Administrator for last 10 year's with 4 years experience with Linux Distributions, fall in love with text based operating systems.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

35 thoughts on “Installing and Configuring FreeNAS (Network-attached Storage) – Part 1”

  1. Have tried over several days to install FreeNas to a Lenovo IdeaPad 300-151SK but I get as far as selecting a 15GB Toshiba USB as request and nothing happens when I press the OK button once or many times. What am I doing wrong?

    Reply
  2. Hi Guys,

    I am trying to build a machine to install FreeNas on it. Do you know if this should be an exclusive OS installed? or can I share the machine with another OS as UBUNTU?? is it interesting to upgrade the CPU?? as I5 for instance?

    Looking forward to your advice.

    thanks
    Fabien

    Reply
  3. Not working for me. I downloaded “FreeNAS-9.2.1.8-RELEASE-x64.img.xz – (143MB)” usb image. Copied it into
    16GB Sandisk pendrive. But my mobo Asus H81M-CS is not booting from this pendrive. System loads windows (which I intend to delete after formatting the hdd later) from HDD in the syst

    Am I missing something??

    Reply
  4. Hello Mr. Lanston,
    Ignore if it’s a dumb question but I am new to NAS and home networking. In step 13, where I am supposed to open the NAS GUI by entering the new IP address 192.169.0.225, am I supposed to do it on a sperate machine attached to NAS machine via ethernet cable?

    Reply
  5. Hi!
    Thanks for the great Tutorial. I must be doing something wrong. When I use the volume manager everything goes smooth but when I click “Add Volume” nothing happens. It just blinks then there is no volume saved. It doesn’t matter what I seem to do I get the same result. I’ve tried to to do it every which way to no avail.
    I’m using four identical 160gig HD’s. They are visible. I’ve tried to do it with the MB set to RAID in the bios, ACHI, IDE. Nothing seems to get me the result I need which is a saved volume. I’ve tried just one disk. I’ve tried unplugging all the HD’s except one.
    Any suggestions?
    Thanks,
    Terie

    Reply
    • @Ashok,
      We’ve already covered all articles about FreeNAS setup, still some articles are in progress they will published soon..and it’s not possible us to send guides to each individual. I hope you understand…:)

      Reply
  6. These walkthroughs are great. You list the ability to setup an OwnCloud server, would you be able to create a walkthrough for that plugin?

    Reply
  7. @Nick Els Yes i have coverd plugins in upcoming articles.
    I have 320GB Hard Disk /dev/sda, Other 1 TB /dev/sdb for Storage. Below is my Partition layout as shown in the images.

    http://i.imgur.com/S48FYmY.png

    Here you can see /dev/sda16 and /dev/sda17 was under libvirt-qemu user usage, cos in those two partition currently my apt-cache server VM and DNS VM are running.

    42GB defined for /
    186GB defined for /home
    4 GB for swap.

    http://i.imgur.com/L23zbaf.png

    From /dev/sda5 to /dev/sda17 defined as unused Partitions each with 5GB in size. If i need to install centos virtual machine in /dev/sda8, I used to select the Physcial Disk as VM’s Hard disk as show below

    http://i.imgur.com/Gbv3LUi.png

    Hope you got it now.

    For FreeNAS installation i have choosed from /dev/sda5 to /dev/sda14.

    Got it ?…

    Reply
  8. Thank you for this, very helpful. I sincerely hope that you will discuss jail plugins and how to setup jail plugins and a webserver plugin. Did you actually partitioned one drive into 5gig partitions?

    Reply
    • I don’t used to install VM’s using virtual disks, cos it will save under /var/lib/libvirt/images and occur the / space a lot and make the system damm slow. If i need to destroy any VM’s after deleting the VM from Virtual manager i used to shred my particular partition to reuse.

      Warning:> Without knowing shred command please never use it, you will loose every data’s in your system, you can recover it.

      eg: sudo shred -v -z /dev/sda8

      This will make my paritition once again fresh like a new drive for a new vm installation.

      Reply

Leave a Reply to Alex Cancel reply

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.