At 2004-09-08T08:27:35+1200, John Blance wrote:

> The 512 byte MBR is
> 446 bytes of bootloader
> bytes 447+ are the partition table

Ah, thanks... your post made me double check my figures, and it turns
out I had forgotten about the disk signature.  The layout is:

0x0000 - Boot code (446 bytes)
0x01BE - Partition table (4 * 16 = 64 bytes)
0x01FE - Disk signature (2 bytes)

You only want to back up and restore the first 446 bytes, but the disk
signature _must_ be valid for the boot sector to be used.

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to