Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] backup & restore solution?
Date: Sun, 31 Jul 2005 18:44:25
Message-Id: 42ED1B02.9020408@asmallpond.org
In Reply to: Re: [gentoo-user] backup & restore solution? by Bastian Balthazar Bux
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

Replies

Subject Author
Re: [gentoo-user] backup & restore solution? Bastian Balthazar Bux <BastianBalthazarBux@×××××××××.it>