Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-22-2004, 11:48 AM   #1
Registered: May 2003
Location: Germany - Z÷bingen
Distribution: Suse 9.3 & Win XP SP2
Posts: 69

Rep: Reputation: 15
Question Grub & XP

Hi @ all!

This is my grub.conf
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/hda8
# initrd /initrd-version.img
title Fedora Core (2.6.5-1.358)
root (hd0,2)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img
title Other
rootnoverify (hd0,0)
chainloader +1

My Problem is that i installed WinXP in hda1 but if i select "Other" in grub then nothing happens. What do i have to change, that XP is booting if i select "Other"?

THX in advance

Old 05-22-2004, 12:10 PM   #2
LQ Newbie
Registered: May 2004
Posts: 8

Rep: Reputation: 0
If you have installed Windows on the 2nd hard drive you will have to pass (hd1,0) to grub.

The numbering is a bit different with grub. The drive hd0 is the 1st hard drive on your system, the filesystem (partition) is the 2nd number which starts @ 0. Depending on how you have your hard drives and cdrom/dvd drives connected it will probably be :


This is from the menu.lst file as an example

title Windows
root (hd1,0)
chainloader +1

Would load windows from the 2nd drive (if your 2nd hard drive is connected as a slave device to the master drive on the 1st ide controller) and located on the first filesystem (partition) of that drive.

Hope it helps,

Old 05-22-2004, 12:52 PM   #3
Registered: May 2003
Location: Germany - Z÷bingen
Distribution: Suse 9.3 & Win XP SP2
Posts: 69

Original Poster
Rep: Reputation: 15

i think i had deleted all my partitions...

i will install fc2 and winxp on one pc. i've done this many times before with fc1, mandrake 9.2 and redhat 9.0. This was not a problem. But with fc2 i does not getting it working.

can someone explain me, how i should does it?
- how to partition my two 120GB drives
- in which order i have to install the tow OSes
- which bootloader should be installed on which partition
- which filesystem
- ...

may be a little step by step guide.

Old 05-22-2004, 02:29 PM   #4
LQ Newbie
Registered: May 2004
Posts: 13

Rep: Reputation: 0
Here's a quick answer to the bootloader issue; someone else cna give you the info on the others. For this example, I will use hda as the windows drive and hdb as the linux drive. Install windows to hda, yadda yadda yadda. Then, in your BIOS, change the boot drive to hdb (after cd, of course). Install your linux, with the bootsector on the MBR of hdb. Boot yourself into linux, grab a msdos formatted disk, and pop open a terminal. If your drive is set to automount floppies, skip the next section:

mount -t msdos /dev/fd0 /mnt/floppy

-=OR=- If you do not have a mnt directory (see SUSE)

mount -t msdos /dev/fd0 /media/floppy

Next, rip the bootsector.

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

Where hdb is where you installed the bootloader. Then copy it to your disk:

mv bootsect.lnx /mnt/floppy/

Unmount the disk

umount /dev/fd0

Reboot your system, change the boot drive to hda, and boot to windows. Copy the bootsect.lnx to the c drive, then add the following line to the bottom of C:\boot.ini:


Just select the option Linux when starting your computer and it will load LILO or GRUB!!!

This thingy worked for me, and it should work for you. I had to use this method because linux would not recognize my raid 0 boot array for win xp. Ciao!!
Old 05-24-2004, 02:55 AM   #5
Registered: May 2003
Location: Germany - Z÷bingen
Distribution: Suse 9.3 & Win XP SP2
Posts: 69

Original Poster
Rep: Reputation: 15

I did it that way.

But at startup if i select "Linux" the only thing that appears on my screen is "GRUB" and thats all. Nothing other happends.

If i change the boot drive back to hdb, GRUB will start and i can select my linux system and then its booting up.

I do not know what i did wrong...

Old 05-24-2004, 03:22 AM   #6
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33

take a look on the

GRUB's menu.lst file.

What is written in


in your Fedora section ?

If there is something like (0,x) as disk location,
then try to change it to (1,x).

Of course you have to change your boot drive back
to hda after editing the menu.lst.

Since I do not know, if both drives are on the same IDE controller and
which is master and which is slave, the above is based on a guess.

Viel GlŘck.

Last edited by Vlad-A; 05-24-2004 at 03:25 AM.
Old 05-24-2004, 03:29 AM   #7
Registered: May 2003
Location: Germany - Z÷bingen
Distribution: Suse 9.3 & Win XP SP2
Posts: 69

Original Poster
Rep: Reputation: 15
i will try this when i am back at home.

HDA is Master on ther Primary Controller
HDB is Slave on the Primary Controller
Old 05-24-2004, 02:20 PM   #8
Registered: May 2003
Location: Germany - Z÷bingen
Distribution: Suse 9.3 & Win XP SP2
Posts: 69

Original Poster
Rep: Reputation: 15


I read some other topics on which descripe exactle the same problem. There was a link to bugzilla and there i found the solution.

1. i zero filled both drives
2. created my partitions with partition magic and get the CHS values from pm
3. install wXP in hda2 (second primary and active partition)
4. boot from fc2 dvd with the command:
"linux hda=14946,255,63 hdb=14946,255,63" (this are the C,H,S values from pm)
5. hda1 /boot 100MB; hda3 / 40 GB; hda5 /home 8GB; hda6 SWAP 1024 MB
6. During installation the error about the incorrect CHS values did not appear
7. reboot the machine and boot with knoppix
8. extract the bootsector of hda1 to floppy with dd...
9. boot into windows (normal boot without error )
10. copy bootsect.lnx from floppy to C:
11. Modify boot.ini "C:\bootsect.lnx="Linux""
12. Reboot and select Linux from the nt boot loader

thats it.

I hope this will help some other people, too.

Last edited by Cybers19; 05-24-2004 at 02:21 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
fstab & Anaconda & GRUB jimc52 Fedora - Installation 2 11-22-2005 08:44 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 01:39 PM
GRUB & Dualbooting mrizos Linux - Newbie 1 11-18-2004 03:25 PM
Slack & Grub tuxrules Linux - Newbie 2 09-20-2004 03:20 PM
how to uninstall lilo & install grub without using gui & linuxconf? prav_284 Red Hat 1 11-28-2003 06:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 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