From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DzInQ-0004qz-PS for garchives@archives.gentoo.org; Sun, 31 Jul 2005 18:44:25 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6VIhYLY005602; Sun, 31 Jul 2005 18:43:34 GMT Received: from smtp106.mail.sc5.yahoo.com (smtp106.mail.sc5.yahoo.com [66.163.169.226]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6VIe2L2031444 for ; Sun, 31 Jul 2005 18:40:03 GMT Received: (qmail 76323 invoked from network); 31 Jul 2005 18:40:04 -0000 Received: from unknown (HELO ?192.168.50.105?) (richard?j?fish@212.180.33.26 with plain) by smtp106.mail.sc5.yahoo.com with SMTP; 31 Jul 2005 18:40:03 -0000 Message-ID: <42ED1B02.9020408@asmallpond.org> Date: Sun, 31 Jul 2005 20:40:02 +0200 From: Richard Fish User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050723) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] backup & restore solution? References: <42EBB7B6.2010301@gmx.net> <42ECBA79.2030309@asmallpond.org> <42ECDC4B.8020200@gmx.net> <42ECEA63.1040004@asmallpond.org> <42ED1387.3070904@pnpitalia.it> In-Reply-To: <42ED1387.3070904@pnpitalia.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 3becaead-b81c-4d44-8095-ac67a36a9c04 X-Archives-Hash: 7a05701205cc18b4c582c48ff3e6a704 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 -- gentoo-user@gentoo.org mailing list