I'd like to verify that core.img
lies between the MBR and the start of my first partition, /dev/sda1
.
Using
sudo dd bs=512 if=/dev/sda skip=512 count=1540 | hexdump -C
I can see /sda1
referenced:
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000c0400 00 e0 3f 00 00 1a ff 00 4c c1 0c 00 96 a3 21 00 |..?.....L.....!.|
000c0410 ed d7 3f 00 00 00 00 00 02 00 00 00 02 00 00 00 |..?.............|
000c0420 00 80 00 00 00 80 00 00 00 20 00 00 12 11 ac 5e |......... .....^|
000c0430 70 30 ac 5e 47 00 ff ff 53 ef 01 00 01 00 00 00 |p0.^G...S.......|
000c0440 a6 15 01 5c 00 00 00 00 00 00 00 00 01 00 00 00 |...\............|
000c0450 00 00 00 00 0b 00 00 00 00 01 00 00 3c 00 00 00 |............<...|
000c0460 42 02 00 00 6b 04 00 00 e6 59 c6 2c f6 f1 4e 6f |B...k....Y.,..No|
000c0470 b4 c4 ea 0f 76 73 e4 46 00 00 00 00 00 00 00 00 |....vs.F........|
000c0480 00 00 00 00 00 00 00 00 2f 73 64 61 31 00 00 00 |......../sda1...|
000c0490 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000c04c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc 03 |................|
000c04d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000c04e0 08 00 00 00 00 00 00 00 00 00 00 00 b0 a3 c5 a6 |................|
000c04f0 c6 67 43 54 92 58 c9 42 d2 f9 21 0d 01 01 00 00 |.gCT.X.B..!.....|
000c0500 0c 00 00 00 00 00 00 00 a6 15 01 5c 0a f3 02 00 |...........\....|
000c0510 04 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 |................|
000c0520 00 80 78 00 00 80 00 00 00 80 00 00 00 00 79 00 |..x...........y.|
000c0530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000c0540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 |................|
000c0550 00 00 00 00 00 00 00 00 00 00 00 00 20 00 20 00 |............ . .|
000c0560 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000c0570 00 00 00 00 04 01 00 00 a7 53 a4 1f 00 00 00 00 |.........S......|
000c0580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000c07f0 00 00 00 00 00 00 00 00 00 00 00 00 79 1d 94 d7 |............y...|
000c0800
Is this part of core.img
?
I was hoping for a magic number like MBR's 55 aa
but couldn't find a mention whether core.img
has that.
I'm using GRUB 2.02, uname -m
gives x86_64.
bs=512
and thenskip=512
, so what you've dumped actually starts 512 blocks after the beginning of the disk, and covers 1540 / 2 = 770 KiB from there. You wantdd bs=512 if=/dev/sda skip=1 count=600 | hexdump -C
or similar.