grub2-editenv: error environment block too small

As the title says when I tried to generate grub on a machine running Fedora 31 using UEFI, I was presented with this error: # grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg Generating grub configuration file ... grub2-editenv: error: environment block too small. ... I didn’t know what had caused it. However, it seemed like an easy fix was to remove the grubenv file. # rm /boot/efi/EFI/fedora/grubenv # grub-editenv /boot/efi/EFI/fedora/grubenv create # grub2-mkconfig -o /boot/efi/EFI/fedora/grub....

September 10, 2019 · 1 min · 142 words · kenno

Install Grub on GPT

I came across a problem with grub being broken recently on a system running Ubuntu 16.04. This happened after the grub2 package got upgraded. This post will explain how I solved the problem. If you have similar issues, please do not just copy and paste the commands and execute on your machine. First read on, and try to understand it. Usually, when this happened in the past, we just need to chroot into the system and reinstall grub....

September 25, 2017 · 4 min · 690 words · kenno

Restore Grub Boot Loader

Warning: this guide is only a personal note to remind myself when I have to restore Grub again. In my previous post, I had just installed Windows 7 as a dual boot with Debian on my Toshiba laptop. The following describe the steps taken to restore the Grub boot loader so that Debian can be started again. I booted the laptop with Ubuntu Live CD, then open a Terminal. To get the partition tables, as a root execute the fdisk command:...

August 8, 2009 · 1 min · 190 words · kenno