[SOLVED] after system crash system hangs in grub

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] after system crash system hangs in grub

Postby magfan » Dec 4th, '14, 12:36

After a system crash my mga4 system does not boot any more. It simply stops in grub. I have no idea what might have gone wrong and how I could try to start the system from the grub command line. If I type now "find /boot/grub/stage1" at the promt grub gives me "(hd0,1)". But since I do only have an internal SAS-RAID I am expecting something like "(sd0,1)". Any ideas how I could solve this problem?
Attachments
20141204_112900.jpg
20141204_112900.jpg (392.77 KiB) Viewed 892 times
Last edited by magfan on Dec 4th, '14, 16:09, edited 1 time in total.
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: after system crash system hangs in grub

Postby filip » Dec 4th, '14, 13:36

Note that Grub use different nomination (in some cases even numeration) of hard drives then the kernel ;).
filip
 
Posts: 478
Joined: May 4th, '11, 22:10
Location: Kranj, Slovenia

Re: after system crash system hangs in grub

Postby doktor5000 » Dec 4th, '14, 14:01

magfan wrote:If I type now "find /boot/grub/stage1" at the promt grub gives me "(hd0,1)". But since I do only have an internal SAS-RAID I am expecting something like "(sd0,1)".

Since when does grub differentiate between hd and sd ?

Apart from that, did you try to boot that, as it seems the only thing that grub can find? Only other option would be some live medium.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: after system crash system hangs in grub

Postby unklar » Dec 4th, '14, 15:42

You can try the following commands
Code: Select all
grub> root (hd0,1)                    Enter
grub> configfile /boot/grub/menu.lst  Enter
grub> boot                            Enter

or

grub> root (hd0,1)
grub> kernel /boot/vmlinuz-desktop root=/dev/sda2   << if mga4  /
grub> initrd /boot/initrd-desktop.img               
grub> boot
unklar
 
Posts: 40
Joined: Apr 10th, '12, 20:30

Re: after system crash system hangs in grub

Postby magfan » Dec 4th, '14, 16:09

Thank you both! It was much easier than expected.

@doktor5000
Since when does grub differentiate between hd and sd ?

Well, it does not but I did not know that. Somehow I was simply sure... :oops:

@unklar
grub> root (hd0,1) Enter
grub> configfile /boot/grub/menu.lst Enter
grub> boot Enter

This worked perfectly!
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron