LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 06-21-2005, 04:01 PM   #1
bomdemais
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
FC4 - Grub Can't Find Hard Drive


I just tried installing Fedora Core 4 for the first time, on an old 400 MHz computer. Initially, I selected "Autopartition" -> "Delete all Partitions," but it failed. So then I tried "Autopartition" -> "Delete all Linux Partitions." I'm not sure if that was what I was supposed to do, but it seemed to work. The (text only) install completed OK.

Then when I booted up it went to the grub screen, and I'm not sure how to get past it. I tried following the online instructions:

First, I typed "root (" and then hit tab so it would show me my partitions. The only one it found was "(fd0)", the stinking floppy drive!

Second, I tried "find /sbin/init", and it said File not found.

Next, I tried sticking the FC disk 1 into the CD drive (just to see if I could repair or re-install or something), and I went into the BIOS and told it to load from CD ROM. But it still went straight back to the grub shell.

So apparently grub can't see any partitions(?). But FC seemed to install OK... I don't know how to re-partition, or how to see the partition that FC installed on. Help! What can I do to get this working?
 
Old 06-22-2005, 10:29 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
If you want to fix the grub setup from the “grub>” prompt, try this:

grub> find /boot/grub/stage1
or
grub> find /grub/stage1

which will output something like: (hd0,2)

Only one of the “finds” will find the grub folder. Then:

grub> root (hd0, )

using whatever (hd0, ) was output in “find”. Then:

grub> setup (hd0)


-- OR --


Boot into FC4 Rescue mode from the first FC4 Installation CD (boot: linux rescue) or using the FC4 Rescue CD and follow the instructions about searching/mounting fedora installations.

Once you’re in, run:

fdisk -l

to show the partitions.


Then edit /boot/grub/grub.conf using:

vi /boot/grub/grub.conf

and check that “root (hd0,...)" points to the “/boot” partition and that “kernel...ro root=LABEL=...” points to the root “/” partition. Grub-speak dictates that partitions and drives are numbered starting at zero (i.e., /dev/hda1 usual = (hd0,0) in grub-speak).

If that fails, then run:

grub-install (hd0)

If that fails, then run:

grub

and follow the “find”, “root” and “setup” steps listed at the beginning of this post.

Last edited by WhatsHisName; 06-22-2005 at 10:30 AM.
 
Old 06-29-2005, 04:07 PM   #3
bomdemais
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Original Poster
Rep: Reputation: 0
hey, thanks for the reply. i've been out of town so i'm just getting back to this.

i was able to go into rescue mode, but i wasn't totally sure of the changes that i should make to grub.conf, so if you could please clarify, here is all the data:

=========================
Output from fdisk -l:
=========================
Disk /dev/hda: 8455 MB, 8455200768 bytes
255 heads, 63 sectors/track, 1027 cylinders
units = cylinders of 16065 * 512 = 8225280

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 26 104422+ 83 Linux
/dev/hda3 27 1027 8040532+ 8e Linux LVM
=========================
content of /mnt/sysimage/boot/grub/grub.conf:
=========================
#boot=/dev/hda
default = 0
timeout = 5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,1)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.11-1.1369_FC4.img
=========================

So, from your instructions, my impression is that in grub.conf I should change
root(hd0,1) to root(hd0,0)? Is that right?

What should I change root=/dev/VolGroup00/LogVol00 to? What else needs to change? Should the boot device be hda3 (the one with all the disk space)?

Thanks for your help!
 
Old 07-01-2005, 12:52 AM   #4
graywiz
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
Greetings.... I to am having the same problem, only excepting is I have two drives... my /dev/hda1 partition is the boot partition.. After the install I checked by booting with the rescue CD and discovered there was NO grub.conf file.. Also, the install re-booted without even asking... and I get the GRUB prompt, but not a prompt I can put command into.. just:

GRUB _

I attempted to create a grub.conf file almost exactly as the above example... and still nothing.. It almost appears that it's not seeing the hard drive at all... hence can't find the GRUB can't find the grub.conf file...

Any Ideas would be much appreciated...

Laters,


The Gray Wizard
(aka: Matt)
 
  


Reply



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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
FC4 - I Cannot Find Grub.conf fortezza Fedora 11 11-21-2005 08:52 AM
FC4 and FreeBSD same Hard Drive RedHatCore *BSD 4 08-17-2005 07:49 PM
Installed GRUB on 3rd hard drive, how do I boot 1st drive? jesusphreak Linux - Newbie 4 04-06-2005 09:34 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM

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

All times are GMT -5. The time now is 07:46 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
Open Source Consulting | Domain Registration