LinuxQuestions.org
Review your favorite Linux distribution.
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-27-2006, 09:42 AM   #1
jfraymondpa
Member
 
Registered: Oct 2005
Location: Northeast PA
Distribution: Fedora 15/Ubuntu 10.10
Posts: 53

Rep: Reputation: 15
Question FC5 Clean Install causing Grub problem


Well I really got things in a tangle now. I started off doing an upgrade from FC4 to FC5, this caused a Grub problem, couldn't get passed the Grub prompt.
So I decided to get FC6 and do a clean install, forgot my win drive didn't have enough space.

So back to FC5 and tried a clean install. The install went okay, now I'm back to the Grub command line.

When I try: "grub-install /dev/hdb" this is the error: "/dev/hdb does not have any corresponding BIOS drive"

Now I haven't touched the BIOS and when I do a "df -f" I see the hdb drive partitioned as I laid out.
"/dev/hdb1 /boot
/dev/VolGroup00/LogVol00 /
01 swap
02 /home
03 /pgms

My windows drive is the /dev/hda and I had Grub install to MBR

What is my problem? Does it have something to do with the LVMs?

Thanks,
John
 
Old 10-27-2006, 09:48 AM   #2
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,352

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
You don't need grub on hdb. You need gurb on the mbr of hda to point to the boot partition on hdb. That should be it.
 
Old 10-27-2006, 03:51 PM   #3
jfraymondpa
Member
 
Registered: Oct 2005
Location: Northeast PA
Distribution: Fedora 15/Ubuntu 10.10
Posts: 53

Original Poster
Rep: Reputation: 15
Cliff --

Sorry I didn't make it clear in my original post.

I did select put Grub on MBR on hda.

Do you have any suggestions that I can use to verify this?

-- John
 
Old 10-28-2006, 07:31 AM   #4
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,352

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
At this point I'm a little confused. Could you clarify a few things please?

Does your windows system boot? I'm guessing yes, unless you are posting from another system.

Where did you have grub installed before you started re-installing? Was it on MBR on hda ?

On my system "df -f" is an invalid option. Could you post cut and paste the results of that command? On my system a df -h or a df -a works.

My best guess at this point is grub has not been updated correctly. As far as I know, Fedora and Red Hat both try to update grub with a script during the install. It would appear at this point that did not work with the various installs you have done. I think the fix will be to manually edit the menu.lst file, and fix up the boot to linux section.
 
Old 10-28-2006, 01:09 PM   #5
jfraymondpa
Member
 
Registered: Oct 2005
Location: Northeast PA
Distribution: Fedora 15/Ubuntu 10.10
Posts: 53

Original Poster
Rep: Reputation: 15
Cliff --

"Does your windows system boot? I'm guessing yes.... " Yes it does.

"Where did you have grub installed before you..." Yes it was MBR on hda.

"On my system "df -f" is an invalid option..." Same here that was a typo, I did use the -h.

"My best guess at this point is grub has not been updated correctly..." That is what I think also, but I'm having a dickens of a time getting GRUB set up. I'm using the instructions in "Linux in a Nutshell" by O'Reilly. Starting on page 510. Tried to build a boot floppy using the directions on pg 511. but can't seem to get the control key to work on the command "/sbin/brub --batch <<EOT"

I belive "EOT" is control - d, but it dosen't give me a continuation line to enter the rest of the commands.

If you can give me some better directions that would be great.

Thanks,
John
 
Old 10-29-2006, 06:28 AM   #6
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,352

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
How goes the battle? I have a copy of O'Reilly ch04 fifth edition. I suspect we have different versions. I found this chapter on a web site.

There are several ways to go about fixing this up. What O'Reilly has documented in great detail, I'm sure will eventually work. However, there are ways I think may make things easier.

Since you can not boot linux at this point, it is not possible to edit the menu.1st.

May I suggest if you have assess to a cd burner, download a copy of a live linux distro. There are many to choose from. My favorite is Knoppix. It has very good hardware detection, and will boot most systems. Once you boot Knoppix, there will be icons on the desktop, one for each harddrive. To mount the drive, you click the icon. It will mount read only. Then you change to read/write mode. At this point you navigate to your menu.1st file and edit it with any of the editors Knoppix provides. Once you have the changes saved, restart the system, minus the Knoppix cd, and if you have your changes right, you FC system should boot.

This may seem a little complicated, but Knoppix has an extremely good web site and forum for support. As a tool in your tool bag for linux, I wouldn't live without a live bootable CD. I recently fixed a screwed up windoze system with a Knoppix CD. I rescued some critical files with Knoppix, and yes it was a NTFS system.

There are lots of other live cd distros. Ubuntu and Mandriva both have them. My experience found Knoppix has the best hardware detection. I run a ThinkPad I series ( it is a Acer relabeled ) on Knoppix, even run wireless with it.

If you don't have a burner, you may want to look into the possibility of some kind of 'rescue mode' on your FC install CD's. I don't run FC, so I'm not familiar with any options there. It may be possible to re-install grub from the CD without re-installing the entire system.

If non of this will work for you, I guess we can forge forward with O'Reilly.
 
Old 10-29-2006, 06:10 PM   #7
jfraymondpa
Member
 
Registered: Oct 2005
Location: Northeast PA
Distribution: Fedora 15/Ubuntu 10.10
Posts: 53

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
How goes the battle?
Well, yesterday I picked up O'Reilly's lasted book "Fedora Linux". There was some new information on Grub. Used it and now I've go FC5 up and am in the process of downloading the dvd iso for FC6 so making progress.

I used the grub cmd line:
find /grub/stage1 this returned (hd0,0)
root (hd0,0) this returned Filesystem type is ext2fs, partition type 0x83
setup (hd1) this returned a bunch of info and DONE
reboot

So I guess all is well for now, I'm not going to mess much with FC5, going to go right to FC6 now.

Thanks for the help.
John
 
Old 10-30-2006, 07:04 AM   #8
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,352

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Glad you got it going.
 
  


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
install grub to new clean hard drive? Hosiah Linux - General 5 07-21-2006 10:02 PM
AMD64 + FC5 Clean Install + New Box Misterfixit Fedora 4 06-04-2006 03:11 PM
grub not working after FC5 install msdss Red Hat 1 06-03-2006 07:04 PM
Clean install - grub prompt Phlow101 Linux - Newbie 8 12-13-2004 10:10 AM
clean install, but three selection in the grub wood Linux - General 4 10-25-2003 03:04 PM

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

All times are GMT -5. The time now is 06:46 AM.

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