Hi everyone,
While upgrading from Proxmox 8 to 9 I had the following error while running apt dist-upgrade:
Since i did a full Rescuezilla backup of the whole disk beforehand, I wasn't too worried and tried my luck and rebooted.
As somewhat expected, I wasn't able to boot anymore.
I restored from my Rescuezilla image and started investigating:
This is an UEFI system. I double checked:
But
So I tried mounting it:
And then reinstalling and reconfiguring grub:
I also added it to my
After rebooting again, I found myself in grub rescue:
So my suspicion is I'm doing something wrong here.
My understanding of EFI and grub is only very superficial, so it would be great if you could give me any pointers.
I can always restore from my Rescuezilla image, so I'm free to try out suggestions.
Thank you!
While upgrading from Proxmox 8 to 9 I had the following error while running apt dist-upgrade:
Code:
Setting up grub-efi-amd64 (2.12-9+pmx2) ...
Replacing config file /etc/default/grub with new version
Installing for x86_64-efi platform.
grub-install.real: error: cannot find EFI directory.
Failed: grub-install --target=x86_64-efi
WARNING: Bootloader is not properly installed, system may not be bootable
Since i did a full Rescuezilla backup of the whole disk beforehand, I wasn't too worried and tried my luck and rebooted.
As somewhat expected, I wasn't able to boot anymore.
I restored from my Rescuezilla image and started investigating:
This is an UEFI system. I double checked:
/sys/firmware/efi
exists.But
/boot/efi
is not mounted.lsblk -f
returns this. I suspect sdg2
should be the EFI partiton:
Code:
sdg
├─sdg1
├─sdg2 vfat FAT32 DCBB-E417
└─sdg3 LVM2_member LVM2 001 m6lsnd-9YxI-QYdD-Qpxq-wD22-idHs-9a3vdt
├─pve-swap swap 1 7d82bd32-9c21-4414-9331-8d1d175dc599 [SWAP]
├─pve-root ext4 1.0 3cd57cf0-f8ca-4191-92a5-0819b32e52aa 47.4G 13% /var/hdd.log
│ /
├─pve-data_tmeta
│ └─pve-data-tpool
│ └─pve-data
└─pve-data_tdata
└─pve-data-tpool
└─pve-data
So I tried mounting it:
mount /dev/sdg2 /boot/efi
And then reinstalling and reconfiguring grub:
Code:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=proxmox --recheck
update-grub
I also added it to my
/etc/fstab
: UUID=DCBB-E417 /boot/efi vfat umask=0077 0 1
, so /boot/efi
is mounted on every boot.After rebooting again, I found myself in grub rescue:
Code:
error: symbol 'grub_disk_native_sectors' not found.
Entering rescue mode...
grub rescue>
So my suspicion is I'm doing something wrong here.
My understanding of EFI and grub is only very superficial, so it would be great if you could give me any pointers.
I can always restore from my Rescuezilla image, so I'm free to try out suggestions.
Thank you!