Bastian Balthazar Bux wrote:


  Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *          63      979964      489951   83  Linux
#Command (m for help): q

##dd if=/dev/hda of=MBR-boot.backup bs=512 count=489951

You missed a few! :-)

The actual number of 512-byte blocks is 979964 - 63 + 1 = 979902.

Fdisk always reports 1k blocks in the "Blocks" column. Or if an odd number of 512-byte blocks, the number of 1k blocks with a '+' afterwards.

Plus, you want the mbr as well, plus whatever is between blocks 0 and 63, so better option might be:

dd if=/dev/hda of=parttbl+mbr+boot.backup bs=512 count=979965


-Richard

--
[email protected] mailing list

Reply via email to