Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save belkone/19f1d6fc3d109a02bf9b4accedacdf44 to your computer and use it in GitHub Desktop.
Save belkone/19f1d6fc3d109a02bf9b4accedacdf44 to your computer and use it in GitHub Desktop.
Proxmox: Fix Grub UEFI+LVM+RAID1(mdadm)

Proxmox: Fix Grub UEFI+LVM+RAID1(mdadm)

make backup of your grub first!

apt-get install --reinstall grub-efi-amd64
umount /boot/efi
mount /dev/sda2 /boot/efi
rm -r /boot/efi/*
grub-install --target x86_64-efi --efi-directory /boot/efi --recheck /dev/sda
umount /boot/efi
mount /dev/sdb2 /boot/efi
rm -r /boot/efi/*
grub-install --target x86_64-efi --efi-directory /boot/efi --recheck /dev/sdb
dpkg-reconfigure grub-efi-amd64
update-grub
update-initramfs -u

you can safely answer 'NO' to all questions during grub-install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment