Edit /etc/default/grub and remove # from this line:
Save the file and run:
sudo grub-mkconfig -o /boot/grub/grub.cfg
Edit /etc/default/grub and remove # from this line:
Save the file and run:
sudo grub-mkconfig -o /boot/grub/grub.cfg
I just did exactly what you said. windows boot manager is still not showing upâŚ
Alright, I missed that your Windows is installed in Legacy/Bios mode.
Now you have your EnOSâ installed in UEFI mode.
That is why Grub cannot add any boot entry for Windows.
Since this is a pretty new install, I would suggest to reinstall your EnOS in BIOS/Legacy mode as well.
Can you show me which line of the output indicated the Windows was installed under legacy mode? So I can learn. Btw, please see screenshot from my Dell BIOS, it seems like the Windows Boot Manager 's file name is \EFI\ubuntu\grubx64.efi. Since Ubuntu (Linux Mint) was replaced by EOS, is that the reason as well? If itâs due to the Windows in legacy mode, would it be better off if I reinstalled Windows under EFI? Thanks a lot!
For a UEFI mode install, it is a requirement to have an ESP partition. Your Windowsâ disk doesnât have one.
Seemingly Linux Mint has overwritten Windows Boot Manager with its own.
What is confusing to me is why it is \EFI\ubuntu\grubx64.efi which is the typical path for a UEFI install
Apparently, your system supports UEFI mode so this could be an option if it is not too much of a hassle.
I was going to suggest another route as well, namely, chainloading the Windows Boot Manager via Grub. However seeing that it might have been overwritten in a previous dualboot, I doubt it would work.
If you are going to reinstall Windows in UEFI and IF you want to keep your both systems ESP and the contained boot files separate, you could do one of the following:
If not, when Windows installer finds a FAT32 partition with boot,esp flag, it tends to install its boot manager in there.
Also, it goes without saying: backup everything that is important to you on your Windows.
if you want to know for sure what mode windows is installed,
you run windows, put into the cmd-line msinfo32
and see the status in the systeminformation
I recalled doing that after installing my windows, it was indeed in UEFI mode. I think the Linux Mint messed everything upâŚ
At this moment Iâm not able to boot into Windows even from the BIOS boot menu. But I recalled checking the System Information in Windows after installation and it was indeed in UEFI mode (another evidence is that the partition table is GPT).
I donât mind re-install both systems again but I wanna do it correctly this time. What would be the correct way to do it. Windows first then EOS? Thanks again.
Your Windows Boot Manager has been overwritten so that is expected.
It is possible to have BIOS/Legacy boot mode even with a GPT disk if firmware allows that. Some do.
What is not indispensable for a UEFI boot installation, is the presence of an ESP. This is a requirement not something optional. Your Windowsâ disk doesnât have one. SoâŚI donât know
Your EnOS installation is fine.
If you donât mind reinstalling Windows, I would do this instead.
Take out your EnOS disk before, if you want to keep the ESP:s and boot files/folders separate for the two systems. Or remove boot,esp flags from your EnOSâ ESP.
Good luck!
Whatâs the command to remove the boot,esp flag. Do I need to add it back after installing Windows? Thanks.
In EnOS, open a terminal and run sudo parted
to get an interactive prompt.
You can type print (enter) to see all the flags for all the partitions. In your case there is only one partition wit flags:
set 1 boot off
Check with print again. When done press Ctrl-D to quit parted. You might get some message about the fstab. You can ignore it.
You can do it but it is not necessary. I think it is only needed to set the partition type. After the installation the flags are not needed.
If you want to set them, use parted like before but this time:
set 1 boot on
Thank you for your patience.
I have another Dell computer which has the same situation. It currently has one SSD with Linux Mint and the other SSD with Win10. If I wanna replace Mint with Arch, whatâs the correct way to do it without messing up Windows, learning from todayâs lesson. Huge thanks again.
Letsâ take one at the time
No worries. Youâve already helped me a lot ! I just checked system info on the other computer, the Windows is indeed in UEFI mode.
We can look at it later on.
Letâs get this dualboot installation going first.
You could open a new thread about the other system and post the output of the relevant commands like you did here previously. We can take it from there.
Iâm reporting back what I just did this morning:
So far my conclusion is: 1. Linux Mint messed up things at first; 2. Impossible to repair the Windows Boot Manager even with the live ISOâŚ
I am not sure about that.
Even though I donât have any explanation why Windows Boot Manager had an EFI path pointing to grubx86.efi, I am pretty sure that your Windows was installed in Legacy/Bios mode. Reason: the absence of the mandatory ESP.
More, in Legacy/Bios mode, the Linux system as second OS will overwrite the MBR of the disk and cosequently overwriting WBM. This is the normal course of events. When the second OS is removed the WBM needs restoring.
This should be possible. Iâm not sure what might have gone wrong.
Iâm glad that you finally got your dualboot system up and running.
Please take a moment to mark the post giving you the solution as such for the thread to be regarded as solved by the forum software.
This is correct. If you install Windows it going to boot Windows. It doesnât pick up linux. The installed bootloader grub is what adds Windows to the menu in grub using os-prober. Normally it would automatically boot on the coirrect drive but this doesnât always happen. Sometimes you have to set UEFI to boot the drive that has EndeavourOS installed on with the bootloader.
what computer is running now ?
the one you had the problems as told in the beginning
or the other one you mentioned in #31
The one I had problem was Dell Optiplex 7070 SFF. The one Iâm gonna install an EnOS is Dell Optiplex 7060 MFF.