From: Eric Bohn <bsee_1991@yahoo.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: dual boot: XP installed last?
Date: Wed, 1 Nov 2006 13:25:23 -0800 (PST) [thread overview]
Message-ID: <20061101212523.72865.qmail@web52608.mail.yahoo.com> (raw)
You can also backup and and restore the MBR using the Linux dd program available on the Gentoo LiveCD.
>From http://www.inference.phy.cam.ac.uk/saw27/notes/backup-hard-disk-partitions.html :
dd if=/dev/hda of=backup-of-hda-mbr count=1 bs=512
This stores the first 512 bytes of the disk (contianing the MBR and the primary partition info - i.e. the first four primary entries) into the file "bcakup-of-hda-mbr" which you can then copy to somewhere safe.
To restore (be careful - this could destroy your existing partition table and with it access to all data on the disk):
dd if=backup-of-hda-mbr of=/dev/hda
If you only want to restore the actual MBR code and not the primary partition table entires, just restore the first 446 bytes: dd of=/dev/hda if=backup-of-hda-mbr bs=446 count=1. (Those first 512 bytes are 446 bytes of MBR, then 64 bytes of primary partition table).
--
gentoo-user@gentoo.org mailing list
next reply other threads:[~2006-11-01 21:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-01 21:25 Eric Bohn [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-10-30 14:55 [gentoo-user] dual boot: XP installed last? James
2006-10-30 15:17 ` Allan Spagnol Comar
2006-10-30 16:11 ` [gentoo-user] " james
2006-10-30 16:48 ` Alan McKinnon
2006-10-30 16:49 ` Neil Bothwick
2006-10-30 21:57 ` James
2006-11-01 17:53 ` Mark Shields
2006-10-31 18:05 ` Régis Décamps
2006-11-01 19:28 ` Mick
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=20061101212523.72865.qmail@web52608.mail.yahoo.com \
--to=bsee_1991@yahoo.com \
--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