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.60) (envelope-from ) id 1GfKRH-0002vl-RQ for garchives@archives.gentoo.org; Wed, 01 Nov 2006 18:03:48 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kA1Hwvea006139; Wed, 1 Nov 2006 17:58:57 GMT Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.193]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kA1Hrfht022015 for ; Wed, 1 Nov 2006 17:53:41 GMT Received: by nz-out-0102.google.com with SMTP id 9so2624051nzo for ; Wed, 01 Nov 2006 09:53:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gQFUxYTrvwvbPU8DTznEN73qfzcqo178Ry6awigBkAv43B21oIEU6A7Xg22SrEzRS92YFg/tXBk/jrWXPTN6jl4ghnoKk6atMvPWMH2OBDsMYkDg+7wKxjoLsjtgCX/mzkrzBnbqD2q0xnOocGx7FC5NSOl8ydmeRtU9Pu6psMs= Received: by 10.64.253.12 with SMTP id a12mr9346890qbi; Wed, 01 Nov 2006 09:53:31 -0800 (PST) Received: by 10.65.218.13 with HTTP; Wed, 1 Nov 2006 09:53:30 -0800 (PST) Message-ID: <642958cc0611010953r6e4d2ealf7c6212209c4e9c9@mail.gmail.com> Date: Wed, 1 Nov 2006 12:53:31 -0500 From: "Mark Shields" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: dual boot: XP installed last? In-Reply-To: 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 Content-Type: multipart/alternative; boundary="----=_Part_24980_3991446.1162403611065" References: <1cc2dc830610300717k46316e15h22ff4d36eda2d0d@mail.gmail.com> <20061030164914.0f0fbe37@krikkit.digimed.co.uk> X-Archives-Salt: 23f58b1a-bd2a-41a2-a7f2-fa1e0153d7bc X-Archives-Hash: 9f5845ce6800a3002ddc6df1a02af3b4 ------=_Part_24980_3991446.1162403611065 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/30/06, James wrote: > > Neil Bothwick digimed.co.uk> writes: > > > > If I install XP in the partition and it writes over the MBR, > > > then, upon reboot, how do I get to grub.conf so I have the > > > option to reboot the gentoo, then run grub setup? > > > Run it from the live CD. > > > Ok here's what I did in case anyone else has to do this: > > Booted up ran a terminal session, when root and issued: > > > grub-install /dev/hda > > so I mounted : mkdir /mnt/boot > mount /dev/hda2 > grub-install /dev/hda > > grub-install /mnt/dev/hda2 > > grub /mnt/dev/hda2 '> > grub> root (hd0,1) > grub> setup (hd0) > grub> quit > > > reboot Works great! > > Thanks Neil.... > > > James > > > > -- > gentoo-user@gentoo.org mailing list > > Just so you know, it's possible to do a grub-install with just a minimal cd, provided your existing gentoo environment works: mount /dev/rootpart /mnt/gentoo mount /dev/bootpart /mnt/gentoo/boot mount -t proc none /mnt/gentoo/proc mount -o bind /dev /mnt/gentoo/dev chroot /mnt/gentoo /bin/bash env-update && source /etc/profile grep -v rootfs /proc/mounts > /etc/mtab grub-install /dev/hda (or whatever your hdd is called) -- - Mark Shields ------=_Part_24980_3991446.1162403611065 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/30/06, James <wireless@tampabay.rr.com> wrote:
Neil Bothwick <neil <at> digimed.co.uk> writes:

> > If I install XP in the partition and it writes over the MBR,
> > then, upon reboot, how do I get to grub.conf so I have the
> > option to reboot the gentoo, then run grub setup?

> Run it from the live CD.


Ok here's what I did in case anyone else has to do this:

Booted up ran a terminal session, when root and issued:


grub-install /dev/hda  <did not work>

so I mounted :   mkdir /mnt/boot
mount /dev/hda2
grub-install /dev/hda   <did not work>

grub-install /mnt/dev/hda2 <did did not work>

grub /mnt/dev/hda2   <throws me into 'grub>'>
grub> root (hd0,1)
grub> setup (hd0)
grub> quit


reboot Works great!

Thanks Neil....


James



--
gentoo-user@gentoo.org mailing list


Just so you know, it's possible to do a grub-install with just a minimal cd, provided your existing gentoo environment works:

mount /dev/rootpart /mnt/gentoo
mount /dev/bootpart /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile
grep -v rootfs /proc/mounts > /etc/mtab
grub-install /dev/hda (or whatever your hdd is called)


--
- Mark Shields ------=_Part_24980_3991446.1162403611065-- -- gentoo-user@gentoo.org mailing list