2017-01-18
Raspberry Pi MBR - Partition Expansion
* SD Card is SanDisk 16GB
* Before Expansion (linux partition is about 9GB)
$ hexdump -C t20r18-mbr-20161031.img
00000000 fa b8 00 10 8e d0 bc 00 b0 b8 00 00 8e d8 8e c0 |................|
00000010 fb be 00 7c bf 00 06 b9 00 02 f3 a4 ea 21 06 00 |...|.........!..|
00000020 00 be be 07 38 04 75 0b 83 c6 10 81 fe fe 07 75 |....8.u........u|
00000030 f3 eb 16 b4 02 b0 01 bb 00 7c b2 80 8a 74 01 8b |.........|...t..|
00000040 4c 02 cd 13 ea 00 7c 00 00 eb fe 00 00 00 00 00 |L.....|.........|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 00 00 00 00 00 00 00 00 1f da 06 00 00 00 00 82 |................|
000001c0 03 00 0c 28 20 08 00 20 00 00 00 e0 01 00 00 00 |...( .. ........|
000001d0 01 00 83 fe ff ff 00 00 02 00 00 00 fa 00 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000400
* After Expansion (linux partition is about 15GB)
$ hexdump -C sd_fixed.img
00000000 fa b8 00 10 8e d0 bc 00 b0 b8 00 00 8e d8 8e c0 |................|
00000010 fb be 00 7c bf 00 06 b9 00 02 f3 a4 ea 21 06 00 |...|.........!..|
00000020 00 be be 07 38 04 75 0b 83 c6 10 81 fe fe 07 75 |....8.u........u|
00000030 f3 eb 16 b4 02 b0 01 bb 00 7c b2 80 8a 74 01 8b |.........|...t..|
00000040 4c 02 cd 13 ea 00 7c 00 00 eb fe 00 00 00 00 00 |L.....|.........|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 00 00 00 00 00 00 00 00 1f da 06 00 00 00 00 82 |................|
000001c0 03 00 0c 28 20 08 00 20 00 00 00 e0 01 00 00 00 |...( .. ........|
000001d0 01 00 83 03 d0 2f 00 00 02 00 00 cc d8 01 00 00 |...../..........|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000400
* Analysis
- 0x01ce | Status | Value 0x00 => Valid (0x00 or 0x80)
- 0x01cf | Head | Value 0x00
- 0x01d0 | Sector | Value 0x01
- 0x01d1 | Cylinder | Value 0x00
- 0x01d2 | Partition Type | Value 0x83 => Linux
=================== below values are different =====================
- 0x01d3 | Head | Value 0x03
- 0x01d4 | Sector | Value 0xd0
- 0x01d5 | Cylinder | Value 0x2f
- 0x01d6 ~ 0x01d9 : LBA of first absolute sector in the partition
- 0x01da ~ 0x01dd : Number of sectors in partition
Labels:
Linux
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment