6

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

grub>

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

P.S. Maybe it will be useful:

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

My solution

Boot with Live CD. Open terminal and mount root partition (double check if you mount the right partition):

mount /dev/sda1 /mnt

Also mount:

mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
mount  -t proc /proc /mnt/proc

(Check if you mount the right partition: Open nautilus and navigate to /mnt).

Execute:

chroot /mnt

And finally run:

update-grub

Exit (exit) from the terminal and reboot.

7
  • 3
    It seems that update-grub did not run properly after the new kernel files were installed. I suggest you boot a Live CD and run update-grub from there. – AFH Jul 9 '14 at 15:58
  • 1.) Can I use Ubuntu's Live CD? 2.) Open terminal in Live CD and enter grub-update? – Andrej Jul 9 '14 at 16:05
  • Yes, Ubuntu is Debian-based. – AFH Jul 9 '14 at 16:10
  • Booted with Debian Live CD, open terminal, execute update-grub but command not found. – Andrej Jul 9 '14 at 17:09
  • update-grub is a shell script containing grub-mkconfig -o /boot/grub/grub.cfg. Does this work? – AFH Jul 9 '14 at 17:12
3

You don't need a live CD to solve this.

Type:

grub> ls

Here you should see a list of devices/partitions. Now we must find the partition that contains "/boot"

grub> ls (hd0,gpt1)/

The slash at the end is necessary. You may see "msdos" instead of "gpt". If this is the right partition we should see:

boot etc root bin ...

Type:

grub> set root=(hd0,gpt1)

grub> linux /boot/vmlinuz...(Press tab and choose the last working version) root=/dev/sda1

grub> initrd /boot/init...(press tab and select the same version as above)

grub> boot

This is just an example, you should modify it accordingly.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.