Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Stuck on GRUB command prompt after regular kernel update

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
andrejk
Posts: 4
Joined: 2014-07-07 13:45

Stuck on GRUB command prompt after regular kernel update

#1 Post by andrejk »

I am running Debian Wheezy. Update Manager suggest to install kernel update. After update, I reboot system but instead of listing all the kernels, it gave me a GRUB command prompt:

Code: Select all

grub>
What should I do? Thanks in advance for any pointers.

Best, Andrej

PS Maybe it will be useful:

Code: Select all

grub> ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (hd1)

User avatar
hakerdefo
Posts: 258
Joined: 2014-05-05 05:31

Re: Stuck on GRUB command prompt after regular kernel update

#2 Post by hakerdefo »

Grab a live linux cd or dvd. If your install is 32 bit then you'll need a 32 bit live linux and if your installation is 64 bit then you'll need a 64 bit live cd. Boot the live cd and follow this guide,
How to recover deleted or corrupted Grub2 bootloader
Cheers!!!

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: Stuck on GRUB command prompt after regular kernel update

#3 Post by kiyop »

If you can boot live linux, do as hakerdefo suggested.

If you cannot, read the following:

Does the installed debian have separate /boot partition? If so, omit "/boot" in the following.
If the installed debian utilizes RAID, LVM, or encryption, report so and do not try the following.

At grub command line, execute

Code: Select all

ls (hd0,gpt1)/boot/
And find some kernel like vmlinuz-VERSION_OF_KERNEL. If there is not such kernel, replace "1" with "2" or "3".
If you find vmlinuz-VERSION_OF_KERNEL, try

Code: Select all

linux (hd0,gpt1)/boot/vmlinuz-VERSION_OF_KERNEL root=/dev/sda1 ro
initrd (hd0,gpt1)/boot/initrd.img-VERSION_OF_KERNEL
boot
Replace "1" and "VERSION_OF_KERNEL" with proper letters.

If you cannot find any kernel in any partition, report so.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

Post Reply