Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual boot XP and Linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
eyevee99
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 239

PostPosted: Tue Apr 16, 2002 4:52 am    Post subject: Dual boot XP and Linux Reply with quote

I wish to install linux on my workstation, and have it dual boot with XP.

I can't install GRUB or Lilo on the MBR or it will kill the NT boot sector rendering XP useless (bad for me).

So I installed GRUB on the /boot partition of the linux install. This allows me to boot from floppy.

How do I update XPs boot manager to look for Linux and therefore give me an option for which OS to boot?

Thanks
Back to top
View user's profile Send private message
vilanox
n00b
n00b


Joined: 16 Apr 2002
Posts: 12
Location: nyc

PostPosted: Tue Apr 16, 2002 7:17 am    Post subject: Reply with quote

I also had XP on my machine prior to installing Gentoo. I took a gamble and installed Grub into the MBR. It worked and I can dual boot.
Back to top
View user's profile Send private message
zend
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2002
Posts: 112
Location: Shanghai,China

PostPosted: Tue Apr 16, 2002 7:22 am    Post subject: Reply with quote

vilanox wrote:
I also had XP on my machine prior to installing Gentoo. I took a gamble and installed Grub into the MBR. It worked and I can dual boot.

can you give out your /etc/fstab and your step?Thank you very much
Back to top
View user's profile Send private message
dr-nix
n00b
n00b


Joined: 16 Apr 2002
Posts: 13

PostPosted: Tue Apr 16, 2002 9:39 am    Post subject: annoying.. Reply with quote

when i add my xp hd (its on my other hd) (root (hd1,0) it sez uknown filesystem 0x7 r summn like that and it sez booting "Windows XP" (i labled it that way... anyways i added my xp partion in grub like this ->

root (hd1,0)
makeactive
chainloader +1

in /boot/grub/menu.lst that is...
Back to top
View user's profile Send private message
dr-nix
n00b
n00b


Joined: 16 Apr 2002
Posts: 13

PostPosted: Tue Apr 16, 2002 9:43 am    Post subject: Reply with quote

to clarify...i add that conf in menu.lst ...reboot and when i get the menu i choose the xp option and the lable comes up and the 3-4 configuration lines...but it doesnt boot it just stays there... its soooo annnoying ...btw it also sez "uknown filesystem" (due to the hd beeing ntfs)
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Apr 16, 2002 9:52 am    Post subject: MBR and NT Reply with quote

As far as I'm aware, you can't copy over the boot sector of an NT drive (ie, NT, 2K or XP) because NT can't boot without that info. It says "unknown file system".
Back to top
Guest






PostPosted: Tue Apr 16, 2002 11:15 am    Post subject: uknown filesystem 0x7 Reply with quote

Hey dr-nix ,

I had the same problem with win2k on my other hd. I solved it by doing this:

Try adding this in your menu.lst

map (hd0) (hd1)
map (hd1) hd0)

-> not sure anymore if it was before the root line or the makeactive ... try the root line :-)

You can also try these lines at boot time by pressing 'e' . That way you can see if it works before adding it to your menu.lst

Good luck
Back to top
dr-nix
n00b
n00b


Joined: 16 Apr 2002
Posts: 13

PostPosted: Tue Apr 16, 2002 4:35 pm    Post subject: Reply with quote

that fixed it thanks alot ! :))
Back to top
View user's profile Send private message
vilanox
n00b
n00b


Joined: 16 Apr 2002
Posts: 12
Location: nyc

PostPosted: Tue Apr 16, 2002 5:24 pm    Post subject: Reply with quote

woops...I forgot my last windows install was fat32 not ntfs. I'm not knowledgable enough yet to know how each file system affects the MBR. I do remember I installed Mandrake8.1 after an XP ntfs install. Mandrake auto-installed LILO into the MBR and I had no problems dual booting. I'm not sure how grub behaves differently.

If it doesn't make a difference, my menu.lst entry for windows for grub is:

title=WIndows
rootnoverify (hd0,0)
makeactive
chainloader +1

As for /etc/fstab, I followed the installation instructions and added my windows partition after the linux ones.

Hope that cleared it up and could be helpful.

vilanox
Back to top
View user's profile Send private message
eyevee99
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 239

PostPosted: Tue Apr 16, 2002 10:19 pm    Post subject: Perhaps XP is different to NT? Reply with quote

Perhaps it's possible to overwrite XPs MBR then?

Not really keen to test the theory :)


Is it possible to set up XPs boot manager to boot linux?

XP has a boot manager built in (ie, if you have 98 and XP for example, a boot manager can be started by hitting F8 during boot, which then gives the option of which OS to boot)

My Computer - Properties in XP, then Advanced, Startup Settings, is where the boot manager info is.

It is set up as follows

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect



This indicates I should be able to add a new OS to boot, but I'm not sure of the exact format.

I suspect it's as follows (linux is installed on the primary drive attached to the secondary IDE controller, and the grub bootloader is intalled on the /boot partition, which is the first partition on the drive)

multi(0)disk(0)rdisk(2)partition(1)="Gentoo Linux"

But I don't really have any idea.

:)
Back to top
View user's profile Send private message
Ozymandias
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2002
Posts: 81
Location: Netherlands

PostPosted: Wed Apr 17, 2002 2:38 pm    Post subject: Re: Perhaps XP is different to NT? Reply with quote

eyevee99 wrote:

multi(0)disk(0)rdisk(2)partition(1)="Gentoo Linux"


whell, that will be the day! no, if you want the ntldr to load linux jou must copy the first 512 bytes of your kernel (or lilo or grub) onto the partition and then tell the bootloader to boot that! But just forget about that, do the following:

just install grub on your /boot partition (not MBR!) and flag that one beiing bootable. That means that grub gets loaded without breaking XP. Then use a rootnoverify (hdX,X) and chainloader +1 to boot XP from Grub. Mind you guys that this doesn't work from grubs command prompt! There is a little bug in Grub. If nothing works, just make the XP partition bootable again and you will be fine (though back at square one). And don't use the makeactive command! If you have more than one harddisk, perhaps you need map(hdX,hdX) but I don't thing so.

greetz Ozy
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Apr 17, 2002 6:06 pm    Post subject: Re: Perhaps XP is different to NT? Reply with quote

eyevee99 wrote:
Is it possible to set up XPs boot manager to boot linux?



Check out this document. It tells you how to dual-boot linux and NT while maintaining the NT MBR. (process is the same for NT, 2000 and XP)

http://www.tldp.org/HOWTO/mini/Linux+NT-Loader.html
Back to top
View user's profile Send private message
Buzzz
n00b
n00b


Joined: 17 Apr 2002
Posts: 63
Location: Enschede, The Netherlands

PostPosted: Thu Apr 18, 2002 2:00 pm    Post subject: Reply with quote

I see all those difficult solutions, which need many different actions.
I use lilo for booting (I'm very familiar with it), and I did the following:
After installing the system and before installing grub I did an emerge lilo. Then I exited the chroot and created /etc/lilo.conf like this:
Code:

boot=/dev/hda
prompt
timeout=50
lba32
default=winxp
image=/boot/bzImage
    label=linux
    read-only
    root=/dev/hda9
other=/dev/hda1
    label=winxp


I copied this file to /mnt/gentoo/etc/lilo.conf
I ran /mnt/gentoo/sbin/lilo and my bootmanager was up and running, booting Windows XP and Gentoo linux!!
Back to top
View user's profile Send private message
eyevee99
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 239

PostPosted: Fri Apr 19, 2002 11:53 am    Post subject: Where do I set which drive/partition is bootable? Reply with quote

XP is on my primary IDE master (hda0)
Linux is on my secondary IDE master (hda3)

Cheers,
Ryan
Back to top
View user's profile Send private message
TeraTorn
Guest





PostPosted: Fri Apr 19, 2002 1:20 pm    Post subject: GRUB and XP should play together... Reply with quote

Im fairly certain that after a winxp install, you have just a generic boot loader in the MBR that locates and transfers control to the boot sector of your win partion, from where the actual NT boot loader screens appears.

Therefore, it's safe to install another boot loader in the MBR, just follow the instruction in install.txt on the boot cd.

I have Gentoo and GRUB and Win XP all working fine and I did exactly like the example in the install text.

Good Luck.
Back to top
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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