Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dual boot with windows XP
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
redpotatoes
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 111
Location: Qc, Canada

PostPosted: Mon Feb 02, 2004 5:35 pm    Post subject: dual boot with windows XP Reply with quote

I have Windows xp installed on my first hard drive and gentoo on my second hard drive i need to know the good configuration of both lilo and grub for those. I have my XP on Hda (Hd0,0) and my gentoo on my Hdc(hd1,0), what would be the proper configuration for that ?? thx
ps: do I have to change something in my boot.ini ??
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Mon Feb 02, 2004 5:56 pm    Post subject: Reply with quote

why don't you try yourself? that's the best way to learn.
there's documentation in the handbook http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=9#doc_chap2
and you'll find many threads here in the forums.

try that, if it doesn't work or you are unsure post your config file and let others help you.

Edit: Furthermore, only ask once please.
:arrow: https://forums.gentoo.org/viewtopic.php?t=131288
Back to top
View user's profile Send private message
jbrazio
Apprentice
Apprentice


Joined: 13 Dec 2002
Posts: 232
Location: .pt

PostPosted: Mon Feb 02, 2004 6:06 pm    Post subject: Reply with quote

redpotatoes wrote:
ps: do I have to change something in my boot.ini ??

If you’re using Grub as a System loader you don’t need to change anything in you boot.ini, instead do something like (change to fit your system needs):

Follow the steps on the documentation.

Code:
judith root # nano /boot/grub/grub.conf
default=1
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz

title Gentoo Linux
   root (hd1,0)
   kernel /boot/<your kernel image name> root=<your root partition i.e. /dev/hdc5>

title Windoze XP
   rootnoverify (hd0,0)
   chainloader +1

_________________
"Assim como falham as palavras quando querem exprimir qualquer
pensamento, assim falham os pensamentos quando querem exprimir
qualquer realidade." -- Fernando Pessoa
Back to top
View user's profile Send private message
redpotatoes
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 111
Location: Qc, Canada

PostPosted: Mon Feb 02, 2004 6:21 pm    Post subject: Reply with quote

I did try myself but it didnt work
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Mon Feb 02, 2004 6:22 pm    Post subject: Reply with quote

post what you tried, someone will help
Back to top
View user's profile Send private message
Felgerkarb
n00b
n00b


Joined: 29 Oct 2003
Posts: 17
Location: Palo Alto, California

PostPosted: Mon Feb 02, 2004 7:33 pm    Post subject: Reply with quote

Quote:
I have Windows xp installed on my first hard drive and gentoo on my second hard drive


How about switching the hard drive order? That's what I did, so I could use grub, instead of modifying the Windows boot loader....once I installed Windows (which is not bright enough to install itself onto anything but the 'first' drive) I simply swapped the connections of the drives to the motherboard, and everything works fine! I use a basic grub.conf, that you can find on the links listed in previous posts and the forum HOWTO.
Back to top
View user's profile Send private message
dvc5
Guru
Guru


Joined: 06 Dec 2003
Posts: 433
Location: Sunnyvale, California

PostPosted: Tue Feb 03, 2004 3:40 am    Post subject: Reply with quote

Felgerkarb had a good suggestion. Generally I've found it safer to setup the drives where the Linux drive is the boot drive and not touch the windows drive at all (memories of "fixboot" come to mind). Unfortunately, grub is a little difficult to configure for booting Windows partitions that are not on the same drive.

For my desktop, I had the following configuration:

hd0=gentoo
hd1=XP
hd2=media drive

In order to get Grub (installed on hd0) to boot XP (installed on hd1), you'll need to do drive mapping in your grub.conf. As I understand it (someone please correct me if I'm wrong), drive mapping makes windows think it's the boot drive when grub calls it. Here is the Windows XP section of my grub.conf:

Code:

title=Windows XP Pro
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1


Note the "rootnoverify (hd1,0)" points to your real Windoze boot partition, not the "mapped" one we've created. Hopefully this is helpful. I had a lot of trouble getting my desktop to dualboot in the beginning also.

-Loz
Back to top
View user's profile Send private message
georgebastille
n00b
n00b


Joined: 09 Dec 2003
Posts: 4

PostPosted: Thu Feb 12, 2004 9:15 pm    Post subject: Reply with quote

Hi, I have the same configuration, winxp on hd1 and gentoo on hd2. I tried messing around with grub and lilo and could not get a suitable working machine. I found a program on the internet called bootpart http://www.winimage.com/bootpart.htm if you run this from a cmd window in xp it will list all your partitions. Then if you type bootpart (no of linux boot partition) c:\filename.bin Gentoo Linux it will create a small file in the c:\ and add a option to the xp loader that allows you to boot Gentoo

the exact command i used for your reference is

bootpart 5 c:\gentoo.bin Gentoo Linux

then if you install grub on hd2 and remove all references to windows in grub.conf it should work like a charm :D

hope this helps
Back to top
View user's profile Send private message
ZeroPhile
n00b
n00b


Joined: 12 Mar 2004
Posts: 29

PostPosted: Sat Mar 20, 2004 1:15 am    Post subject: Dual Boot XP on 2 drives Reply with quote

lozdvc5: you are awesome man.... That post with the mapping of the drives fixed me right up. Thanks man.. I have been trying to get this d*mn dual boot to work for weeks. Changing the MBR. Going into debug to edit the drive and all kinds of sh|t. Right on.... Ya get mad props man...
_________________
If I was in my right mind. Would I still make left turns?
Back to top
View user's profile Send private message
dvc5
Guru
Guru


Joined: 06 Dec 2003
Posts: 433
Location: Sunnyvale, California

PostPosted: Sat Mar 20, 2004 9:08 am    Post subject: Re: Dual Boot XP on 2 drives Reply with quote

ZeroPhile wrote:
lozdvc5: you are awesome man.... That post with the mapping of the drives fixed me right up. Thanks man.. I have been trying to get this d*mn dual boot to work for weeks. Changing the MBR. Going into debug to edit the drive and all kinds of sh|t. Right on.... Ya get mad props man...

Anytime. This problem hits home with me 'cause I spent so much time trying to get dualbooting working on my desktop. It may wind up being more complicated in the end, but I think this method of having a "linux-only" drive and a "windows-only" drive is the best way to dual boot. It ensures that each OS can only f*ck with it's own drive.
_________________
#define NULL rand() /*heh heh heh */

Green Is Good
Back to top
View user's profile Send private message
linux_girl
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 287

PostPosted: Sat Mar 20, 2004 2:58 pm    Post subject: Reply with quote

:cry:
I setuped gentoo first. And it work nicely.
Then i tryed to setup Win2K. But when win2k setup reboot (its first reboot) i cant make windows (dev/hda1) boot from lilo's prompt to continues it's (windows) setup.

I want to setup my win2k. Any help will be usefull.

NB:i have the probs with winXP

My Disk Layout
Code:

>fdisk /dev/hda

The number of cylinders for this disk is set to 158816.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       19377     9765976+   c  W95 FAT32 (LBA)
/dev/hda2           19378      158816    70277256    5  Extended
/dev/hda5           19378       19456       39784+  83  Linux
/dev/hda6           19457       23332     1953472+  83  Linux
/dev/hda7           23333       24302      488848+  82  Linux swap
/dev/hda8           24303       35929     5859976+  83  Linux
/dev/hda9           35930       43680     3906472+  83  Linux
/dev/hda10          43681       55307     5859976+  83  Linux
/dev/hda11          55308       74684     9765976+  83  Linux
/dev/hda12          74685      158816    42402496+  83  Linux


My fstab:
Code:

>cat /etc/fstab

/dev/hda1               /mnt/win        vfat            rw,user,users,uid=1000,gid=100,noauto   0 0
/dev/hda5               /boot           ext3            noauto,noatime          1 1
/dev/hda6               /               reiserfs        noatime,notail          0 1
/dev/hda7               none            swap            sw                      0 0
/dev/hda8               /usr            reiserfs        noatime,notail          0 1
/dev/hda9               /opt            reiserfs        noatime,notail          0 1
/dev/hda10              /var            reiserfs        noatime,notail          0 1
/dev/hda11              /mnt/tmp        reiserfs        noatime,notail          0 1
/dev/hda12              /home           reiserfs        noatime,notail          0 1

/dev/cdroms/cdrom0      /mnt/dvd        iso9660         noauto,users,ro         0 0
/dev/cdroms/cdrom1      /mnt/graveur    iso9660         noauto,users,ro         0 0

/dev/fd0                /mnt/floppy     vfat            noatime,users,noauto,rw 0 0
/dev/sda2               /mnt/ipod       vfat            noauto,user,users,uid=1000,gid=100      0 0

none                    /proc           proc            defaults                0 0
none                    /dev/shm        tmpfs           defaults                0 0


My lilo.conf
Code:

>cat /etc/lilo.conf
# $Header: /home/cvsroot/gentoo-x86/sys-apps/lilo/files/lilo.conf,v 1.4 2003/07/17 21:10:26 azarah Exp $
# Author: Ultanium

#
# Start LILO global section
#

# Faster, but won't work on all systems:
#compact
# Should work for most systems, and do not have the sector limit:
lba32
# If lba32 do not work, use linear:
#linear

# MBR to install LILO to:
boot = /dev/hda
map = /boot/System.map

# If you are having problems booting from a hardware raid-array
# or have a unusual setup, try this:
#disk=/dev/ataraid/disc0/disc bios=0x80  # see this as the first BIOS disk
#disk=/dev/sda bios=0x81                 # see this as the second BIOS disk
#disk=/dev/hda bios=0x82                 # see this as the third BIOS disk

# Here you can select the secondary loader to install.  A few
# examples is:
#
#    boot-text.b
#    boot-menu.b
#    boot-bmp.b
#
install = /boot/boot-menu.b   # Note that for lilo-22.5.5 or later you
                              # do not need boot-{text,menu,bmp}.b in
                              # /boot, as they are linked into the lilo
                              # binary.

menu-scheme=Wb
bitmap=/boot/sarge.bmp
prompt
# If you always want to see the prompt with a 15 second timeout:
timeout=150
delay = 50
vga =ext
default=kern2.6.3
#
# End LILO global section
#

#
# Linux bootable partition config begins
#
image =/boot/kernel-2.6.3
        root=/dev/hda6
        read-only
        vga=0x31A
        label=kern2.6.3
#
# Linux bootable partition config ends
#


#
# DOS bootable partition config begins
#
other = /dev/hda1
        #other = /devices/discs/disc0/part1
        label = WindowsXp
        table = /dev/hda
#
# DOS bootable partition config ends 
#




i think it is because windows doesnt leave enghout file before rebooting to alow win xp to boots
_________________
:D :D
Back to top
View user's profile Send private message
dvc5
Guru
Guru


Joined: 06 Dec 2003
Posts: 433
Location: Sunnyvale, California

PostPosted: Sat Mar 20, 2004 7:04 pm    Post subject: Reply with quote

You might want to try overriding the lilo bootloader when you install windows, and then just reinstall lilo after windows is done. Also, I've found it easier to have windows setup at the end of the drive, but that might not be possible in your case.
_________________
#define NULL rand() /*heh heh heh */

Green Is Good
Back to top
View user's profile Send private message
linux_girl
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 287

PostPosted: Sat Mar 20, 2004 8:55 pm    Post subject: Reply with quote

lozdvc5 wrote:
You might want to try overriding the lilo bootloader when you install windows, and then just reinstall lilo after windows is done. Also, I've found it easier to have windows setup at the end of the drive, but that might not be possible in your case.


Windows overide it some time. And somes not.
reinstaling lilo is easy but unable to lunche windows.

when windows setup overide the mbr i get message O.S not found after bios message

My Hard drive is about 80 GB but the bios says its about 81 GB
I used fdisk & mkfs.vfat -F 32 to make the /dev/hda1 (for windows) look at my first post. Couls it be a hard drive isue ?
_________________
:D :D
Back to top
View user's profile Send private message
ZeroPhile
n00b
n00b


Joined: 12 Mar 2004
Posts: 29

PostPosted: Sat Apr 10, 2004 11:57 pm    Post subject: Reply with quote

I recently upgraded to SATA drives. 2x 80Gb Seagates
I had problems getting the bootloader Grub to start after installation of Gentoo but, I figured it out by putting sda# in the fstab and grub.conf after about 6 reboots. However, now I cant dual-boot into my WinXP drive which is sdb1... I tried mapping the drives in grub like I did when I was using UATA with map (hd#,#) map (hd#,#) etc..... but, it doesn't seem top work. Anyone have any ideas?
_________________
If I was in my right mind. Would I still make left turns?
Back to top
View user's profile Send private message
linux_girl
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 287

PostPosted: Sun Apr 11, 2004 12:00 am    Post subject: Reply with quote

pbx06 wrote:
lozdvc5 wrote:
You might want to try overriding the lilo bootloader when you install windows, and then just reinstall lilo after windows is done. Also, I've found it easier to have windows setup at the end of the drive, but that might not be possible in your case.


Windows overide it some time. And somes not.
reinstaling lilo is easy but unable to lunche windows.

when windows setup overide the mbr i get message O.S not found after bios message

My Hard drive is about 80 GB but the bios says its about 81 GB
I used fdisk & mkfs.vfat -F 32 to make the /dev/hda1 (for windows) look at my first post. Couls it be a hard drive isue ?

i finaly solved my isues : fdisk choosed a random disk geometry which is a very bad and cause lilo to unable to start winXP
_________________
:D :D
Back to top
View user's profile Send private message
dvc5
Guru
Guru


Joined: 06 Dec 2003
Posts: 433
Location: Sunnyvale, California

PostPosted: Sun Apr 11, 2004 12:02 am    Post subject: Reply with quote

pbx06 wrote:
pbx06 wrote:
lozdvc5 wrote:
You might want to try overriding the lilo bootloader when you install windows, and then just reinstall lilo after windows is done. Also, I've found it easier to have windows setup at the end of the drive, but that might not be possible in your case.


Windows overide it some time. And somes not.
reinstaling lilo is easy but unable to lunche windows.

when windows setup overide the mbr i get message O.S not found after bios message

My Hard drive is about 80 GB but the bios says its about 81 GB
I used fdisk & mkfs.vfat -F 32 to make the /dev/hda1 (for windows) look at my first post. Couls it be a hard drive isue ?

i finaly solved my isues : fdisk choosed a random disk geometry which is a very bad and cause lilo to unable to start winXP


Sorry I'm late to respond. That sounds like a weird problem you had. Congratulations on figuring it out.
_________________
#define NULL rand() /*heh heh heh */

Green Is Good
Back to top
View user's profile Send private message
ZeroPhile
n00b
n00b


Joined: 12 Mar 2004
Posts: 29

PostPosted: Sun Apr 11, 2004 12:04 am    Post subject: Reply with quote

Just a Hello...
_________________
If I was in my right mind. Would I still make left turns?
Back to top
View user's profile Send private message
ibis
n00b
n00b


Joined: 09 Jun 2004
Posts: 2
Location: Ventura, CA

PostPosted: Wed Jun 09, 2004 1:34 am    Post subject: Thanks Reply with quote

dvc5 -
Your suggestion was insanely helpful!

Gentoo forums rock!
Back to top
View user's profile Send private message
spindle
Apprentice
Apprentice


Joined: 01 Dec 2003
Posts: 245

PostPosted: Sun Jul 04, 2004 3:55 pm    Post subject: Reply with quote

dvc5,

Your suggestion was most helpful for me. I couldn't get this working for some time. Now all is good.

Thanks!
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