Screwed up my grub. conf file. Can't get into Fedora?
FedoraThis forum is for the discussion of the Fedora Project.
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.
Screwed up my grub. conf file. Can't get into Fedora?
Hello all.
I guess I did a dumb thing when I edited the grub. conf file.
I tried to hash out previous versions of the kernel, but must have hashed out something I should have not.
Now I get a error when trying to boot. This is what is says
"Booting 'Fedora Core (2.4.22-1.2179.nptl)'
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.4.22-1.2179.nptl ro root=abel=/ hdc=ide-scsi rhgb
"Error 15: file not found press any key to contiue".
I can do the c to get into a grub command line but don't have a clue what to do in there
How can I get back in the grub conf file to change it back.
By the way, I do not have a floppy drive in this computer...
I tried to use the first install disk for Fedora and the rescue mode, but I don't have a clue how to use this.
Also, it's not showing my the boot directory where the grub. conf file is.
Don't have a clue how to use vi or emacs either...
Any help on this would be greatly appreciated.....
The easies way would be to boot from your fedora cd and type "linux rescue" at the boot screen. Tell it all the stuff and when you get to a command prompg type these two commands
chroot /mnt/sysimage
grub-install /dev/hda
that installs grub to your MBR again...hopefully it doens't use your existing GRUB.conf file though...but hey if it does just go to rescue again and do this
chroot /mnt/sysimage
then edit your grub.conf in a text editor.
edit: I didn't notice you don't know how to use VI...try pico or joe if they are installed (they might come with fedora). If not download jed from http://www.jedsoft.org/ and install it.
Last edited by vdogvictor; 05-05-2004 at 09:22 PM.
Thanks for the replay vdogvictor, it's appreciated.
I figured it out.
Not good at all with command text editors.(But I'm learning)
What I did was this used the backup copy gedit makes.
Once I got into the grub folder via the rescue fedora disk1, I did this
mv grub.conf~ grub.conf and it worked.
Sure got a lot of practice doing the command line stuff in the last two hours.
Use see, I updated my kernel to 2488 or what ever it was and xf86 didn't work with it and I didn't feel like bothering updating xf86, and if it did work, I'd probably have to update the nvidia driver.
So I did a rpm -e to the new kernel update and had to re edit my xf86 file to get the nvidia working again, which I did.
vdogvictor: The other day when I was trying to help someone with a RHL9 grub problem, I tried to run grub-install from linux rescue (RHL9) as you described. It would not run and I assume the same thing would happen under fedora.
You can make a Grub floppy boot disk under linux rescue, since dd does work, and use it to do the grub installation.
Well I have done it before (in fedora) and it definently worked for me...maybe you didn't chroot first or your forgot to put where you want it installed /dev/hda is the MBR of hda and /dev/hda1 would be the superblock of hda1 (i think).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.