Can't find kernel - grub help please (long post...sorry)
Fedora - InstallationThis forum is for the discussion of installation issues with Fedora.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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*
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.