View previous topic :: View next topic |
Author |
Message |
bleakcabal Guru
Joined: 10 Oct 2002 Posts: 301 Location: Montreal, Québec, Canada
|
Posted: Wed May 25, 2005 6:37 pm Post subject: Dual boot machine, grub won't start, boot right into windows |
|
|
Hi, I have a machine that had a window installation. I installed Gentoo, the first time I booted it said windows did not shut down properly due a hardware problem and it started in window right thru. Now it just starts windows no grub.
I have the following partitions :
/hda1 Windows install ( primary boot )
/hda2 Boot partition ( logical )
/hda3 Swap partition ( logical )
/hda4 Root partition ( logical )
When I installed Grub, I did
root (hd0,1)
setup (hd0,1)
quit
And my grub.conf goes something like this :
[...]
title=Gentoo Linux
root (hd0,1)
[...]
title=Windows
root (hd0,0)
chainloader (hd0,0)+1 |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Wed May 25, 2005 6:47 pm Post subject: |
|
|
Code: | root (hd0,1)
setup (hd0,1)
quit |
You installed grub in the second partition of your harddisk instead of the mbr.
Try setup (hd0) instead _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
MickKi Veteran
Joined: 08 Feb 2004 Posts: 1173
|
Posted: Wed May 25, 2005 7:13 pm Post subject: |
|
|
. . . and under NO circumstances should you be tempted to try setup (hd0,0) because that will wipe your WinXP partition boot sector with Grub's files and WinXP will never, ever boot again (short of a re-install). _________________ Regards,
Mick |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Wed May 25, 2005 7:30 pm Post subject: |
|
|
MickKi wrote: | . . . and under NO circumstances should you be tempted to try setup (hd0,0) because that will wipe your WinXP partition boot sector with Grub's files and WinXP will never, ever boot again (short of a re-install). | Actually, that's not true, but it is a bit of a bother to fix things after such a mistake. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
MickKi Veteran
Joined: 08 Feb 2004 Posts: 1173
|
Posted: Wed May 25, 2005 9:39 pm Post subject: |
|
|
nixnut wrote: | MickKi wrote: | . . . and under NO circumstances should you be tempted to try setup (hd0,0) because that will wipe your WinXP partition boot sector with Grub's files and WinXP will never, ever boot again (short of a re-install). | Actually, that's not true, but it is a bit of a bother to fix things after such a mistake. | Well, it is true in my case, counting on my limited knowledge! I guess grub would overwrite the Windoze partition boot code, but probably leave alone the block parameter table? No idea how to put it right other than using dd from a back up, or as I said reinstalling . . . _________________ Regards,
Mick |
|
Back to top |
|
|
Apewall Apprentice
Joined: 01 Dec 2004 Posts: 248 Location: USA
|
Posted: Wed May 25, 2005 9:42 pm Post subject: |
|
|
put this at the top of your grub
_________________ Posting for dummies |
|
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
|
|