LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-13-2005, 01:58 PM   #1
gravesb
Member
 
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Rep: Reputation: 15
broken grub


I downloaded and compiled a new kernel, and broke my menu.lst file so that I can't boot into the old or new kernel. Is there anyway short of a complete reinstall to fix this? Thanks
 
Old 06-13-2005, 02:03 PM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
calm down!

you probably have just either made a bad kernel or set your menu.lst up wrong.

in /boot does the kernel image you want to use correspond to the one in menu.lst. If not you need to modify that. If the kernel I would suggest keeping the old kernel in the menu so that you can still get in if the new on is borked. in any event you can use knoppix or similar to repair any damage...

what did you call your new kernel? vmlinuz? or what? please explain the steps you took from the begining
 
Old 06-13-2005, 02:39 PM   #3
gravesb
Member
 
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Original Poster
Rep: Reputation: 15
I used the steps on the installationo wiki on this site, but I couldn't get the /sbin/mkinitrd /boot/initrd-x.x.x.img x.x.x to work. It couldn't find certain files in the initrf.img file, which confused me. I looked around, and I think I got caught switching horses mid stream instead of starting over from scratch. Anyway, my computer tries to boot, gets locked up, and defaults to an empty line. It takes and responds to text, but most commands do not work. Exit works, and it tells me about my kernel being in distress because it can't mount my root. I am pretty sure it is because I broke menu.lst or some file it is dependent on, but I can't get to it to edit it. I have a live CD, but I can't figure out how to access my hard drive from it in order to make corrections.
 
Old 06-13-2005, 02:43 PM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
it kind of sounds like you didn't include support for the filesystem that your root partition is mounted on when you compiled the kernel.

Knoppix is dead easy. It mounts everyting. And there is a normal command line....
 
Old 06-13-2005, 02:44 PM   #5
gravesb
Member
 
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Original Poster
Rep: Reputation: 15
Is knoppix a live CD as well?
 
Old 06-13-2005, 11:19 PM   #6
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
Yes, Knoppix is a live cd.
 
  


Reply


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
GRUB Loading stage2 Error, hard-disk broken ??? jdevitt Fedora 5 09-15-2005 08:54 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 03:38 PM


All times are GMT -5. The time now is 02:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration