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!

  • You can start with this existing question: askubuntu.com/questions/130281/how-to-restore-boot-folder – mbiber Oct 24 '14 at 16:26
  • If I run sudo grub-install /dev/sda I get Installing 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 running grub-update it only find the windows partition: Generating grub configuration file ... No volume groups found Found Windows 7 (loader) on /dev/sda1 done – Jan B Oct 24 '14 at 16:35
  • Have you done this? Set GRUB_ENABLE_CRYPTODISK=1' in file /etc/default/grub'.. – mbiber Oct 24 '14 at 16:37
  • yes I already did this. Though it had no effect on the error message. I just reinstalled the system and luckily if you choose the same username and password at least the ecryptfs encrypted home dir can be reused without problems – Jan B Oct 24 '14 at 20:59

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.

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.