Comment 217 for bug 1289977

Revision history for this message
Robert Tindall (robert-tindall) wrote :

Well, gosh. That was EASY! Here's the simple steps I used to fix this; the sort of thing any generic user should be able to pull out of thin air. The gist is I booted to an xubuntu 14.04 live CD, mounted and chrooted to my normal system, then ran dpkg-reconfigure and update-grub. I selected both /dev/sda and /dev/sda1 (I think all I needed was /dev/sda) on the reconfiguration.

I expect SOMEONE will gripe about running on a root prompt, but that's been my modus operandi for doing rootish things since K&R invented the darn thing back when I was a yout.

root@xubuntu:~# cryptsetup luksOpen /dev/sda5 crypt
Enter passphrase for /dev/sda5:

root@xubuntu:~# cd /media/xubuntu/fb9186c7-9f3d-4a88-8d4b-9c8849e05a38/
root@xubuntu:/media/xubuntu/fb9186c7-9f3d-4a88-8d4b-9c8849e05a38# mount /dev/sda1 boot
root@xubuntu:/media/xubuntu/fb9186c7-9f3d-4a88-8d4b-9c8849e05a38# mount --bind /proc proc
root@xubuntu:/media/xubuntu/fb9186c7-9f3d-4a88-8d4b-9c8849e05a38# mount --bind /dev dev
root@xubuntu:/media/xubuntu/fb9186c7-9f3d-4a88-8d4b-9c8849e05a38# mount --bind /sys sys
root@xubuntu:/media/xubuntu/fb9186c7-9f3d-4a88-8d4b-9c8849e05a38# chroot ./

root@xubuntu:/# dpkg-reconfigure grub-pc

root@xubuntu:/# update-grub