The officially official Devuan Forum!

You are not logged in.

#1 2026-11-29 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 2026-11-29 09:40:57

Calamity
Member
Registered: 2021-10-23
Posts: 134  
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

Online

#3 2026-11-29 10:33:20

Calamity
Member
Registered: 2021-10-23
Posts: 134  
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

Online

#4 2026-11-29 12:30:23

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

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 2026-11-29 14:16:14

Calamity
Member
Registered: 2021-10-23
Posts: 134  
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 (2026-11-29 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

Online

#6 2026-11-29 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 2026-11-29 14:56:02

Calamity
Member
Registered: 2021-10-23
Posts: 134  
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

Online

#8 2026-11-29 19:42:56

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

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.

Offline

#9 2026-11-29 19:51:44

Calamity
Member
Registered: 2021-10-23
Posts: 134  
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

Online

#10 2026-11-29 19:59:02

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

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.

Offline

#11 Yesterday 09:55:10

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

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?

He can do it in vm all he wants on real world hardware Windows on EFI system overwrites the /boot/efi/EFI/BOOT/BOOTX64.EFI with its copy of that file on install. That is the file a 64 bit system uses by DEFAULT on all implementations of the EFI booting to boot unless you go out of your way to change it, 32 in the name for 32bit systems. A Linux install does the same when installing GRUB with either a copy of its normal boot file or the shim boot file so you can use secure boot. Which will then show you the GRUB boot menu with the Windows option if you enable both of them in its configuration. Been that way forever.

how does one boot into Linux install using the UEFI menu without GRUB?

You really have no idea how EFI booting works do you? You can use its shell to directly load the .efi files which the menu conveniently provides to you in a nice graphical list to allow you to skip going to the command line shell to enter it manually. My options I would get when pressing the F12 key on boot.

root@9600k:~# efibootmgr -v |grep Boot
BootCurrent: 0001
BootOrder: 0001,0004,0002,0003
Boot0001* debian	HD(1,GPT,173572a0-f30c-496d-94e0-9414e1b030e5,0x800,0x64000)/File(\EFI\DEBIAN\SHIMX64.EFI)
Boot0002* debian	HD(1,GPT,9fdcdb83-672d-43e7-b6b2-43811b5ecddd,0x28,0x64000)/File(\EFI\DEBIAN\GRUBX64.EFI)0000424f
Boot0003* debian	HD(1,GPT,173572a0-f30c-496d-94e0-9414e1b030e5,0x800,0x64000)/File(\EFI\DEBIAN\GRUBX64.EFI)0000424f
Boot0004* debian	HD(1,GPT,254da66f-ea2b-43db-ab14-480480308d14,0x800,0x64000)/File(\EFI\DEBIAN\GRUBX64.EFI)0000424f

As you can see I have three different drives I can boot with, as I have not deleted the shim option on my main drive I get four listed.

Edit: And no where did I say grub disappeared only Window was going to eliminate the option to boot  from it and you would have to use other options to get back to Linux with me providing the quickest easiest option to do so.

Last edited by RedGreen925 (Yesterday 10:08:58)

Offline

#12 Yesterday 10:28:27

fsmithred
Administrator
Registered: 2016-11-25
Posts: 3,028  

Re: Dual Booting Devuan and Windows

Windows will probably want more than one partition. I have a laptop that's set up for legacy boot with windows 10 and linux. Windows has three partitions - the first two are HPFS/NTFS/exFAT and the third is Hidden NTFS WinRE. The second partition is the largest one which contains the windows OS, and that's the one I shrunk to make room for linux.

I suppose you could make free space in the beginning of the disk and install windows there, letting it make whatever partitions it needs, but make sure you have a full backup of your linux in case it gets clobbered by Win. Having an efi partition adds some complexity that I don't have on this particular machine. In most cases, people add a linux install to a machine that already has windows on it. Be prepared!

Offline

#13 Yesterday 13:21:31

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

Re: Dual Booting Devuan and Windows

And no where did I say grub disappeared only Window was going to eliminate the option to boot

Really? Then what's this in post #4:

There is not going to any grub left to run, once you install the windows it is going to overwrite it.

You really have no idea how EFI booting works do you?

I don't know everything. And I don't brag or claim that I ever do. I'm only trying to help using the knowledge I have. If you knew all that, it would have been really helpful to explain it firsthand. Because otherwise it just looked like you were talking about booting the entry from the UEFI using GRUB.

My options I would get when pressing the F12 key on boot.

I do know about the 'one time boot menu'. In fact, that's precisely what I was talking about. The issue is that once you choose an EFI entry, a system will need a second-stage bootloader to boot successfully (as far as I know). And if it's able to do so, that must mean GRUB is still present.

He can do it in vm all he wants

Maybe you should at least have an actual look at that guide before criticizing me for posting it.

Last edited by Calamity (Yesterday 14:16:32)


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

Online

#14 Yesterday 14:37:05

FM81
Member
Registered: 2017-09-16
Posts: 42  

Re: Dual Booting Devuan and Windows

As long as your kernel supports this (and most do so since many years) you can boot it directly from EFI with an entry like:

efibootmgr -c -L "Devuan" -l /efi/devuan/vmlinuz-6.7.8-90-amd64 -u 'root=UUID=01234567-89ab-cdef-0123-456789abcdef ro net.ifnames=1 quiet initrd=\efi\devuan\initrd.img-6.7.8-90-amd64'

Of course you have to adjust this to the names of your kernel & initrd, your paths and your UUID. No GRUB involved in this case at all ...

(I will not say here: "This is a good idea or not?" But it works!)

Best regards, FM_81


The most brilliant role in comedy is that of a fool, he must not be in order to make it seem. (Miguel de Cervantes)

Offline

#15 Yesterday 17:45:50

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

Re: Dual Booting Devuan and Windows

Honestly guys, some of this discussion is very off-putting or confusing to a newcomer. The basics are that it's entirely possible to do, and relatively simple if you have a UEFI BIOS.

RedGreen925 wrote:

He can do it in vm all he wants on real world hardware Windows on EFI system overwrites the /boot/efi/EFI/BOOT/BOOTX64.EFI with its copy of that file on install. That is the file a 64 bit system uses by DEFAULT on all implementations of the EFI booting to boot unless you go out of your way to change it,

Yes, but every UEFI I've seen allows you to choose which EFI file boots by default and it's not that far out of the way. I do not think of BOOTX64.EFI as a "default" but rather a "fallback". You can reinstall the Linux version of it after the fact -- if you really want -- after everything is already working.

fsmithred wrote:

Windows will probably want more than one partition. I have a laptop that's set up for legacy boot with windows 10 and linux. Windows has three partitions - the first two are HPFS/NTFS/exFAT and the third is Hidden NTFS WinRE.

Windows only needs one partition for itself. On UEFI systems a dedicated EFI partition is needed for any OS; the OP will already have one and should not touch it. Then it wants (but does not need) a tiny 16MB System Reserved Partition which really does nothing, then it needs its main OS partition, and finally an optional WinRE (Recovery Environment) partition. Here is an explanation straight from the horse's mouth.

On MBR systems Windows by default creates a small System partition containing its BCD boot store and bootmgr bootloader (its equivalent of /boot). This is the actually bootable/active partition which loads Windows from the next, larger OS partition, and finally a WinRE partition. Only one is actually required. The BCD files can live on the main OS partition just fine, they don't need the luxury of their own. You can also lose WinRE, but, personal opinion again, I have never needed it to solve a problem and on a few occasions I got to use it (on someone else's system) it was useless at solving their problem. YMMV.

Offline

#16 Today 08:41:20

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

Re: Dual Booting Devuan and Windows

As long as your kernel supports this (and most do so since many years) you can boot it directly from EFI with an entry like:

Very interesting - however achieving this involves extra steps, while I was talking about booting the entry as it is, without manual intervention. If bootloader is missing, it will just fail to boot by default, won't it? There was no boot failure mentioned in the guide, and the author did not have to resort to configuring efibootmgr. He just booted straight into Linux from EFI boot menu.

First of all, Windows 10 did not destroy GRUB. It’s still there. The issue lies in the UEFI Firmware Settings. Windows 10 set itself as the first bootloader — above GRUB in boot priority. Therefore, GRUB never runs. Only Windows Boot Manager runs.

To see this in action, restart or start up the VM and immediately spam the Esc key on the keyboard to load the UEFI Firmware Settings. Really, you need to rapidly press Esc as the VM starts up. Achieving this is tricky, and you must be quicker than a sugar-hyper child playing Wack-A-Mole. If Windows loads, then you were too slow. Shut down the VM and try again…and again and again. Eventually, you will get the hang of it and succeed.

The basics are that it's entirely possible to do, and relatively simple if you have a UEFI BIOS.

I think so too. With MBR it's probably more convoluted, but the method that I suggested should work in UEFI, on a real machine. The only way to know is to try.

an optional WinRE (Recovery Environment) partition

I think such recovery partitions are mainly present on Windows machines in their OEM/factory state. With the standard install it should be possible to avoid this.


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

Online

#17 Today 09:23:57

blackhole
Member
Registered: 2020-03-16
Posts: 297  

Re: Dual Booting Devuan and Windows

With no details provided of the hardware in question or the Windows version you intend to install, it's difficult to advise...

You have an SSD of some sort, that's the only info. Yoiu haven't provided details of the type or form factor, nor the capacity.

If this is a desktop PC and there is no compelling reason not to get a second SSD, I would suggest you do that. This gives you a lot more flexibility and keeps both OS isolated on their own drive. Meaning each could be relocated to a separate PC in the future if needed, and more space available to each.

If it's a laptop with only one means of connecting storage, then you're faced with partitioning the drive.

Offline

#18 Today 11:24:45

Ryccardo
Member
Registered: 2026-06-21
Posts: 3  

Re: Dual Booting Devuan and Windows

Calamity wrote:

I think so too. With MBR it's probably more convoluted, but the method that I suggested should work in UEFI, on a real machine. The only way to know is to try.

Yup, EFI got a bad name because of Apple's poor implementation (until 2013) and of many others' poor implementations on Win8 Certified systems, some of which would fail at the proposed workflow, but in the main it is better for managing bootloaders, it's the one thing it was designed to improve on from traditional BIOS which, at that point, had loads and loads of non-guaranteed incremental improvements from the original that only supported booting from a single type of floppy!

Calamity wrote:

   

Mercury wrote:

an optional WinRE (Recovery Environment) partition

I think such recovery partitions are mainly present on Windows machines in their OEM/factory state. With the standard install it should be possible to avoid this.

There's a lot of variability on the exact implementation of WinRE + actual preloaded recovery images, and on a normal install on an empty disk you'll get a 500MB? WinRE partition (without the reinstallation files), but just like for the boot partition it can be placed in the root partition instead...

Personally, I've stopped using the official Vista+ installer and press Shift+F10 at the language selection screen for a command line, then run the aftermarket installer WinNtSetup I had previously put on the installation media - one feature particularly relevant to this case is that you can make it not rewrite the first stage bootloader, which may or may not be a great idea (never tried it, really) if you want to access it from GRUB only!

Offline

#19 Today 16:55:39

pcalvert
Member
Registered: 2017-05-15
Posts: 335  

Re: Dual Booting Devuan and Windows

I dual boot Devuan and Windows 10 on an old Lenovo laptop. For quite some time, it would boot straight into Windows when I pressed the power button. In order to boot into Devuan, I had to press a small button on the side to access a special boot menu.

That is not longer the case. I installed rEFInd, which gave me a nice graphical boot menu.

Package: refind
https://packages.debian.org/stable/refind

sudo aptitude install refind

Freespoke is a new search engine that respects user privacy and does not engage in censorship.
Another one is called Luxxle.

Offline

#20 Today 18:35:13

blackhole
Member
Registered: 2020-03-16
Posts: 297  

Re: Dual Booting Devuan and Windows

UEFI got a bad name for very good reasons. When Microsoft colludes with OEMs and the main vendors involved in the x86 market to force in a new speciification, it's not out of some kind of philanthropy.

As the OP has not yet replied, this is still only a thread of speculation and anecdotes.

Offline

Board footer