View previous topic :: View next topic |
Author |
Message |
Cuchulainn Tux's lil' helper
Joined: 10 Apr 2003 Posts: 107
|
Posted: Wed Aug 13, 2003 3:33 pm Post subject: grub problem after reinstalling WinXP |
|
|
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 |
|
|
chardros Tux's lil' helper
Joined: 18 Apr 2002 Posts: 136 Location: Andromeda
|
Posted: Wed Aug 13, 2003 3:49 pm Post subject: |
|
|
What you want is:
root(hd0,4)
setup(hd0) |
|
Back to top |
|
|
To Veteran
Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Wed Aug 13, 2003 3:55 pm Post subject: |
|
|
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
Tó _________________
------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------ |
|
Back to top |
|
|
Cuchulainn Tux's lil' helper
Joined: 10 Apr 2003 Posts: 107
|
Posted: Wed Aug 13, 2003 4:12 pm Post subject: |
|
|
Thanks for the quick help! setup (hd0) did the trick!
Cheers, Cuchu |
|
Back to top |
|
|
|
|
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
|
|