Dual boot windows on already installed system

Hi.

I have EOS installed in a nvme drive, want to create a partition and install windows besides it. I’ve read it’s dangerous and can corrupt linux. How can I do it in a safe way?

❯ **efibootmgr**
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0001,0002,0003,0004
Boot0000* Linux Boot Manager	HD(1,GPT,1bb85b05-62c4-4a49-b97b-4020f06153e8,0x800,0x100000)/\EFI\SYSTEMD\SYSTEMD-BOOTX64.EFI
Boot0001* UEFI OS	HD(1,GPT,1bb85b05-62c4-4a49-b97b-4020f06153e8,0x800,0x100000)/\EFI\BOOT\BOOTX64.EFI0000424f
Boot0002* UEFI:CD/DVD Drive	BBS(129,,0x0)
Boot0003* UEFI:Removable Device	BBS(130,,0x0)
Boot0004* UEFI:Network Device	BBS(131,,0x0)
Model: KINGSTON SKC3000S1024G (nvme)
Disk /dev/nvme0n1: 1024GB
Sector size (logical/physical): 512B/512B
Partition table: gpt
Disk options: 

N       Start      End        Size         File system  Name  Options
 1      1049kB  538MB   537MB    fat32                         boot, esp
 2      538MB   129GB   129GB    ext4
 3      129GB   1024GB  895GB


gparted screenshot

DON’T DO THIS.

Its very well known that if you want to dual boot with a Windows System the Windows system must be installed first. Windows does not respect your current setup and will overwrite whatever it wants to install Windows.

If you must have Windows My recommendation would be to purchase a separate nvme device remove the drive the EndeavourOS is installed on, Install the new nvme and then install Windows and just switch between the two when you really need to.

If you can’t do a nvme and can do a USB external then you need to install EOS on that and install windows on the nvme.

don’t think so…
after install of windows as second system the bootorder is to be set to linux first

There is a difference between installing and setting the boot order I think :smiley:

I don’t mind being wrong but if your going to reply like this then please Answer the OP’s question so that we all may learn.

1 Like

I have done it in the past but I cannot guarantee that this method still works.

  1. Shrink the partition of your current system.

  2. Leave the space you want to use for Windows unformatted/unllocated.

  3. Remove the boot,esp flag from your current system’s EFI partition.This will make Windows installer not recognize it as an EFI partition. It will create a new for its own boot manager.

  4. Start the Windows installer and let it install on the unformatted/unallocated space.

As I said, I have done it in the past but I don’t know if this will work now.

If you want to try this, you have to make a good backup of all your personal data. If something goes wrong and your Linux system is damaged you can always reinstall and with a little work get it back and running. But if you loose your data there is no getting back.

Also, make a live usb from the iso of your current Linux system to have as a safety net.

1 Like

Windows will overwrite the bootloader if you install windows on the same disk as linux. Grub/systemd will be gone.

As suggested get a second drive, install windows on the second one and keep EOS where it is now. You can simply switch between those.

Last time I did a dual boot with Windows was Windows 7 and I had an update that killed my dual boot and I had such a time getting back my grub but was at last finally successful a few months later it happened again. That was the last time Windows existed on any system I owned. I Angrily expressed my disapproval to Bill Gates however I was in My office at the time and He was apparently off smelling Cow farts so he did not hear any of my complaints. But F’em I complained anyways

You worked for Microsoft?

No

1 Like

I suppose it was a Legacy (MBR) installation back then. For such installations, the bootloader/bootmanger would overwrite the MBR of the disk. While of course Grub would give a dualboot option in its menu, Window’s bootmanager would totally nuke Linux’ bootloader. One way or another there was a fix at hand if one knew their way around this.

With UEFI installs, things are different. Still I have “heard” about cases, where upgrades to Windows would overwrite the EFI partition. And if it is shared, that would cause an issue of course for Linux to boot. But there is an easy fix for that too if you have a live usb.

What there is no fix for, is loss of personal data. And that’s where a good working backup steps in to save the day.

2 Likes

was that in uefi mode? -don’t think so

maybe endeavour will reject, don’t know, did it on ubuntu and it worked

This is very true. I don’t think EFI came out until I had already started using Linux Full Time.

1 Like

on uefi normally it doesn’t matter what OS is installed first
you can change the bootorder e.g. with efibootmgr or refind or something

1 Like

I’ve heard several horror stories of Windows Overwriting the /efi and also removing Linux Option from the UEFI so while what you say may be technically true Others experience make me question that especially knowing the company behind widows. There are a few threads on the forum about this if you care to search it. I personally will not have that Spyware on my system.

With all this said only one post has come close (if not infact) answering the OP’s question.

it is - be sure :wink:

whether installing windows is a good idea, or the company is recommendable, that was not the question

you can minimize possible trouble by creating two ESPs

1 Like

Basically, just prepare to end up with just Windows, then you can reinstall Linux (if needed).

1 Like

Install Windows. If Windows will overwrite UEFI / whatever, make sure you have USB with Endevour OS to boot into live CD, arch-chroot and reinstall UEFI / whatever

No need to reinstall Linux. And no need to be scared, if you read first and prepare yourself.

1 Like