LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tip: what to do when grub crashes (https://www.linuxquestions.org/questions/linux-newbie-8/tip-what-to-do-when-grub-crashes-665152/)

randomman 08-25-2008 12:47 AM

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

your_shadow03 08-25-2008 01:03 AM

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?

randomman 08-25-2008 05:43 AM

Quote:

Originally Posted by your_shadow03 (Post 3258633)
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

your_shadow03 08-25-2008 06:29 AM

But How? Thats my question?

jomen 08-25-2008 07:17 AM

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)

yancek 08-25-2008 08:49 AM

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.

Quakeboy02 08-25-2008 12:48 PM

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.

aus9 08-27-2008 07:29 AM

try my troubleshooter in the signature

tab is your friend (no pun intended your shadow03


All times are GMT -5. The time now is 10:01 PM.