I dual boot Manjaro and Windows 11. Today I update some packages through yay -Syyu
and reboot, and then Manjaro is no longer listed in grub. At first there’s a Windows Boot Manager (along with UEFI Fireware Setting) in it, but after I try to follow the instruction in the Manjaro Wiki, only UEFI Fireware Settings left. What should I do? What imformation should I offer? Sorry for the poor English.
Then boot the Manjaro USB stick and chroot into the system (manjaro-chroot -a
) and then
update-grub
on console and check, if Manjaro is detected.
manjaro-chroot -a
and thenupdate-grub
on console
[manjaro@manjaro ~]$ manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/nvme0n1p5]
--> mount: [/mnt]
--> mount: [/mnt/boot/efi]
[manjaro /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/tela/theme.txt
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
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
done
[manjaro /]#
Still only UEFI Firmware Settings
it didnt detect any kernels …
post output from:
mhwd-kernel -li
post output from:
mhwd-kernel -li
[manjaro /]# mhwd-kernel -li
Currently running: 5.15.49-1-MANJARO (linux515)
The following kernels are installed in your system:
* linux419
* linux515
post also output from:
test -d /sys/firmware/efi && echo efi || echo bios
lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME
and in bios check:
is fast boot disabled - you may not have this option
is secure boot disabled
and in windows is fast startup disabled
[manjaro@manjaro ~]$ test -d /sys/firmware/efi && echo efi || echo bios
efi
[manjaro@manjaro ~]$ lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME
PATH PTTYPE PARTTYPE FSTYPE PARTTYPENAME
/dev/loop0 squashfs
/dev/loop1 squashfs
/dev/loop2 squashfs
/dev/loop3 squashfs
/dev/sda dos iso9660
/dev/sda1 dos 0x0 iso9660 Empty
/dev/sda2 dos 0xef vfat EFI (FAT-12/16/32)
/dev/nvme0n1 gpt
/dev/nvme0n1p1 gpt c12a7328-f81f-11d2-ba4b-00a0c93ec93b vfat EFI System
/dev/nvme0n1p2 gpt e3c9e316-0b5c-4db8-817d-f92df00215ae Microsoft reserved
/dev/nvme0n1p3 gpt ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 ntfs Microsoft basic data
/dev/nvme0n1p4 gpt de94bba4-06d1-4d40-a16a-bfd50179d6ac ntfs Windows recovery environment
/dev/nvme0n1p5 gpt 0fc63daf-8483-4772-8e79-3d69d8477de4 ext4 Linux filesystem
Secure boot is disabled.
Checking fast startup.
Is this outopput from the chroot
environment?
yes, it is from the chroot environment.
Is there any specific reason you have kernel 4.19
still installed?
fast startup turned off
idk, maybe it just stays there.
Try removing it, it you’re not using it specifically. From the chroot
environment, run:
mhwd-kernel --remove linux419
And just for good measure, let’s install 5.10
:
mhwd-kernel --install linux510
And let’s reinstall 5.15
:
mhwd-kernel --remove linux515
Followed by:
mhwd-kernel --install linux515
Then try recovering grub again:
Reinstalling grub
from chroot
environment.
Once in the live environment, you have to reinstall GRUB. To do so, run the following:
update-grub
When successfully completed, exit the chroot
environment:
exit
Followed by rebooting and seeing if it worked.
If it did, feel free to heap on the praise. If, however, it didn’t, well, then I’m not here. (Mostly, I suspect, I’ll have to be off then.)
[manjaro /]# mhwd-kernel --remove linux515
Error: You can't remove your current kernel.
Should I skip this part?
this is not default … did you somehow modified grub?
I changed the theme once.
Yes, I think so.
[manjaro /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/tela/theme.txt
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
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
done
Seems like nothing changed after rebooting.
See, in the archived forum:
Edit:
This:
Seems to be some kind of RAID error. With those I’m afraid I can’t help, but please see:
This error only occurs once in every time I enter the chroot environment and update-grub
. If I run update-grub
again, it doesn’t occur.