When I first tried to install EndeavourOS it installed correctly without any issues. I uninstalled it due to some reason. Also I deleted my linux OS’s from boot menu using these command (I don’t know if it will be helpful)
list disk # select the primary disk
select disk 0 # disk 0 is
list partition # a list of partition is opened
select partition 1 #select the system partition
assign letter=x #disk is now mounted in your explorer verify with (windows+E)
exit #exit from diskpart
x: # this would select this newly mounted disk x:
dir # displays content
dir #displays content
rd ubuntu /S #if Linux os is Ubuntu
y #to confirm delete
When I tried to install it today it gave me bootloader installation error.
2022-04-25 - 17:02:38 : WARNING: [PYTHON JOB]: "Command 'grub-install --target=i386-pc --recheck --force /dev/sda' returned non-zero exit status 1."
2022-04-25 - 17:02:38 : [PYTHON JOB]: "stdout:Installing for i386-pc platform.\ngrub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.\ngrub-install: error: embedding is not possible, but this is required for cross-disk install."
ERROR: Installation failed: "Bootloader installation error"
2022-04-25 - 17:02:38 : .. - message: "Bootloader installation error"
2022-04-25 - 17:02:38 : .. - details: The bootloader could not be installed. The installation command <pre>grub-install --target=i386-pc --recheck --force /dev/sda</pre> returned error code 1.
Looks like you are doing a MBR/Legacy install on a disk with GUID Partition Table. I guess that is the reason for the failure.
Thanks it worked ! I just had to create another fat32 partition with boot,bios-grub becuase /dev/sda1 was only 100mb. bios-grub because there was no esp flag in the installer and I forgot could have added esp through gparted.
This is not what you think it is. It is meant for BIOS/Legacy installations on GPT, not for UEFI. It does nothing in your case.
It is because the boot flag is the esp flag as well.
In G(UID)PT schemes, the actual code (behind the pretty flag names) for esp is the same code with boot flag, meaning that if you set it to boot (for UEFI installations is obvious ) it is for the $ESP.
For info about bios_grub flag, read more at Archwiki