How do I run update-grub from a LiveCD?

Posted by Kelley on Ask Ubuntu See other posts from Ask Ubuntu or by Kelley
Published on 2012-06-01T20:31:54Z Indexed on 2012/06/01 22:50 UTC
Read the original article Hit count: 229

Filed under:
|

Okay, so I did something stupid. I was trying to clean up my Grub entries, and accidentally removed all of my Linux kernels from Grub (they're still on the hard drive). So now, obviously, Grub doesn't give me any way to boot into Ubuntu; I can boot into Windows just fine, but Ubuntu isn't even listed.

So I just want to run "sudo upgrade-grub" somehow to restore Ubuntu to the list. I can boot from a LiveCD, but once there how do I run that command? (My Ubuntu installation is on sda5, by the way.)

© Ask Ubuntu or respective owner

Related posts about boot

Related posts about grub2