LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-20-2004, 11:23 AM   #1
manstretch
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Dual Boot Win XP and FC2 w/ NTLDR on Seperate Drives?


I have Win XP installed on my first drive, hda and FC2 installed on my 2nd drive, hdb. Currently, the Windows boot loader has control of the system, so I can't get into FC2. I had FC2 installed using GRUB, but GRUB wouldn't let me boot into Win XP... in fact it screwed up the boot partition/mbr. I fixed it with the Win XP recovery console, so now I have the Windows boot loader loading windows again.

I would like to keep my Windows boot loader and have it boot FC2. Like I mentioned above, my installations are on 2 separate physical drives and from what I've read, this makes things a bit more complicated. I've followed instructions for installing GRUB in the /boot partition of the FC2 install, which I have done. I have also created a "linux.bin" image and copied it to my C: drive along with editing my boot.ini file.

Of course the problem is, when I arrive at the Windows bootloader and select "Linux", it should hit the linux.bin file and then proceed to load GRUB, however all I get is a blank screen with a blinking cursor in the top left corner.

I've read that there is a way to run the "grub-install" with an option to tell it where stage 1 and stage 2 are located, however, I have had hard time understanding the instructions I've found so far and in fear of screwing up my partitions/boot records again, I have not attempted this.

Can someone give me simple instructions about how to get Windows boot loader to load my FC2 installation?

Thanks,
Kyle
 
Old 05-20-2004, 12:20 PM   #2
cowboy45
Member
 
Registered: Mar 2004
Location: Vancouver, WA
Distribution: SuSe 9.1 Personal, Slackware 10
Posts: 53

Rep: Reputation: 15
Heres an interesting article I have found very helpful. With new versions of Grub a dual boot tends to be easy(I did it on my crappy win2k box, waiting to see if its worth it on my main one). If you made a boot floppy this will be even easier as you will read in the article(assuming you want to use the windows bootloader). Windows Xp and Windows 2000 pro both use the same loader.

Hope this helps:

http://www.littlewhitedog.com/content-52.html
 
Old 05-20-2004, 09:39 PM   #3
manstretch
LQ Newbie
 
Registered: May 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Well, thats a nice article, but I still don't understand what I need to do. From what I've read, the /boot partition should usually be on the primary disk, however, in my case, its on my 3rd disk, (which is hdf now since I just installed FC2 again.) I've edited the boot.ini to tell it to book the linux.bin file on c:, but since the /boot partition isn't on the same drive, it doesn't seem to know where stage 2 of GRUB is located.

I think there is a way to get this to work, but I just haven't found simple instructions to do this. If anyone knows how, I would really appreciate it.
 
Old 05-21-2004, 05:31 AM   #4
sbogus
Member
 
Registered: May 2004
Location: Germany, Munich
Distribution: SuSE Pro Releases 7.3, 9.0, CentOS 4.0, Kubuntu 6.0x
Posts: 103

Rep: Reputation: 15
Hi manstretch,

well, I've had similar problem - on hda was my old dual-boot with WinXP and SuSE 7.3 and I installed SuSE 9.0 on my hdb as separate clean installation. I prefered to dual-boot from the Linux installation as dual-boot from Windows is sometimes unstable and is tricky do be done clean (I dislike the whole stuff with linux.bin and editing of boot.ini).

So here's waht I've done in my case. I hope it will give you clue of how to do it in your case.

Just keep your Win installation on hda, do not touch anything there! Then from the BIOS make your hdb (assuming hdb is the disk where your Linux installation resides) as primary boot device (if your BIOS can not do it, then my approach would not work for you!)

Boot into your Linux installation using either the installation CD/DVD or a boot diskette/CD. Open a console if not already opened, enter in superuser mode, by typing there su - provide your root password there and you're logged in as root. Edit the /boot/grub/menu.lst file to contain these sections

In this example I assume you have hdb separated in two partitions:
hdb1 is the swap one and the hdb2 is the root one of your Linux installation
If this is not the case, replace the number in (hd0,1) statements with the "number - 1" of your linux root partition. Say if you have three partitions on hdb and the root one is hdb3, then the (hd0,1) statement would change in (hd0,2). The same is true for the "root=/dev/hdb2" kernel parameter, it could change in the above example as "root=/dev/hdb3".


title Linux
root (hd0,1)
kernel (hd0,1)/boot/vmlinuz root=/dev/hdb2
initrd (hd0,1)/boot/initrd

title Window
rootnoverify (hd1,0)
makeactive
chainloader +1


Then issue from the console the command

grub-install --force-lba /dev/hdb

That should be, reboot and you should see the GRUB menu with the choices Linux and Windows. Each of these should take you in the corresponding OS.

Kind regards,
sbogus
 
  


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
Setting up dual boot with 2 seperate hard drives liquid486 Linux - Newbie 4 01-18-2005 08:51 PM
How to Dual boot FC2 and XP on mutiple drives? axess_denied Linux - Hardware 1 12-31-2004 09:19 PM
Dual boot RedHat and WinXP on Seperate Drives Nicko Linux - Software 4 08-21-2003 09:34 AM
Dual Boot XP,Slackware9 :seperate drives JamminJ Linux - Newbie 8 07-24-2003 11:20 PM
dual boot SuSE / XP on seperate drives with GRUB uploadjoe Linux - Software 2 02-21-2003 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 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
Open Source Consulting | Domain Registration