Gentoo Archives: gentoo-user

From: Bastian Balthazar Bux <BastianBalthazarBux@×××××××××.it>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] backup & restore solution?
Date: Sun, 31 Jul 2005 19:02:58
Message-Id: 42ED1F56.2030302@pnpitalia.it
In Reply to: Re: [gentoo-user] backup & restore solution? by Richard Fish
1 Richard Fish wrote:
2 > Bastian Balthazar Bux wrote:
3 >
4 >>
5 >> Device Boot Start End Blocks Id System
6 >> /dev/hda1 * 63 979964 489951 83 Linux
7 >> #Command (m for help): q
8 >>
9 >> ##dd if=/dev/hda of=MBR-boot.backup bs=512 count=489951
10 >>
11 >>
12 >
13 > You missed a few! :-)
14 >
15 > The actual number of 512-byte blocks is 979964 - 63 + 1 = 979902.
16 >
17 > Fdisk always reports 1k blocks in the "Blocks" column. Or if an odd
18 > number of 512-byte blocks, the number of 1k blocks with a '+' afterwards.
19 >
20 > Plus, you want the mbr as well, plus whatever is between blocks 0 and
21 > 63, so better option might be:
22
23 yay, crossing eyes: s/so better option might be/the right option is/
24
25 >
26 > dd if=/dev/hda of=parttbl+mbr+boot.backup bs=512 count=979965
27 >
28 >
29 > -Richard
30 >
31 Otherwise you can simply read the value under "End" (+1) instead of the
32 one under "Blocks" ;)
33
34 --
35 gentoo-user@g.o mailing list