Created
December 13, 2022 16:03
-
-
Save rampantspark/9c59fb1fa6bf02ee7ec5d0548693d057 to your computer and use it in GitHub Desktop.
GRUB grub_debug_malloc not founc fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Since the GRUB issue around the end of August 2022 I have had to chroot in and reinstall GRUB every time I update my system. | |
| # I have been getting the grub_debug_malloc not found error on boot. | |
| # The only remediation I have been able to implement is the following. | |
| # Decrypt luks partition | |
| cryptsetup luksOpen /dev/nvme1n1p2 crypt_device | |
| # Mount root | |
| mount /dev/mapper/crypt_device /mnt | |
| # Mount /boot/efi Sometime this will not work and the /boot/efi directory needs to be specified with grub-install. See below. | |
| mount /dev/nvme1n1p1 /mnt/boot/efi | |
| # Mount extra system odds and ends | |
| for i in /dev /dev/pts /proc /sys /run; do mount -B $i /mnt$i; done | |
| # Chroot into system | |
| chroot /mnt | |
| # Reinstall GRUB | |
| sudo grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi --no-nvram --removable | |
| # Remake GRUB config | |
| sudo grub-mkconfig -o /boot/grub/grub.cfg | |
| # Exit chroot | |
| exit | |
| # Reboot system | |
| reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment