aboutsummaryrefslogtreecommitdiffstats
path: root/diag
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2012-05-27 14:13:05 -0400
committerGene Cumm <gene.cumm@gmail.com>2012-05-27 14:13:05 -0400
commit01f71dbc735e9c75cdc56c4d706824e30076e65f (patch)
treee31b563382a72938991d62db5731ca345667318c /diag
parent28e6e7abceb63d8de87f16150d16cd5f5f72c64c (diff)
downloadsyslinux-01f71dbc735e9c75cdc56c4d706824e30076e65f.tar.gz
syslinux-01f71dbc735e9c75cdc56c4d706824e30076e65f.tar.xz
syslinux-01f71dbc735e9c75cdc56c4d706824e30076e65f.zip
diag/mbr: Clarify README
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'diag')
-rw-r--r--diag/mbr/README4
1 files changed, 3 insertions, 1 deletions
diff --git a/diag/mbr/README b/diag/mbr/README
index fb7a7dd8..96b67c6c 100644
--- a/diag/mbr/README
+++ b/diag/mbr/README
@@ -5,11 +5,13 @@ handoff.bin Show the data that the BIOS/MBR hands off to an MBR/VBR.
+++ USAGE +++
+NOTE: in the examples, mbr.bin, /dev/hda and /dev/hda1 are used as generic representations.
+
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:
+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 compaible with this offset):
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