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

By Kevin Herring, published on December 28, 2005
Source: Tom's Guide US | Keywords: , , , ,

1. 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 /mnt/hdb1

Discuss This Article!
( ) Replies
Comments | Print | Send to a friend

Sponsored links

Comments

Anonymous 11/28/2007 6:20 PM
Hide
-0+





OK, so now when you boot into Linux and SSH to your Xbox you should have a folder called

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

Anonymous 01/03/2008 1:14 PM
Hide
-0+

Hi, Just have one question, how do you create the database? Doesn't work with just typing "mysqladmin create torrentflux", it just says "access denied for user 'root'@'localhost'"
pls advice!
/Schatz

Anonymous 01/03/2008 1:16 PM
Hide
-0+

Sorted it myself.
mysql -u root -p

Anonymous 09/19/2008 9:45 AM
Hide
-0+

I think you are missing two very important software to install.

apt-get install libapache-mod-php4
apt-get install php4-mysql
otherwise it will not render php in apache and connect to the db

Comments are closed on this page.

Sponsored links