You are not logged in.

#1 2021-09-26 12:01:46

pjj
Member
Registered: 2021-05-07
Posts: 3

GRUB doesn't recognise Linux install after being broken by Live USB

System Information:
Windows 10/ Arch Dual Boot on 8th Gen Intel
UEFI

Preface & Problem: I was playing around with a KDE Neon Live USB (to my knowlage I didn't install anything to Hardware) and after shuting it down my GRUB und Windows Bootloader were gone. I only had a UEFI entry with the drive name that boots me in to Windows.

What i've tried:
Using an Arch Live USB I mounted the Linux und EFI partions and chrooted into it. I ran grub-install und grub-mkconfig which brought back GRUB. Unfortunatly os-prober only finds Windows but not my Arch Installation.

Result:
GRUB works fine for booting into Windows but has no entry for Arch (since os-prober can't find it)

What can I do so that os-prober finds my Arch Installation or schould I manualy create an entry for it?

Thanks for your help.

Commands used Trubleshooting from Live USB used:
mount /dev/nvme0n1p5 /mnt
mount /dev/nvme0n1p1 /mnt/boot
arch-chroot /mnt
grub-install --target=x86_64-efi efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

Offline

#2 2021-09-26 12:05:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,302

Re: GRUB doesn't recognise Linux install after being broken by Live USB

OS prober is not supposed to find your actual kernel installation. I'm assuming you didn't had your ESP mounted to /boot in your original setup and you are actually masking what would be your correct /boot (the directory on the / file system) with the wrong mount of your ESP (the partition) to /boot. Correct fix for this would be to not mount the ESP to /boot and rerun the grub-install command with the new efi-directory but the grub-mkconfig with the normal /boot/grub/grub.cfg path

Offline

Board footer

Powered by FluxBB