public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  dual boot: XP installed last?
@ 2006-10-30 14:55 James
  2006-10-30 15:17 ` Allan Spagnol Comar
  0 siblings, 1 reply; 10+ messages in thread
From: James @ 2006-10-30 14:55 UTC (permalink / raw
  To: gentoo-user

Hello,

Usually when installing a portable, I leeave the windows and resize the disk
space to set up gentoo as the second OS with grub......


On one portable, The windows XP was a pain so I nuked it and got gentoo
working first.  Now I need to install XP on the portable, but do not
wish XP to rewrite he MBR or any other such nefarious acts against the
gentoo partitions.

Any suggestions as to best methods are most appreciated. Heres the part info:
/dev/hda2        /boot   reiserfs        defaults        1 2
/dev/hda5        none    swap            sw              0 0
/dev/hda6        /       reiserfs        defaults        0 1
/dev/hda7     /usr/local reiserfs        defaults        0 1


hda1 is reserved for XP

Here's the portion of grub.conf already set up for gentoo & XP:

title= Linux 2.6.17-gentoo-r8
root(hd0,1)
kernel /boot/kernel-2.6.17-gentoo-r8 root=/dev/hda6

title=Possible Windows P1
rootnoverify (hd0,0)
makeactive
chainloader +1

So I thinking after installing XP in the first partition,
all I have to do is execute/copy something to set up 
the MBR so it sees grub.conf again, whilst XP is booted
up?


suggestions?

James




I thinking I just need to copy this 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: dual boot: XP installed last?
@ 2006-11-01 21:25 Eric Bohn
  0 siblings, 0 replies; 10+ messages in thread
From: Eric Bohn @ 2006-11-01 21:25 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-11-01 21:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2006-11-01 21:25 Eric Bohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox