Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual boot machine, grub won't start, boot right into windows
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
bleakcabal
Guru
Guru


Joined: 10 Oct 2002
Posts: 301
Location: Montreal, Québec, Canada

PostPosted: Wed May 25, 2005 6:37 pm    Post subject: Dual boot machine, grub won't start, boot right into windows Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed May 25, 2005 6:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1173

PostPosted: Wed May 25, 2005 7:13 pm    Post subject: Reply with quote

. . . 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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed May 25, 2005 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1173

PostPosted: Wed May 25, 2005 9:39 pm    Post subject: Reply with quote

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! :P 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
View user's profile Send private message
Apewall
Apprentice
Apprentice


Joined: 01 Dec 2004
Posts: 248
Location: USA

PostPosted: Wed May 25, 2005 9:42 pm    Post subject: Reply with quote

put this at the top of your grub
Code:
timeout 30

_________________
Posting for dummies
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