I accidentally wiped the /boot partition of my running Ubuntu 14.04. Is there a way to restore it? My Ubuntu system is encrypted and I am dual booting Windows 7.
Thanks in advance!
I managed to get past this error by settings GRUB_ENABLE_CRYPTODISK=y
, i.e. y
instead of 1
, despite what the error message says.
I found this solution on the ArchWiki.
sudo grub-install /dev/sda
I getInstalling for i386-pc platform. grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set
GRUB_ENABLE_CRYPTODISK=1' in file/etc/default/grub'..
I reinstalled the kernel earlier already. When runninggrub-update
it only find the windows partition:Generating grub configuration file ... No volume groups found Found Windows 7 (loader) on /dev/sda1 done