Tag Archives: linux

Building a NAS (for photos and more) Part II

Start with Part I if you haven’t read it already.

Step 3. Choosing an operating system (continued)
I use Windows 7 at home, and I would have no problem recommending it as a home server operating system. It has a familiar interface, has good hardware support, and from my experience it is very stable. From the perspective of building a home NAS as cheaply as possible, its not the best choice. Out of my 4 options, it is the only one that is not free. I also wanted to optimize my NAS as a headless system… meaning that it would not be connected to display or keyboard while running. For these reasons, I crossed it off my list.


FreeNAS is an OS based on FreeBSD. It caught my eye and I started doing research on it. It turns out FreeNas is maintained by a company called iXSystems. In many cases you will find references to FreeNas on the Web. The older version of FreeNas is now maintained in a different fork called Nas4Free. FreeNas is currently more focused on storage solutions and less about media serving. This removed it from my list.

Nas4Free was formally called FreeNAS. It has lots of features for media sharing like DLNA support (to an extent). The OS itself is easy to install and run off of a simple USB key drive, which can save you from having a boot drive in your system. If it supports all of the features you need, it can be a very good choice. One thing Nas4Free is missing is support for the Plex applications. If you are going to buy a pre-built NAS+media server, I suggest checking out Plex and looking at the products that support it. Lack of Plex support was really the deal killer for me.

I’ve used Ubuntu Desktop in a VMWare virtual machine previously. As I learned more about what features I wanted in my NAS, it made more and more sense to move to a full blown Linux install. Plex runs on Ubuntu and it also has support for the ZFS file system which I will elaborate on further later on. It’s a little more complex to set up, but in the end, flexibility, enterprise level features, and application support were worth the effort for me. Ubuntu Server FTW!
Step 4. Hardware decisions


I already had a good Motherboard, a quad core Intel Q9450 processor, 4GB of ram, a power supply and a case. I did buy an Intel Celeron-L 440 processor for $8 on eBay thinking it would save a little power. I also invested in a Kill-A-Watt meter which can give you real time and average power consumption. My hope was to get power consumption under 100watts. NAS systems built on Intel Atom motherboards can get down under 30 watts, but for a system that does more than just serving files, you probably need some more horsepower. The main feature your motherboard needs is the right number of SATA ports. My board has 8, which is great for future expansion if I need it. I would probably want a least 4 if I were buying a new or used board.
The other big choice to make is which hard drive to buy. Western Digital has done a great job of creating a line of drives for the NAS market… WD Red. It seems counter-intuitive at first, but a desktop drive that spins down and parks the heads when not being accessed doesn’t really work well in a NAS. Sleeping drives cause delays when you access your NAS, and there is also the “TLER issue” which causes havoc with Raid Arrays. The Red drives also have very good power consumption numbers. A good review if the Red drives can be found here. I picked up 3 2TB drives from B&H… who had the best price at the time.
I also wanted to mention power supplies. A PC Based NAS without a Video Card will use between 80 and 150 watts depending on how you configure it, and how many drives you need. Power supplies usually operate at peak efficiency at about 50% load. So a 300 Watt power supply is probably a good choice… and an 80 Plus certified supply will help keep the power usage down. Consistent voltages and clean power are important to systems that are running 24/7, so don’t skimp on the power supply!

Continue on to Part III

Building a NAS (for photos and more) Part I


I’m a tech-y sort of guy. I work as an application developer and I have been building my home PCs for years. I recently upgraded my main computer, and I had a bunch of spare parts from the old build. With a growing archive of photos pushing 50,000 raw images, a digital archive of home movies, and 400 albums worth of ripped music from our CD collection, disk space and backups are always a concern. I’d been thinking about network attached storage for a while, but the prices are intimidating. As an example, a 5-Bay Drobo Nas without any drives installed, costs over $500. There are cheaper alternatives, but reviews are mixed. I was also worried that if something broke out of warranty, getting it fixed was going to be a headache.

I decided to take the plunge and build my own NAS/Media Server. The information that follows is more of a dump of my thought process and experiences rather than a “How To” lesson. Hardware gets dated, software gets updated and prices fluctuate.

Build or Buy?
You should buy a pre-built NAS if :

  • You want something that works out of the box with little or no setup
  • You don’t enjoy tinkering with computer parts
  • You don’t know what a command prompt is, and you don’t want to know
  • You trust that the manufacturer you pick will support your hardware, and are willing to replace the whole NAS if you have a hardware failure if the warranty is up. I’m not talking about a bad hard drive… I’m talking about the NAS itself.

You should build your own NAS if :

  • You are willing (and probably like) to tinker with hardware
  • You like the idea of having a new project to work on in your spare time
  • You want to save money, and have something tailored to your needs
  • You enjoy learning about stuff and are ready to do some research


If you decide to build your own system, you need to make a few decisions. Again, I’ve included my own thoughts and opinions

Step 1. How much storage do you need?
The first question to ask is how much storage do you need. My PC has 1.5 Terabytes of storage set up in raid-0 for speed. It has been very reliable and fast. I was down to about 15% free storage space and I was going to have to buy 2 or 3 bigger drives soon. I was flip flopping between 4 and 6 Terabytes of storage. Based on my current usage, I decided 4TB would be enough to last me 4 or 5 years. To protect against a single drive failing, I wanted to use Raid-5, which requires a minimum of 3 equally sized drives. To get 4TB of space with a Raid-5 setup I needed 3 2TB drives.

Step 2. What are you going to do with your data?
Life would be a lot simpler if I just wanted to build a storage only box, without any bells or whistles. I already had an old laptop with an external usb drive acting as an iTunes music server. I also wanted the ability to watch my home video collection on my TV and potentially other devices. The decisions you make here will influnece your decision in step 3. If you are just looking for shared, always on storage, and don’t have the need for raid, the cheapest setup is to buy a used laptop (or a Mac mini) with a large external hard drive.

Step 3. Choosing an operating system
This was probably the most difficult decision. I wanted to check out a few options before I went ahead with the full build. I highly recommend VMWare Player as a way to evaluate operating systems and testing configurations. Here are the OS’s I investigated :

Continue on to Part II