Please enter CoinGecko Free Api Key to get this plugin works.

Partner links

Dual-boot Ubuntu 16.04 and Windows 10 on a PC with UEFI firmware

Ubuntu 16.04 swap partition

This post shows how to dual-boot Ubuntu 16.04 and Windows 10 on a computer with UEFI firmware and on a single hard drive.

If you intend to triple-boot Ubuntu 16.04, Windows 10 and Linux Mint 17.3 on the same hard drive, then consider this article part 1 of a 2-part series. Part 2 is available at Triple-boot Linux Mint 17.3, Ubuntu 16.04, Windows 10 on a PC with UEFI firmware

Enough space will have to be recovered from that single hard drive to use for creating the partitions for installing Ubuntu 16.04. For this article, we’ll be creating three partitions for Ubuntu 16.04 – a root partition, another one for your files and folders and a third that will be used as swap space. Swap is a portion of unformatted disk space that the system may use as virtual memory.

The computer used is self-built, so Secure Boot (Restricted Boot, actually) is not a factor. If you have an OEM (store-bought) computer that came with Windows 10, you might want to disable Secure Boot.

Also, shrink you C drive to make room for installing Ubuntu 16.04. Then download an installation image of Ubuntu 16.04 from here, transfer it to a USB stick or burn it to a blank DVD (are you still using that?). Finally, insert the installation media into the appropriate location and reboot the computer.

If the computer has been set up to boot from external media, you should see the Ubuntu 16.04 boot menu. One of the entries will be to boot into the Live desktop. I suggest you select that option, play around with the Live desktop, and if you’re satisfied, launch the installer by clicking on its icons on the dock or on the desktop.

After the installer starts, click through the first few steps until you get to the one shown in Figure 1. The installer should detect that Windows 10 is already installed and offer to install Ubuntu 16.04 alongside it. That’s great, but it will not create a separate partition for your files and folders.

Partition methods of Ubuntu 16.04 installer

Figure 1: Partition methods of Ubuntu 16.04 installer

For that to happen, you’ll have to select the Something else option, then click on the Continue button to move to the next step.

Something else option  of Ubuntu 16.04 installer

Figure 2: Something else option of Ubuntu 16.04 installer

That next step shows the so-called advanced partitioning tool, where you’ll see all the partitions detected by the installer. Of the existing Windows 10 partitions, the one of interest here is the one that has efi in the Type column and Windows Boot Manager in the System column. That is the EFI System Partition, where the boot loader files will be installed. To start creating partitions, select the free space, then click the + button.

Ubuntu 16.04 advanced partition tool

Figure 3: Advanced partitioning tool of Ubuntu 16.04

That should bring up the installer’s partition editor. For each partition, you only need to specify the size, the file system (from the Use as menu) and the mount point. For partitions other than the one that will be used as swap, stick with the default file system – Ext4 journaling file system.

Ubuntu 16.04 partition editor

Figure 4: Ubuntu 16.04 partition editor

So let’s start by creating the root partition. For size, any value higher than 20 GB will do. From the Mount point, select /. Click OK.

Ubuntu 16.04 root partition

Figure 5: Ubuntu 16.04 root partition

The next partition will be mounted at /home. This is the partition that will hold all your files and folders, so assign most of the available disk space to it. When you’re finished setting it up, click OK.

Ubuntu 16.04 home partition

Figure 6: Ubuntu 16.04 home partition

For the partition that will be used as swap, a size of 2000 MB (2 GB) to 4000 MB (4 GB) should be enough. From Use as, select swap area. OK.

Ubuntu 16.04 swap partition

Figure 7: Ubuntu 16.04 swap partition

After creating that last partition, you should be back in the main partitioning tool’s window for the last time. From the Device for boot loader installation, select the efi partition. On the system used for this article, that partition corresponds to /dev/sda2, that is, the second partition on the hard drive. Then click on the Install Now button to continue with the rest of the installation.

Ubuntu 16.04 advanced partition tool

Figure 8: Advanced partitioning tool of Ubuntu 16.04 after creating partitions

After installation has completed successfully, rebooting the computer should reboot into the GRUB menu. GRUB (Grand Unified Bootloader) is the boot loader used on virtually all Linux distributions. Aside from the entries for Ubuntu 16.04, it will also have one for Windows 10, which makes it possible to boot into Windows from the GRUB menu. Unfortunately, you can’t add an entry for Ubuntu 16.04 in the Windows Boot Manager menu. More on that subject within the next few days.



Partner links

Newsletter: Subscribe for updates

Notify of
Inline Feedbacks
View all comments
5 years ago

i am using UEFI too but after installed success then restart i have to choose OS while booting my laptop,do u have idea how to make it automatically to windows OS?

7 years ago

I did all of the above but my grub never shows up, but instead my bios just starts up and goes black in a constant cycle. Is there something I can do to remediate this situation?

7 years ago

Thanks for this tutorial, dual booting windows 10 and Ubuntu 16.10 on my Laptop. Thanks for this great tip and tutorial.

J. Daniel
J. Daniel
7 years ago

Does the process affect the performance of windows ?

Jeffry R. Fisher
7 years ago

“After the installer starts, click through the first few steps until you get to the one shown in Figure 1. ”

Easier said than done. It’s asking me about third-party drivers. I don’t know whether I need to check the box (and wrestle with secure-boot again). My EUFI setup doesn’t allow me to disable secure boot, so it might be impossible to proceed. Google is no help (yet) to tell me the consequences of this checkbox choice. Any pointers?

Get the latest

On social media

Security distros

Linux distros for hacking and pentesting

Crypto mining OS

Distros for mining bitcoin and other cryptocurrencies

Crypto hardware

MSI GeForce GTX 1070
Installing Nvidia GTX 1070 GPU drivers on Ubuntu

Disk guide

Beginner's guide to disks & disk partitions in Linux

Bash guide

Bash shell terminal
How to set the PATH variable in Bash
Hya, what do you think? Please comment.x