aboutsummaryrefslogtreecommitdiffstats
path: root/diag/mbr/README
blob: fb7a7dd820b4e991faa3535872a59d8a18c4e534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Diagnostic MBR/VBR files

handoff.bin	Show the data that the BIOS/MBR hands off to an MBR/VBR.


  +++ USAGE +++

Writing out an MBR is straight forward (it is assumed below that /dev/hda is the target raw device and /dev/hda1 is the target partition):

  dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/hda

Writing a VBR to match Syslinux requires more work as it must have a jump and be offset into the partition:

  echo -en "\0353\0130\0220" |dd conv=notrunc bs=1 count=3 of=/dev/hda1
  dd conv=notrunc bs=2 count=210 seek=45 if=mbr.bin of=/dev/hda1