LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   After installing LINUX on a new partition, LINUX boots but WinXP doesn't (https://www.linuxquestions.org/questions/red-hat-31/after-installing-linux-on-a-new-partition-linux-boots-but-winxp-doesnt-92590/)

joelmj 09-14-2003 02:13 AM

After installing LINUX on a new partition, LINUX boots but WinXP doesn't
 
I recently installed the RED HAT release 9 onto my laptop that already had Windows XP on it. The install seemed to have gone fine. LINUX is running fine. And I'm learning how to use it. However, I still (unfortunately) need to use Windows XP. I am using GRUB as the boot loader and it displays both LINUX and Windows XP. However when I select Windows XP to load it just displays the following and ten hangs:


Booting 'Windows XP'

rootnoverify (hd0,1)
chainloader +1


After seeing this, I have to do a <CNTR>+<ALT>+<DEL> to reboot to LINUX. Any suggestions on how I can get it to boot up XP???

tchernobog 09-14-2003 04:31 AM

Can you post here your "/boot/menu.lst" ? (I use LILO, I'm not sure that this is your GRUB config file...)

Else try to install LILO.

tchernobog 09-14-2003 04:38 AM

See also http://www.tek-tips.com/gviewthread....619/qid/596115

arunshivanandan 09-14-2003 04:46 AM

Quote:

Originally posted by tchernobog
Can you post here your "/boot/menu.lst" ? (I use LILO, I'm not sure that this is your GRUB config file...)
.

or it could be /boot/grub/grub.conf
also,post what 'fdisk -l' says.(try it from a root login).
there is no need to shift to lilo.

lynch 09-14-2003 05:04 AM

What did you use to create the new partition?
lynch

Ninja_212 09-14-2003 11:53 AM

I've got this from RedHat web site:

There are a couple of ways to approach a dual boot.

In the first scenario, let's say you have an empty machine, and because you're a glutton for punishment, you want both Windows 2000/XP and Red Hat Linux. This is a bit like using Earl Scheib on a Porsche, but here goes:
Partition. Use fdisk to create two partitions of appropriate size for your install.

Install Windows. You're on your own here. Time and many reboots go by...

Boot into the Red Hat Linux installer, and install into the second partition. All should go swimmingly, until you're faced with a choice between boot loaders and install locations.

If you wish to let Lilo or GRUB control the install, so be it. Either one *should* pick up the fact that Windows is already there and compensate.


If it doesn't, and your boot loader of choice only boots Linux, a lilo.conf entry should look like:

other=/dev/hda1
label=windows


A grub.conf entry should look like:

title windows
map (hd0,0) (hd0,2)
map (hd0,2) (hd0,0)
setup (hd0)
rootnoverify (hd0,2)
chainloader +1


(Hint: type "info grub" at a command prompt for a full breakdown of what this entry means.)


You may choose to let another boot loader handle the install, in which case you will want to:


Boot into Linux and copy the boot image from the first sector of your boot partition. You'll want to take 512 bytes of this partition once, and write it out to a file called bootsect.lnx. The entry should look like:

dd if=/dev/hdX of=/bootsect.lnx bs=512 count=1


Move that file onto your c:\ drive and edit boot.ini, adding the following line:

c:\bootsect.lnx="Linux"


On to the second, more common scenario. It's likely that you already have Windows and are testing the waters, taking a class, or planing to migrate. Or maybe you just want to get something done without crashing for a change.

In this case:
Scandisk, defrag, and empty your recycle bin (unless you want a clump of cruft at the end of your drive.)

Repartition your drive with fips (or something similar). Don't bother trying to format this partition--you'll only wipe it out later and certain 3rd party formatting doesn't go right.

Enter the Red Hat Linux installer and proceed through the install using the second partition as your target drive.

(Hint: make sure to create a boot disk. If something goes wrong, you want to at least be able to get into one of the OS's.)


All times are GMT -5. The time now is 05:49 AM.