Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dual boot problem, grub was working fine...
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
brentshreve
n00b
n00b


Joined: 31 Jan 2006
Posts: 2

PostPosted: Wed Feb 01, 2006 6:52 am    Post subject: dual boot problem, grub was working fine... Reply with quote

hey all,

this should be the last step of my installation that i'm stuck on. i got gentoo up and running with the gnome enviroment fine (with the help of a fellow board member).

I wanted to dual boot into windows xp so my grub.conf file looked like this:

Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /boot/initramfs-genkernel-x86-2.6.12-r6

title=Windows XP
root (hd0,3)
makeactive
chainloader +1


The grub loader worked great until i installed windows onto the computer on the ntfs partition.

my partition table looks like this:

/dev/hda1 * 83 linux
/dev/hda2 82 linux swap
/dev/hda3 83 linux
/dev/hda4 7 ntfs

when i installed windows onto the ntfs partition, did i erase the linux installation? windows shows that the drives are still there. why will the grub boot window not come up?

thanks for your time in responding,
brent
Back to top
View user's profile Send private message
z00mIn
n00b
n00b


Joined: 02 Apr 2004
Posts: 31
Location: Cape Town, South Africa

PostPosted: Wed Feb 01, 2006 7:45 am    Post subject: Reply with quote

You Linux installation is probably OK.

The problem is that Windows XP (and any other Windows flavor, AFAIK) modifies the boot sector of your harddrive when you install it, so Windows is always booted.

One way to solve that is to boot from the Gentoo CD again (just as you did when you installed it), mount your partitions and chroot once again and then repeat the grub setup sequence.

Hope that helps.

CU Z>
Back to top
View user's profile Send private message
meph84
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2005
Posts: 79
Location: Czech Rep.

PostPosted: Fri Feb 03, 2006 8:48 am    Post subject: Reply with quote

True. Just type
Code:
grub-install /dev/hda
as root, and it will work fine again
_________________
Gentoo Linux 2.6.15-gentoo-r7
AMD 64 3000+, 2GB RAM 400Mhz, GeForce 6800,
180GB Samsung HDD, LG DVD Burner,
SoundBlaster Audigy 2 ZS, Winfast 2000XP Deluxe TV,
KDE 3.5
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