<solved>grub rescue

If none of the more specific forums is the right place to ask

<solved>grub rescue

Postby manntraxx » 2012-02-18 12:17

hello guys, i need some help
my system doesn't boot anymore

when i turn on the laptop, instead of the normal grub screen, i get the following:

"error: file not found
Entering rescue mode...
grub rescue> _"

i tried google it but none of the suggested ways to fix it couldn't help me
i tried also to make a bootable usb w/ unetbootin but all the distros failed to load w/ a syslinux boot error message
so i really need to fix the existing debian installation to get access to my files i need for the university :/
it's debian stable (6.0.4) on hp mini 210

thanks in advance
Last edited by manntraxx on 2012-02-19 07:45, edited 1 time in total.
manntraxx
 
Posts: 28
Joined: 2011-08-30 12:41

Re: grub rescue

Postby kiyop » 2012-02-18 14:52

Do you have any bootable live linux CD/DVD or USB?

What is shown if you type "ls" and press ENTER key at "grub rescue >" ?
Code: Select all
ls


Can you get in BIOS configuration menu?
If you can, is not any internal HDD detected by BIOS?
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: grub rescue

Postby manntraxx » 2012-02-18 22:08

Typing "ls" results in:

(hd0) (hd0,msdos7) (hd0,msdos6) (hd0,msdos5)
manntraxx
 
Posts: 28
Joined: 2011-08-30 12:41

Re: grub rescue

Postby kiyop » 2012-02-19 02:03

What goes on, if you type the following at "grub rescue >"?
Code: Select all
ls (hd0,msdos5)/
ls (hd0,msdos6)/
ls (hd0,msdos7)/

If you see
grub
with, for example, (hd0,msdos5), then
Code: Select all
set prefix="(hd0,msdos5)/grub"

If you do not see any
grub
and you see
boot
with, for example, (hd0,msdos7), then
Code: Select all
set prefix="(hd0,msdos7)/boot/grub"

If you see
boot
with, for example, (hd0,msdos7), then
Code: Select all
set root="(hd0,msdos7)"


After setting "prefix" and "root" by above,
Code: Select all
insmod normal
normal


Refer to:
Ubuntu Documentation > Community Documentation > Grub2 - GRUB 2 Troubleshooting Preparation
https://help.ubuntu.com/community/Grub2 ... reparation
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: <solved>grub rescue

Postby manntraxx » 2012-02-19 07:45

Thanks a lot, man!
It works like a charm now :)
manntraxx
 
Posts: 28
Joined: 2011-08-30 12:41

Re: <solved>grub rescue

Postby kiyop » 2012-02-19 15:11

manntraxx wrote:Thanks a lot, man!
It works like a charm now :)

I am happy to have helped you :D

You can run "grub-install" to suitable MBR to set grub on MBR correctly.
If suitable MBR is on /dev/sda, after booting debian,
Code: Select all
su -
TYPE ROOT PASSWORD
grub-install /dev/sda
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: <solved>grub rescue

Postby ambwom » 2013-01-04 10:18

Hello!

I have the same problem, but in my case when I write "ls (hd0,msdos5) " or any other (i write all of them) I found the replies "bad filename" or "unknown filesystem"

I need a hel Pleaaaaaaaaaaaaaase, I have also important data in this computer I really can't lose it. My laptop is HP Mini 110-4100

Thank you so much
ambwom
 
Posts: 2
Joined: 2013-01-04 10:12

Re: <solved>grub rescue

Postby kiyop » 2013-01-04 13:55

To ambwom,

Calm down and read "Forum guidelines. Please read before first post!"
1. Do not cross post. Posting the same topic in more than one category only creates confusion and makes it hard to keep track on the various replies. Double posts will be locked.
2. Be descriptive. Use a meaningful headline and try to make your question as clear as possible. Include as much information as possible such as what Debian branch you are using, error messages, what you did that may have caused the problem etc. This greatly increase the chances of getting useful help.
...
7. (snip by kiyop)
Avoid 'thread hijacking'. Unless your question is directly related to the thread's topic, start a new one.


Do not hijack another person's thread even if the problem is similar.
Start a new thread instead.
Do not ask a question in diffferent threads like viewtopic.php?f=10&t=82109&p=468196#p468196

ambwom wrote:I have the same problem,

Write concretely what you did and what your problem is.

ambwom wrote: but in my case when I write "ls (hd0,msdos5) " or any other (i write all of them) I found the replies "bad filename" or "unknown filesystem"

Is there "(hd0,msdos5)"?
I guess that there came a message "grub rescue>".
If so, execute
Code: Select all
ls

and check if there is "(hd0,msdos5)".

Furthermore, the last "/" is important.
"ls (hd0,msdos5)" should result in an error.
"ls (hd0,msdos5)/" may work.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: <solved>grub rescue

Postby naikymen » 2013-01-07 00:37

Hello I'm having some unexpected trouble while following the instructions on this thread. First I must clarify that I came here looking for a solution to a slightly different situation, that is the grub_rescue> prompt appearing after I upgraded to Ubuntu 12.10 from 12.04.1 I also have windows installed on a partition in the same hard drive (I don't know if that matters at all) and for the moment I am unable to get my hands on a live CD or USB.

Set command returns:

lang=
linux=(hd0,6)/boot/vmlinuz-3.5.0-21-generic
locale_dir=
prefix=(hd0,6)/boot/grub/i386-pc
root=hd0,6
secondary_locale_dir=

But when i run "insmod normal" or using the full path to normal.mod I get the following error:

error: symbol not found: 'grub_disk_dev_list'

Same for insmod linux except I get:

error: symbol not found: 'grub_realidt'.

Though I've been searching, I couldn't find what this means or how to fix it. Any help would be immensely appreciated.
PS: I realize this is a Debian forum, but Id appreciate your help given that it can be provided.
naikymen
 
Posts: 2
Joined: 2013-01-07 00:21

Re: <solved>grub rescue

Postby kiyop » 2013-01-07 11:30

To naikymen,

Do not hijack this thread, which I wrote just before your post:
viewtopic.php?f=10&t=76113&p=468877#p468233
I do not like persons who ignore (do not read) what I wrote.
Now I do not want to help you, but How about considering the result of
Code: Select all
ls

executed at "grub rescue>" prompt ?

If you do not use Debian but use ubuntu, how about asking in Ubuntu forums; http://ubuntuforums.org/index.php
there are many Gurus who know well about Grub2 in Ubuntu forums.
http://ubuntuforums.org/showthread.php?t=1599293
Altenatively, boot repair may help you.
https://help.ubuntu.com/community/Boot-Repair

Good luck and good bye.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: <solved>grub rescue

Postby naikymen » 2013-01-09 18:40

kiyop
Im sorry for hijacking this thread and ignoring your post (which i had read) hoping you wouldnt mind, i was wrong.
I had previously gone through the links you povide and i couldnt make use of them, thought later i did, because they required a live image of ubuntu to work. Guess i could've asked the same there. I apologize for that too.
I had followed all of your recomendations above and had considered the output of ls at grub_rescue> and had set the variables myself as indicated by you.
The solution i found was to knock the doors of my neighbors asking for a PC to make a live Usb and proceed using the methods you provide.
Regards.
naikymen
 
Posts: 2
Joined: 2013-01-07 00:21

Re: <solved>grub rescue

Postby yoursolace » 2013-02-21 02:03

Just needed to say THANK YOU!!!!!!
yoursolace
 
Posts: 1
Joined: 2013-02-21 02:00

Re: <solved>grub rescue

Postby GarryRicketson » 2015-10-25 01:58

ambwom wrote:Hello!

I have the same problem, but in my case when I write "ls (hd0,msdos5) " or any other (i write all of them) I found the replies "bad filename" or "unknown filesystem"

I need a hel Pleaaaaaaaaaaaaaase, I have also important data in this computer I really can't lose it. My laptop is HP Mini 110-4100

Thank you so much

Well now that thread has been solved, and hijacked, etc, ...Some thing that I wonder,
I have also important data in this computer I really can't lose it.

Why do you not have back ups, or some sort of copies made and stored somewhere safe, ? I mean really , if the data is that important , that would be the first thing to do , before doing that kind of upgrade, or messing with the bootloader , etc.
If the data changes daily, then new backups need to be made daily, if the data is so important , that you can not lose it. Things happen, what if someone steals the laptop ?
User avatar
GarryRicketson
 
Posts: 4804
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to General Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable