1 |
Bastian Balthazar Bux wrote: |
2 |
|
3 |
> |
4 |
> Device Boot Start End Blocks Id System |
5 |
>/dev/hda1 * 63 979964 489951 83 Linux |
6 |
>#Command (m for help): q |
7 |
> |
8 |
>##dd if=/dev/hda of=MBR-boot.backup bs=512 count=489951 |
9 |
> |
10 |
> |
11 |
|
12 |
You missed a few! :-) |
13 |
|
14 |
The actual number of 512-byte blocks is 979964 - 63 + 1 = 979902. |
15 |
|
16 |
Fdisk always reports 1k blocks in the "Blocks" column. Or if an odd |
17 |
number of 512-byte blocks, the number of 1k blocks with a '+' afterwards. |
18 |
|
19 |
Plus, you want the mbr as well, plus whatever is between blocks 0 and |
20 |
63, so better option might be: |
21 |
|
22 |
dd if=/dev/hda of=parttbl+mbr+boot.backup bs=512 count=979965 |
23 |
|
24 |
|
25 |
-Richard |
26 |
|
27 |
-- |
28 |
gentoo-user@g.o mailing list |