xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
3 Pages V < 1 2 3  
Reply to this topicStart new topic
> Xboxdumper - Creating Xbox Hdd From Windows Os, Creating a xbox hdd under Windows
tyldd
post Apr 24 2010, 10:46 PM
Post #31


X-S Young Member
*

Group: Members
Posts: 37
Joined: 21-October 09
Member No.: 421397
Xbox Version: v1.6
360 version: none



QUOTE(tyldd @ Apr 24 2010, 09:17 PM) *

from which date and in which dir can the new and fixed eeprom reading hdtool.exe be found at sourceforge?

i don't know if i'm using the 'old' version but:
http://i39.tinypic.com/2wmflgg.png

nvm, i made myself a DOS-on-USB and set bios hdd detection to "not installed". booted DOS-on-USB with hdtools&unlockx added and locked the drive. though the box ended up 06ing :'[

This post has been edited by tyldd: Apr 24 2010, 10:48 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post Apr 25 2010, 01:56 AM
Post #32


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



QUOTE(tyldd @ Apr 25 2010, 04:17 AM) *

from which date and in which dir can the new and fixed eeprom reading hdtool.exe be found at sourceforge?

i don't know if i'm using the 'old' version but:
IPB Image

From the date of the post. xboxdumper folder.

The problem seemed to be unrelated to eeprom. Read this. What version of Windows are you using?

CODE

hdtool /dev/hda

will tell you the current security status of the hdd and whether Windows/motherboard bios implements Security Frozen. If you are using the same PC as the one you used for xboxhdm2.1, likely the security is frozen.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
tyldd
post Apr 25 2010, 03:22 AM
Post #33


X-S Young Member
*

Group: Members
Posts: 37
Joined: 21-October 09
Member No.: 421397
Xbox Version: v1.6
360 version: none



QUOTE(ldotsfan @ Apr 25 2010, 02:56 AM) *

From the date of the post. xboxdumper folder.

(i've read this thread - which was very informative btw, thank you) What version of Windows are you using?


i'm running a windows7 pc with the changeable bios smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post Apr 25 2010, 10:40 AM
Post #34


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



QUOTE(ldotsfan @ Apr 10 2010, 02:54 PM) *

1. Integrated NghtShd's xbpartitioner partitioning code into xboxdumper. It now understands the ozpaul_b partitions and creates the compliant partition table at the hdd offset 0. No GUI though and currently hardcoded to create a F partition only. Other partitioning variants are supported in the code but yet to be exposed.
2. Integrated the 32k/64k FATX stuff.

Untested and WIP. Will document the changes in a separate development thread. Binaries at sourceforge.

Changes will fold back to xboxhdm3 in due time once I figure out how to get devfs working in ldots's xboxhdm initrd and it get tested.

Hdd size calculation bug fixed. Will upload changes to sourceforge. Had to define
CODE

#define _FILE_OFFSET_BITS 64

to make Cygwin happy. Now F/G partitions LBA offsets/sizes should be correct.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
reddwarffan
post May 2 2010, 08:41 AM
Post #35


X-S Enthusiast


Group: Members
Posts: 21
Joined: 17-April 10
Member No.: 436505



QUOTE(ldotsfan @ Mar 29 2010, 02:46 PM) *

6. Lock the hdd with hdtool.
CODE

hdtool /dev/hdc

will identify the hdd. Eg:
CODE

HDD Serial      :       <blanked out>
HDD Model       : Hitachi <blanked out>
Drive Security Settings
Security supported : yes
Security enabled : no
Security locked : no
Security frozen : yes
Security count expired: no


CODE

hdtool -e eeprom.bin -p LOCK /dev/hdc

hda represents IDE primary master.
hdb is IDE primary slave.
hdc is IDE secondary master.
hdd is IDE secondary slave.

If xbox doesn't boot, use a hex editor and insert BRFR at offset 0x600 of the hdd. You have to unlock the hdd first with
CODE

hdtool -e eeprom.bin -p DISABLE-PW /dev/hdc
hdtool -e eeprom.bin -p UNLOCK /dev/hdc




I am trying to understand this before I test later this week - can't quite get my head around how it works unsure.gif
This might sound like a thick questions but when and where do you run the new hdtool.exe file? If I double-click the file in XP nothing happens. If I drag 'n' drop into Windows/Run, i.e. 'D:\Documents and Settings\Administrator\Desktop\xbox\XboxDumper\hdtool.exe /dev/hdc' an error is produced. Is it a DOS file?
Thanks in advance

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post May 2 2010, 04:11 PM
Post #36


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



QUOTE(reddwarffan @ May 2 2010, 03:41 PM) *

If I double-click the file in XP nothing happens. If I drag 'n' drop into Windows/Run, i.e. 'D:\Documents and Settings\Administrator\Desktop\xbox\XboxDumper\hdtool.exe /dev/hdc' an error is produced. Is it a DOS file?
Thanks in advance

It's a Windows console-based executable that depends on Cygwin. You'll need cygwin1.dll in the xboxdumper folder. What's the error encountered?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
reddwarffan
post May 2 2010, 09:05 PM
Post #37


X-S Enthusiast


Group: Members
Posts: 21
Joined: 17-April 10
Member No.: 436505



I have all necessary files (as per http://forums.xbox-scene.com/index.php?s=&...t&p=4666827) in my folder XboxDumper folder.

The error returned is here:

IPB Image

I am using XP with SP3. Thanks

This post has been edited by reddwarffan: May 2 2010, 09:08 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
reddwarffan
post May 3 2010, 05:39 PM
Post #38


X-S Enthusiast


Group: Members
Posts: 21
Joined: 17-April 10
Member No.: 436505



QUOTE(ldotsfan @ May 2 2010, 04:11 PM) *

It's a Windows console-based executable that depends on Cygwin. You'll need cygwin1.dll in the xboxdumper folder. What's the error encountered?



I must admit I read it but it never sunk in...then a few hours later it clicked...doh.
I did say I was catching up to speed with my xboxing days smile.gif
Anyway, I ran hdtool.exe from a command prompt and the console booted up wink.gif
Will report back on XboxDumper testing later this week.

This post has been edited by reddwarffan: May 3 2010, 05:42 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
reddwarffan
post May 11 2010, 08:37 PM
Post #39


X-S Enthusiast


Group: Members
Posts: 21
Joined: 17-April 10
Member No.: 436505



Happy to say XboxDumper was able to create correct partitions (C & E) on a stock 8gb Seagate hdd under the following test conditions

XP SP2
XP SP3
XP Live (using only 256Mb ram).

The following were noted:

In all tests XboxDumper was unable to write the 'magic' value to at offset 0x600. I used a HxD to write the required value (I used HxD portable for XP Live)

Installation of XBMC using xplorer360 beta 6 worked fine in all cases.

Much to my disappointment, I was unable to lock/unlock using the Windows hdtool as my bios places a security freeze on the hd (It's a pity the security freeze feature cannot be disabled :-). Still, I was able to run low level commands to view the state of the drive. I did try running hdtool anyway but I encountered the same 'freeze' as reported by tester in post 32 of this thread.

Theoretcially, it should be possible, if your bios allows you to disable the security freeze function, to lock/unlock and rebuild a Xbox HDD using XP live and the tools suggested in post 9 in this thread.


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post May 12 2010, 02:07 AM
Post #40


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



QUOTE(reddwarffan @ May 12 2010, 03:37 AM) *

Happy to say XboxDumper was able to create correct partitions (C & E) on a stock 8gb Seagate hdd under the following test conditions

XP SP2
XP SP3
XP Live (using only 256Mb ram).

The following were noted:

In all tests XboxDumper was unable to write the 'magic' value to at offset 0x600. I used a HxD to write the required value (I used HxD portable for XP Live)

Installation of XBMC using xplorer360 beta 6 worked fine in all cases.

Much to my disappointment, I was unable to lock/unlock using the Windows hdtool as my bios places a security freeze on the hd (It's a pity the security freeze feature cannot be disabled :-). Still, I was able to run low level commands to view the state of the drive. I did try running hdtool anyway but I encountered the same 'freeze' as reported by tester in post 32 of this thread.

Thanks for reporting back on your results. I'll try to fix the magic value bug - if it still exists. The drive size fix may have affected this. Getting a little confused on the various releases of xboxdumper I have - Windows and Linux tongue.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post May 13 2010, 07:02 AM
Post #41


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



Test results with a 20Gb image

CODE

$ ./xboxdumper.exe
Syntax: xboxdumper <list|dump <FATX filename> <output filename>> <XBOX image file>
Syntax: xboxdumper <create <XBOX image file> <partitionsize in MB>
Syntax: xboxdumper <mkfs   <XBOX image file>
Syntax: xboxdumper <cluster <XBOX image file> <sector number>
Syntax: xboxdumper <listpartitions <XBOX image file>
Syntax: xboxdumper <prepare <XBOX hdd dev> <partition type>
Syntax: xboxdumper <preparefg <XBOX hdd dev> <partition type>
Syntax: where partition type is value of 0, 1, 2 or 3
Syntax: partition type 0: F partition is capped at 137Gb or less
Syntax: partition type 1: F partition occupies all space
Syntax: partition type 2: G partition occupies space after 137Gb
Syntax: partition type 3: F and G partitions splits space evenly

$ ./xboxdumper.exe preparefg /cygdrive/h/hdd 1
Total Sectors  -> 41943040
Creating -> start 8004132864 size 13470703616
createPartition : Filename : /cygdrive/h/hdd
createPartition : clusters       822186
createPartition : start          8004132864
createPartition : size           13470703616
createPartition : chainMapSize   4
createPartition : clusterSize 16384
Calling ioctl() to re-read partition table.
partition 0 start 2884108288 size 5120024576
partition 1 start 2359820288 size 524288000
partition 2 start 524288 size 786432000
partition 3 start 786956288 size 786432000
partition 4 start 1573388288 size 786432000
partition 5 start 8004132864 size 13470703616


$ ./xboxdumper.exe preparefg /cygdrive/h/hdd 3
Total Sectors  -> 41943040
Creating -> start 8004132864 size 6735351808
createPartition : Filename : /cygdrive/h/hdd
createPartition : clusters       411093
createPartition : start          8004132864
createPartition : size           6735351808
createPartition : chainMapSize   4
createPartition : clusterSize 16384
Creating -> start 14739484672 size 6735351808
createPartition : Filename : /cygdrive/h/hdd
createPartition : clusters       411093
createPartition : start          14739484672
createPartition : size           6735351808
createPartition : chainMapSize   4
createPartition : clusterSize 16384
Calling ioctl() to re-read partition table.
partition 0 start 2884108288 size 5120024576
partition 1 start 2359820288 size 524288000
partition 2 start 524288 size 786432000
partition 3 start 786956288 size 786432000
partition 4 start 1573388288 size 786432000
partition 5 start 8004132864 size 6735351808
partition 6 start 14739484672 size 6735351808


1. preparefg option leaves the standard partitions untouched and formats only F/G partitions while prepare formats all partitions.
2. listpartitions option displays a dump of the on-disk partition table.

This post has been edited by ldotsfan: May 13 2010, 07:04 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post Jul 8 2012, 02:42 PM
Post #42


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



While hunting for some files on one of my old hdd, I found an unfinished Windows GUI wrapper for xboxdumper.exe that I created with Visual Studio Express two years ago.

I will clean it up a bit and prepare for a source code release soon. The binary will be included but I cannot remember exactly what state I left it wink.gif

Maybe somebody else wants to have another go at it some day...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ldotsfan
post Jul 10 2012, 02:28 PM
Post #43


X-S Messiah
*******

Group: Dev/Contributor
Posts: 3098
Joined: 23-March 08
Member No.: 376711
Xbox Version: v1.1
360 version: unknown



File uploaded. I don't intend to develop this further
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





3 Pages V < 1 2 3
Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 25th May 2013 - 03:06 AM