public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] Re: dual boot: XP installed last?
  @ 2006-11-01 17:53 99%         ` Mark Shields
  0 siblings, 0 replies; 1+ results
From: Mark Shields @ 2006-11-01 17:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1887 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
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:49         ` Neil Bothwick
2006-10-30 21:57           ` James
2006-11-01 17:53 99%         ` Mark Shields

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