Last change
on this file was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
713 bytes
|
Rev | Line | |
---|
[e16e8f2] | 1 | Diagnostic MBR/VBR files |
---|
| 2 | |
---|
| 3 | handoff.bin Show the data that the BIOS/MBR hands off to an MBR/VBR. |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | +++ USAGE +++ |
---|
| 7 | |
---|
| 8 | NOTE: in the examples, mbr.bin, /dev/hda and /dev/hda1 are used as generic representations. |
---|
| 9 | |
---|
| 10 | 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): |
---|
| 11 | |
---|
| 12 | dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/hda |
---|
| 13 | |
---|
| 14 | Writing a VBR to match Syslinux requires more work as it must have a jump and be offset into the partition (and as a result the code must be compatible with this offset): |
---|
| 15 | |
---|
| 16 | echo -en "\0353\0130\0220" |dd conv=notrunc bs=1 count=3 of=/dev/hda1 |
---|
| 17 | dd conv=notrunc bs=2 count=210 seek=45 if=mbr.bin of=/dev/hda1 |
---|
Note: See
TracBrowser
for help on using the repository browser.