Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub problem after reinstalling WinXP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Cuchulainn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2003
Posts: 107

PostPosted: Wed Aug 13, 2003 3:33 pm    Post subject: grub problem after reinstalling WinXP Reply with quote

I recently reinstalled windowsxp, and the mbr got overwritten by the installation. I have fixed this a couple of times before, by using the live-cd (version 1.4), mounting everything, then do a chroot, and reinstall grub again, but i cannot get it to work this time. My partitions are as follows:

hda1 = winxp
hda2 = ext.partition
hda5 = gentoo boot partition
hda6 = swap
hda7 = gentoo root partition

I get the following errors:
when i type:
root (hd0)
setup (hd0,4)
it says, cannot mount partition

If i try
root (hd0,4)
setup (hd0,4)
it cannot embed stage 1.5. It says not-fatal, but after rebooting i just get windows xp.

If i try
root (hd0,0)
setup (hd0,4)
i get cannot mount partition again.

Any ideas how to solve this?

Cheers, Cuchu
Back to top
View user's profile Send private message
chardros
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 136
Location: Andromeda

PostPosted: Wed Aug 13, 2003 3:49 pm    Post subject: Reply with quote

What you want is:

root(hd0,4)
setup(hd0)
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Wed Aug 13, 2003 3:55 pm    Post subject: Reply with quote

Has it is on the manual and like I did in my workstation and for some friends:
Code:

grub> root (hd0,4) (Your boot partition)
grub> setup (hd0) (Where the boot record is installed; here, it is the MBR)

This way Grub is loaded first than any windows loader.

Anyway take a look at the install guide http://www.gentoo.org/doc/en/gentoo-x86-install.xml


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
Cuchulainn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2003
Posts: 107

PostPosted: Wed Aug 13, 2003 4:12 pm    Post subject: Reply with quote

Thanks for the quick help! setup (hd0) did the trick!

Cheers, Cuchu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum