Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 05-05-2004, 08:59 PM   #1
Registered: Apr 2004
Location: Hanover Pa
Distribution: Fedora core 1
Posts: 104

Rep: Reputation: 15
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.....

Old 05-05-2004, 09:20 PM   #2
Registered: Feb 2004
Distribution: Arch
Posts: 498

Rep: Reputation: 31
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 and install it.

Last edited by vdogvictor; 05-05-2004 at 09:22 PM.
Old 05-05-2004, 10:13 PM   #3
Registered: Apr 2004
Location: Hanover Pa
Distribution: Fedora core 1
Posts: 104

Original Poster
Rep: Reputation: 15
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.

Thanks for the help...

Old 05-06-2004, 03:35 PM   #4
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
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.
Old 05-07-2004, 08:35 PM   #5
Registered: Feb 2004
Distribution: Arch
Posts: 498

Rep: Reputation: 31
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).
Old 05-07-2004, 10:11 PM   #6
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Also if you run update-grub it will make a new menu list in later kernels.Helps me when I can't manually figure out the right syntax to use,david


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
No grub.conf file dhawal Linux - Enterprise 3 10-22-2005 12:15 AM
I cannot edit grub.conf file!! Azzath Linux - Software 3 03-23-2005 02:00 PM
Fedora 2, grub.conf keeps resetting Engl Fedora 2 10-24-2004 05:12 AM
What should my grub.conf file say for Windows? EVO VIII Chris Linux - Software 6 01-18-2004 04:33 AM
How to edit grub.conf file? hnash53 Linux - Software 1 12-12-2003 12:33 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration