LinuxQuestions.org
Visit Jeremy's Blog.
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


Closed Thread
  Search this Thread
Old 03-22-2004, 10:52 PM   #1
TreeDragon60
LQ Newbie
 
Registered: Feb 2004
Location: Eastern PA
Distribution: Fedora Core
Posts: 16

Rep: Reputation: 0
Can't find kernel - grub help please (long post...sorry)


Hi,

After two days of searching these forums and trying everything I possibly can think of, I need to know if I am just missing something, stupid or what.

I have Fedora Core 1 - after running fine for a month, all of a sudden at boot I get the grub> prompt. This is the only operating system installed on this computer

I searched the forums, tried all the "grub" stuff - and have now gotten to a point that when I boot I just get "Boot sector not found - reboot your system"

I booted from the Fedora install disk one...from there I can go to grub prompt...
When I use

grub> root ( <tab>
I get
grub> root (hd0, *then* <tab>
Prtn 0 - ext2fs, type 0x83
Prtn 1 - ext2fs, type 0x83
Prtn 2 - unknown, type 0x82
*then*

grub> root (hd0,0)/ <tab>
grub> root (hd0,0)/grub/

If i do...
grub> root (hd0,1)/ <tab>
I get all the boot, dev, proc, var...etc and all the rest of the directories so I assume this is my main partition.

If grub> (hd0,2)/ <tab> I get "cannot mount selected partition"

I then do
grub>root (hd0,1)

And I get
Checking if "/boot/grub/stage1" exists...no
Checking if "/grub/stage1" exists...no

That is as far as I can go - I searched and searched and it looks as though there is nothing in my grub directory. I also cannot find the kernel...is there a particular place that Fedora looks for it? I also cannot find a grub.conf file or a menu.lst file. I know that my system is still there as I can see a lot of the files that are specific to this system - downloads and all.

I also tried booting as linux-rescue from the CDROM, then doing
chroot /mnt/sysimage
sh-2.05b# grub-install /dev/hda

I get

/dev/hda: not found or not a block device.

Did I totally screw this thing up? Do I need to just bear down and find the kernel so that I can load it, or have I gotten now to a point where that won't do me any good?

At this point I am so frustrated...I am about ready to bag the whole thing and do a reinstall - at least I'll get more practice setting up LAMP and stuff.

Thanks in advance to anyone that can get me out of this mess.
 
Old 03-23-2004, 10:22 AM   #2
jon-do
Member
 
Registered: Feb 2004
Distribution: Red 9, FC 2 Test 3
Posts: 98

Rep: Reputation: 16
when you get to this point "sh-2.05b#" do you have the /boot/grub/ files?
 
Old 03-23-2004, 10:59 AM   #3
TreeDragon60
LQ Newbie
 
Registered: Feb 2004
Location: Eastern PA
Distribution: Fedora Core
Posts: 16

Original Poster
Rep: Reputation: 0
jon-do...

when I get to the sh-2.05# prompt I do

chroot /mnt/sysimage

then

cd /boot/grub

This directory has the stage1, stage2, device.map files - but no grub.conf file.

Note:when I use grub to view the hard drive there is no /boot/grub directory (before I do chroot /mnt/sysimage.)

If you need any more info let me know - thanks!
 
Old 03-23-2004, 12:40 PM   #4
jon-do
Member
 
Registered: Feb 2004
Distribution: Red 9, FC 2 Test 3
Posts: 98

Rep: Reputation: 16
This is what I have in my grub folder


-rw-r--r-- 1 root root 82 Feb 27 13:52 device.map
-rw-r--r-- 1 root root 7584 Feb 27 13:52 e2fs_stage1_5
-rw-r--r-- 1 root root 7248 Feb 27 13:52 fat_stage1_5
-rw-r--r-- 1 root root 6688 Feb 27 13:52 ffs_stage1_5
-rw------- 1 root root 785 Mar 22 13:00 grub.conf
-rw-r--r-- 1 root root 8192 Feb 27 13:52 jfs_stage1_5
lrwxr-xr-x 1 root root 9 Mar 17 01:50 menu.lst -> grub.conf
-rw-r--r-- 1 root root 6848 Feb 27 13:52 minix_stage1_5
-rw-r--r-- 1 root root 9056 Feb 27 13:52 reiserfs_stage1_5
-rw-r--r-- 1 root root 3194 Feb 15 00:39 splash.xpm.gz
-rw-r--r-- 1 root root 512 Feb 27 13:52 stage1
-rw-r--r-- 1 root root 104072 Feb 27 13:52 stage2
-rw-r--r-- 1 root root 6336 Feb 27 13:52 vstafs_stage1_5
-rw-r--r-- 1 root root 9128 Feb 27 13:52 xfs_stage1_5

and from your post you do not have a grub.conf under /boot/grub/ what else don't you have from the above list of files

check if you have a grub.conf under /etc
 
Old 03-15-2009, 12:18 AM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
then doing
chroot /mnt/sysimage
sh-2.05b# grub-install /dev/hda

I get

/dev/hda: not found or not a block device.
========================

TreeDragon60:

You issued command grub-install after chrooting to /mnt/sysimage: the correct syntax might be "grub-install /dev/sda since this operation runs OUTSIDE grub not inside. Or if not, try fdisk -l and see how your system uses names of device: sda, hda, sdb, etc. Use its own language for that command.

It seems your only problem is the grub. Using the installer cd try to chroot again to the hardisk system root and REINSTALL grub, certainly creating grub.conf is automatic in this process.

Then, after grub is installed again in the file system this time you may reissue the grub-install command to /dev/sda (or whatever name it is) in order to edify the master boot record.

Under normal conditions, reinstalling grub will not endanger your data, the business is done exclusively within the /boot folder.

I hope this helps. Goodluck.

Last edited by malekmustaq; 03-15-2009 at 12:22 AM.
 
Old 03-15-2009, 12:29 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
This thread was FIVE years old before that post. FC1 is dead and buried.

This is what we call a zombie thread - brought back from the dead.
 
Old 03-15-2009, 07:13 AM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Yeah, hopefully the original problem has now been fixed
 
  


Closed Thread



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
My first linux experience (long post) Bonzodog General 1 10-18-2005 03:29 PM
long mail server post msound Linux - Software 2 08-14-2005 12:04 PM
Long time lurker, second post etrumbo LinuxQuestions.org Member Intro 1 04-18-2005 01:04 AM
Kde in Slackware - Very Long Post slaxnoob Slackware 2 08-04-2004 04:43 PM
help network causes crash. (long post) phunkymunky Linux - Networking 1 12-28-2003 07:36 AM

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

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