LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2003, 02:14 PM   #1
fitret
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9.0
Posts: 8

Rep: Reputation: 0
Problems dual booting RH 9 & XP Pro


I saw a lot of other people having trouble dual booting RH9 & XP, but unfortunately, none of them are getting the same error that I am... If I tell BIOS to boot from the MBR, Windows XP loads with no option to boot linux. If I boot to the Linux partition, LILO loads up with DOS and Linux as an option. Linux loads fine, but when I try to load DOS (XP) it says that NTLDR is missing. I heard that running the xp recovery console and typing fixmbr and fixboot would fix it, but I've also heard that this can screw stuff up if both Linux and XP are installed on the same drive (my setup). Any suggestions on how to fix this?
 
Old 10-16-2003, 02:25 PM   #2
aeruzcar
Member
 
Registered: Jul 2003
Location: Santiago, Chile
Distribution: Gentoo
Posts: 282

Rep: Reputation: 30
Do you have a boot partition?, have you tried GRUB instead of LILO?
 
Old 10-16-2003, 02:32 PM   #3
fitret
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
I don't have a seperate partition just for the boot sector (unless Linux would have created that when I installed it) and I haven't tried GRUB yet. How would I install GRUB now?
 
Old 10-16-2003, 02:43 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Quote:
I heard that running the xp recovery console and typing fixmbr and fixboot would fix it, but I've also heard that this can screw stuff up if both Linux and XP are installed on the same drive
These commands would erase the MBR and put the Windows bootloader there. Since you said that when you boot from the MBR, you go straight to Windows, it appears to be already there.
Apparently you installed lilo to a partition instead of the MBR. To change this, boot into Linux, and use a text editor to edit the /etc/lilo.conf file. You have to be root to do this. Near the top of this file you will see a line somewhat like this: 'boot=/dev/hda1'. This determines where lilo will be installed (of course it's not /dev/hda1, since that's where XP probably is. Don't install lilo to XP's partition). If you want to install to the MBR, you put '/dev/hda' here. Towards the bottom, you will see entries for each os. You might see a paragraph like this:
Code:
other=/dev/hda1
         label=dos
         table=/dev/hda
You can change the 'label=dos' to 'label=WinXP' if you like.
Run the 'lilo' program to apply the changes.

Or you can use the XP bootloader to load Linux. Use this command in Linux: 'dd if=/dev/hdax of=/lilo.bin bs=512 count=1'. This will create a file called /lilo.bin .Replace the 'x' in /dev/hdax with the number of the partition lilo was installed to. Copy /lilo.bin to your Windows 'C:\', and add this line in Windows to your C:\boot.ini file : 'C:\lilo.bin= "Red Hat Linux'
This will add an entry in the Windows bootloader.

Last edited by aaa; 10-16-2003 at 02:45 PM.
 
Old 10-16-2003, 02:43 PM   #5
aeruzcar
Member
 
Registered: Jul 2003
Location: Santiago, Chile
Distribution: Gentoo
Posts: 282

Rep: Reputation: 30
What I would recommend if you have just installed both of the operatings systems is to install them again, I know it's a very unmeasures solution, but it would be better. If you want to install again both systems, I would recommend to partition the disc again with proper boot, windows and linux partitions.
Regarding to grub, I use suse and to install it I run install-grub /dev/hda (hda because that's where I have installed the boot).
But I strongly recommend not to install grub unless you have a /boot partition
Hope hits helps somehow
 
Old 10-17-2003, 08:31 AM   #6
fitret
LQ Newbie
 
Registered: Oct 2003
Distribution: Red Hat 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
Hmm... I just tried the "dd..." command for every single partition, added them all to the boot.ini file and none of them worked. LILO right now is configured as you have listed above, but when I try to boot DOS I get the NTLDR missing error. Right now I can switch between the two OS's by going into BIOS, so I'd rather not have to reinstall both OS's... I could however repartition my drive to allow for a boot sector. How big should this sector be? What file system should it be? Thanks for all of your help.
 
Old 10-17-2003, 08:43 AM   #7
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
Make a /boot partition that is Fat32 and about 100MB. This partition (/boot) is where you want the computer looking for your Lilo.conf or Grub menu.lst file to load the boot loader to get the info to boot your OS"s.

rberry88
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Booting SuSE 9.2 & XP Pro/dual hard drives The_Bug Linux - General 3 01-04-2006 06:44 PM
Dual Booting 10 Official & Win 2k Pro offdahook84 Mandriva 12 08-23-2004 06:42 AM
Dual dual booting with Suse 9.1 pro and windows 98SE UDflyer Linux - General 1 07-30-2004 03:37 PM
Problems Dual booting Fedora and XP Pro using GRUB davstin2002 Linux - Laptop and Netbook 4 01-21-2004 06:55 PM
dual booting Win2k & RH Linux using ntldr->GRUB has problems whitepine Linux - General 3 01-28-2003 06:39 PM


All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration