LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2008, 12:47 AM   #1
randomman
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Rep: Reputation: 15
tip: what to do when grub crashes


just to share with whoever needs this tip

i somehow screwed up my grub loader. and my system now boots to the grub shell if i may call it so. so here is what you do, assuming that your menu.lst still intact

grub> root (hd0,#)

# refers to partition number where your system is installed

grub> configfile /boot/grub/menu.lst


and it should boot fine .... i am using kubuntu

good luck
 
Old 08-25-2008, 01:03 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
Say My Friend informs me that a system has been screwed up and now it displays only
Code:
grub>
And Yu say
Code:
grub> root (hd0,#)
How Gonna I know Which partition the system was installed.Thats Not my System.Then Its Obvious I am not familiar with the system before.
How gonna I track it out?
 
Old 08-25-2008, 05:43 AM   #3
randomman
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by your_shadow03 View Post
Say My Friend informs me that a system has been screwed up and now it displays only
Code:
grub>
And Yu say
Code:
grub> root (hd0,#)
How Gonna I know Which partition the system was installed.Thats Not my System.Then Its Obvious I am not familiar with the system before.
How gonna I track it out?
you can try out a couple of them ... and check if filesystem is there
 
Old 08-25-2008, 06:29 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
But How? Thats my question?
 
Old 08-25-2008, 07:17 AM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
grub has the feature of command completion when you hit TAB

start to write and hit TAB at any place for a display of anything that fits what you have written so far...
For fun: try to boot your perfectly working system this way and you will see (hit "c" or "e" when the grub-screen shows up)
 
Old 08-25-2008, 08:49 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,279

Rep: Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380
You can also use the find command at the grub prompt:

find /boot/grub/stage1

This will give you the partitions with grub but it isn't always helpful if you have multiple operating systems.
 
Old 08-25-2008, 12:48 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,297

Rep: Reputation: 126Reputation: 126
I managed to bork my grub last night with two phantom OSes in the MBR, and I did what I always do: loaded the "Super Grub Disk". Yeah, it's nice to know the grub commands, but I can never remember them all when I need them the most. Super Grub Disk is just the easiest solution for me.

Standard Disclaimer: I have nothing to do with the SGD software.
 
Old 08-27-2008, 07:29 AM   #8
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,266

Rep: Reputation: Disabled
try my troubleshooter in the signature

tab is your friend (no pun intended your shadow03
 
  


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
Fedora Installer Crashes after selecting where to install GRUB simonpcook Fedora 2 05-18-2008 07:09 PM
GRUB and LILO crashes on both Gentoo & Ubuntu DARKGuy Linux - General 6 08-17-2006 09:03 AM
GRUB crashes SuSE 10.0 when Installing SimplyMEPIS jwhibdon SUSE / openSUSE 7 02-25-2006 01:36 PM
Just a tip! boza LinuxQuestions.org Member Intro 1 07-20-2004 08:30 AM
Grub Crashes! euwingtham Linux - Newbie 3 09-04-2003 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration