SmallNetBuilder

Saturday, Nov 21st

Hot Stuff!
You are here: NAS NAS How To How To: Convert your Xbox to a NAS - Part 2

How To: Convert your Xbox to a NAS - Part 2

E-mail Print
Prev - Page 1 of 4 - Next >>

Introduction

So you now have followed Part 1 of this 'How To' and have completed the hardware part of the project. In this part, we're going to install the open source software that will get your modified 'box running as a SAMBA fileserver. We'll also get a complete LAMP-based webserver up and running so that we can install the TorrentFlux client that you'll be able to use to manage all your BitTorrent downloads.

First, you can now put the top back on your modified Xbox and tuck it away in a cupboard and forget about it. Everything we do from now on will be via SSH. Now it's time to do a bit of reading. If you're not familiar with Linux partitioning, formatting and mounting, first take a look at this entire document. To format and mount our new disk you will need to type in the following when logged in as root:

fdisk /dev/hdb
n (new partition)
p (primary partition)
1 (partition 1)
enter ( to select the default first cylinder of 1)
enter ( to create the partition using the entire disk)
w (to write the new partitions to disk)
q ( to quit )

now format it with:
mkfs -t ext2 -j -m 1 /dev/hdb1

Then create a directory in which you will mount the disk:
mkdir /samba_share (or whatever you want to call it)

and then make it readable and writable to everyone:
chmod 777 /samba_share

Now we want to automatically mount the drive every time the Xbox boots. Edit your /etc/fstab file using vim, and add the following line at the bottom:
/dev/hdb1 /samba_share ext3 defaults 2 1

then exit vim and then mount it:
mount /samba share




Related Items:

How To: Convert your Xbox to a NAS - Part 3
Slideshow - Synology DS207
How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash
How To: Hacking the Linksys NSLU2 - Part 5- Moving to Unslung
How To: Convert your Xbox to a NAS - Part 1
 
Comscore