0

I dived into update-grub which launches grub-mkconfig which calls grub-probe, which is giving this error

I had a 2 disk BTRFS raid1 on my root partition when the boot disk (with the EFI and grub) failed. I am on Ubuntu Jammy 22.04

On rebooting the other disk wouldn't boot obviously because it didn't have the EFI partition and bootloader installed.

Partition Table of the Disk:

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          499711   243.0 MiB   EF00  EFI system partition
   2          499712       117229567   55.7 GiB    8300  Linux filesystem
   3       117229568       500118158   182.6 GiB   8300  Linux filesystem

Booted using an Ubuntu 24.04 Live USB and mounted the partition degraded. Then ran

grub-install --efi-directory=/boot/efi /dev/sda
grub-install: error: failed to get canonical path of `'`

Have extensively searched all online forums and well ChatGPT :) but the canonical path its looking for looks weird

eskhool
  • 202

1 Answers1

0

I was able to resolve this and wanted to put it out there in case it helps anyone who is looking for this particular issue.

Turns out converting the btrfs to single (from raid1) and removing the missing device solved the problem for me. Maybe the missing device was being detected with an empty name by grub-probe.

Run

btrfs balance start -f -sconvert=single -mconvert=single -dconvert=single <mount>
btrfs device remove <drive> <mount>

Refer to this article on stack exchange on removing device from raid1 on btrfs

eskhool
  • 202