LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trying to dual boot Linux and Windows XP (https://www.linuxquestions.org/questions/linux-software-2/trying-to-dual-boot-linux-and-windows-xp-10995/)

crag 01-02-2002 09:19 AM

Trying to dual boot Linux and Windows XP
 
Ok, I have Windows XP on the C: drive, RedHat 7.1 on the D: drive. LILO is installed in the /boot partition on the D: and boots just fine with the boot floppy created during installation. I've modified lilo.conf to only identify Linux (ran lilo to activate). Had to run fixmbr in Windows to repair changes made during part of the Linux install. Windows XP boots fine from the default boot.ini; Linux boots fine from the floppy. I used BOOTPART to create a linux launcher and put the entry into the boot.ini. Windows boot loader comes up with the right options -- Windows XP and Linux. XP boots fine from there, but the Linux option starts -- provides the winimage/bootpart banner -- and then says, "cannot boot from harddrive, please insert system disk and press ENTER".

So close and yet so far... any idea what's wrong with this setup?

All help greatly appreciated -- I hate having to use the boot floppy.

crag

Daniel Nichols 01-02-2002 03:16 PM

Win Xp and Linux
 
Most likely Windows XP installs past the cylinder that Lilo and Linux need to boot.

Did you install Windows first? Must install Windows first for a lilo and linux to recognize the other OS to offer them in the boot option.

I would wait on using XP with all of the security holes in it.

Why are you worried about XP???

Daniel Nichols 01-02-2002 03:18 PM

sorry, reading too many threads mixed yours with someone else's.

mudgie 01-02-2002 11:03 PM

Booting two OS's
 
I have had much success with Linux on the Primary Master, and the Monopolist's Windows 2000 product on another drive altogether, as well as pushing Windows to the end of a partition using a single drive. Lilo and Grub just play well with others, the Monopolist bully does not fare as well in the friendly playground.

You will likely need to have the Monopolist drive present as a primary slave or secondary whatever when you are installing Linux on the primary master. Afterwards, Lilo (in redhat 7.1) or Grub (in redhat 7.2) will be aware of it, and display it in the boot menu. More must be done at this point though. It seems that the Monopolist Bully needs to be seen as the first drive, so you will need to include Map commands to trick the surly thug into thinking he is king of the hill. Try the following:

Sample Lilo entries, assuming Windows is the second hard drive-

other=/dev/hdb1
label=dos
table=/dev/hdb
map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80

Grub is similar -

title windows
root (hd1,1)
map (0x81) (0x80)
map (0x80) (0x81)
makeactive
chainloader +1

Obviously there is more to it than this, but the key words are above, intrepid folks should be able to google there way to a more comprehensive solution.

Best of luck,
Mudgie

shan 01-03-2002 06:59 AM

Dual boot Linux and Windows XP
 
I'm not familiar with BOOTPART but I had sucess following the instructions on the following link:

http://www.littlewhitedog.com/reviews_other_00011.asp

Note, RH 7.1 will default to putting the "linear" command into your lilo.conf. For my IDE drive, I had to remove "linear" and add "lba32" (without the quotes) near the top of lilo.conf. Make sure to run lilo -L after making any changes to lilo.conf.

ajcmmills 01-03-2002 01:38 PM

I did this and it worked...
 
What I did was installed windows first, I put the windows xp partition after the Linux partition. In other words, do fdisk, make unallocated space in the beginning of the hdd. Then when windows xp is loaded go into disk management, under administrative tools, computer management, and disk management, format the unallocated space. There, windows will know that the partition is there. Make sure you have the volume at 1024, which isn't the default in windows. Install Linux use grub or lilo and you should have no problems getting into Linux or windows.

I was having the same problem when I loaded red hat 7.2. I've got the box version so it came with 30 days of online tech support, and the only thing that they told me that work was the above instructions. And trust me we did everything. Sometimes you just have to start over.
Allan


All times are GMT -5. The time now is 07:44 PM.