I'm sorry to hear that you're still experiencing issues after following those steps. Let's try to troubleshoot this further to determine what's going wrong and get your system to dual boot properly.
Possible Causes:
-
GRUB Bootloader Not Properly Installed or Registered:
- The GRUB bootloader may not have been installed correctly or registered with the UEFI firmware.
-
UEFI Firmware Boot Order:
- The UEFI firmware may still be prioritizing the Windows Boot Manager over GRUB.
-
Secure Boot Interference:
- Secure Boot may be preventing GRUB from loading.
-
Incorrect Partition Mounting:
- Partitions might not have been mounted correctly during the GRUB reinstallation.
-
Boot Entries Not Updated:
- The UEFI boot entries may not have been updated to include GRUB.
Let's proceed step by step to identify and fix the issue.
Step 1: Boot into Live USB and Mount Partitions
Boot from your EndeavourOS live USB and open a terminal.
Mount your root partition (sda5) and EFI partition (sda1):
sudo mount /dev/sda5 /mnt
sudo mount /dev/sda1 /mnt/boot/efi
Ensure that the /boot/efi directory exists in your /mnt directory. If it doesn't, create it:
sudo mkdir -p /mnt/boot/efi
Verify the mounts:
lsblk -f
You should see that /dev/sda5 is mounted on /mnt and /dev/sda1 is mounted on /mnt/boot/efi.
Step 2: Chroot into Your Installed System
sudo arch-chroot /mnt
You're now operating within your installed EndeavourOS environment.
Step 3: Verify GRUB Installation and UEFI Entries
Check if GRUB is installed:
ls /boot/grub
You should see files like grub.cfg, fonts, locale, etc.
Check if the GRUB EFI binary exists:
ls /boot/efi/EFI/GRUB
Note: The directory might be named differently based on the --bootloader-id used during GRUB installation (e.g., /boot/efi/EFI/endeavouros).
If you don't see grubx64.efi, it means GRUB hasn't been properly installed to the EFI directory.
Step 4: Reinstall GRUB with Detailed Options
First, ensure all necessary packages are installed:
sudo pacman -Syu grub efibootmgr os-prober
Reinstall GRUB with explicit options:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=endeavouros --recheck --debug
--target=x86_64-efi: Specifies the architecture.
--efi-directory=/boot/efi: Points to the EFI system partition.
--bootloader-id=endeavouros: Names the folder in the EFI partition.
--recheck: Forces GRUB to probe all devices.
--debug: Provides detailed output for troubleshooting.
Pay close attention to any errors or warnings during this command and note them down.
Step 5: Generate GRUB Configuration
sudo grub-mkconfig -o /boot/grub/grub.cfg
- This command should detect both your EndeavourOS and Windows installations.
- Look for lines in the output mentioning "Found Windows Boot Manager" or similar.
If Windows is not detected, enable os-prober:
Edit the GRUB configuration file:
sudo nano /etc/default/grub
Ensure the following line is present:
GRUB_DISABLE_OS_PROBER=false
Save the file (Ctrl + O, then Enter, then Ctrl + X to exit).
Then regenerate the GRUB configuration:
sudo grub-mkconfig -o /boot/grub/grub.cfg
Step 6: Verify UEFI Boot Entries
Check current UEFI boot entries:
sudo efibootmgr -v
- Look for an entry labeled
endeavouros or whatever you set as the --bootloader-id.
- Note the
BootOrder and the numbers associated with each entry (e.g., Boot0001, Boot0002, etc.).
If the EndeavourOS entry exists but isn't first in the boot order, adjust the boot order:
sudo efibootmgr --bootorder XXXX,YYYY,ZZZZ
-
Replace XXXX with the number corresponding to EndeavourOS, and the others accordingly.
-
For example:
sudo efibootmgr --bootorder 0002,0000,0001
If there's no entry for EndeavourOS, manually create one:
sudo efibootmgr --create --disk /dev/sda --part 1 --label "EndeavourOS" --loader /EFI/endeavouros/grubx64.efi
- Adjust
--loader path if your --bootloader-id is different or points to a different directory.
Re-check UEFI boot entries:
sudo efibootmgr -v
Ensure that the new entry exists and is correctly pointing to the GRUB EFI binary.
Step 7: Disable Secure Boot (If Applicable)
Secure Boot may prevent non-signed bootloaders from loading.
- Restart your computer and enter the BIOS/UEFI settings (usually by pressing
F2, F10, DEL, or ESC during startup).
- Navigate to the
Security or Boot tab.
- Find the
Secure Boot option and disable it.
- Save changes and exit.
Step 8: Test Booting
Exit the chroot environment:
exit
Unmount partitions:
sudo umount -R /mnt
Restart your computer:
sudo reboot
Observe whether the GRUB menu appears upon booting.
Step 9: If GRUB Still Doesn't Appear
Alternative Booting Method:
- Some UEFI systems have issues with certain bootloader names.
- Try copying the GRUB EFI binary to the default EFI location.
In the live environment, after chrooting:
sudo cp /boot/efi/EFI/endeavouros/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
- This path
/EFI/BOOT/BOOTX64.EFI is a fallback location that many UEFI systems will try if the primary bootloader isn't found.
Step 10: Use BIOS Boot Menu
- Upon booting, press the key to enter the Boot Menu (often
F12, F9, F11, or Esc).
- See if EndeavourOS or GRUB appears as a boot option.
- If it does, select it and see if it boots correctly.
Step 11: Final Checks
Check for Boot Errors:
- If you're able to access GRUB but have boot issues, there may be problems with the GRUB configuration or the installation itself.
- Ensure that
os-prober detects Windows and that entries for both systems exist in /boot/grub/grub.cfg.
Additional Information:
If the Issue Persists
Please provide the following information:
-
Output of efibootmgr -v:
- This will help determine the current state of UEFI boot entries.
-
Any Errors from grub-install or grub-mkconfig:
- Copy or take a photo of any error messages.
-
Contents of /boot/efi/EFI/:
- List the directories and files to check the EFI boot loaders.
ls /boot/efi/EFI/
-
BIOS/UEFI Firmware Version and Settings:
- Knowing your system's firmware version and settings can help diagnose firmware-specific issues.
Alternative Solution: Use Windows Boot Manager to Boot EndeavourOS
If GRUB refuses to cooperate, you can add EndeavourOS to the Windows Boot Manager:
In EndeavourOS (chrooted environment):
-
Install grub2win or configure manually using bcdedit in Windows.
-
Copy the Linux kernel and initramfs to the EFI partition.
-
Use a tool like bcdedit in Windows to add a boot entry pointing to the Linux kernel.
Note: This method is more complex and may not be as reliable as getting GRUB to work, but it's an option if all else fails.
Let's focus on getting GRUB to work first. Please perform the steps above and let me know at which point (if any) you encounter issues, and provide the requested information. This will help me guide you more effectively.
Together, we'll get your dual-boot system up and running!