boot issues after upgrading grub - how I fixed them

stuartbh

Well-Known Member
Dec 2, 2019
121
12
58
59
Forum members,

I recently updated my grub on my servers and none of them could not boot thereafter.

Solution 1 (tested and worked) - ext4

On each server (5 of 6) that had been installed with ext4 as their root filesystem all I needed to do was boot the ProxMox ISO, selected Advanced, Rescue Boot, and run update-grub, reboot with the USB stick containing the ProxMox ISO on it removed and all was good.

Solution 2 (tested and worked) - btrfs

I was a bit more challenged by this scenario as the "Rescue Boot" seemed not to work from the latest ISO (8.3-1) when attempting to fix this is using the same methodology as described herein above. However, it was solveable.

This website was quite useful: https://nixventure.blogspot.com/2015/08/grub-rescue-btrfs.html

grub> set
grub> insmod part_msdos
grub> insmod btrfs
grub> insmod gz
grub> insmod linux
grub> set root=(hd1,gpt3)
grub> linux /boot/vmlinuz-whatever-yours-is root=/dev/sda3 ro
grub> initrd /boot/initrd.img-whatever-yours-is
grub> boot

In fact, succeeding my executing a form of the instructions above, I was then able to see my server boot into ProxMox and I could login from the console. Upon logging into root I ran update-grub and rebooted thereafter. All was fixed and I was happy!

I hope someone finds this useful.

When I booted the system in the same manner (using the ISO, Advanced, Rescue Boot) I get the following messages (with btrfs), I got this and I have no idea why it said all that. I was never able to import any pools as there seemed not be any!

error: no such device: rpool.
ERROR: unable to find boot disk automatically.

Press any key to continue...

Stuart
 
Last edited:
  • Like
Reactions: Kingneutron