[HTC Desire 526] BigCountry907:
Decoding the GPT.

So now that we have the GPT Partition table cloned as a RAW Image we have to translate the data.

After all were trying to make the Partition.xml file Right???

There are a few tools out there to do this job. Lets Take a look at the ones that somewhat work.

The first one comes from this site with some other good tools too.

http://www.garykessler.net/software/

Download this tool.

gptparser (v1.4beta, 3/14/2013) parses a GUID Partition Table (GPT) header

Then execute these commands in a shell to add this to our project.

cp -rf ~/Downloads/gptparser_v1.4beta.zip ~/Desktop/526-Completed/Get-GPT_Info/gptparser_v1.4beta/gptparser_v1.4beta.zip
unzip ~/Desktop/526-Completed/Get-GPT_Info/gptparser_v1.4beta/gptparser_v1.4beta.zip -d ~/Desktop/526-Completed/Get-GPT_Info/gptparser_v1.4beta/

Ok now lets use it. You need to have perl installed.

GPT Table from EMMC Backup

cd ~/Desktop/526-Completed/Get-GPT_Info/gptparser_v1.4beta/
perl gptparser.pl -i ~/Desktop/526-Completed/Get-GPT_Info/526-EMMC-GPT.bin

GPT Table from RUU

cd ~/Desktop/526-Completed/Get-GPT_Info/gptparser_v1.4beta/
perl gptparser.pl -i ~/Desktop/526-Completed/Get-GPT_Info/gpt_main_8g.img

Here is what that output looks like.

bigcountry907@bigcountry907-G551JW:~/Desktop/526-Completed/Get-GPT_Info/gptparser_v1.4beta$ perl gptparser.pl -i ~/Desktop/526-Completed/Get-GPT_Info/526-EMMC-GPT.bin

GPT Parser V1.4 beta - Gary C. Kessler (14 March 2013)

Source file = /home/bigcountry907/Desktop/526-Completed/Get-GPT_Info/526-EMMC-GPT.bin
Input file length = 17407 bytes.

***** LBA 0: Protective/Legacy MBR *****

000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
064: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
096: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
112: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
128: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
144: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
176: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
192: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
208: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
224: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
256: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
272: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
288: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
304: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
336: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
352: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
368: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
384: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
416: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
432: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
448: 01 00 EE FF FF FF 01 00 00 00 FF FF FF FF 00 00 ..îÿÿÿ....ÿÿÿÿ..
464: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
496: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..............

510-511 Signature: 0x55-AA [valid]

***** LBA 1: Partition Table Header *****

000-007 Partition signature: 0x45-46-49-20-50-41-52-54 [EFI PART] (Valid signature)
008-011 Version number: 0x00-00-01-00 [v 1.0]
012-015 Header size: 0x5C-00-00-00 [92 bytes]
016-019 Header CRC32: 0xAC-B0-57-DE
020-023 (Reserved): 0x00-00-00-00
024-031 Primary GPT LBA: 0x01-00-00-00-00-00-00-00 [1]
032-039 Backup GPT LBA: 0xFF-EF-D1-01-00-00-00-00 [30,535,679]
040-047 First usable LBA: 0x22-00-00-00-00-00-00-00 [34]
048-055 Last useable LBA: 0xFF-CF-E6-00-00-00-00-00 [15,126,527]
056-071 Disk GUID: 0x32-1B-10-98-E2-BB-F2-4B-A0-6E-2B-B3-3D-00-0C-20
GUID: 98101B32-BBE2-4BF2-A06E-2BB33D000C20
072-079 Partition entries LBA: 0x02-00-00-00-00-00-00-00 [2]
080-083 Number of partition entries: 0x44-00-00-00 [68]
084-087 Partition entry size: 0x80-00-00-00 [128 bytes]
088-091 Partition array CRC32: 0xA1-E9-22-37
092-511 Reserved section:
092: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
108: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
124: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
156: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
172: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
188: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
204: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
236: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
252: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
268: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
284: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
316: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
332: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
348: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
364: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
396: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
412: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
428: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
444: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
476: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
492: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
508: 00 00 00 00 ....

***** LBA 2-33: Partition Tables *****

=== Partition Table #1 (LBA 2, bytes 0:127) ===
000-015 Partition type GUID: 0xB6-D5-96-76-FD-43-64-46-A2-28-C5-63-C4-A1-E8-CC
GUID: 7696D5B6-43FD-4664-A228-C563C4A1E8CC
Type: (Not listed)
016-031 Partition GUID: 0x01-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
GUID: 00000001-0000-0000-0000-000000000000
032-039 First LBA: 0x22-00-00-00-00-00-00-00 [34]
040-047 Last LBA: 0x41-00-00-00-00-00-00-00 [65]
048-055 Partition attributes: 0x00-00-00-00-00-00-00-00
056-127 Partition name --
056: 62 00 6F 00 61 00 72 00 64 00 5F 00 69 00 6E 00 b.o.a.r.d._.i.n.
072: 66 00 6F 00 00 00 00 00 00 00 00 00 00 00 00 00 f.o.............
088: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
104: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
120: 00 00 00 00 00 00 00 00 ........
Name: board_info

=== Partition Table #2 (LBA 2, bytes 128:255) ===
128-143 Partition type GUID: 0xC0-BC-44-26-6A-F3-92-47-95-33-17-38-BE-D5-3E-E3
GUID: 2644BCC0-F36A-4792-9533-1738BED53EE3
Type: (Not listed)
144-159 Partition GUID: 0x02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
GUID: 00000002-0000-0000-0000-000000000000
160-167 First LBA: 0x42-00-00-00-00-00-00-00 [66]
168-175 Last LBA: 0x41-20-00-00-00-00-00-00 [8,257]
176-183 Partition attributes: 0x00-00-00-00-00-00-00-00
184-255 Partition name --
184: 70 00 67 00 31 00 66 00 73 00 00 00 00 00 00 00 p.g.1.f.s.......
200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
216: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
232: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
248: 00 00 00 00 00 00 00 00 ........
Name: pg1fs

=== Partition Table #3 (LBA 2, bytes 256:383) ===
256-271 Partition type GUID: 0x2C-BA-A0-DE-DD-CB-05-48-B4-F9-F4-28-25-1C-3E-98
GUID: DEA0BA2C-CBDD-4805-B4F9-F428251C3E98
Type: (Not listed)
272-287 Partition GUID: 0x03-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
GUID: 00000003-0000-0000-0000-000000000000
288-295 First LBA: 0x42-20-00-00-00-00-00-00 [8,258]
296-303 Last LBA: 0x41-28-00-00-00-00-00-00 [10,305]
304-311 Partition attributes: 0x00-00-00-00-00-00-00-00
312-383 Partition name --
312: 73 00 62 00 6C 00 31 00 00 00 00 00 00 00 00 00 s.b.l.1.........
328: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
344: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
376: 00 00 00 00 00 00 00 00 ........
Name: sbl1

[COLOR="Red"][SIZE="5"]THIS SECTON CLIPPED TO SAVE SPACE ON FORUM[/SIZE][/COLOR]

=== Partition Table #66 (LBA 18, bytes 128:255) ===
Partition table entry is zero-filled

=== Partition Table #67 (LBA 18, bytes 256:383) ===
Partition table entry is zero-filled

=== Partition Table #68 (LBA 18, bytes 384:511) ===
Partition table entry is zero-filled

Done!

That is a lot of data.

But all the information to make the partition.xml is there.

Are we done yet????? Not even close.