public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Bastian Balthazar Bux <BastianBalthazarBux@pnpitalia.it>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] backup & restore solution?
Date: Sun, 31 Jul 2005 20:58:30 +0200	[thread overview]
Message-ID: <42ED1F56.2030302@pnpitalia.it> (raw)
In-Reply-To: <42ED1B02.9020408@asmallpond.org>

Richard Fish wrote:
> 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:

yay, crossing eyes: s/so better option might be/the right option is/

> 
> dd if=/dev/hda of=parttbl+mbr+boot.backup bs=512 count=979965
> 
> 
> -Richard
> 
Otherwise you can simply read the value under "End" (+1) instead of the
one under "Blocks" ;)

-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2005-07-31 19:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-30 17:24 [gentoo-user] backup & restore solution? Jarry
2005-07-30 17:58 ` Chris Cox
2005-07-31 17:41   ` [gentoo-user] " James
2005-07-30 18:14 ` [gentoo-user] " Neil Bothwick
2005-07-31 11:48 ` Richard Fish
2005-07-31 14:12   ` Jarry
2005-07-31 15:12     ` Richard Fish
2005-07-31 18:08       ` Bastian Balthazar Bux
2005-07-31 18:40         ` Richard Fish
2005-07-31 18:58           ` Bastian Balthazar Bux [this message]
2005-07-31 20:29   ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42ED1F56.2030302@pnpitalia.it \
    --to=bastianbalthazarbux@pnpitalia.it \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox