How to dual boot Windows 10 and Debian 10


How to dual boot Windows 10 and Debian 10

Overview

In this post we will go through the process on how to dual boot Windows 10 and Debian 10. In this scenario, we have WIndows 10 installed on a single drive, created a separate partition for Debian installation on the same drive and during the setup process, configured the dual boot for both operating systems. It is advisable to backup your system first before making any new changes, since all this will be performed on a single HDD. Also, check you PC how it boots(UEFI or Legacy – GPT or BIOS partition types) and make sure both OS are installed in the same mode. Most of the post will be covered with Debian’s default installer, but we’ll also showcase some important steps of process on Debian’s new Calamares installer for Live images which is more beginner friendly. Here you can find a tutorial on how to create a Debian bootable USB in Windows 10

Requirements for this process:

  1. Debian bootable USB
  2. Available free HDD space or a second HDD

Assuming you have Windows first installed, first step is to create a partition for the Debian system. For this you can use a disk management utility in Windows or a third party partition software. There a lot of them that are free and good.

Before you do anything, make sure to backup all the important data you have and do this process only if you have free space on you HDD or if you have a second HDD – that would be even better.

 

Bellow you will find a video tutorial as well.

Procedure

Creating partition for Debian installation

For this tutorial, we will use disk management utility. Start the utility by clicking the right click on the start menu and select the disk management option. When the window gets opened, on the bottom you’ll see all your drives and partitions listed. Next step is to create a new partition that we will use for our Debian installation.

If you have more than one partition on your PC, choose the one which has more free space. In this case, we only have one partition and it’s a Windows partition. So, we will select our Windows partition, click right click on it and select the option Shrink Volume. Once more be sure to have free space on any of your drives.

After you click on the option Shrink volume, it will open you a new window. In this windows you will set up your new partition.

In the field – Enter the amount of space to shrink in MB – you will enter and allocate free space for your new partition. So, enter how much space you want for your new partition to have and click on shrink. Keep in mind again that you need to have enough free space on your drive.

Once that is done, on the bottom of the disk management window, a new partition you created will show up and it will have Unallocated label on it. Next step is to insert your bootable Debian USB on your PC, restart the PC and boot the Debian installation from the USB.

Debian installation

I recommend to choose the installation with the graphical interface.

dual boot windows 10 and debian 10

NOTE – Debian also offers Live images, where you can boot Debian live and test the system and has more simplified installation procedure.

Once you start the installation, first it will prompt you to choose the language, select your location and choose the keyboard layout. After that, it will prompt you to enter the hostname for your PC. By default, this will be already filled but you can change it if you’re going to do networking afterwards.

 

Next it will ask you for the domain name. You can leave this empty if you plan to use Debian for personal and home use.

Root account setup

In the next screens, you need to set up your root account – Installation will ask first for the password then the next screen will ask you to enter the username for the root account. After that, it will ask you to set up your personal account and the process will be the same.

After the account creation, next step will be to choose your time zone.

Formatting Debian partitions

Now we need to partition our Debian installation. There are two ways to partition the drive, manual and automatic and we’ll cover both of them. First we will cover the automatic, which is more simpler and more beginner friendly if you’re installing the Debian for the first time. Manual partitioning is for more experienced users with GNU/Linux since it requires more steps to finish the process but it has it’s benefits like creating a separate boot partition which is also covered in this post or installing the Debian on a second HDD.

You’ll get this screen where it will prompt to choose how will you manage the partitions. Select Manual and click continue.

 

dual boot windows 10 and debian 10

Double click on the partition with FREE SPACE label and click continue.

Choose the option to automatically partition the free space.

If you’re not experienced with Linux, you can go with the first option to place all user directories on one partition, or you want to separate the directories, there are option to make all directories as separate partitions.

If you go with the first option, the installer will format the partition automatically and return to the partition disk menu.

You can continue and finish the partitioning.

Calamares installer partition format

dual boot windows 10 and debian 10

Calamares installer runs partitioning much simpler. In the first picture, if you haven’t created a separate partition for Debian, then just select – Install alongside option and on the bottom, move the slider in order to allocate the space for Debian.

NOTE – This can be done if you have plenty of free space on the Windows partition.

Other way is with the option – Replace a partition. This option can be used if you have created a separate partition for Debian, then on the slider just select the grey empty bar that represents free space and the installer will do the rest(just like in picture bellow).

Manually partitioning with a separate boot partition.

One good reason why this is a good option to create a separate boot partition. If you have Windows 10 installed, by default Windows will create a boot partition which will be used as a default boot partition for your machine. Debian can use that partition as well, it will detect it in the installation. So, if you install Debian on that same partition that will make Windows and Debian to use and share the same boot partition. Nothing wrong with that, but there’s a caveat going with this step. Eventually over time, Windows with it’s update can overwrite that boot partition and that can cause to loose the boot configuration for Debian, meaning it cause for Debian to be unable to boot at all. Nothing critical and can be fixable by booting the live image and repairing the GRUB bootloader. It does not happen often but It can be a hassle when it happens. But, since Windows 10 recently, has a much more frequent updates and many of them turn out to be unstable, that’s why it’s a smart decision to make a separate Debian boot partition.

For that, again we will go with manual partitioning again. Boot partition needs to be created first before your root partition. Create a new partition, of 1 GB in size(it’s plenty for boot partition), set it as primary and to start the beginning of the drive.

For the partition format or extension, we can go with ext4, partition type select as boot partition, label it boot as well and set the boot flag to on. Just as in the picture bellow.

That was the procedure for the boot partition. The rest of the partition, you can partition as you wish – you can do it manually again or go through the guided process and the installation will partition it for you.

This is how the partition process looks like on the installer from the live image(Calamares installer). Installer from live image also supports ntfs and fat32 extension as well so you can go with that for your boot partition.

In Calamares installer, make sure to set flags – boot and esp for boot partition when you format it as GPT partition type.

Package manager setup

When you click continue, the installation will first prompt you are you sure to make the changes. Click YES and continue again. The installation will install the system and once that is finished, we will need to configure the package manager.

First, it will ask you do you want to use a network mirror – Click YES and continue.

Next step is to choose a Debian server. Installation will automatically choose a server but it’s recommended to choose a server from your country or the closest to your country.

Next to do is to select an archive mirror. Again, you can leave the selection by default but it’s recommended to choose one from your country or close to your country.

On the next screen, it will ask you to set up the HTTP proxy. It’s not mandatory, you can leave it empty. If you need to use a HTTP proxy for an internet connection then you enter the link of your HTTP proxy server.

 

Choose your Desktop environment you want to be installed. You can install multiple DE’s if you want.

GRUB installation(dual boot setup)

Now here comes the last step and an important one. The dual boot set up. The installation will detect another operating system installed on the HDD and it will prompt you to install it’s own bootloader, which is the GRUB bootloader to maintain the OS booting. On the screen you need to select YES and continue.

On the next screen it will ask you on which HDD to install the bootloader. You need to select your main HDD where windows is installed.

If you go with this option, then the GRUB bootloader will be installed on the same boot partition which Windows uses as well and this setup will make for Debian and Windows to share the partition.

If you wish to install the bootloader on the new boot partition that you’ve created separately.The default Debian installer mostly will not prompt where to install the bootloader if it detects a boot partition. The Calamares installer will prompt for bootloader location every time.

 

Finishing up

And that is it. That was the entire set up, you installed Debian OS and also set up the dual boot with Windows 10. The installation will finish and reboot automatically. Once the PC boots again, you need to have this bootloader screen first where it prompts which OS to boot, Windows or Debian.

I hope you found the post useful, that the process was easy to follow and that you were able to dual boot Windows 10 and Debian. Thank you for your time…


You may also like...

15 Responses

  1. Daniel says:

    Thank You very much for steps explanation, some 7 months ago I switched from Windows OS to Debian Linux-Cinnamon and I realy do not have idea why I didn’t do that before, anyway I still might need WindowsOS for some stuff and dedicated one free partition on SSD where Debian9 is installed with MBR Grub2 and what should be procedure shortly for installing Windows10 where in this case I have already installed Debian9 ?? Many thanx

    • MarkoNtech says:

      Hi there,
      Thank you very much for your feedback. If you decide to install Windows 10 where you already have Debian installed, what will happen is – Windows 10 installation will overwrite the GRUB bootloader – which of course will be inconvenient and the only way to fix that is to boot Live Debian again and from there re-install GRUB bootloader and to update it. Kind regards.

  2. CUNC says:

    Thanks, very useful post.

  3. Kevin says:

    Hey, windows 10 dont show up for me in bootloader, how can i fix that? I cant boot windows 10 so om stuck on debian now…

    • Pedro says:

      Hi, @MarkoNtech. I thank you very much for your video and your time.
      I have the same problem as Kevin. I had Windows 10 on disk 0 and a free space on that disk, that I decided to use for Debian10. I followed your video, but at the end, now, I only have Debian in the grub screen. How can I fix it so that I can boot W10 again ? Perhaps an additional note: By partitioning the free space for Debian, I did select manual and chose for it primary instead of logical type !!! I’d appreciate your comments.

      • MarkoNtech says:

        Hello Pedro… Thanks for commenting. You did nothing wrong by partitioning the free space as a primary partition. You can try with updating the GRUB bootloader so it can detect and add Windows 10 in the boot menu, and also you can configure the GRUB bootloader with the app called the GRUB customizer. Hope it works out…

  4. Tyler says:

    Hello, this guide has been great so far but I’m having a problem. The partition I created is not showing up in the manual partition set up page. The only thing showing up is a FAT32 15.9 GB generic flash disk. I made a 200gb partition for this. I’ve tried going back and re-doing the detect disk step but no dice. Any ideas?

    • MarkoNtech says:

      Hi Tyler… Thanks for the comment… Appreciate your time…
      Can you please tell me how you created the bootable USB, how it’s formatted and in which mode does your PC/Laptop boot? Legacy or UEFI? I’m guessing the issue is, either the primary OS you have installed now and the bootable USB are not in the same boot mode… Best regards to you…

  5. PRO says:

    Hi I have a problem installing Debian, the problem is that Debian does not detect WiFi please help me.

    • MarkoNtech says:

      Hi there… That’s probably the driver issue. It’s quite common with Debian. Had the same thing on my Debian laptop. You just need to install the proper wifi driver and restart the machine and that should solve the issue. When installing the driver, before that check what chipset your laptop uses for the wifi(Intel, RealTek, Broadcom, Atheros and etc…) and then install the driver via terminal with the command – sudo apt install firmware-driver-package-name. Note – replace the driver-package-name with the actual name of the driver package. Also, you can install the driver via synaptic package manager as well. Another note – Laptop must be connected on the internet via ethernet. On this link you can check the driver packages for the wifi – https://wiki.debian.org/WiFi
      Regards…

  6. neo says:

    this is the best post of this centuary..! thanks..installed debian in all machines..

  7. helpme says:

    Hello! I have a problem .. after entering the keyboard layout, debian tells me that he cannot read the files contained in the usb .. what can I do?

    • MarkoNtech says:

      Hi there, thanks for commenting. On the first look of it, I would first try with another USB drive. Second step I would try to re-download the Debian ISO image.
      Either way, what you’re describing to me sounds like a corrupted installation and that can be related to the USB drive and ISO image. Best regards and hope you managed to solve your issue…

Leave a Reply

Your email address will not be published. Required fields are marked *