Do you have an old computer laying around your house and want to give it a purpose? Why not use it for storage? This is a tutorial on how to install FreeNAS and share a drive with Windows.
Step 1 : Check your hardware resources
On Windows:
- Click the Start button and choose Settings (it's the gear-shaped icon above the power icon).
- Click "System."
- Click "About."
Step 2 : Find a distro that suits you
- Go to DistroWatch
- Click "Search"
- On Distribution category, select "NAS"
- On Status, select "Active"
- Click "Submit Query"
You will receive a list with the currently active distributions that are focused on NAS, such as FreeNAS, EasyNAS, OpenMediaVault. Take your time to know the hardware requirements and features for each distro, and compare to your old computer resources. The more you have to use, the easier it is to choose.
Step 3 : Create a bootable flash drive
Once you have the ISO image downloaded, you need to create a bootable drive to proceed for installation. There are several options in this realm: Rufus, UNetbootin, ImageWriter... the list goes on.
My personal favorite is dd
, a staple in Linux distros everywhere (/dev/sdb
being the USB drive):
sudo dd if=distro.iso of=/dev/sdb
Step 4 : Installation
My pick was FreeNAS but the installation process is pretty much the same for the other NAS distros.
On installer menu:
- Press Enter to select the default option, "Install/Upgrade"
- A minimum of 8 GiB of RAM is required and the installer will present a warning message if less than 8 GiB is detected. However , for domestic sharing with very low volume of requests, or no RAID, 8GiB is good but not necessary.
- Use the arrow keys to highlight the destination SSD, hard drive, USB stick, or virtual disk. If you only have one hard drive, please get at least an USB stick for the system. Drives selected at this stage cannot be used for data later. Press the spacebar to select and press Enter.
- Set the root password.
- Choose UEFI or BIOS booting, depending on how old your computer is. Most UEFI systems can also boot in BIOS mode if CSM (Compatibility Support Module) is enabled in the UEFI setup screens.
- Installation complete! Press Enter to return to Installer Menu and press Enter on "Reboot System".
Step 5 : Create a shared volume
First access the WebGUI by typing the server IP address (provided at the end of installation) on a browser, and login with root.
- Go to Storage Pools and click ADD. Select Create new pool and click CREATE POOL
- Enter a name for the pool in the Name field
- From the Available Disks section, select disks to add to the pool.
- After selecting disks, click the right arrow to add them to the Data VDevs section.
- Click CREATE. A dialog shows a reminder that all disk contents will be erased. Click Confirm, then CREATE POOL to create the pool.
- Click Sharing Windows (SMB Shares), then ADD.
- Select path of the pool created.
- Enable Allow Guest Access.
- Press SAVE.
- When prompted to enable SMB service, click "Enable SMB"
Creating a regular user is a good idea to avoid using root to access the volume remotely.
Step 6 : Access the volume
On Windows:
- Open File Explorer.
- Select Map network drive.
- Select the Drive Letter that you want from the Drive list.
Enter the path to the storage in the Folder field.
Select the Connect using different credentials option.
You can select the Reconnect at logon check box to automatically reconnect to the storage.
Click the Finish to complete the mapping process. When you are prompted for credentials,
Enter the NAS user name in the user name field.
Enter the NAS password in the password field.
Click OK
Done! Enjoy your new NAS. :)
Top comments (0)