Hello, I installed Windows 11 alongside my Manjaro KDE on my Lenovo ideapad 110 laptop. Now Manjaro is not showing in BIOS and Grub. I checked the partitions using Gparted and everything is fine. How can I fix this?
Hi @Hatt,
Check your BIOS/UEFI that secure- & fast boot is disabled and make sure in Windows as well.
Edit:
And completely, fully shutdown Windows when done. No hibernating ot sleeping or anything like that.
Hello Mirdarthos,
Secure and fast boot are disabled both in BIOS and in Windows, and Manjaro is still not showing.
Then Iβm guessing youβll need to chroot
into the installation and reinstall GRUB from there:
To enter a chroot
environment
-
Ensure youβve got a relatively new ISO or at least one with a still supported LTS kernel.
-
Write/copy/
dd
the ISO to a USB thumb drive. -
When done, boot with the above mentioned USB thumb drive into the live environment.
-
Once booted, open a terminal and enter the following command to enter the
chroot
environment:
manjaro-chroot -a
If you have more than one Linux installation, select the correct one to use from the list provided.
If sucessfully done, you should now be in the chroot
environment.
But, be careful, as youβre now in an actual root environment oon your computer, so any changes you make will persist after a restart and can cause damage.
Reinstalling grub
from chroot
environment.
Once in the chroot
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.
If this doesnβt work, then I really donβt know and weβll have to hope someone more knowledgeable than I comes along.
Hello,
I managed to boot into Manjaro using a tool called Super Grub Disk 2.04s2.
Once in Manjaro, I opened the terminal and wrote the following:
manjaro-chroot -a ξ² 255 β ξ² 29s ο
==> ERROR: No Linux partitions detected!
ο ξ° ο ~ ξ° update-grub ξ² 255 β ξ² 16s ο
grub-mkconfig: You must run this as root
ο ξ° ο ~ ξ° sudo update-grub ξ² 1 β
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
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/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
Manjaro is still not showing in both BIOS and Grub.
See
Perhaps it helps
Edit:
To see if you boot with BIOS or UEFI, run:
test -d /sys/firmware/efi && echo efi || echo bios
β¦from the booted Manjaro.
ο ξ° ο ~ ξ° mount /dev/sda2 /mnt ξ² β
mount: /mnt: must be superuser to use mount.
dmesg(1) may have more information after failed mount system call.
ο ξ° ο ~ ξ° sudo mount /dev/sda2 /mnt ξ² 32 β
[sudo] password for user:
ο ξ° ο ~ ξ° sudo mount /dev/sda2 /mnt/boot ξ² β ξ² 5s ο
ο ξ° ο ~ ξ° sudo mount /dev/sda2 /mnt/boot/efi ξ² β
mount: /mnt/boot/efi: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
ο ξ° ο ~ ξ° manjaro-chroot /mnt /bin/bash ξ² 32 β
[user-80vk /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `/boot/efi'.
[user-80vk /]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/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
Adding boot menu entry for UEFI Firmware Settings ...
done
[user-80vk /]# lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME
PATH PTTYPE PARTTYPE FSTYPE PARTTYPENAME
/dev/sda
/dev/sda1
/dev/sda2
/dev/sda3
/dev/sda4
/dev/sr0
[user-80vk /]# ls /sys/firmware/efi
config_table efivars esrt fw_platform_size fw_vendor runtime runtime-map systab
[user-80vk /]# exit
exit
ο ξ° ο ~ ξ° modprobe efivarfs ξ² β ξ² 2m 22s ο
ο ξ° ο ~ ξ° manjaro-chroot /mnt /bin/bash ξ² β
[user-80vk /]# mount -t efivarfs efivarfs /sys/firmware/efi/efivars
mount: /sys/firmware/efi/efivars: efivarfs already mounted on /sys/firmware/efi/efivars.
dmesg(1) may have more information after failed mount system call.
[user-80vk /]# ls /sys/firmware/efi
config_table efivars esrt fw_platform_size fw_vendor runtime runtime-map systab
[user-80vk /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `/boot/efi'.
[user-80vk /]#
so you are running chroot and reinstall of grub directly from manjaro? do i understand it correctly?
Yes, that is correct
well i dont think that will work β¦
post output from:
lsblk
test -d /sys/firmware/efi && echo efi || echo bios
the previous lsblk output doesnt show anything β¦
ο ξ° ο ~ ξ° lsblk ξ² β
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
ββsda1 8:1 0 300M 0 part /boot/efi
ββsda2 8:2 0 697.3G 0 part /
ββsda3 8:3 0 8.8G 0 part [SWAP]
ββsda4 8:4 0 225.1G 0 part
sr0 11:0 1 7.4G 0 rom
ο ξ° ο ~ ξ° test -d /sys/firmware/efi && echo efi || echo bios ξ² β
efi
ο ξ° ο ~ ξ° ξ² β
good, so its efi β¦ you will need a manjaro usb, boot into it, open terminal and run this:
manjaro-chroot -a
then reinstall grub:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
then update it:
mkinitcpio -P && update-grub
exit chroot with:
exit
and reboot
Hello,
The soultion you provided works. Now I see Manjaro in both BIOS and the Boot menu, however, there is no grub to choose between Manjaro and Windows 11, so I have to press Fn + F12 every time in order to boot into Manjaro or Windows 11. Is there a way to bring back the grub menu?
open the grub file:
kate /etc/default/grub
and edit this line to look like this:
GRUB_TIMEOUT_STYLE=menu
save it and update grub:
sudo update-grub
reboot to see if the grub menu is shown during boot
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.