LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-14-2004, 08:25 PM   #1
LZ5 Eagle
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
Question Fc2 - Grub Error


I am have a working install of WinXP Pro and am trying to set up the Win bootloader to run FC2. So far I installed FC2 on a second harddrive with GRUB in the boot partition NOT the MBR. Then I ran "dd if=/dev/hda5 of=/boot.lnx bs=512 count=1" followed by "mcopy /boot.lnx a:" to copy the first sector of the boot partition. I then placed boot.lnx in the windows partition with the MBR and set up the boot.ini in Win XP to referance the boot.lnx file. All of this I have obtained from various websites. One of my friends was able to run this procedure fine and set up the dual boot. When I did it though it didn't work. My bootloader comes up and gives me the two options: Win XP or FC2. When I chose FC2 the screen cleared and then displayed "GRUB GRUB" in the top left corner of the screen and stops. I googled my way around and found that others have exprienced similar errors except theirs just continued to print out GRUB continuously. All of these sites suggested reinstalling GRUB. I did a reinstal and now it prints out just one "GRUB" and then stops... nothing farther. SO... here is my question: Does anyone know how to fix this error? is there something in the GRUB config file that needs to be set up? I am semi familiar with UNIX systems and have run Redhat before but it has been a while so just assume I don't know anything ... Any help is very appreciated.
 
Old 10-14-2004, 08:56 PM   #2
m00t00
Member
 
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292

Rep: Reputation: 30
get rid of xp bootloader and put grub on the mbr. its a lot easier...
 
Old 10-14-2004, 09:52 PM   #3
LZ5 Eagle
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
except from what I have seen those who tried doing that still got the grub error... I would rather not reinstall my winxp os right now...
 
Old 10-15-2004, 08:47 AM   #4
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Indicates a GRUB stage1.5 loading error as nothing more than the GRUB code in the boot block is executed. Hard to examine remotely without physical access to a system and its BIOS. Are you sure you installed GRUB correctly into /dev/hda5?
 
Old 10-15-2004, 10:29 AM   #5
gsd750
LQ Newbie
 
Registered: Sep 2004
Location: Scotland
Distribution: Fedora Core 2
Posts: 15

Rep: Reputation: 0
I had exactly the same problem trying to use the Windows boot loader.

You will need to re-install GRUB, otherwise everytime you upgrade e.g. the kernel you would need to go through the whole process again
 
Old 10-15-2004, 12:37 PM   #6
LZ5 Eagle
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
A reinstall of Grub did not work to fix the problem... Also i did this knowing that I would have to repeat the process everytime up I upgraded however I do not find this too complex if it works.

misc: if you have any ideas of what I should check or information that might be helpful in diagnosis I will attempt to get it for you. Any help I can get would be great.
 
Old 10-15-2004, 12:58 PM   #7
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Tell us more about your configuration. You refer to a "second harddrive". But /dev/hda5 is a logical partition on your primary master drive. How is the drive configured in the BIOS? LBA? What is in the GRUB config files /boot/grub/device.map and /boot/grub/grub.conf?
 
Old 10-18-2004, 01:46 AM   #8
LZ5 Eagle
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
hda1 ntfs primary partition used for my Win XP Programs
hda2 and hda3 ntfs primary partitions used for file storage
hda4 empty unformated partition expected to house Sun Solaris 10 beta 63
hda5 linux boot
hda6 and hda7 are also linux partitions but since I can not get it to boot into linux I am not sure which is for what...

hdb1 ntfs WinXP OS
hdb2 ntfs storage...

When it boots the BIOS is set to boot from hdb. One thing to also note is that the physical order of partitions on hda is hda5, hda6, hda7, hda4, hda1, hda2, hda3 so the /boot partition for linux is contained within the first 1024 cylinders of the hd so it should not be having any problems with the 1024 BIOS limit.

How can I check the grub.conf and device.map files? WinXP can't read that partition and I don't remember the linux equivalent of the old DOS type command.

Last edited by LZ5 Eagle; 10-18-2004 at 01:48 AM.
 
Old 10-18-2004, 03:18 AM   #9
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
cat filename is the command.
 
Old 10-19-2004, 11:13 AM   #10
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
LZ5 Eagle: You can check/modify your linux partition configuration files using the vi command line editor by booting from the FC2 Rescue CD (or from the FC2 Install CD-1 and type/select “linux rescue” instead of continuing with an installation).

Regarding how you are mapping the drives through BIOS, I find it hard to believe that Grub is recognizing what would normally be the “master” disk as hda (or (hd0) in Grub-speak), when BIOS is mapping the “slave” drive as the boot drive. In my experience, when you reassign the boot drive through BIOS, you also invert the hda/hdb assignments. If this is the case, then you can either use the MAP function in Grub and/or change the drive assignments in grub.conf and fstab to overcome the boot problem. Running the Grub command “find /boot/grub/stage1" could be very revealing.

Also, m00t00 had the right idea about putting Grub in the MBR. If it doesn’t work, it is really easy to revert back to the windows loader by running Fixmbr from the XP Recovery Console (or even easier by running dos “fdisk /mbr” after booting from a windows 95/98/me startup disk).

When you are stuck on a Grub problem, it is a really good idea to make a Grub Boot Floppy to speed up your tests, instead of booting to rescue mode to make Grub modifications. You can make a Grub Boot Floppy from Linux Rescue mode. How to make the boot floppy and a lot of other useful information can be found in the Grub Manual:

http://www.gnu.org/software/grub/manual/grub.html

 
Old 11-18-2004, 08:18 PM   #11
LZ5 Eagle
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Well thanks to everyone on their attempts to help... I tried a reinstall of FC2 one more time and this time made sure to write down all the partition info plus make sure the linux boot sector was within 1024 cylinders for compatability with my bios. Well to my great pleasure FC2 corrupted 3 of my non-Linux partitions... I set the install as I have done many times before to not mess with my primary HD and to install on the empty space of my second HD. For some reason the installation deleted the indexes of 3 of my partitions 2 on my Primary (non linux) HD and 1 on my secondary (linux) hd. So after much work I was able to recreate the indexes of 2 of the partitions but messed up the 3rd partition so it couldn't reindex. Lucky for me that was the Win XP partition... Anyway I am building a second computer out of old components that I have laying around and will try to get the dual boot using win xp bootloader on that system then once I figure out a good system for doing it I will trying it on my main system. I hear that this deletion of the indexes with FC2 is not that uncommon. Guess I will try FC3 now anyway.
 
Old 11-18-2004, 10:48 PM   #12
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Don't reinvent the wheel. Before installing a new operating system, do some research, find and read FAQs and HOWTOs, such as this:

Making Fedora Core 2 and Windows play well together
http://lwn.net/Articles/86835/
 
Old 11-18-2004, 11:24 PM   #13
LZ5 Eagle
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Actually I did read a lot of FAQ and How To's on setting up Dual Boots, using Grub, Win Bootloader, and other boot loaders. A friend of mine also did his own research during approximately the same time period. Neither of us found any warning about such problems. Anyway it is good to know now. Thanks for the link misc

btw: I was similar to what that link said although not exactly. 2 of the partitions were as mentioned although I found a different way of fixing the problem. The third which was my winxp boot partition had more problems with it than what was listed. Any procedures to do any such restoration of indexes failed. I really don't know exactly what was different with that partition but it was more complex.
 
  


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
how to recover GRUb of FC2 ??? executive Linux - General 1 04-18-2005 05:58 AM
GRUB and FC2 mrmike Linux - Newbie 2 10-06-2004 04:10 PM
GRUB to LILO on FC2 sevi Linux - Newbie 21 08-25-2004 01:39 PM
FC2 on SATA no GRUB! obiwanshinobi Fedora - Installation 6 07-30-2004 10:59 AM
GRUB problem (FC2) darkranger Linux - Newbie 3 05-30-2004 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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