LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-08-2009, 10:21 PM   #1
AtmoHawk03
LQ Newbie
 
Registered: Mar 2009
Distribution: Fedora 11
Posts: 15

Rep: Reputation: 1
Boot loader problems with Fedora 10 and Windows xp on separate hard drives


Hello all,

I'm having problems with getting GRUB configured correctly. I have a Western Digital Caviar Black 640GB hard drive that has Windows XP installed, and a Western Digital Caviar Blue 80GB hard drive with Fedora 10 installed. I installed Windows XP first, on the WD 640GB hard drive. However, I unhooked it when I installed Fedora 10 on the 80GB hard drive. The installation of Fedora 10 went fine, so I hooked everything back up and now it automatically loads Fedora 10, with no option to get to Windows.

I've tried using a program called SuperGrubDisk (http://supergrubdisk.org) to restore everything, but to no avail. I'm sure what I need to do is edit grub.conf, but I'm not sure what to add.
Here is what's in my menu.lst

# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.5-117.fc10.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=c8d81700-b973-4931-b006-ef94059ceed9 rhgb quiet
initrd /initrd-2.6.27.5-117.fc10.i686.img

And here are the results when I run fdisk -l as root:

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a8c76

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 9726 77923282+ 8e Linux LVM

Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3e753e74

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 72258 580412353+ 7 HPFS/NTFS
/dev/sdb2 72259 72283 200812+ 83 Linux
/dev/sdb3 72284 77825 44516115 8e Linux LVM

Disk /dev/sdc: 2003 MB, 2003828736 bytes
16 heads, 32 sectors/track, 7644 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x416b8015

Device Boot Start End Blocks Id System
/dev/sdc1 16 7644 1952832 e W95 FAT16 (LBA)

Last edited by AtmoHawk03; 10-08-2009 at 10:50 PM.
 
Old 10-08-2009, 10:47 PM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 874

Rep: Reputation: 113Reputation: 113
Any time you want to run a windows system it is always best to have windows installed and working before you install linux. Because windows overrides the MBR (Master boot record) Best thing I would say do if everything is hooked up reinstall Grub and it will detect windows and right the conf. file for you. Then you can edit /boot/grub/grub.conf and set what you want to boot first.

Hope this helps
 
Old 10-08-2009, 10:51 PM   #3
AtmoHawk03
LQ Newbie
 
Registered: Mar 2009
Distribution: Fedora 11
Posts: 15

Original Poster
Rep: Reputation: 1
I actually had Windows XP running correctly for a few months before I tried this endeavor. Sorry I didn't clarify that in my first post. Thanks for your reply, I'll look into reinstalling grub.
 
Old 10-08-2009, 11:39 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,990

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Fedora does not usually put an entry in the menu.lst file for other systems so you need to do it manually. In /boot/grub/menu.lst you need the following entry for xp:


title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

You need the map entries because xp is seen as being on the second disk, sdb1. I believe Fedora has a grub.conf file and either it is a link to menu.lst or vice versa, you'll need the entry in the one that is not a link.
 
Old 10-09-2009, 12:08 AM   #5
AtmoHawk03
LQ Newbie
 
Registered: Mar 2009
Distribution: Fedora 11
Posts: 15

Original Poster
Rep: Reputation: 1
Thanks for your reply, yancek. I tried entering that into just menu.lst and then rebooting, which didn't bring up the option to load Windows XP. I did notice that when I entered it into menu.lst, it also entered it into grub.conf. Then I deleted the info you gave me in menu.lst and entered it into just grub.conf and rebooted. Sadly, this did not bring up the option menu either. I should point out I'm getting a PCI: BIOS Bug (some error message) that I didn't have when I was just running XP. If this is related, I'll write down the exact error but it doesn't stay on the screen long. Is there something else I should be doing?

**EDIT** On a whim, I decided to try and disconnect the power to my Fedora drive, and leave the Windows XP drive powered up. It booted fine into Windows. Well, now I have a method of switching between the two operating systems, but it's really inconvenient. I'm sure the answer is something simple, I'm just not seeing it.

Also, after tinkering with supergrubdisk, my grub.conf now looks like this:

# 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,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.35-170.2.94.fc10.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.35-170.2.94.fc10.i686 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.27.35-170.2.94.fc10.i686.img
title Fedora (2.6.27.5-117.fc10.i686)
root (hd0,0)
kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=c8d81700-b973-4931-b006-ef94059ceed9 rhgb quiet
initrd /initrd-2.6.27.5-117.fc10.i686.img

title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

The only thing different from my first post is that I now have two Fedora listings. I did run yum update, so I wonder if that had something to do with it.
Thanks again for everyone's time. I really appreciate this.

Last edited by AtmoHawk03; 10-09-2009 at 01:04 AM.
 
Old 10-09-2009, 03:46 AM   #6
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 874

Rep: Reputation: 113Reputation: 113
When you first install it and run yum update it may show you the older kernel as well
 
Old 10-09-2009, 10:54 AM   #7
AtmoHawk03
LQ Newbie
 
Registered: Mar 2009
Distribution: Fedora 11
Posts: 15

Original Poster
Rep: Reputation: 1
I would just like to make a quick post saying that I finally got it working. The key was after I had done everything above, I needed to go to System -> Administration ->BootLoader and set Windows XP as the default. Once this was done, I was able to access the boot menu and could switch between the two OS's freely. Thanks again for everyone's time.
 
Old 10-10-2009, 07:05 AM   #8
coolinux
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Rep: Reputation: 0
Hi atmohawk03,

The method I used to give me an option to switch betweent the OSes, i have(XP and RHEL5) is by editing the grub.conf file.


Just edit the below lines in grub.conf:

You can find the lines in grub.conf which reads, "default",set it to 0 if want Linux to boot by default or change its value to 1 if you want to boot into Windows.

Eg: default=0 or default=1

And to give the splash screen to decide which OS to boot from, you have to edit the timeout option is grub.conf

timeout=10

Cheers....
 
  


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
Problems dual booting with Ubuntu and windows xp using two separate hard drives Iceman99one Linux - General 3 08-19-2008 08:52 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 02:44 PM
Dual boot with 2 separate hard drives and OS lfierro Linux - Newbie 8 12-11-2004 03:37 PM
Dual Boot on Separate Hard Drives? theonlylivinggo Linux - Newbie 6 02-26-2004 05:15 PM
dual boot w/ separate hard drives? aveach Linux - General 2 09-15-2003 04:33 PM


All times are GMT -5. The time now is 08:27 PM.

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