How-Tos

How To: Build A NAS Box

comment Commentsprint Printemail EmailDeliciousDiggStumbleUponReddit

How To Build a NAS Box Opener

Crush the performance of consumer network-attached storage devices by building your own! And you can use a number of legacy parts to do this on the cheap!

Time: 3 Hours

What You Need

A network-attached storage (NAS) device is the Robin to a LAN’s Batman. The two should be inseparable, and for good reason. A NAS box gives you a guaranteed way to store all of your files and stream your media. Running a NAS box also means that you don’t have to boot your power-leeching desktop rig every time you want to access your files from another device.

But you don’t have to go out and purchase a NAS device. You can build a superior alternative using spare parts left over after upgrading your PC.

We recently gathered a bunch of components that had been gathering dust in the Lab and built a FrankenNAS that absolutely pulverized its admittedly budget retail competitor, the $135 Linksys NAS200. Using an Asus A8N32 SLI Deluxe motherboard and a dual-core 2.6GHz AMD Athlon 64 FX-60 CPU, we were able to shorten our transfer speeds to one-sixth of the NAS200’s on small transfers and around one-seventh on larger file moves. Note that you don’t even need top-of-the-line hardware for your device. Our open-source operating system, FreeNAS, will run on almost anything.

But just because it’s free doesn’t mean it’s simple. So we’re going to walk you through the finer points of setting up a FreeNAS-based network storage device of your very own. You’ll be streaming your favorite movies in no time!

1.Burn the FreeNAS ISO to CD

Step One

The first step in the process is building the physical NAS box, but since it’s no different from assembling a PC, we’re skipping ahead to the installation of the operating system. In order to do that, you’ll first want to set your NAS motherboard’s BIOS to boot from an optical drive.

FreeNAS is based on FreeBSD, a Unix-like open-source OS developed in the early 1990s. It’s not Linux and it’s definitely not Windows, so you should be aware that using the OS as the backbone of your file storage is going to first wipe out anything that might be on the hard drives you use. On the upside, FreeNAS itself requires no hard drive space for installation. It’s so compact, we’ll be using an embedded version that can run off a USB thumb drive or a CompactFlash card as small as 32MB.

Download the FreeNAS ISO and drop a CD in your burner. If you don’t already have software capable of burning an ISO image to a CD, download and install the free utility ISO Recorder. If you’re using ISO Recorder, right-click the file you just downloaded and choose the option “Copy image to CD.”

Once you’ve burned the image, put the CD in your NAS box’s optical drive, restart your computer, and boot FreeNAS from the CD. One caveat: Make sure your motherboard’s BIOS is configured to boot from a USB device, as we’ll be installing the operating system to a thumb drive.

2. Install FreeNAS on a USB Thumb Drive

Step 2

We’re going to set up our NAS to boot from a USB thumb drive so we don’t limit our upgrade options. If you didn’t listen to us in the last step and are using an old mobo that just won’t boot from a removable device, you have two options. You can boot from the CD and store your configuration file on a USB thumb drive or CompactFlash card or you can partition your hard drive, copy the OS to that partition, and boot from there. Be aware, however, that you cannot use the resulting storage partition for RAID: FreeNAS allows only whole drives in an array.

Quick Tip: Double-check whether FreeNAS offers support for your hardware by checking the compatibility lists at http://www.freenas.org/index.php?option=com_openwiki&Itemid=30.

When the FreeNAS Console Setup menu appears (tap the Escape key if the FreeNAS splash screen doesn’t disappear on its own), plug a thumb drive into the NAS box’s USB port and choose the menu item “Install/Upgrade to a hard drive/flash device, etc.” At the next prompt, choose the first option: “Install ‘embedded’ OS on HDD/Flash/USB.” Choose the optical drive containing the FreeNAS ISO image and hit Enter. Next, select the USB thumb drive on which you want to install the OS. Note that the installation process’s default choice is the hard drive, so make sure you’ve changed it to your thumb drive before you hit the Enter key.

After you’ve installed the operating system on the thumb drive, remove the CD and reboot your NAS box.

3 Configure Your Network Settings

Step 3

When your NAS box has rebooted, choose item 1 from the Console Setup menu: Assign Interface. Unplug the NAS box’s Ethernet cable and choose the OS’s Auto Detection option. When prompted, plug the Ethernet cable back in and hit the Enter key. You should get a message that reads “Detected link-up on interface XX,” where “XX” is the name of your Ethernet interface (in our example, the name was “nve0”). Hit the Enter key again.

The next screen will read “Configure OPT interface.” This enables you to configure a second Ethernet port, assuming your motherboard has one. For now, choose the option that reads “Finish and exit configuration” and hit the Enter key. Accept the naming scheme presented in the next screen and hit Enter.

Next, type the number 7 and hit Enter to reboot the computer. When the machine has finished rebooting, choose item 2 from the Console Setup menu: Set LAN IP Address. The OS will ask if you want to use DHCP. Choose Yes unless your network is set up with static IP addresses. At the next prompt, select “AutoConfiguration for IPv6.”

The OS will then give you the IP address that’s been assigned to the NAS box. You can now ping your NAS box to verify that it has joined your network and you can manage its settings using your web browser. Just type the NAS box’s IP address into your browser’s address bar. The default user name is “admin” and the password is “freenas.”

Next: Configure Your NAS, Format the Drive, and Get Started!

COMMENTS
avatarI work in IT and understand

I work in IT and understand how NAS works but I think there was a general consensus by the author that everyone reading Maximum PC has full understanding about NAS.   I think this should have been made a little more clear.   Based on this article (pretending I don't understand NAS) I still don't see why someone wouldn't just choose to share a folder on an existing PC in their home as already mentioned here.

What also isn't made clear... if you follow these instructions and build this NAS will the disk appear local under disk management on the system connecting to it like real SAN/NAS storage?  Say for example I want to build a NAS off this article and use it purely for a large array for a media center for all the DVD rips.   Will it appear as LOCAL storage? 

If not how is this different from just a share on another system???

Login or register to post comments
avatarnas and power

hi everybody, avid reader for almost 10 years now.... 

first post here ;)

 

isnt one of the main ideas of a NAS to use less power than a PC for hosting files over a network?

where is that being accomplished at here? 

 

wheres the gain of doing this (Linux or free bsd or win nt or any OS at all who cares?)

when you could just host off a computer you use all the time to begin with

sitting on an external usb or seperate internal 500 gb drive?

 

I just dont see it.... 

Login or register to post comments
avatarRE:

You don't understand what NAS storage is. 

 

Sure you can run CIFS on Windows or NFS on Linux ... but think about the waste in doing that.  You have to install an entire OS which runs numerous services which eat up numerous resources, which require more hardware (CPU, Memory, Video [Vista] perspectives)which requires more $$$ --get the point now?  Then there's the whole OS competing for resources vs whatever is accessing your CIFS/NFS shares.  Not to mention, since FreeNAS runs the bare minimum of services, you have to manage less in the way of OS specifics and just deal with what's required --managing the storage! 

 

Also, FreeNAS can run on next to NOTHING for hardware.  So, unless you're streaming hi-def vid or have 300 people leveraging the thing as a shoutcast server, this box makes a LOT of sense for utilizing some old hardware just sitting around the house.

 

As for Software RAID --yea I wouldn't use it either. In fact, just get yourself a decent Adaptec storage controller and go with that --avoid FRAID (F-RAID, Fake RAID) cards.    

Login or register to post comments
avatarGreat SW.  My FreeNAS

Great SW.  My FreeNAS server has been running almost 2 years with no issues.   

Login or register to post comments
avatarFrom the looks of it, some

From the looks of it, some editor is a little jelous. This was posted way earlier than 8am. Why does it have a time of 11am? To push it to the top?

Login or register to post comments
avatarIt was also published in

It was also published in the print magazine long before this...

I've noticed a similar thing has happened with a couple of the print articles put online.  My suspicion is that they notice a couple things they want to change (like formatting-wise, since you can't exactly carbon copy it from the way it appears in the magazine) after they put it up, make the changes, and then basically submit it as new again.  

Login or register to post comments
avatarFreeNAS is a free NAS

FreeNAS is a free NAS (Network-Attached Storage) server, supporting: CIFS (samba), FTP, NFS, AFP, RSYNC, iSCSI protocols, S.M.A.R.T., local user authentication, Software RAID (0,1,5) with a Full WEB configuration interface. FreeNAS takes less than 32MB once installed on Compact Flash, hard drive or USB key. 
The minimal FreeBSD distribution, Web interface, PHP scripts and documentation are based on 
M0n0wall

Right from the site, so essentially, you're installing Linux on it. 

Login or register to post comments
avatarew software raid 5, god I'd

ew software raid 5, god I'd hate to have to wait for that to rebuild...

Login or register to post comments
avatarFreeBSD is not linux.

FreeBSD is not linux.

Login or register to post comments
avatarsounds a hell of a lot like

sounds a hell of a lot like an ftp server. may as well install a linux server OS and run F@H on it.

Login or register to post comments
avataressentually yeah

essentually yeah, but still an idea that people may not have thought of.

 and why not have an FTP server run NAS box functionality? especially when it doesn't have to cost much.

Login or register to post comments
RESOURCE CENTER

KICK ASS OFFERS

THIS MONTH's ISSUE
FEATURE Awesome Upgrades: The best PC upgrades in every price range.HOW TO Connect your PC to your surround-sound audio systemProtect Your PC We put 10 of the most popular antivirus programs to the test to see which will protect you best. Android Revealed Find out how the Google-powered HTC G1 stacks up against its rivals.

Don't have an account? Register Now! Forgot password?