Top 5 This Week

Related Posts

Here’s how you can build your own NAS using TrueNAS Scale

Let’s say you’ve finally caved into the desire to build your own Network-Attached Storage server and bought the hardware necessary for the endeavor. The next course of action is to pick the perfect operating system that can fulfill your storage needs. While you can technically build a makeshift file-sharing server using Windows 11, dedicated NAS operating systems are better when it comes to privacy, resource utilization, and above all, storage provisions.




TrueNAS Scale is my top recommendation for anyone planning to put together a storage server. But if you’re worried about the complexity of the setup procedure, then read on. This guide will walk you through the entire process of installing TrueNAS Scale on your new NAS.

Related

TrueNAS Scale vs TrueNAS Core: Which OS is the best for your NAS?

Despite belonging to iXsystem’s TrueNAS lineup of operating systems, there are plenty of differences that set Scale apart from Core

What you’ll need

Like most Linux distros, TrueNAS Scale has fairly modest system requirements. iXSystems, the company behind the TrueNAS lineup, cites an x86 processor with two cores and 8GBs of memory as the minimum requirement. Having previously configured TrueNAS Scale on the Intel N100-powered Aiffro K100 and Radxa X4, I can confirm that you don’t need a top-of-the-line CPU for TrueNAS Scale.


That said, you’ll need a flash drive with at least 32GB of free space to create a bootable USB drive. The OS also requires a minimum of two storage drives: one where you’d install TrueNAS Scale (preferably an SSD) and another for the storage array.

Creating a bootable drive for TrueNAS Scale

The first step in the TrueNAS Scale installation procedure involves flashing the operating system’s ISO files onto a USB drive. We’ll keep things simple by using Balena Etcher for this guide, but you’re free to pick Rufus and other USB formatting utilities.

  1. Navigate to TrueNAS’ website and download the latest ISO file for TrueNAS Scale.
  2. Download the setup.exe file for Balena Etcher from the official website and use it to install the tool on your PC.
  3. Once it’s installed, run Balena Etcher with administrator privileges.
  4. Click on Flash from file and pick the TrueNAS Scale ISO file you grabbed earlier.
    Choosing the TrueNAS Scale file inside Balena Etcher

  5. Hit Select target and choose the USB drive you’re planning to use as the bootable drive.
    truenas-scale-setup-2

  6. Press Flash and wait for Balena Etcher to finish writing the OS images onto the flash drive.


Modifying the boot options in your NAS’ BIOS

Now that you’ve successfully flashed the USB drive, you’ll want to switch the BIOS options in your DIY NAS’ motherboard to use said drive as the boot device.

  1. Connect your bootable drive and a keyboard to your NAS before powering it on.
  2. Mash the Delete key as the NAS boots up.
  3. Enter the Boot settings and make sure the USB drive appears as Boot Option #1.
    Setting a USB drive as the Boot option in the BIOS

  4. (Optional) While you’re still inside the BIOS, you can enable SVM/VT-x/AMD-V/Virtualization inside the Advanced CPU Settings or the Tweaker tab.
    Enabling the SVM Mode in the BIOS

  5. Save the changes you’ve made before exiting the BIOS.

Installing TrueNAS Scale

Once your NAS restarts, you’ll be greeted with the TrueNAS Scale console setup wizard.


  1. Select Install/Upgrade on the main TrueNAS Scale screen and hit the Enter key.
    Choosing the Install/Upgrade option inside the TrueNAS Console Setup

  2. Use Spacebar to select the boot drive for TrueNAS Scale and press Yes when TrueNAS Scale asks for confirmation.
    Choosing the destination drive for TrueNAS Scale

  3. Choose Administrative user (admin) as the Web UI Authentication method.
    Choosing Administrative User in the TrueNAS Scale installation wizard

  4. Enter the Password for the admin user.
    Entering the password in the TrueNAS Scale installation wizard

  5. Tap Create Swap when TrueNAS Scale asks you to create a 16GB swap partition.
    Creating a swap file in TrueNAS Scale

  6. After the setup is complete, hit Reboot System and unplug your bootable drive from the NAS.
    Rebooting the TrueNAS Scale system


Accessing the web UI and creating a dataset

After the restart, your NAS will boot into TrueNAS Scale’s command-line interface. However, we’ll utilize the menu-riddled web UI for the rest of the procedure.

  1. Note the IP address mentioned in the TrueNAS Scale CLI.
  2. Switch to your PC and enter this address into the Search bar of your favorite web browser.
    Tying the IP address in the URL of a web browser

  3. When your browser cautions you about security, hit the Advanced button and choose the Proceed to IP_Address (unsafe) option.
    Gaining access to the TrueNAS Scale web UI

  4. Enter admin as the Username followed by the Password you’d set earlier.
    Logging into the TrueNAS Scale web UI

  5. Head to the Datasets tab and tap the Create Pool option.
    Creating a new pool in TrueNAS Scale

  1. Enter a Name for the pool, choose the Disk you’d like to add to it, and tap Next.
    Creating a new disk in the Pool Creation Wizard in the TrueNAS Scale web UI

  2. Choose the Layout that best suits your setup and pick the Disk Size before clicking on Save & Go To Review.
    Choosing the Disk in the Disk Creation wizard of the TrueNAS Scale web UI

  3. Press the Create Pool button, tap the Confirm checkbox, and hit Continue.
    Clicking on the Confirm checkbox in the Disk Creation wizard of the TrueNAS Scale web UI

  4. Click on the Add Dataset option for the Storage Pool you just created.
    Adding a Dataset to the Storage Pool of the TrueNAS Scale web UI

  5. Enter a Name for the dataset and hit the Save button while leaving every other setting unchanged.
    Adding a new dataset in the TrueNAS Scale web UI


Sharing the NAS with your PC

With that, you’ve successfully created a storage pool using your drives. But if you want to access it from your devices, you’ll need to configure a sharing protocol. We’ll go SMB because it’s fairly easy to set up and works on most devices.

  1. Click on Credentials and select Users from the sub-menu.
    Entering the User tab in the TrueNAS Scale web UI

  2. Press the Add button.
    Pressing the Add button in the TrueNAS Scale web UI

  3. Enter the Full name, Username, and Password for the User.
    Adding a Username, Full Name, and Password to a TrueNAS Scale user

  4. Enable the checkbox next to Samba Authentication and hit Save.
    Activating Samba Authentication for a TrueNAS Scale User

  5. Switch to the Groups sub-menu from the Credentials tab.
    Accessing the Group tab in the TrueNAS Scale web UI

  1. Click on the drop-down arrow next to the (automatically-created) Group for your new User and tap Edit.
    Pressing the Edit button inside a TrueNAS Scale User Group

  2. Once again, check the Samba Authentication checkbox and tap Save.
    Enabling Samba Authentication for a TrueNAS Scale User Group

  3. Navigate to the Shares tab and press Add next to the Windows (SMB) Shares header.
    Adding a new SMB Share in the TrueNAS Scale web UI

  4. Select the Path to the dataset you created earlier before clicking on the Save button.
    Saving an SMB Share in the TrueNAS Scale web UI

  5. Agree to configure the ACL permissions and tap on Add Item at the bottom of the Access Control List header.
    Adding a new ACL rule in the TrueNAS Scale web UI

  6. Set User under the Who option, pick your newly created user under the User setting, and enable the checkboxes next to Read, Write, and Execute before hitting the Save Access Control List option.
    Setting new ACL permissions in the TrueNAS Scale web UI

  7. Back at the Shares tab, toggle the checkbox for the SMB share you created earlier.
    Enabling an SMB Share in the TrueNAS Scale web UI

  8. Open File Explorer on your PC and type the IP address of the NAS into the Address Bar.
    Typing the IP Address of the TrueNAS Scale machine into the File Explorer

  9. Finally, enter your Username and Password to gain access to the SMB Share.


Building your dream storage server using TrueNAS Scale

Assuming you followed all the steps properly, the TrueNAS Scale server should be up and running, and you’ll be able to access the SMB share without any issues. Alternatively, you might want to try out the iSCSI protocol if you want to map the NAS drive as a local disk instead of a network drive.

Of course, there’s a lot you can do with your NAS besides using it as a storage server. Since TrueNAS Scale has robust virtualization provisions, you deploy containers and virtual machines to host your favorite apps and services on top of your NAS!


Related

5 reasons why I prefer TrueNAS Scale over Unraid

Unraid is a solid operating system for DIY NAS setups, but I still belong to the TrueNAS Scale faction

#Heres #build #NAS #TrueNAS #Scale

source: https://www.xda-developers.com/build-your-own-nas-using-truenas-scale/

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Popular Articles