The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 08:54:18

StinkyEmptyAfterlife
Member
Registered: 2026-05-29
Posts: 16  

Dual Booting Devuan and Windows

Hello everyone! I've got a question about dual booting. I've been using Devuan as my main OS for the past few months and I like it, but unfortunately there are some games I want to play with friends that are Windows only. I want to try dual booting, but I only have one SSD and I'm starting with Devuan already on it. I'm not sure how I should go about this because most guides are on how to install Linux after Windows, not the other way around. Does anyone have some tips for how to do this without too much hassle? Or should I just wipe my drive and start with Windows first?

Also, in case I go with the 2nd option, I wanted to make sure the Devuan installer detects an existing Windows partition and installs around it (not overwriting it). Can anyone confirm that this is the case? Thanks! big_smile

Offline

#2 Yesterday 09:40:57

Calamity
Member
Registered: 2021-10-23
Posts: 132  
Website

Re: Dual Booting Devuan and Windows

If the only reason you want to keep Windows is to play games, consider installing Wine first. It can happily run most of the titles, especially older ones.

If you still feel the need to dual-boot, it is indeed possible to install Windows alongside an already existing Linux. Here is a great guide I found just recently that explains how to do it.

Install Linux or Windows First?

It does not matter since you can always update GRUB and reorder the boot priority in the UEFI Firmware Settings even if Windows sets itself as the primary bootloader. For the most simplicity, install Windows first. Then, install Linux. GRUB — when installed after Windows — will automatically detect the Windows Boot Manager already present and create GRUB to include it.

Installing Linux first will install GRUB, but Windows will set its bootloader as the first to load. GRUB is not destroyed, but it never loads until the boot order is changed. This will require booting into Linux to update GRUB to add Windows to the GRUB menu and setting the boot order in UEFI. It is an added step, but the end result is the same.

The point is that you do not need to reinstall Linux or Windows. Install the operating systems in whatever order you prefer.


Re-examine all that you have been told. Dismiss that which insults your soul.  - Walt Whitman
Dump shampoo and hair dye
Global Skywatch・Subliminal Manipulation

Offline

#3 Yesterday 10:33:20

Calamity
Member
Registered: 2021-10-23
Posts: 132  
Website

Re: Dual Booting Devuan and Windows

In case your current Devuan installation already occupies the whole disk, you will need to shrink the root or home partition with GParted or similar tool. As long as you don't go beyond the space taken up by actual data (shows up as pale yellow zone in GParted), you should not have any problem. Then just proceed with installing Windows to the unallocated space that you freed up, as the guide explains.

Before running update-grub to detect Windows, make sure the GRUB os-prober is enabled - the following line must be present and uncommented in /etc/default/grub:

GRUB_DISABLE_OS_PROBER=false

Re-examine all that you have been told. Dismiss that which insults your soul.  - Walt Whitman
Dump shampoo and hair dye
Global Skywatch・Subliminal Manipulation

Offline

#4 Yesterday 12:30:23

RedGreen925
Member
Registered: 2024-12-07
Posts: 320  

Re: Dual Booting Devuan and Windows

Before running update-grub to detect Windows, make sure the GRUB os-prober is enabled - the following line must be present and uncommented in /etc/default/grub:

There is not going to any grub left to run, once you install the windows it is going to overwrite it. It happily wipes any boot loader present on a machine during the install. If the machine is an EFI install then you can get around this by using a Linux install disk to mount the EFI partition to fix it. Or using the one time boot menu key when booting to load the Linux install instead of the new windows then do a reinstall of grub with the prober enabled. If the old MBR style install then you need to do a chroot re-install of grub to have it write to the tiny boot record space at the beginning of those drives. A quick "debian chroot grub install" in your favourite search should get you the instruction page on the Debian wiki for doing it. To the OP make damn certain of the drive partition you select in the advanced option in the Window installer as choosing the wrong one wipes your Linux install. And if you do not choose the advanced drive selection option it is just going to wipe the entire drive on you for its own use.

Offline

#5 Yesterday 14:16:14

Calamity
Member
Registered: 2021-10-23
Posts: 132  
Website

Re: Dual Booting Devuan and Windows

The author of the blog was able to pull it off successfully in a VM, and, as he said, GRUB was not destroyed by Windows. Perhaps it's a different story on real hardware?

Or using the one time boot menu key when booting to load the Linux install instead of the new windows then do a reinstall of grub with the prober enabled.

Certainly in the worst case you can simply use the boot menu to boot into the Linux system and reinstall GRUB instead of just updating it - but then again, how does one boot into Linux install using the UEFI menu without GRUB? If you can do so, then GRUB must be intact. And indeed you should be able to, according to the guide. It proposes that what happens with 'disappearing GRUB' is merely a boot order issue, fixable by:

1. Manually selecting the Linux boot entry from the UEFI.
2. Updating GRUB (with os-prober active) to include Windows in its menu.
3. Changing the UEFI boot order to make GRUB the default entry.

I did dualboot once with Slackel before, installed it after Windows 7 though (on MBR/BIOS machine). They did not conflict aside from the known timezone issue. It's more preferable to install the systems in such order, and I do not know what would have happened otherwise - but still, nothing was overwritten in that case.

make damn certain of the drive partition you select in the advanced option

Windows 7 installer clearly labels the unoccupied part of the disk as 'Unallocated Space' and correctly pre-selects it for install, but quite possibly 10 and 11 are more rapacious in this regard. Of course with 10 and 11 it will probably be necessary to babysit the naughty installer to get to that Advanced menu (among many other things), but by the looks of it 10's disk choice screen is very similar to that of 7. It's all there on the page I linked to.

Last edited by Calamity (Yesterday 16:18:26)


Re-examine all that you have been told. Dismiss that which insults your soul.  - Walt Whitman
Dump shampoo and hair dye
Global Skywatch・Subliminal Manipulation

Offline

#6 Yesterday 14:49:56

zapper
Member
Registered: 2017-05-29
Posts: 1,303  

Re: Dual Booting Devuan and Windows

@Calamity depends on which games you talk about. Some block virtualization via anti-cheat.

Although I do admit, kernel level anti-cheat is so beyond dumb.

They should check for cheating on the server level. But they usually don't due to greed.

Bunch of a-holes they are.

But yeah, if it doesn't have anti-cheat it should work.

Depends though, what games the OP wants to play.

In my case SC2 works fine on 11.18staging pretty well but the newer ones are... bad.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD Gnuinos
Peace Be With us All!

Offline

#7 Yesterday 14:56:02

Calamity
Member
Registered: 2021-10-23
Posts: 132  
Website

Re: Dual Booting Devuan and Windows

There are some workarounds for anti-cheat mechanisms in Lutris, but I do not know how effective those are, as I do not play any online stuff myself. If it's something really picky - then yes, dualboot may be required. OP said about playing with friends, but I do agree that it really depends on the game and whether it means actual netplay or just hotseat.


Re-examine all that you have been told. Dismiss that which insults your soul.  - Walt Whitman
Dump shampoo and hair dye
Global Skywatch・Subliminal Manipulation

Offline

#8 Yesterday 19:42:56

Mercury
Member
Registered: 2024-11-14
Posts: 91  

Re: Dual Booting Devuan and Windows

Protip: Get Super Grub2 Disk and write it to a USB flash drive (or burn a CD if you're that old-school). This will allow you to boot into an OS installed on your computer even if its boot method has been damaged or overwritten by a different OS. That's the whole point of this utility; it can recognize and boot almost anything.

First main issue is that you need space to install Windows to. You need space on your existing drive, or another drive. It seems you want ot use your existing SSD, and if you already have it filled with Linux partition(s) you will need to make space by shrinking existing partitions to create a new one for Windows. Create a new partition and make sure to set its type to NTFS (this is required for the Windows installer to see it as valid for installation). You do not need to format it. I recommend letting Windows do that during the install process.

Second main issue is that Windows does indeed place itself as the first or only bootable OS. On UEFI systems, which is anything that's not damn old at this point, you should be able to enter your UEFI boot menu and select the existing Linux to boot into, and also set it as the default boot method. Once in Linux, set GRUB_DISABLE_OS_PROBER=false to allow grub to find your Windows install. Then run update-grub. That should do it.

On legacy MBR systems, after installing Windows, you will need to enter your existing Linux installation. This is where some people say to boot a Linux live image and chroot into yours, but I prefer the SG2D utility above, because it fully boots into your installed Linux OS with everything available. Once in Linux, set GRUB_DISABLE_OS_PROBER=false to allow grub to find your Windows install. Then run update-grub.  Additionally, run grub-install, but here you have a choice; you can install it to the MBR (master boot record; /dev/sda) or the PBR (partition boot record; /dev/sda1). Personally I install to the PBR because it makes it easier to switch which OS boots (The windows MBR will always load the PBR of the partition marked "active" or flagged "boot", so you you only need to set the bootable/active flag on the desired partition, which can be done from both Windows and Linux without any special tools). You likely have to do this occasionally because some Windows updates will fail if Windows cannot find its own BCD boot store, which it can't if it's not the default OS. Yes, really.

Online

#9 Yesterday 19:51:44

Calamity
Member
Registered: 2021-10-23
Posts: 132  
Website

Re: Dual Booting Devuan and Windows

Second main issue is that Windows does indeed place itself as the first or only bootable OS. On UEFI systems, which is anything that's not damn old at this point, you should be able to enter your UEFI boot menu and select the existing Linux to boot into, and also set it as the default boot method. Once in Linux, set GRUB_DISABLE_OS_PROBER=false to allow grub to find your Windows install. Then run update-grub. That should do it.

That's the essence of the guide that I posted. It assumes the installation involves UEFI system and GPT disk. In any case it can't hurt to try, if you got your data backed up and your recovery tools ready. I second the suggestion of keeping Super Grub2 Disk at hand.

Create a new partition and make sure to set its type to NTFS

If I recall correctly, Windows installer can be happy with unallocated (unpartitioned) space as long as the valid partition table is present on disk (GPT/MBR). Creating NTFS partition explicitly prior to install should not be necessary. But maybe it depends on the version of Windows.


Re-examine all that you have been told. Dismiss that which insults your soul.  - Walt Whitman
Dump shampoo and hair dye
Global Skywatch・Subliminal Manipulation

Offline

#10 Yesterday 19:59:02

Mercury
Member
Registered: 2024-11-14
Posts: 91  

Re: Dual Booting Devuan and Windows

Calamity wrote:

If I recall correctly, Windows installer can be happy with unallocated (unpartitioned) space as long as the valid partition table is present on disk (GPT/MBR). Creating NTFS partition explicitly prior to install should not be necessary.

You are correct. As a personal preference, I would create the entire partition layout while I'm doing the shrinking. GParted has a better UI for this. However, it's not necessary and you can do some partitioning during Windows install.

Online

Board footer