How to Install Ubuntu Alongside With Windows 10 or 8 in Dual-Boot

This tutorial will guide you on how you can perform the installation of Ubuntu 20.04, Ubuntu 19.04, Ubuntu 18.10, or Ubuntu 18.04 in dual-boot with a Microsoft Operating System on machines that come pre-installed with Windows 10.

This guide assumes that your machine comes pre-installed with Windows 10 OS or an older version of Microsoft Windows, such as Windows 8.1 or 8.

In case your hardware uses UEFI then you should modify the EFI settings and disable Secure Boot feature.

If your computer has no other Operating System already installed and you plan to use a Windows variant alongside Ubuntu, you should first install Microsoft Windows and then proceed with Ubuntu installation.

In this particular case, on Windows installation steps, when formatting the hard disk, you should allocate a free space on the disk with at least 20 GB in size in order to use it later as a partition for Ubuntu installation.

Requirements

Download Ubuntu ISO Image as per your system architecture using the following link:

  1. Download Ubuntu 20.04 Desktop
  2. Download Ubuntu 19.04 Desktop
  3. Download Ubuntu 18.10 Desktop
  4. Download Ubuntu 18.04 Desktop

Step 1: Prepare Windows Machine for Dual-Boot

1. The first thing you need to take care of is to create free space on the computer hard disk in case the system is installed on a single partition.

Log in to your Windows machine with an administrative account and right-click on the Start Menu -> Command Prompt (Admin) in order to enter Windows Command-Line.

Preparing Windows for Dual Boot with Ubuntu
Preparing Windows for Dual Boot with Ubuntu

2. Once in CLI, type diskmgmt.msc on prompt and the Disk Management utility should open. From here, right-click on C: the partition and select Shrink Volume in order to resize the partition.

C:\Windows\system32\>diskmgmt.msc
Shrink Volume to Resize Windows Partition
Shrink Volume to Resize Windows Partition

3. On Shrink C: enter a value on space to shrink in MB (use at least 20000 MB depending on the C: partition size) and hit Shrink to start partition resize as illustrated below (the value of space shrink from below image is lower and only used for demonstration purposes).

Once space has been resized you will see a new unallocated space on the hard drive. Leave it as default and reboot the computer in order to proceed with the Ubuntu installation.

Create Windows Partition for Ubuntu Installation
Create Windows Partition for Ubuntu Installation
Windows Partition for Dual Boot Ubuntu Installation
Windows Partition for Dual Boot Ubuntu Installation

Step 2: Install Ubuntu with Windows Dual-Boot

4. For the purpose of this article, We will be installing Ubuntu 19.04 alongside with Windows dual boot (you can use any Ubuntu release for installation). Go the download link from the topic description and grab Ubuntu Desktop 19.04 ISO image.

Burn the image to a DVD or create a bootable USB stick using a utility such as Universal USB Installer (BIOS compatible) or Rufus (UEFI compatible).

Place the USB stick or DVD in the appropriate drive, reboot the machine and instruct the BIOS/UEFI to boot-up from the DVD/USB by pressing a special function key (usually F12, F10 or F2 depending on the vendor specifications).

Once the media boot-up a new grub screen should appear on your monitor. From the menu select Install Ubuntu and hit Enter to continue.

Ubuntu Boot Screen
Ubuntu Boot Screen

5. After the boot media finishes loading into RAM you will end-up with a completely functional Ubuntu system running in live-mode.

On the Launcher hit on the second icon from top, Install Ubuntu 19.04 LTS, and the installer utility will start. Choose the language you wish to perform the installation and click on the Continue button to proceed further.

Select Ubuntu Installation Language
Select Ubuntu Installation Language

6. Next, choose the first option “Normal Installation” and hit on the Continue button again.

Select Ubuntu Normal Installation
Select Ubuntu Normal Installation

7. Now it’s time to select an Installation Type. You can choose to Install Ubuntu alongside Windows Boot Manager, an option that will automatically take care of all the partition steps.

Use this option if you don’t require a personalized partition scheme. In case you want a custom partition layout, check the Something else option and hit on the Continue button to proceed further.

The option Erase disk and install Ubuntu should be avoided on dual-boot because is potentially dangerous and will wipe out your disk.

Select Ubuntu Installation Type
Select Ubuntu Installation Type

8. On this step, we’ll create our custom partition layout for Ubuntu. This guide will recommend that you create two partitions, one for root and the other for home accounts data and no partition for swap (use a swap partition only if you have limited RAM resources or you use a fast SSD).

To create the first partition, the root partition, select the free space (the shrinking space from Windows created earlier) and hit on the + icon below. On partition settings use the following configurations and hit OK to apply changes:

  1. Size = at least 20000 MB
  2. Type for the new partition = Primary
  3. Location for the new partition = Beginning
  4. Use as = EXT4 journaling file system
  5. Mount point = /
Create Ubuntu Root Partition
Create Ubuntu Root Partition
Root Partition Settings
Root Partition Settings

Create the home partition using the same steps as above. Use all the available free space left for the home partition size. The partition settings should look like this:

  1. Size = all remaining free space
  2. Type for the new partition = Primary
  3. Location for the new partition = Beginning
  4. Use as = EXT4 journaling file system
  5. Mount point = /home
Create Home Partition
Create Home Partition

9. When finished, hit the Install Now button in order to apply changes to disk and start the installation process.

A pop-up window should appear to inform you about swap space. Ignore the alert by pressing on the Continue button.

Next, a new pop-up window will ask you if you agree with committing changes to disk. Hit Continue to write changes to disk and the installation process will now start.

Confirm Partition Changes
Confirm Partition Changes

10. On the next screen adjust your machine physical location by selecting a city nearby from the map. When done hit Continue to move ahead.

Select City Location
Select City Location

11. Pick up a username and password for your administrative sudo account, enter a descriptive name for your computer and hit Continue to finalize the installation.

These are all the settings required for customizing the Ubuntu installation. From here on the installation process will run automatically until it reaches the end.

Create Ubuntu User Account
Create Ubuntu User Account
Ubuntu Installation Process
Ubuntu Installation Process

12. After the installation process reaches its end hit on the Restart Now button in order to complete the installation.

The machine will reboot into the Grub menu, where for ten seconds, you will be presented to choose what OS you wish to use further: Ubuntu 19.04 or Microsoft Windows.

Ubuntu is designated as default OS to boot from. Thus, just press Enter key or wait for those 10 seconds timeout to drain.

Ubuntu Installation Completed
Ubuntu Installation Completed
Ubuntu Windows Dual Boot Grub Menu
Ubuntu Windows Dual Boot Grub Menu

13. After Ubuntu finishes loading, login with the credentials created during the installation process, and enjoy it. Ubuntu provides NTFS file system support automatically so you can access the files from Windows partitions just by clicking on the Windows volume.

Ubuntu Login Screen
Ubuntu Login Screen
Access Windows Partition from Ubuntu
Access Windows Partition from Ubuntu

That’s it! In case you need to switch back to Windows, just reboot the computer and select Windows from the Grub menu.

If you want to install some additional software packages and customize Ubuntu, then read our article Top 20 Things to Do After Ubuntu Installation.

If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? do ask for help in the comments section.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

360 thoughts on “How to Install Ubuntu Alongside With Windows 10 or 8 in Dual-Boot”

  1. I followed the all steps and also successfully installed the Linux but. I didn’t get a grub menu how can I fix this?

    My computer directly opens into the windows.

    Reply
  2. I have created a bootable USB of Ubuntu 20.04 LTS with Rufus in GPT mode UEFI (non-CSM) as well as MBR mode. But with both USB drive I am having a blank screen after choosing my USB in boot menu and then selecting Ubuntu. I am trying to install it in my Dell Inspiron 15 5567, it came to me with already installed Ubuntu but I replaced it with windows 10.

    Reply
  3. I followed this step-by-step procedure and it worked like a charm. Thank you.

    The only question, I have is about the 20 GB for the Home directory, which seems a little low to me but the thing is that I had only 22 GB left when my hard drive has supposedly almost 400 GB free according to Windows Explorer.

    Reply
  4. I have created both a bootable DVD with an iso copy of Ubuntu 20.04 as well as a USB version. No matter what combination of BIOS boot settings I employ, I cannot get my ASUS X550Z laptop to recognize any media and boot into the Ubuntu install. Has anyone had an issue like this?

    Reply
    • @Greg,

      Here are the steps, that will help you to boot your Asus Laptop from USB.

      1. Plug a Bootable USB into your Laptop.
      2. Restart your system and press the ESC key 5-10 times to open Boot menu.
      3. Next, you will find a empty boot menu with “Enter Setup” option, select and hit enter.
      4. Now go to Advanced Tab by hitting Right Arrow Key.
      5. In Advanced tab enter the “USB Configuration”, Now go to “XHCI Pre-Boot Mode” and Disable it.
      6. Next, go to Security tab and Disable Secure Boot Control option.
      7. Next, enable “Launch CSM”, but this option won’t enable here.
      8. To enable “Launch CSM” option, you need to press “F10” and select “Yes” to Save Configuration and Exit.
      9. Now, again press ESC Key 5-10 times to enter into Bios Setup.
      10. Now the Launch CSM option is available in the Boot menu, just enable it and hit F10 to save and exit.
      11. Then press ESC key 5-10 times to open Boot Menu and select the USB disk to boot.
      Reply
      • Ravi,

        Thank you for your help with this. Unfortunately, I was not able to get this to work. First, I could not find the XHCI pre-boot mode to disable; the only entry under “USB Configuration” was whether to enable or disable or setup to AUTO the Legacy USB Configuration.

        Second, when I got to select the USB in the boot menu, I get an error saying that no operating system was found and I had to do a hard reboot to get out of it. I have created a bootable USB with the Ubuntu .iso file on it, so I’m not sure what else could be going on here.

        Any additional insight would be welcomed. Thank you again!

        Reply
  5. Help me on how to install Ubuntu, I have downloaded Ubuntu and also Rufus tool, but I don’t know how to go about it.

    Reply
  6. when I try to reboot from the USB stick, I get a screen for grub4dos offering the choice of booting with DHCP on or off. Either choice leads to the same result, some un-named file not found.

    Reply
  7. Getting error

    Could’nt get size : 0x8000000000e
    sd 3:0:0:0 [sdb] incomplete node parameter data
    sd 3:0:0:0 [sdb] Assuming driver cache: write through

    Reply

Leave a Reply to Md Sadique Inam Cancel reply

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.