How to Convert an Old PC into a Modern Server

How to Convert an Old PC into a Storage Server
Your old desktop PC gave you years of reliable service, but eventually it couldn't keep up with modern tasks and applications; so you went out and bought something newer and faster. Now you need to decide what to do with the old clunker.

You could e-recycle it--hand it off to a responsible company that will dismantle it and recycle the parts--but what do you gain from that aside from feeling good about being environmentally responsible? Allow us to suggest another solution: Repurpose the old hulk as a local server. You can use it as a repository for automatic PC backups, or set it up as a file server that you and your employees can access while you're on the road. Those are just two of the roles that an older PC can perform that are of far more benefit to your business than having the machine collect dust or head for the dump.

Best of all, the software--FreeNAS--that will power this machine is exactly what its name describes: a free operating system for network-attached storage. And side from being free, FreeNAS is easy to install, configure, and run. You'll find everything you need to know in this guide.

Installing FreeNAS

Before you begin your FreeNAS installation, obtain a USB thumb drive with a capacity of at least 2GB. You'll install FreeNAS to this drive and boot from it, because you can't run the OS on the same drive that you're using to share files from. Alternatively, you can buy a very small solid-state drive, install FreeNAS on that, and boot the server from it; but investing in such an SSD is an unnecessary expense (unless you're worried that someone might remove the USB drive without realizing the consequences).

You'll need a USB key with at least 2GB of storage for this project.
Once you have the necessary thumb drive, download the latest version of FreeNAS from the operating system's official site, taking care to choose the right disc image (that is, .iso file): x86 if your machine is equipped with a 32-bit CPU, or x64 if it has a 64-bit processor. After downloading the .iso file, burn it to a blank CD and drop it into your server-to-be's optical drive.

Now, power up the computer, tap the key that calls up its BIOS boot menu, and choose the option to have the machine boot from its optical drive instead of from its hard drive. If no such menu exists, you'll have to enter the BIOS itself and change the boot order there.

Choose the option to install FreeNAS to a flash drive.
Once all of FreeNAS's FreeBSD-based Linux commands have done their work, you'll see a simple installation screen that gives you four options to choose from. Select the first--the option to install or upgrade FreeNAS 8 to a hard drive or flash drive--and press Enter. Any storage media connected to your system will appear on the next screen. In that next screen, you'll eventually want to select your flash drive as a target for the installation (the OS will create two partitions on the drive: one for the OS itself and one for future FreeNAS upgrades)--but don't press anything yet.

Make sure that you don't need any of the existing data on your flash drive.
Before choosing the installation destination, you need to be aware that FreeNAS will eradicate the data and partitions on the flash drive that you install it on. So this is your last chance to archive any files that your flash drive already contains, before they vanish forever. When you're ready, choose the thumb drive, select Yes, and press Enter. A prompt will appear when the FreeNAS installation process is complete. Press Enter and then select the option to reboot your system in the main menu.

While your system is rebooting, repeat the step where you chose which drive FreeNAS will boot from by default--but this time specify that you want it to boot from the thumb drive plugged into one of the system's USB ports.

Setting Up Your Storage

Once FreeNAS has finished loading, you'll see a console screen that lists all of the networking options you can set for FreeNAS. At this point, your server is up and running.

Assuming that your system works fine at the default settings--and it should, as long as it's connected to your network via ethernet cable--you'll receive an IP address that you can use to access FreeNAS's primary settings. Type this IP address into the Web browser's address bar on any system connected to your network and press Enter.

Establish admin credentials so that you can manage the server.
The first thing you'll want to do within this Web-based configuration screen is to change your user credentials. Look to the left side and click the My Account menu item to expand it. Now choose an admin user name and a password. Click the button to save your changes. Then click Change Password and do the same. Security first!

To set up your storage volumes, click the Storage button in the upper-left corner of the FreeNAS Web-based configuration screen. From there, click the Create Volume button that appears in the main window. Give your volume a name, select the number of drives you'll want to use to create the volume, and select ZFS as the file system type. You'll find that ZFS delivers a number of benefits that the Unix File System does not. If you're combining multiple drives, you'll have an opportunity at this point to select which RAID type you want to use.

ZFS is a superior file system, offering benefits not available in UFS.
Click the Add Volume button when you're ready. If you want your storage to be a shared resource in your office, so that you won't have any individual user account permissions to manage, click the Change Permissions icon and grant write access to both Group and Other users (be sure to select the Set Permissions Recursively option, too). Press the big Change button to cement your configuration.

Next page: Set up shares, and configure your backups.

Subscribe to the Power Tips Newsletter

Comments