View previous topic :: View next topic |
Author |
Message |
yuj n00b
Joined: 30 Aug 2005 Posts: 39
|
Posted: Wed Sep 07, 2005 3:32 pm Post subject: dual boot with xp |
|
|
i am in the process of installing gentoo with windows xp with /dev/hda
here is how the partition is going to be /hda1 for windows, /dev/hda2 /boot, /dev/hda3 swap, /hda4 extended, /hda5 /root and /dev/hda6 for home. how would i configure grub and bootloader to dual boot. |
|
Back to top |
|
|
wescott Apprentice
Joined: 18 Feb 2004 Posts: 183 Location: A giant shoe
|
Posted: Wed Sep 07, 2005 4:01 pm Post subject: |
|
|
You also need a partition for / itself too. But check out the file /boot/grub/grub.conf.sample. It has an example for each operating system you may possibly want to multiboot with. Just edit it with nano and save as grub.conf. That's the easiest way to do it without reading through all the online docs and man pages.
Code: | #
# Sample boot menu configuration file
#
# Boot automatically after 30 secs.
timeout 30
# By default, boot the first entry.
default 0
# Fallback to the second entry.
fallback 1
# For booting GNU/Hurd
title GNU/Hurd
root (hd0,0)
kernel /boot/gnumach.gz root=hd0s1
module /boot/serverboot.gz
# For booting GNU/Linux
title GNU/Linux
root (hd1,0)
kernel /vmlinuz root=/dev/hdb1
#initrd /initrd.img
# For booting GNU/kFreeBSD
title GNU/kFreeBSD
root (hd0,2,a)
kernel /boot/loader.gz
# For booting GNU/kNetBSD
title GNU/kNetBSD
root (hd0,2,a)
kernel --type=netbsd /boot/knetbsd.gz
# For booting Mach (getting kernel from floppy)
title Utah Mach4 multiboot
root (hd0,2)
pause Insert the diskette now!!
kernel (fd0)/boot/kernel root=hd0s3
module (fd0)/boot/bootstrap
# For booting FreeBSD
title FreeBSD
root (hd0,2,a)
kernel /boot/loader
# For booting NetBSD
title NetBSD
root (hd0,2,a)
kernel --type=netbsd /netbsd
# For booting OpenBSD
title OpenBSD
root (hd0,2,a)
kernel --type=netbsd /bsd
# For booting OS/2
title OS/2
root (hd0,1)
makeactive
# chainload OS/2 bootloader from the first sector
chainloader +1
# This is similar to "chainload", but loads a specific file
#chainloader /boot/chain.os2
# For booting Windows NT or Windows95
title Windows NT / Windows 95 boot menu
rootnoverify (hd0,0)
makeactive
chainloader +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos
# For installing GRUB into the hard disk
title Install GRUB into the hard disk
root (hd0,0)
setup (hd0)
# Change the colors.
title Change the colors
color light-green/brown blink-red/blue |
_________________ Sometimes you feel like a nut, sometimes you don't
Gentoo Forum Member #43303
Yoda of Borg are we: Futile is resistance. Assimilate you, we will. |
|
Back to top |
|
|
wescott Apprentice
Joined: 18 Feb 2004 Posts: 183 Location: A giant shoe
|
Posted: Wed Sep 07, 2005 4:05 pm Post subject: |
|
|
Or you can just copy my post to the text editor and delete the entries you won't use, and edit the others to conform to your configuration. You should come with something similar, like this:
Code: | # Boot config file
timeout 5
default 0
fallback 1
# Gentoo, Using hda7 as root partition ...(hd0,6) in grub notation
title Gentoo 2005.1
root (hd0,6)
kernel /Gentoo-2.6.12 root=/dev/hda7
#initrd /initrd.img
# Windows XP
title Windows NT / Windows 95 boot menu
rootnoverify (hd0,0)
makeactive
chainloader +1 |
There is more detailed information in the gentoo handbook, if you need it. _________________ Sometimes you feel like a nut, sometimes you don't
Gentoo Forum Member #43303
Yoda of Borg are we: Futile is resistance. Assimilate you, we will. |
|
Back to top |
|
|
yuj n00b
Joined: 30 Aug 2005 Posts: 39
|
Posted: Wed Sep 07, 2005 4:26 pm Post subject: |
|
|
thanks wescott, what about using 2 hard /dev/hda1 windows xp and /dev/hdb on a gentoo with /dev/hdb1 /boot, /dev/hdb2 /swap, /dev/hdb3 /root and finally /dev/hdb4 /home. how would you set it up with 2 hard drive. finally does it matter whether this is a stage one or 3 installation.
i'm gonna work on this tomorrow when i'm off work. just gathering info right now. |
|
Back to top |
|
|
wescott Apprentice
Joined: 18 Feb 2004 Posts: 183 Location: A giant shoe
|
Posted: Wed Sep 07, 2005 4:42 pm Post subject: |
|
|
All your other filesystems, such as swap, need to be registered in /etc/fstab. Nothing needs to be done extra in grub. The fstab file on the cd will give you an idea of what format it will need to be in. These steps are the same no matter what stage install you are doing.
In grub notation, hdb1, for example, is (hd1,0). hdb4 would be (hd1,3). You have mentioned your desire to have /root and /home on separate partitions, but what about / ? Root (/) is the partition you are interested in when editing your boot config. _________________ Sometimes you feel like a nut, sometimes you don't
Gentoo Forum Member #43303
Yoda of Borg are we: Futile is resistance. Assimilate you, we will. |
|
Back to top |
|
|
maglomanic Tux's lil' helper
Joined: 28 Jun 2004 Posts: 93
|
Posted: Thu Sep 08, 2005 5:11 am Post subject: |
|
|
Few things that i would like to mention here,
For me, i just created a dual boot with XP on the saem hard drive,
i used genkernel so in mycase i used root instead of rootnoverify (thats what i read in install.txt /docs/txt/install.txt)
second thing is that when i leave a space between root and (hd#,#) for gentoo it won't boot. On the contrary it won't boot for XP if it DOESNT have a space
so this is how it works for me
Code: |
Title =Gentoo 2.6.12.r6
root(hd#,#)
kernel /kernel name and few commands check from handbook
initrd /i used genkernel so it's not initrd it's initramfs
Title= Windows XP
root (hd#,#) ####notice the space
makeactive
chainloader +1
|
Last time i had created dual boot , i did it using two seperate hard drives. And depending on where your windows is installed you might have to use mapping
Code: |
(hd0)(hd1)
(hd1)(hd0)
|
that is how it was for me..
but do confirm all this information. i just wanted to mention something so that if you hit the wall you can start on these things
There is a very detailed doc for grub and dual booting. try to find it on gentoo website.
hope it helps _________________ The question is always "how" and not "why" |
|
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
|
|