Unable to boot without install media USB attached

Just installed Manjaro 20.2 Xfce on Lenovo laptop and everything seems to work.

However, when I remove the USB stick it does not want to boot at all.

Please help :slight_smile:

Happy to provide more information.

If I would guess I’d say it didn’t install the bootloader properly on the main drive, or is not referring to it properly, but somehow finds the one isntalled on the live usb stick.

Help would be greatly appreciated.

Restore the bootloader:

GRUB/Restore the GRUB Bootloader - Manjaro

I think Manjaro has difficulty with the drive type: I get the following after booting the live ISO and following the first few steps

[manjaro /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.

[manjaro /]# grub-mkconfig -o /boot/grub/grub.cfg 
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.9-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.9-x86_64.img
Found initrd fallback image: /boot/initramfs-5.9-x86_64-fallback.img
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 ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type mmcblk0.

So it seems like it cannot install the bootloader on /dev/mmcblk0, and is only able to detect /dev/sda which is the usb stick.

After completing all the steps the issue remains.

Try manually chroot and then

grub-install --target=x86_64-efi --efi-directory=/mnt/boot/efi --bootloader-id=manjaro --recheck

These are the steps I used. What do you mean with manual chroot?

mount /dev/mmcblk0p2 /mnt
mount /dev/mmcblk0p1 /mnt/boot/efi
manjaro-chroot /mnt /bin/bash
pacman -Syu grub
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck

Check the guide. Use the manual chroot and then the command above.

To my knowledge I’ve followed all the steps in the guide to a T, so I’m just not understanding what you are suggesting.

I have picked up that you have the efi directory as /mnt/boot/efi vs the docs as /boot/efi. Which should I use?

Your version gives this error:

grub-install: error: failed to get canonical path of `/mnt/boot/efi'.

Any ideas from anyone to get this working?