Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-25-2004, 04:13 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
Dualbooting XP & FC2 with Grup


I just installed Fedora Core 2 on a system which had WinXP installed.

Here's some specs:

I have two Seagate harddrives which were partitioned before the install like this:

80Gb Seagate (Primary Master)
-One primary partition, 3 logical drives

Primary partition, NTFS, WinXP installed in here

Logical Drive #1, NTFS

Logical Drive #2, NTFS

Used to be logical Drive #3. I deleted the partition with WinXP admin tools to make it free space and then installed FC2 like this:

\boot ~80Mb, ext2
swap ~1Gb
\(root), ext3 (~20Gb)

160Gb Seagate (Primary Slave)
-One primary partition, 1 logical drive, both NTFS
-Doesn't really effect the installation

I installed Grup with the non-default option (not MBR) and chose winXP as default OS. If i remember correctly, the \boot partition was hda7 and windows were in hda1.

Everything is still ok but I don't know how to boot to Fedora. When i reboot the computer, I don't get to choose the OS with Grup. It just boots into WinXP, which btw works the same way as it did before.

So my questions are:

How do I get to see the Grup's OS select screen?

Do I have to edit the MBR somehow or just install it all again and choose MBR this time?

I have the CD's. Is there something that I can do with the rescue option when I reboot while CD#1 is inside?

And yes, I'm very new in installing Linux . Thanks in advance!

Last edited by markuzm; 08-25-2004 at 04:21 PM.
Old 08-25-2004, 04:35 PM   #2
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
So you installed GRUB to the /boot partition. I suggest you do the following:

Use a rescue cd to boot into FC2 (I believe cd2 is a rescue cd).

At the command prompt type:

dd if=/dev/hda7 of=/home/username/linux.bin bs=512 count=1

This will create a .bin file with which you can start linux using the XP bootloader. Change /dev/hda7 to your /boot partition and save the linux.bin file wherever you prefer (/home/username is a good suggestion).

Now transfer the linux.bin file to your windows C:\ directory and edit the boot.ini file (this file is a hidden, read-only system file so you'll have to make it visible and allow writing).

At the end of the boot.ini file include the following line:

c:\linux.bin="(Name you would like to see in the boot menu)"

Save boot.ini and protect it again the same way it was before (you may want to make linux.bin rea-only as well, just in case).

The next time you boot XP you'll get to choose between XP and linux, and when you choose linux you'll be taken to the GRUB boot screen.
Old 08-25-2004, 05:35 PM   #3
LQ Newbie
Registered: Aug 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Isn't there any easier way? Maybe editing grup.conf via rescue console in /boot could help?
Old 08-25-2004, 05:49 PM   #4
Registered: Aug 2004
Location: Davis, California
Distribution: Gentoo, always Gentoo.
Posts: 159

Rep: Reputation: 30
What linmix is suggesting certaily will work, but it doesn't really help you learn about the linux way of doing things, and is backwards from what most linux distros do.

The problem is that when you installed grub you told it not to install into the MBR, and so the Windows boot loader is still operating.

Fortunately, this is easy to fix - you can install grub into the MBR at any time (assuming you can boot to a command prompt) and set up grub to allow you to boot into FC2 or Windows.

1. Boot into a linux command prompt using your FC install disk 1 - at the boot: prompt type 'linux rescue' and press return. It should try to find your existing FC2 install and mount it under /mnt/sysimage (or something like that - it'll tell you where it's putting it.)

2. Find the grub binary and run it like this:

Change the path as appropriate.

You'll now be at a grub prompt. Enter the following commands:
grub> find /boot/grub/stage1
This will show you the partition that has the grub boot files on it, such as (hd0,6).

grub> root(hd0,6)
This tells grub where your /boot partition is. Change the '6' to whatever the partition # is from the above command.
grub> setup (hd0)
This tells grub to install itself into the MBR.

Now quit our of grub and reboot:
grub> quit
bash-2.0b5# reboot
When your system starts booting now it should load the grub bootloader instead of the Windows bootloader, and assuming you had grub set up properly it should give you an option to boot into either OS. If you don't have an option to boot into Windows add something like this to your /boot/grub/menu.lst (or grub.conf) file:

###Windows XP###
title Windows XP
    rootnoverify (hd0,0)
    chainloader +1
Note that you can also reinstall the Windows bootloader by booting from the WinXP install disk, going into rescue more, and entering the 'fixmbr' command.

Note 2: If grub can't find the /boot partition stuff it's probably because it's not mounted. I'm not certain if the rescue mode mounts the /boot partition normally. If it doesn't work, say so and I'll give you some more things to try.

Last edited by dsegel; 08-25-2004 at 05:58 PM.


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
Dualbooting Windows & Fedora 3 aldusk Linux - Newbie 8 02-05-2005 06:38 AM
lilo then grup winxshadi76 Red Hat 2 12-13-2004 08:22 AM
GRUB & Dualbooting mrizos Linux - Newbie 1 11-18-2004 02:25 PM
grup need help! Tgrasshopper Linux - Newbie 8 10-27-2003 04:40 PM
Grup mhd_Ahmed Linux - Newbie 1 05-21-2003 12:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 AM.

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