200GB NAS help!

A place to ask all newbie questions and not get flamed, though you will get beaten down if you post a newbieish question outside of these walls.
Post Reply
cheesyboofs
Power user
Posts: 239
Joined: Wed Jan 26, 2005 1:32 pm
Location: Luton UK
Contact:

200GB NAS help!

Post by cheesyboofs »

Guy's can someone who knows what they are talking give me a quick pointer.
I'm new to Linux on an xbox but not new to xbox modding. I want to set up a 200Gb NAS, I have a new blank 200GB hard drive, a new untouched 1.3 xbox.
Now if I do a new (e) drive install on the hard drive after formatting it up in another 'modded' xbox and letting the installer flash the onboard TSOP, how do I format the F: drive with long file name support. I am NOT interested in playing xbox games and app's as I have other xboxes for that. I just want a 200Gb (or there about) SAMBA share.

Thanks!
cheesyboofs
Power user
Posts: 239
Joined: Wed Jan 26, 2005 1:32 pm
Location: Luton UK
Contact:

Post by cheesyboofs »

I have just read the post telling me (I think) how to do this viewtopic.php?p=1115 but I'm not clued up enought to figure out what needs doing.
If some one could give me a little one on one to help me... maybe if nobspangle could spare me some time....
cheesyboofs
Power user
Posts: 239
Joined: Wed Jan 26, 2005 1:32 pm
Location: Luton UK
Contact:

Post by cheesyboofs »

I know this isn't really your 'bag' shallax, but there really is a market for cheep NAS'es, if someone could nock up a TUT to get your vertion of home on a full Linux xbox. I have read the post quoted above and I can follow it, I just don't know how to get to that point, can I just boot up a 'live' pro CD then create the script you mention run it then FTP the home version to the /dev/hda2 partition?

God knows who I think is even reading this if anyone!
Go fully native, it's the destiny of all Mk1 XboxesImage
The needs of the many out way the needs of the few or the one ...
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

why don't you just do a native install?
That would be far easier and quicker than doing the E install and then formating the F drive into reiser.
If you keep an open mind, will your brain fall out?
cheesyboofs
Power user
Posts: 239
Joined: Wed Jan 26, 2005 1:32 pm
Location: Luton UK
Contact:

Post by cheesyboofs »

If I do a (native) install then every time I do a reinstall, for what ever reason, does it always reformat my entier 200Gb (F) drive? forcing me to try and back up 200GB.
But if I do a (e) drive install, then one could safely nuke the old install without touching the (f) drive. So how then do you format up the (f) drive into a linux partition (for long file name support) so Gentoox can see it?
Thanks in advance for your help.
Go fully native, it's the destiny of all Mk1 XboxesImage
The needs of the many out way the needs of the few or the one ...
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

First zero the partition table

Code: Select all

dd if=/dev/zero of=/dev/hda seek=15633072 bs=512 count=1
Then create the paritions using fdisk, you may as well put your swap partition native as well, this will give you some speed increase when compiling packages.

Code: Select all

fdisk -u /dev/hda
then enter the following commands without the comments

Code: Select all

n         #to create a new partition
p         #primary parition
1         #partition number 1
15633072  #start block
+256M     #size in megabytes
t         #change the type
82        #type 82 (linux swap)
p         #print the partition table
you should see one partition listed /dev/hda1 make a note of the "end" number and add 1 to it

Code: Select all

n         #to create a new partition
p         #primary partition
2         #partition number 2
enter the number you calculated above
hit return for the default size
w         #write the parition table to disk and exit
Next you need to create the filesystems

Code: Select all

yes | mkreiserfs /dev/hda2
mkswap /dev/hda1
create a mountpoint for your space and mount the partitions

Code: Select all

mkdir /mnt/storage
chmod 777 /mnt/storage
mount /dev/hda2 /mnt/storage
chmod 777 /mnt/storage
swapon /dev/hda1
then you just need to edit your fstab file

Code: Select all

nano /etc/fstab
add a line that says

Code: Select all

/dev/hda2       /mnt/storage     reiserfs     noatime     0  0
and change the swap line so it reads

Code: Select all

/dev/hda1     none     swap     sw      0 0
Then reboot, if it all works you can safely delete the swap file on your E drive (if you want). If you reinstall for any reason you will have to recreate the mount points and edit fstab again.
If you keep an open mind, will your brain fall out?
cheesyboofs
Power user
Posts: 239
Joined: Wed Jan 26, 2005 1:32 pm
Location: Luton UK
Contact:

Post by cheesyboofs »

Great tut, and thanks for the reply, but there are a few bits missing.
Like how do I get to
First zero the partition tableCode:
dd if=/dev/zero of=/dev/hda seek=15633072 bs=512 count=1
? do I boot from the stardust CD and ssh in when it states I now can and at what point do I / how do I copy over gentoox? If I'm reading right do I just do a fresh (e) drive install and take it from there?
Sorry if I'm being a 'tard' but I really could use a beginning to end tut.
I have a blank 200Gb disk and a fresh un-modded legal xbox, although I may be a bit careless with some silver paint :wink:
Go fully native, it's the destiny of all Mk1 XboxesImage
The needs of the many out way the needs of the few or the one ...
cheesyboofs
Power user
Posts: 239
Joined: Wed Jan 26, 2005 1:32 pm
Location: Luton UK
Contact:

Post by cheesyboofs »

:arrow: BUMP
Go fully native, it's the destiny of all Mk1 XboxesImage
The needs of the many out way the needs of the few or the one ...
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

sorry I was assuming you had already installed gentoox.

1. Install gentoox
2. open a terminal window and switch to root
If you keep an open mind, will your brain fall out?
cheesyboofs
Power user
Posts: 239
Joined: Wed Jan 26, 2005 1:32 pm
Location: Luton UK
Contact:

Post by cheesyboofs »

nobspangle wrote:1. Install gentoox
By this you mean a default (e) drive install, sorry if I'm making myself look a wanker....

Also is there such a thing a compressed linux drive format, I would like the (f) drive to be compressed such as it is under NTFS, If there is I presume I would change the 'TYPE' bit in here;
Code:
n #to create a new partition
p #primary partition
2 #partition number 2
enter the number you calculated above
hit return for the default size
w #write the parition table to disk and exit
Go fully native, it's the destiny of all Mk1 XboxesImage
The needs of the many out way the needs of the few or the one ...
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

Here's one http://www.geocities.com/maxcompress/

I don't know much about this, you would leave the type at 83 all linux systems use 83. Then instead of creating the filesystem with

Code: Select all

yes | mkreiserfs /dev/hda2
you would use

Code: Select all

mke2fs -j /dev/hda2
It looks like nobody has really been working on this for a while, I guess with modern harddrives being so large there is no real need for it.
If you keep an open mind, will your brain fall out?
cheesyboofs
Power user
Posts: 239
Joined: Wed Jan 26, 2005 1:32 pm
Location: Luton UK
Contact:

Post by cheesyboofs »

Thanks for that, I am no way clued up enough at the moment to implement that. I now have pro running samba, and it runs like sh1t off a shovel and I think there are spare resources left for the required compression / decompression overhead.

I have conquered most things I have taken on but LEARNING Linux has always eluded me. I'm looking to make this little NAS project force me into learning it properly what with PRO being all command line.

One thing you may be able to help me with, I'm after the source files for Fanctl but the link is dead http://gentoox.shallax.com/modules.php? ... sit&lid=70 because I want to remove the %20 cut off limit. I have know idea what to do with these files but if I had them it would be a start.
Do you have them?
Go fully native, it's the destiny of all Mk1 XboxesImage
The needs of the many out way the needs of the few or the one ...
Post Reply