xboxscene.org forums

Pages: 1 2 3 [4] 5 6 ... 9

Author Topic: Build A Working Xbox Hd From Scratch  (Read 1737 times)

Chicken Scratch Boy

  • Archived User
  • Hero Member
  • *
  • Posts: 1054
Build A Working Xbox Hd From Scratch
« Reply #45 on: April 09, 2004, 09:02:00 PM »

bump
Logged

BBrasky42

  • Archived User
  • Newbie
  • *
  • Posts: 1
Build A Working Xbox Hd From Scratch
« Reply #46 on: April 10, 2004, 12:01:00 PM »

EDIT:
Got it working!  Thank you sooo much for posting this tutorial!!  I was about to just go and buy a new box, but you've saved me.  THANK YOU!
Logged

G_David

  • Archived User
  • Newbie
  • *
  • Posts: 14
Build A Working Xbox Hd From Scratch
« Reply #47 on: April 12, 2004, 01:41:00 AM »

bump!
Logged

ldots

  • Archived User
  • Hero Member
  • *
  • Posts: 822
Build A Working Xbox Hd From Scratch
« Reply #48 on: April 12, 2004, 02:23:00 PM »

unsure.gif

@ BBrasky42
Glad I could help smile.gif

@ G_David
Well if you backup is a block by block dump lf the original xbox HD (is it a 8Gb file ???), you should be able to extract the C-drive from it under linux. Lets call the backup xbox.raw
Then :
CODE

dd if=xbox.raw of=C.raw seek skip=4501 count=1000 bs=512k

should produce a 500mb file with you C-drive.
So if you can run a fatx enabled linux and you mount the HD with your xbox backup you could run this command and then mount this C.raw and see if it contains your systemfiles
CODE

mkdir Cdrive
mount -t fatx C.raw Cdrive
ls -l Cdrive

If you are sure this is a working C-drive you could even restore this back to your xbox HD. Assuming you xbox HD is on /dev/hda :
CODE

dd if=C.raw of=/dev/hda seek=4501  bs=512k
Logged

ldots

  • Archived User
  • Hero Member
  • *
  • Posts: 822
Build A Working Xbox Hd From Scratch
« Reply #49 on: April 12, 2004, 04:47:00 PM »

You can do it in xlinux yes! Except xlinux doesn't have ntfs support so if your xbox hd backup is on a ntfs partition it can't be done with xlinux.
I still have to test a few things on my HD builder script, but otherwise we could arrange for you to test my package - Soon !
Logged

G_David

  • Archived User
  • Newbie
  • *
  • Posts: 14
Build A Working Xbox Hd From Scratch
« Reply #50 on: April 13, 2004, 10:01:00 AM »

biggrin.gif . asap!
Logged

ldots

  • Archived User
  • Hero Member
  • *
  • Posts: 822
Build A Working Xbox Hd From Scratch
« Reply #51 on: April 15, 2004, 01:58:00 AM »

Sent you a PM.
Logged

Angerwound

  • Archived User
  • Hero Member
  • *
  • Posts: 928
Build A Working Xbox Hd From Scratch
« Reply #52 on: April 15, 2004, 11:02:00 AM »

beerchug.gif
Logged

ldots

  • Archived User
  • Hero Member
  • *
  • Posts: 822
Build A Working Xbox Hd From Scratch
« Reply #53 on: April 17, 2004, 05:13:00 AM »

biggrin.gif) and the source compiled without errors but it seg. faults when it tries to access the IO ports. The linux kernel protects the ports after boot-up so I guess hdunlock/hdlock will not work after booting. So if I should include hdd locking and unlocking capabilities it would have to be done in the kernel itself. Could be done but I don't have the time for this...

Instead I came up with another solution. My distro uses the isolinux boot loader and I found that it includes a small app called memdisk that lets you boot other OS's than linux. So I packed a floppy image of FreeDOS in the iso and was able to boot this floppy image from the CD. Also I added unlockx and the hdlock,hdunlock,hddisabl utilities.

So, now this distro will let you boot both to a fatx enabled linux (with my HD builder script) and to a DOS prompt with hdd locking/unlocking tools.

On a side note. I made so that is can be distributed as an archive containing all nessecary files as well as two directories called C & E. You can now add the xbox system files (from slayers or you own backup) to the C-folder and optionally some gave saves to the E-folder. Then run an included make-iso script that will build a bootable cdrom iso. Then you have everything you need to build xbox HD's - as long as you have the HDD passwd (or your eeprom and liveinfo).


Will test a bit more, and then hopefully release it somehow.

Thanx to all testers for the feedback.
Logged

Chicken Scratch Boy

  • Archived User
  • Hero Member
  • *
  • Posts: 1054
Build A Working Xbox Hd From Scratch
« Reply #54 on: April 17, 2004, 12:37:00 PM »

QUOTE (ldots @ Apr 17 2004, 05:13 AM)
It seg. faults when it tries to access the IO ports. The linux kernel protects the ports after boot-up so I guess hdunlock/hdlock will not work after booting.

maybe this can be disabled?
or
maybe the program can be launched on a reboot via an early sequence script set via a flag in the memory? or on a floppy?
Logged

ldots

  • Archived User
  • Hero Member
  • *
  • Posts: 822
Build A Working Xbox Hd From Scratch
« Reply #55 on: April 17, 2004, 01:02:00 PM »

QUOTE (Chicken Scratch Boy @ Apr 17 2004, 09:37 PM)
maybe this can be disabled?
or
maybe the program can be launched on a reboot via an early sequence script set via a flag in the memory? or on a floppy?

You could most likely get access to the ports (I know there are tools available) but I don't feel that brave at the moment tongue.gif  Imagine how many xbox HD's I could mess up if a buggy version was released. If I had a spare development computer I could work a bit more in this direction, but I think it would be more usefull to pursue the other option. Modifiying the kernel to do the locking/unlocking at boottime. I have some ideas - but not the time. I have some big projects at work I must finish.
Launching the program from floppy we haven't really gained much, since we can allready boot a DOS floppy with unlockx. I'm pretty satisfied with having this boot-option directly on the CD as explained above.

But someday I will look closer at the ATA command posibilities in the linux kernel. Newer kernel have an experimental PCI hotplug option. Maybe this can be used to detect/unlock an xbox drive.
Logged

Chicken Scratch Boy

  • Archived User
  • Hero Member
  • *
  • Posts: 1054
Build A Working Xbox Hd From Scratch
« Reply #56 on: April 19, 2004, 01:25:00 PM »

congrats on the release, ldots!
Logged

ldots

  • Archived User
  • Hero Member
  • *
  • Posts: 822
Build A Working Xbox Hd From Scratch
« Reply #57 on: April 19, 2004, 01:43:00 PM »

biggrin.gif

You wouldn't happen to have the source code by SpeedBump on the HD key generation algorithm. I've got a zip-archive called hd_gen but it only includes a readme - no code sad.gif
Logged

Chicken Scratch Boy

  • Archived User
  • Hero Member
  • *
  • Posts: 1054
Build A Working Xbox Hd From Scratch
« Reply #58 on: April 19, 2004, 01:47:00 PM »

hmm i'll start digging on that hd-gen stuff...

on the same topic, do you think you can get the hdlock to read a text file with the key?


edit/update:
hmmm
after doing some searching i have not found any source besides the key calculating map in the xbox-linux docs, maybe you can contact speedbump or team assembaly(live info) if they can spare any source...
Logged

Chicken Scratch Boy

  • Archived User
  • Hero Member
  • *
  • Posts: 1054
Build A Working Xbox Hd From Scratch
« Reply #59 on: April 20, 2004, 05:09:00 AM »

bump
Logged
Pages: 1 2 3 [4] 5 6 ... 9