Score:1

After using grub-customizer, how do I recover the ZFS Grub2 menu options on Ubuntu 20.04?

cn flag

After using grub-customizer for a bit (which I now know is a bad idea), my grub menu looks very different from the default. It's missing the history menu, which contains snapshots, and some of the entries that are supposed to be inside it are in the main menu: Picture of grub menu, taken with grub-emu

Artix is on /dev/sda1, and Ubuntu is on /dev/nvme0.

How can I restore the default, which has the following four entries?

  • Ubuntu 20.04.2 LTS
  • Advanced options for Ubuntu 20.04.2 LTS
  • History for Ubuntu 20.04.2 LTS
  • UEFI Firmware Settings

Edit: I restored using the backup that grub-customizer created, but the history entries are still missing.

Michael avatar
cn flag
Similar to [link](https://askubuntu.com/questions/1225751/recovering-a-borked-grub-with-a-ubuntu-19-10-zfs-root-filesystem?rq=1), but different: Different OS version, I would like to restore the defaults, and I do have another system.
galexite avatar
pk flag
Does running `update-grub` as root restore the configuration?
Michael avatar
cn flag
Nope, first thing I tried.
Score:1
cn flag

I got it fixed by doing the following

  1. purging grub-customizer.
  2. restoring a backup of the grub configuration files from /etc/grub.d/backup/, where grub-customizer put it.
  3. Running grub-mkconfig -o /boot/efi/EFI/ubuntu/grub.cfg to regenerate grub
  4. reinstalling zsys and the grub2 efi x64 package.

After this, everything is back to normal.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.