LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-04-2006, 07:24 PM   #1
BigAL2006
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Rep: Reputation: 0
Problem with GRUB and XP


I'm new to Linux and I read that Fedora would be a good distro to start with. I just build a new system (ASUS mobo, 1 gig ram, (2) 250 HD, AMD Athlon Fx-55). I installed XP Pro x-64 on my first hard drive and I tried installing Fedora core 5 on the second, but I get an error message after I reboot saying Loading Grub 1.5, then it says Error 17. I thought I installed the grub on the MBR of hda.

I should tell you that I have tried installing Suse 10.1 before I tried using Fedora. I had to abandon Suse because of Hardware compatiblity issues.

My menu.lst reads like this:

#boot=/dev/hda
default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
root (hd1,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/de/VolGroup00/LogVol00 rhgb quiet
initrd / initrd-2.6.15-1.2054_FC5.img
title Other
rootnoverify (hd0,0)
chainloader +1

Please Help
 
Old 09-04-2006, 07:33 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
try installing the grub on hdb, since you have fedora on hdb.
 
Old 09-04-2006, 10:08 PM   #3
galego
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Rep: Reputation: 15
Quote:
Originally Posted by BigAL2006
My menu.lst reads like this:

#boot=/dev/hda
default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
root (hd1,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/de/VolGroup00/LogVol00 rhgb quiet
initrd / initrd-2.6.15-1.2054_FC5.img
title Other
rootnoverify (hd0,0)
chainloader +1

Please Help
make like this: (as long as you installed FC5 in hda and XP in hdb)

#boot=/dev/hda
default=0
timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel (hd0,0) /vmlinuz-2.6.15-1.2054_FC5 ro root=/de/VolGroup00/LogVol00 rhgb quiet
initrd (hd0,0) /initrd-2.6.15-1.2054_FC5.img

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

Last edited by galego; 09-04-2006 at 10:11 PM.
 
Old 09-05-2006, 06:48 AM   #4
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
Quote:
root (hd0,0)
rootnoverify (hd1,0)
why whould he want to do that?
it isnt necessary, it can be the other way round too.
 
Old 09-05-2006, 07:23 AM   #5
galego
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Rep: Reputation: 15
my understanding is that windows is in hdb (hd1,0) and FC5 is in hda (hd0,0). since the first HDD gets the #0 and second gets #1. "rootnoverify" is needed because windows likes to be in charge and it is a way for it to think that it is the only system loaded.

the "0" in (hd1,0) is because the HDD is not partitioned and i undestand each OS has its own drive.

BIG EDIT: i miss read the original post. since FC5 is the second HDD it should be the otherway round, swap the (hd0,0) and (hd1,0); where FC5 gets (hd1,0). SORRY!!

Last edited by galego; 09-05-2006 at 07:26 AM.
 
Old 09-05-2006, 07:29 AM   #6
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I'm not sure to which disk's MBR you installed grub, but your configuration seems ok to me (XP on (hd0,0) which is hda and Linux on (hd1,0) which is hdb).
Quote:
I installed XP Pro x-64 on my first hard drive and I tried installing Fedora core 5 on the second
The bootloader should reside on the first (master) harddisk's MBR, and both harddisks should be in the primary IDE cable (well if you use IDE..) to avoid problems. You don't necessarily need to use grub if you don't want to, since the Windows' bootloader can load your Linux too. What you would do in this case is

1) create an "image" of your boot partition of Linux using dd
2) put that image file somewhere in your Windows, like c:\Windows\
3) edit your windows' bootloader config and add the image path there
4) open XP's recovery console and run fixmbr

That way the Windows bootloader gets back and if you set up the dd-created file correctly, you can choose Linux from the Windows bootup menu. Just an alternative, if grub gets dirty..
 
Old 09-14-2006, 05:50 PM   #7
BigAL2006
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Grub

Thanks for the suggestions everyone. I'll definitely try them.
 
Old 10-31-2006, 07:38 PM   #8
Fixed_it
Member
 
Registered: Jun 2006
Location: New England
Distribution: FC11
Posts: 48

Rep: Reputation: 15
Grub Error 17 - can't leave well enough alone!

I am having a similar problem:
At bootup I get a GRUB error 17. I just installed FC6 on a drive. System had a windows drive to start with. I stated in the installation that I wanted to install grub in the MBR. I thought that I screwed up the installation, so I re-installed to no avail. (Just made the same mistake??) I hope the following is enough info (excuse the abridged vesions, not sure how to copy the info to a thumb drive using the rescue disk, but thats another issue for a different day ).

fdisk -l
----------------------------------------
Device Boot .......... System

Disk /dev/hdd: 60.0 GB
/dev/hdd1 * NTFS

Disk /dev/sda: 80.0 GB
/dev/sda1 * Linux
/dev/sda2 Linux LVM

Disk /dev/sdb: 82.3 GB
/dev/sdb1 * Linux LVM
______________________________________________

fstab
---------------------------------------------
/ ext3 default 1 1
/boot ext3 default 1 2
______________________________________________

grub.conf
----------------------------------------------
#boot=/dev/sda1
default=0
timeout=15
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18....)
root (hd1,0)
kernel /vmlinuz-2.6.18.... ro root=/dev/VolGroup01/LogVol00 rhgb
quiet
initrd /initrd-2.6.18....img
title Other
rootnoverify (hd0,0)
chainloader +1
_______________________________________________


Any assistance would always be appreciated
 
Old 11-01-2006, 07:18 AM   #9
galego
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Rep: Reputation: 15
did you install Linux with the Windows drive installed? if so did you also change the boot sequence in CMOS? sounds like the Windows drive still has priority.
 
Old 11-01-2006, 07:33 AM   #10
Fixed_it
Member
 
Registered: Jun 2006
Location: New England
Distribution: FC11
Posts: 48

Rep: Reputation: 15
Windows was installed before the attempted Fedora install. I did not change anything in the bios as I have never needed to before, and I have actually had dual boot working a great while ago, so I didnt think it was necessary. However, I have changed around just about every number I could find in GRUB to get it to work. So as of right now I don't really have a clue. I have attempted almost every fix I have found on this and other forums, an still no joy.
 
Old 11-02-2006, 07:28 AM   #11
galego
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Rep: Reputation: 15
i think you are at least making it to the GRUB menu right?
if so try this:
i few days ago i noticed a behavior by GRUB that i still dont understand. for some reason GRUB likes to be the first HDD, not only in boot sequence but also on the motherboard. i would think this only applies to SATA drives (what we both have) if the Linux drive is set as first in the boot sequence in CMOS set up but it is still PHYSICALY the second drive on the motherboard it will get lost and not be able to mount ROOT. after switching the cables so the Linux drive was the first one on the MOBO and adjusted CMOS my Linux drive booted. i still have not found an explanation, but it worked. you should not have to do anything to the entry for Windows in Menu.lst (i think in fedora is "grub.conf")
 
Old 11-02-2006, 09:12 AM   #12
Fixed_it
Member
 
Registered: Jun 2006
Location: New England
Distribution: FC11
Posts: 48

Rep: Reputation: 15
problem discovered...not solved though

Well I think I found out what the problem is, although I think there is no solution to it. hdd1 is dead. I took it out to verify the integrity of the limited amount of info I still had on it because knoppix kept giving me errors when I tried to access it. In the external enclosure I can now hear the death throws of a hard drive. So thanks to all who tried to help. Now I have to figure out how to change the platters with a new hard drive so I can salvage the info ()
 
  


Reply

Tags
fedora, grub, xp


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
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
Problem with GRUB hellblade Linux - Software 12 09-22-2004 06:58 AM
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 09:36 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
problem with grub ViPeRDeSiGnZ Linux - Newbie 8 01-20-2004 02:27 AM

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

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