What is NAS?
At its most basic, Network attached storage (NAS), is a great way to share files on your local network. But it's also a perfect solution for backing up your computers, streaming media across your home network, or even torrenting files to a central server. If you have an old computer, you can turn it into a NAS with the open-source FreeNAS operating system.
First, we'll take a closer look at what exactly a NAS is and does, then jump into how to set it up. A Network attached storage box is a computer on your network specifically designed to store files. Any computer on the network can access files on a NAS, which makes them great for bigger households, and they're also nice for when you don't want to store a bunch of external drives on your desk. Unlike regular file servers, NAS units are usually built for a specific purpose, like backing up your data or streaming media to other machines. They're also usually quite low power and low cost, and they don't require a monitor, mouse or keyboard—once you've installed the software, you can configure every aspect of your NAS from a web browser on your other computers.
Here, i'll show you how to set up FreeNAS on the computer of your choice, connect it to your other computers as if it were directly attached to them, and show you a few simple examples of how you could use it for backup, iTunes music streaming, or video streaming to a home theater PC.You can buy or build a very cheap nettop that fits the specifications of what you want to do. The bottom line is, there's no need to go out and buy a pre-built NAS when you can make one yourself with great, free, open source software and hardware you already have lying around.
At its most basic, Network attached storage (NAS), is a great way to share files on your local network. But it's also a perfect solution for backing up your computers, streaming media across your home network, or even torrenting files to a central server. If you have an old computer, you can turn it into a NAS with the open-source FreeNAS operating system.
First, we'll take a closer look at what exactly a NAS is and does, then jump into how to set it up. A Network attached storage box is a computer on your network specifically designed to store files. Any computer on the network can access files on a NAS, which makes them great for bigger households, and they're also nice for when you don't want to store a bunch of external drives on your desk. Unlike regular file servers, NAS units are usually built for a specific purpose, like backing up your data or streaming media to other machines. They're also usually quite low power and low cost, and they don't require a monitor, mouse or keyboard—once you've installed the software, you can configure every aspect of your NAS from a web browser on your other computers.
Here, i'll show you how to set up FreeNAS on the computer of your choice, connect it to your other computers as if it were directly attached to them, and show you a few simple examples of how you could use it for backup, iTunes music streaming, or video streaming to a home theater PC.You can buy or build a very cheap nettop that fits the specifications of what you want to do. The bottom line is, there's no need to go out and buy a pre-built NAS when you can make one yourself with great, free, open source software and hardware you already have lying around.
You can install FreeNAS on a ton of different systems using a number of different methods, but here are the things you'll need for our method:
- A PC with a minimum of 192MB RAM to act as your NAS. It will also need an Ethernet connection and a bootable CD drive in it from which we can install FreeNAS onto one of its hard drives.
- The FreeNAS live CD, available here.
- A network with DHCP reservations or Static IP address. This isn't required, but it's definitely preferred. If you don't have this, managing your NAS can get pretty annoying, since its IP address will change whenever you reboot it.
FreeNAS is actually designed to run on a flash drive or compact flash card rather than one of the drives in your computer, but since many computers especially older ones, don't support booting from USB, we're going to install FreeNAS to the hard drive for simplicity. If your computer supports booting from USB, you can actually use the live CD to install FreeNAS to a 2GB flash drive and run FreeNAS from that flash drive instead, keeping it plugged into your NAS at all times.
1) To install FreeNAS, you'll need the FreeNAS live CD. Download the live CD image depending on the processor that your NAS supports, i.e. 32-bit (i386) or 64-bit (amd 64). Burn it to disc using something like IMGBurn for Windows or Burn for Mac.
2) Head over to your NAS box and boot up from the live CD. It'll take awhile to boot up, but once you get to the FreeNAS menu...
A) Pick option 9: "Install/Upgrade to hard drive/flash device".
B) Pick option 2 on the next screen, "Install embedded OS on HDD/Flash/USB + DATA + SWAP partition" (if you're installing on a flash drive, you can pick option 1 instead).
C) Pick your CD drive and hard drive from the lists it throws at you, and say no to a SWAP partition (unless your computer has less than a few gigs of RAM, in which case it might be a good idea to create a SWAP partition that's twice the size of the RAM in your machine). It will format your drive for you with the UFS file system, and install FreeNAS to a small partition at the beginning of the drive.
3) Remove the live CD and boot up your computer. You should boot into your new FreeNAS installation, and come up with the same menu the Live CD gave you. This time, pick option 1, "Assign Interfaces".
A) Pick your ethernet port from the list (there's probably only one option), then pick "none, Finish and exit" on the next page.
B) Next, pick option 2, "Set LAN IP Address". Using DHCP should be fine, unless you're using static IPs, in which case you can hit "no" and assign it an address yourself.
4) When you're done with all the network configuration, it will assign an IP address for you. This is how you'll access the web interface to configure everything on your NAS, so make a note of it and head over to your desktop computer. You can now unhook the keyboard and monitor from your NAS; you won't need them anymore.
1) To access the web interface, open your web browser and type in the IP address you copied down at the end of the installation process. When you first open it up, it'll ask you for a username and password. Type in
admin
for the username and freenas
for the password to gain access.2) The first thing we want to do is change these to something a bit more secure. Click on the "System" menu at the top of the page and hit "General". Under WebGUI, change the username to whatever you want, and click save. Go to the Password tab and change your password as well.
3) Next, we'll add our hard drive(s) to FreeNAS. Hover over the Disks menu at the top of the page and click on Management. Click on the Plus sign to add a new one. On the next page, choose your disk from the "Disk" dropdown menu, type in a description if necessary, and hit Add. The rest of the default settings should be fine for now. Make sure you hit "Apply Settings" back on the Disk Management page when it takes you back there.
4) If you're running FreeNAS off a flash drive, head to Disks > Format and pick your disk from the dropdown menu. Choose "UFS (GPT and Soft Updates)" and give it a volume label. Hit Format disk. If FreeNAS is installed to your internal hard drive, you can skip this step since you formatted it when you installed FreeNAS.
5) Next, we need to give that drive a "mount point" in FreeNAS. Head to Disks > Mount Point from the top menu, and click the plus sign. Pick your disk from the dropdown menu. Give the mount point a name and a description if you like. I also turn off "foreground/background file system consistency check during boot process" here, since that's caused problems with slowdowns and crashes for me in the past. Click the Add button and once again, hit Apply Settings on the next page.
6) The last thing you have to do is share that drive with your other computers on the network. For this example, we're going to use CIFS, since it's compatible with Windows, Mac, and Linux machines (If you're in a Mac-only household, I recommend researching AFP instead, since it'll be a bit easier to set up). Head to Services > CIFS/SMB and hit the Enable checkbox in the right corner. You can change its NetBIOS name, workgroup, and description if you so choose, then scroll down and hit "Save and Restart".
7) Click on the Shares tab at the top of the settings page, and click the plus sign. Give it a name, comment if desired, and hit the "..." button to tell it which of your FreeNAS drives you want to share. The default settings should be fine for most people, so go ahead and hit Add.
8) That's it! You should be able to access your network-attached drive from any computer. In Windows Explorer, just type
\\192.168.0.5
into the navigation bar, using your NAS' IP address in place of the example I've provided. You should see your NAS show up and you can browse it, create folders, add files to it, and so on. For easy access, you can right-click on it and hit Map Network Drive to put it under My Computer. You should be able to do this with every other computer on the network, and easily share files between all of those computers.That's all fine and dandy, but you can do more than just store files on the network. Here are a few cool things you can do with your NAS and how to set them up.
No comments:
Post a Comment