I have been using Manjaro for a while now on my laptop on a NVME (/dev/nvme0n1) drive.
Today I decided to install Windows on my separate SSD (/dev/sda). Doing this, it completely erased my Manjaro’s boot loader. So, I booted up on a Live USB (/dev/sdb), however, following the Forum posting on Restoring the GRUB Bootloader, I was then able to boot my Manjaro again. I turned off the laptop, unplugged the USB and then I could no longer boot back into Manjaro unless I did the whole process again and KEPT the USB in.
Is there any reason to why this could be happening?
It sounds like you installed GRUB to the USB drive.
When you followed the above guide, you made sure to do the manjaro-chroot command on your Manajro’s root ( / ) partition before continuing? It might be /dev/nvme0n1p2 or something to that effect.
Yes, and when I did manjaro-chroot -a and then followed up with lsblk, the correct drives (nvme0n1) were mounted.
/dev/nvme0n1p1 /boot/efi
/dev/nvme0n1p5 /
I also removed the windows drive, then used the usb to boot into my Manjaro install. I ran the commands to update the GRUB (so without chroot), removed the USB, then restarted. The Manjaro boot is still missing.
What I did:
Booted into my normal system via the USB lsblk:
nvme0n1p1 /boot/efi
nvme0n1p5 /
Ran the commands: grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck grub-mkconfig -o /boot/grub/grub.cfg
This resulted in zero errors. I also ran a update-grub just in case.
Now I wonder if Windows changed something about your motherboard’s boot settings. Are you able to get into your motherboard’s BIOS and see if there is something that has been toggled, such as “Secure Boot”, “Boot Devices”, etc? Is there a “Boot Override” option?
For what it’s worth, Manjaro correctly mounts /dev/nvme0n1p1 as /boot/efi, it’s flagged as “boot” and “esp”, and I’m sure if you list the contents of /boot/efi/EFI, you will see Manjaro’s EFI boot files.
Strange that you can only boot into your system if you have the USB stick plugged in…
Out of curiosity, what happens it you boot into your Manjaro system (USB plugged in trick), and then after it boots up, unplug the USB and try to list the contents of ls -1 /boot/efi/EFI
EDIT: To be clear, when it “boots into Manjaro” you’re saying it’s booting into your system, not the live session?