I’m running Manjaro 6.12-x86_64 in dual boot with W10. Manjaro has been rock stable for years but yesterday, it crashed at the login. After a hard reboot, Linux disappeared from the GRUB and I can only boot Windows
I booted in a USB live session and tried all the option of manjaro-rescue with no success.
Then I followed the tutorial but encountered the following problems
In the live session, Manjaro is detected:
sudo os-prober 1 ✘
/dev/nvme0n1p4:Manjaro Linux (25.0.0):ManjaroLinux:linux
/dev/nvme0n1p6@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
But once in chroot, it isn’t detected anymore :
os-prober
/dev/nvme0n1p6@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
I think manjaro-chroot -a mounted the wrong EFI partition (from nvme0n1p4 instead of nvme0n1p6), so I tried to manually map the devices:
manjaro-chroot -a ✔ 33m 11s
grub-probe: error: cannot find a GRUB drive for /dev/sde1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sde1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/nvme0n1p4]
--> mount: [/mnt]
--> mount: [/mnt/home]
--> mount: [/mnt/boot/efi]
sudo mount /dev/nvme0n1p4 /mnt
sudo mount /dev/nvme0n1p6 /mnt/boot/efi
Here are my partitions:
nvme0n1
├─nvme0n1p1 BitLocker 2 STRONGHOLD-W10 WindowsOS 14/10/2023 28cdcfa6-e6d7-4760-bd50-39609df885da
├─nvme0n1p2 ntfs WindowsReserved 5E24074B2407261D
├─nvme0n1p3 ntfs Games 22DE79E9DE79B61F
├─nvme0n1p4 ext4 1.0 Manjaro b249185c-298b-4b90-a851-5a232c80b37f 56.3G 61% /
├─nvme0n1p5 ext4 1.0 home 889ff6d8-ccca-424d-9f16-68a0287258d4
├─nvme0n1p6 vfat FAT32 BEB8-F5C2 68.3M 29% /boot/efi
Generating grub file only detects Windows
grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p6@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done
As a last resort, I tried to manually add this entry to etc/grub.d/40_custom
, but grub still doesn’t list Manjaro
menuentry "Manjaro (Custom)" {
search --no-floppy --fs-uuid --set=root b249185c-298b-4b90-a851-5a232c80b37f
linux /boot/vmlinuz-6.12-x86_64 root=UUID=b249185c-298b-4b90-a851-5a232c80b37f rw
initrd /boot/initramfs-6.12-x86_64.img
}
sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
ERROR: mkdir /var/lock/dmraid
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done
I’m stuck - any help please?