HDDHackr - lost UNDO.BIN - how to restore capacity

fzabkar
Contributor
Contributor
Posts: 550
Joined: Tue Apr 16, 2013 9:28 am
Location: Australia

HDDHackr - lost UNDO.BIN - how to restore capacity

Postby fzabkar » Sat Apr 20, 2013 9:54 am

If you've hacked your drive using HDDHackr, and you've lost your UNDO.BIN, then don't be tempted to use one from another drive, even if it's the same model with identical firmware. You will probably brick your drive if you do.

Instead of undoing the hack, the solution is to hack your drive a second time, but this time using a hacked HDDSS.BIN file.

For example, here is the HDDSS.BIN file for a Hitachi 250GB drive:
http://digiex.net/attachments/downloads ... _250gb.zip

The header of this file contains Hitachi's firmware version, serial number, model number, and total capacity in LBAs. We will need to replace these data with WD's parameters.

The following article is my attempt to understand how HDDHackr works:
http://www.users.on.net/~fzabkar/HDD/Hd ... lysis.html

This is the section we need to modify:

Code: Select all

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  30 39 30 38 31 32 50 42 34 32 33 38 51 53 4A 47  090812PB4238QSJG
00000010  56 39 30 41 50 42 32 4F 43 36 34 47 48 69 74 61  V90APB2OC64GHita
00000020  63 68 69 20 48 54 53 35 34 35 30 32 35 42 39 53  chi HTS545025B9S
00000030  41 30 30 20 20 20 20 20 20 20 20 20 20 20 20 20  A00             
00000040  20 20 20 20 3B 0F D7 3F 82 77 FE 41 C6 F6 A2 5D 
00000050  FC 17 2C 17 7A D4 F8 D6 70 59 1C 1D .. .. .. ..

We need to replace the text strings as follows:

Code: Select all

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  53 65 72 69 61 6C 20 6E 75 6D 20 2B 20 73 70 61   Serial num + spa
00000010  63 65 73 20 46 69 72 6D 77 61 72 65 57 44 43 20   ces FirmwareWDC
00000020  57 44 36 34 30 30 42 45 56 54 2D 78 78 78 78 78   WD6400BEVT-xxxxx
00000030  78 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   x
00000040  20 20 20 20 3B 0F D7 3F 82 77 FE 41 C6 F6 A2 5D
00000050  FC 17 2C 17 7A D4 F8 D6 B0 82 85 4A .. .. .. ..

We could use a freeware hex editor such as HxD:
http://mh-nexus.de/en/hxd

The first 20 bytes at offsets 00 - 13 are the serial number padded with spaces (0x20).

The next 8 bytes at offsets 14 - 1B are the firmware version.

The next 40 bytes from offsets 1C to 43 are the model number padded with spaces.

The 4 bytes at offsets 58 - 5B are the total capacity of your WD drive in LBAs. This will be printed on the label, 1250263728. We need to convert this number into hexadecimal format. Google's calculator can do this for us:

http://www.google.com/search?q=1250263728+in+hex

The result is ...

1 250 263 728 = 0x4A8582B0

Now take the hexadecimal value and reverse the byte order so that the number is in "little endian" format, ie ...

B0 82 85 4A

Then enter the above numbers at offsets 58 - 5B.

Now use HDDHackr to apply the modified HDDSS.BIN to your drive. Power cycle the drive so that the changes can take effect.

fzabkar
Contributor
Contributor
Posts: 550
Joined: Tue Apr 16, 2013 9:28 am
Location: Australia

Wrong UNDO.BIN - where to find original

Postby fzabkar » Sun Jan 12, 2014 8:17 am

If you've applied the wrong UNDO.BIN file to your drive, and if you've bricked it as a result, then MOD 02 will have been overwritten with an incompatible version. In this case you can sometimes recover the original MOD 02 from a backup copy in MOD 802F. Just strip off the 512-byte header.

HyeVltg3
Registered User
Registered User
Posts: 1
Joined: Wed Jan 29, 2014 5:04 am

Re: HDDHackr - lost UNDO.BIN - how to restore capacity

Postby HyeVltg3 » Wed Jan 29, 2014 5:17 am

fzabkar

I uploaded a picture of the HDD I'm trying to reverse-Hack

Had this bad boy running for about a year and a half no problems, but lately I've had some freezing issues and in my efforts of trying to narrow it all down to what needs fixing, I landed on the HDD and realized I cant find the UNDO.BIN anywhere.

so far this is my "hacked" HDDSS320.Bin

Code: Select all

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  20 20 20 20 20 20 20 20 57 58 35 31 41 38 32 37             WX51A827
00000010  34 34 39 36 30 30 30 32 43 45 30 32 53 54 39 33  44960002CE02ST93
00000020  32 30 33 32 35 41 53 20 20 20 20 20 20 20 20 20  20325AS         
00000030  20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20               
00000040  20 20 20 20 3B 0F D7 3F 82 77 FE 41 C6 F6 A2 5D 
00000050  FC 17 2C 17 7A D4 F8 D6 B0 EA 42 25 0C AC D8 01


I cant really fill out most of the info as the Label doesnt shed light on the FW or LBAs (the othe info in the hex is just the default HDDSS320.bin)
What should I do, and are my spaces (0x20) used properly, this is my first time using HxD
Attachments
IMG_20140128_230113.jpg
WD HDD 320GB

evil_insinde
Registered User
Registered User
Posts: 1
Joined: Tue Jul 29, 2014 8:11 am

Re: HDDHackr - lost UNDO.BIN - how to restore capacity

Postby evil_insinde » Tue Jul 29, 2014 8:16 am

HyeVltg3 wrote:I cant really fill out most of the info as the Label doesnt shed light on the FW or LBAs (the othe info in the hex is just the default HDDSS320.bin)
What should I do, and are my spaces (0x20) used properly, this is my first time using HxD

Well, from info i have found for your HDD, seem ike the LBA is 625142448.

phelt54
NewUser
NewUser
Posts: 2
Joined: Sat Apr 25, 2015 6:40 am

Re: HDDHackr - lost UNDO.BIN - how to restore capacity

Postby phelt54 » Sat Apr 25, 2015 6:50 am

I just purchased the exact same drive. Do you have or know where I may acquire the HDDSS320.bin and undo.bin files for this specific drive? The drive is still unformatted, can I boot up MS DOS from the bootable MS DOS start up USB I recently created and copy the undo.bin file from the drive? Do I need the undo.bin file to be copied to the USB drive before running hdd hacker or will the program create the file when I run the program? Thanks.

fzabkar
Contributor
Contributor
Posts: 550
Joined: Tue Apr 16, 2013 9:28 am
Location: Australia

Re: HDDHackr - lost UNDO.BIN - how to restore capacity

Postby fzabkar » Sun Apr 26, 2015 3:26 am

The UNDO.BIN file is created during the original hack. You will need this file if you ever wish to restore the drive to its original factory condition. Do not use an UNDO.BIN from a different drive, even if it is the same model.

Here is an HDDSS320.bin file:

http://web.archive.org/web/201503170816 ... dss320.zip

phelt54
NewUser
NewUser
Posts: 2
Joined: Sat Apr 25, 2015 6:40 am

Re: HDDHackr - lost UNDO.BIN - how to restore capacity

Postby phelt54 » Wed Apr 29, 2015 6:35 am

Thanks for answering my previous question. Can you please help me with the following concerns? This is my first attempt. The instructions suggest dumping the hddss.bin file first as a test to see if it'll write to the drive. I created a MS DOS startup disk on a USB. I loaded the hddhackr.exe and HDDSS320.bin file onto the USB. I have a brand new unformatted WD3200BEKT-00PVMT0 drive. What do you think of the following procedure? Create partition using DOS first. Then, run hddhackr to dump the files. If successful, boot DOS again to delete the partition. Then, run hddhackr to create partitions 0, 2 and 3. Then, run hddhackr to flash the drive. Then load hard disc into 360 to format each partition. Finally, connect drive to a PC and use xplorer360 to load the partion 2 bin files to make compatible with original xbox games.

fzabkar
Contributor
Contributor
Posts: 550
Joined: Tue Apr 16, 2013 9:28 am
Location: Australia

Re: HDDHackr - lost UNDO.BIN - how to restore capacity

Postby fzabkar » Fri May 01, 2015 8:17 pm

@phelt54, ISTM that you are trying to modify a WD drive for use in an Xbox rather than restoring an already modified drive to its original condition. This tutorial deals with the latter. The use of HDDHackr is best explained at sites like digiex.net.


Return to “Western Digital”

Who is online

Users browsing this forum: No registered users and 1 guest

cron