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 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 use it later as a partition for Ubuntu installation.
Requirements
Download Ubuntu 19.04, Ubuntu 18.10, or Ubuntu 18.04 ISO Image as per your system architecture using following link:
Step 1: Prepare Windows Machine for Dual-Boot
1. The first thing you need to take care is to create a free space on the computer hard disk in case the system is installed on a single partition.
Login 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.
2. Once in CLI, type diskmgmt.msc on prompt and the Disk Management utility should open. From here, right click on C: partition and select Shrink Volume in order to resize the partition.
C:\Windows\system32\>diskmgmt.msc
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 the 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 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 fro 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.
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 Continue button to proceed further.
6. Next, choose the first option “Normal Installation” and hit on Continue button again.
7. Now it’s time to select an Installation Type. You can choose to Install Ubuntu alongside Windows Boot Manager, option that will automatically take care of all the partition steps.
Use this option if you don’t require personalized partition scheme. In case you want a custom partition layout, check the Something else option and hit on 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.
8. On this step we’ll create our custom partition layout for Ubuntu. On 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 shrink space from Windows created earlier) and hit on the + icon below. On partition settings use the following configurations and hit OK to apply changes:
- Size = at least 20000 MB
- Type for the new partition = Primary
- Location for the new partition = Beginning
- Use as = EXT4 journaling file system
- Mount point = /
Create the home partition using the same steps as above. Use all the available free space left for home partition size. The partition settings should look like this:
- Size = all remaining free space
- Type for the new partition = Primary
- Location for the new partition = Beginning
- Use as = EXT4 journaling file system
- Mount point = /home
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 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.
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.
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.
This are all the settings required for customizing Ubuntu installation. From here on the installation process will run automatically until it reaches the end.
12. After the installation process reaches its end hit on 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.
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.
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.










In modern windows 10 installations, windows 10 partition (usually
drive c:) is not the most right partition physically on the disk, so shrinking it does not solve the problem of getting free space on the right side of the disk to allow installation of Ubuntu, because you only get a gap in the middle of the disk.However the latest point release of Ubuntu (I use xubuntu) does seem to shrink and install alongside an existing windows 10 installation, so I would suggest to try a direct and simple installation of Ubuntu and choosing the dual-boot option.
Great tutorial for dual boot, but do use swap memory! I kept using this tutorial and my Ubuntu kept crashing a few times per month.
There is no option of windows boot manager when I install Ubuntu. What should I do please tell me..
Try entering “
sudo update-grub” in the terminal, then restart your PC.Hi Richard Blake,
I have same situation as yours and I didn’t find a way to reach the installed Ubuntu… Did you find a way ?
I search so much on google and tried different ways but till the moment I am not able to reach the installed Ubuntu version
Thanks in advance
The installation of Ubuntu 18 on an hp m/c with windows 10 installed ran as described in the tutorial. It was a bit difficult to force a boot of the Ubuntu DVD by intercepting the early stages with .
The
grub-installran without error.There is no grub screen on powering up. I have not found a way to get into it. The windows booting process takes precedence. How can this be prevented?
I have tried various combinations of boot set up. So far I have not found a combination that works.
It says “Excecuting ‘grub-install /dev/sda‘ failed. This is a fatal error.”
Hi, following these instructions I seem to have hit the “4 partition” limit in windows.
https://ubuntuforums.org/showthread.php?t=1765275
I wondered if this aspect might be reviewed and perhaps included in this article if appropriate?
Its a scary time doing this stuff so it does help newbies if “how to’s” cover as many of the points as possible.
One symptom for me was that “free space” suddenly became labelled “unusable” at the stage of “something else” partitioning.
I loved this tutorial! Very well explained, it worked fine on my Xiaomi Mi Notebook Air 12
There is no need to leave the usb every time you boot ubuntu, therefore, you can use it for other things, but make sure you format it into NTFS, or you wont be able to transfer a lot of data to it.
Do I need to leave the USB in after I have installed Ubuntu to use it (Ubuntu) or can I use the USB for other things after?