E
E
edencore2014-06-30 19:14:07
linux
edencore, 2014-06-30 19:14:07

How to restore grub after grub-update ?

I hope the respected community will forgive for the noob question. I honestly tried to solve it on my own, but there are no visible results, and time is running out.
The essence of the matter is as follows: according to one of the manuals, I edited /etc/default/grub , performed grub-update and rebooted. The essence of the manual was to enable the Serial Console.
After the system boots, the grub prompt appears and that's it. The boot command gives "No kernel loaded" (or "No kernel specifed". Unfortunately, I don't remember exactly, but I don't have a machine at hand, so here and below - from memory).
The root command issues (hd0,msdos3) and judging by the content, this is just the required server. Manuals advise to execute the command

linux /vmlinuz-2.6.32-server root=/dev/sda1 ro quiet

but in / I only have vmlinuz and when I try to execute
linux /vmlinuz
, a message is displayed that the file was not found. /dev/ doesn't have sda1 or anything like that.
Is it possible to restore /etc/default/grub and re-run grub-update from the grub prompt (as I understand it, the problem arose after that) ? Well, or how do you restore the system to work? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Demidov, 2014-06-30
@edencore

Maybe this will help?

J
jcmvbkbc, 2014-06-30
@jcmvbkbc

The root command issues (hd0,msdos3) and judging by the content, this is just the required server.
The manuals advise to run the command
linux /vmlinuz-2.6.32-server root=/dev/sda1 ro quiet
but in / I only have vmlinuz
The path inside linux is relative to the root of the partition specified in root. The manuals are for a separate /boot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question