After filling my system-disk grub broke, and boots into grub restore.
I’m now on live usb. And all the guides I’ve looked up just fails. At different places of the guide.
The most common guides start with:
sudo manjaro-chroot -a
I do it and get
==> ERROR: No Linux partitions detected!
Even though the system know there is a linux system when doing fdisk.
sudo fdisk -l
Device Start End Sectors Size Type
/dev/nvme0n1p1 4096 618495 614400 300M EFI System
/dev/nvme0n1p2 618496 1953520064 1952901569 931.2G Linux filesystem
So I’ve followed this to do it manually:
sudo mount /dev/nvme0n1p2 /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
And they get mounted:
lsblk -f
nvme0n1
├─nvme0n1p1 vfat FAT32 A427-7EAA 299.1M 0% /mnt/boot/efi
└─nvme0n1p2 ext4 1.0 50ae7e7f-ef2e-4c29-ba2d-b07fe77206c7 868.4G 0% /mnt
but when I try to install grub (guide says “tarket is the disk (not a partition)” so I target the disk.
grub-install --force --target=i386-pc --recheck --boot-directory=/boot /dev/nvme0n1
I get this error:
grub-install: error: failed to get canonical path of `overlay'.
If I try guide from here Restore the GRUB Bootloader on Manjaro Linux. Usefull when your fresh windows install eats your grub and can not boot into your linux installation, or for some how your grub is missing · GitHub
and only run grub-install i get error “cannot find EFI directory.”
grub-install /dev/nvme0n1
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
grub-install /dev/nvme0n1p1
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
grub-install /dev/nvme0n1p2
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
I’ve used several different sources, and it always errors somewhere.
Also tried guide directly from grub rescue menu, but there’s to many partitions named anonymously to guess which one it is.
Why doesn’t manajro-chroot understand that there’s a linux partition, when fdisk understand there is?
Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text