Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a 20GB HD installed with RedHat 9, which is my master and a 40GB HD installed with Windows XP Professional, which is my slave. I am wondering how to get Windows XP Pro to boot through GRUB. I have searched all over for a possible solution. Here is a copy of my /etc/grub.conf file. Linux is awesome but I sorely miss my games.
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader + 1
makeactive
If someone can help me it would be grealy appreciated. Thanks
if you get strange messages about missing files, try check if winxp is set as bootable
fdisk /dev/hdb
use 'p' command to list, 'a' to set bootable flag
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title Windows XP Professional
#map (hd0) (hd1)
#map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader + 1
#makeactive
I'm not sure what the map and makeactive lines do. I do not use them myself. You could try commenting them out, just to see what it does.
title Windows XP Professional
rootnoverify (hd0,0)
chainloader +1
That didn't work...Error Code 13...I think it was. If you look at the /etc/grub.conf that I posted; that code will allow you to boot to Windows XP ONLY if the Windows HD is master(When I hit F11 to select what device I want to boot off of during POST). It doesn't work when I promote the Linux HD to master. I don't want to look at NTLDR.....GRUB is nice and customizable....once you get it going. If I install GRUB onto the MBR of the Windows HD; I've heared that Windows will overwrite it and you won't be able to boot Linux. Not to mention you will have to go through this nasty process of restoring the Windows MBR if you remove Linux.
Originally posted by Darkstar274 I tried using this code:
title Windows XP Professional
rootnoverify (hd0,0)
chainloader +1
That didn't work...Error Code 13...I think it was. If you look at the /etc/grub.conf that I posted; that code will allow you to boot to Windows XP ONLY if the Windows HD is master(When I hit F11 to select what device I want to boot off of during POST). It doesn't work when I promote the Linux HD to master. I don't want to look at NTLDR.....GRUB is nice and customizable....once you get it going. If I install GRUB onto the MBR of the Windows HD; I've heared that Windows will overwrite it and you won't be able to boot Linux. Not to mention you will have to go through this nasty process of restoring the Windows MBR if you remove Linux.
Didn't you say you installed XP on a slave drive? That would mean that:
Code:
rootnoverify (hd0,0)
should really be:
Code:
rootnoverify (hd1,0)
Either way, you have to point it to the drive that has the bootable XP partition.
Here's the code for my workstation. Note that I have XP installed on the master and Linux on a slave. Thus my Linux and XP are exactly the reverse of your setup. So with a little tweaking, you can probably just use this in your grub.conf. (back up your existing grub.conf first though)
Code:
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-24.9)
root (hd1,0)
kernel /boot/vmlinuz-2.4.20-24.9 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.20-24.9.img
title Windows XP Professional
rootnoverify (hd0,0)
chainloader +1
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-24.9)
root (hd1,0)
kernel /boot/vmlinuz-2.4.20-24.9 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.20-24.9.img
title Windows XP Professional
rootnoverify (hd1,0)
chainloader +1
I think makeactive either does not work, or it does something different from what one may expect: it doesn't change the partition table at all. Maybe it fakes it to the chainloader?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.