Soon for sale we will have the choice to get Laptops with Ubuntu or Windows 10 pre installed. But how about to have the both installed and running. Would you like to have Linux Alongside WIndows 10? What I did, I got a new laptop and installed Windows 10 on it, just to show you how to install Ubuntu Linux alongside Windows 10 on my laptop with UEFI and secure boot enabled.

Note: This guide will show you how to install Ubuntu 14.xx alongside Windows 10, this guide also works if you are using Windows 8 and want to Dual Boot with Ubuntu Linux.

Easy 8 Steps Installing:

1. Backup Windows Partitions.

2. Shrink the Windows partition

3. Create a Ubuntu Linux Bootable USB Drive

4. Turn off Fast boot and disable Secure boot

5. Install Ubuntu

6. Reboot your Computer to test Grub loader

7. Boot Live version of Ubuntu and run the boot repair

8. Test that everything works

1. Backup Windows Partitions

This is one of the most important steps in the whole process, because you never know if everything will work as planned, and you have a chance to not to be able to boot your windows again. For the worst case I would recommend you to create a backup of your computer partition. You have to make sure that you have a recovery media that will be used to restore your computer in the worst situation.

I will show you how to create the recovery media using Windows Recovery tools.

Go to Control Panel and in the search bar type: Recovery

windows create recovery drive

Open Recovery and we get 3 options:

Create a recovery drive
Open System Restore
Configure System Restore

You will have to insert a USB Flash with at least 512 MB of storage and choose the first option “Create a recovery drive“.

The system image will take a copy of the selected partition and if something bad happens you will be able to restore your computer data and state.

When you have finished creating the system image you will be asked if you want to create a system repair disc. You should do it because it is also an important thing to repair your system in a bad moment.

2. Shrink the Windows Partition

You will need to shrink the disc C Windows partition for Linux, if you will not use shrinking it will make Windows to use and to fill the Linux disk space. Windows is not protecting other operating systems. Windows always uses all the space that is available as it can see only other Windows OS.

To be able to shrink a partition, we will have to use Disk Management.

What we do, is that we go to Windows Start Menu, an in search bar type: “Disk Management” and open Disk Management.
The operating system is on drive C and this partition needs to be shrunk to make space for Ubuntu Linux.
Right clicking on the Disk C partition and choose the option to “Shrink Volume
disk management shrinkWhen you click on “Shrink Volume” a box will appear to ask you how much disk space you want to shrink the disk by. It is recommended for Linux to have at least 30 GB of space, maximum 50 GB, you don’t need more as Linux uses around 15 GB + your installed apps, 30 up to 50 GB will be more than enough.

Write how much space you need to shrunk in MB and click on “Shrink” to start the process.
disk management shrink disk C

3. Create a Ubuntu Linux Bootable USB Drive

First you will have to download the latest version of Ubuntu 14.xx.
Go to: http://www.ubuntu.com/download/desktop and select to download the latest version of Ubuntu 14.xx.

Important: To be able to run Ubuntu alongside with Windows 10 you will have to download 64-bit version.

Download Unetbootin – Unetboot in is a tool used to create bootable USB drive with Ubuntu on it.

Go to this link: http://unetbootin.sourceforge.net/ download and install Unetbootin.
To run Unetbootin press the “Start” button and type “Unetbootin” into the search box. Click on the icon to run Unetbootin.

To create a bootable USB drive you need to insert a blank USB drive with at least 8 GB of space. Then in the Unetbootin program click on the button with 3 dots from down right corner which will bring up a file browser and you should be able to find the downloaded Ubuntu ISO file. Make sure that the USB Drive letter is the correct one and click OK.
unetbootin
It will take some minutes for Unetbootin to do it’s stuff, when finishing you will have a Ubuntu Linux bootable USB drive.

4. Turn off Fast boot and disable Secure boot

Turn off Fast boot – You need to get into the control panel and then the power options.

From down the menu on the left side and select “Choose what the power button does“.
power optionsIn “Define power buttons and turn on password protection” screen scroll down to the bottom, there should be the option “Turn on fast startup“. If this option doesn’t appear click on the “Change settings that are currently unavailable“.

power options 2
Click the “Save Changes” button to continue.

Turn off Secure boot – Move your mouse to the top right corner and then click the settings option.

Now Hold down the shift key and select “power” and “restart” whilst keeping the shift key held down.
Important: Make sure that your USB drive is not plugged in.
After reboot on a similar screen you will have to choose the UEFI Firmware Settings.

access-boot-menu-and-bios-windows-8Into the UEFI settings, you will have to look for a option that says something like: “Secure boot” with value set to “Enabled” that you will have to set it to “Disabled. Depending on your computer model you can search in Google how to disable the Secure Boot on your specific model.

5. Install Ubuntu

Insert your Ubuntu bootable USB drive and restart your computer. To boot from the USB Drive you will have ether to change Bootable media settings from BIOS, or to press ESC button multiple times when you computer starts up too choose what drive to boot, or use F8 key multiple times on keyboard to chose the USB drive to boot from. This depends from one computer to another, just google how to boot from USB drive from your specific computer model if you cannot figure it out.

Going through installation steps, you will have to choose the partition you want to install on the Ubuntu Linux, first you will have to select the last option: “Something else”.

ubuntu choose something elese - linux alongside windows 10Then you will have to choose the partition that you created when you shrunk the drive C. I would recommend to find the partition by the space amount you shrunk drive C, because Ubuntu doesn’t use the same drive letters as Windows.

ubuntu partition 2Next I would recommend to let Ubuntu decide what to do with the unpartitioned space. Just select the correct partition and move to the next step by pressing install to continue.

6. Reboot your Computer to test Grub loader

When the computer screen has turned off while rebooting, remove the USB drive. Hope that everything has worked perfectly well and you have a Grub menu showing options for Windows and Ubuntu.

If either Ubuntu or Windows loads then you just have a bootloader issue, if nothing loads you did not turn off the secure boot.

7. Boot Live version of Ubuntu and run the boot repair

If everything is working well or not you must insert back your bootable USB drive with Ubuntu, and when booting choose to load the Live version of Ubuntu by clicking: “Try Ubuntu

ubuntu linux try live cdWhen Live version of Ubuntu has loaded, open the Terminal by pressing Windows Icon keyboard button and type “terminal” into the search box. Click on the “Terminal” icon.
In the terminal window type the following command:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

After, type the following command:

sudo apt-get install -y boot-repair && (boot-repair &)

The following message will appear:ubuntu bootrepair messageClick on “Recommended repair” button as it does say to repair the most frequent problems.After a few minutes the application will tell you if it needs you to run extra commands in the terminal and it gives you the commands to copy and paste them.

Now your bootloader should be fixed and you can move to the next step.

8. Now you have Linux Alongside Windows 10, Test that everything works!

Reboot your computer and remove the USB drive. You should have a menu from where to choose Ubuntu and somewhere down in the the Windows EFI. Try Ubuntu and make sure that it loads correctly, then reboot and try the Windows EFI option. Windows 10 should now load.

I would also recommend you to set Automount for Windows Partitions in Linux.

Summary

I hope this article will help you to get the both Ubuntu and Windows 10 working on your computer, note that this tutorial also works if you are using Windows 8. Do not be afraid to try it and to ask questions. Remember that you have a backed up your Windows partition in the 1st step. Also you need to pay attention on your Bootable Media that you create based on your computer specs. Read here: How to Install Windows 8.1 and 10 on a non-UEFI Computer.

Related: How to read Windows 8 License Key from Linux (works for Windows 10 too).

30 COMMENTS

  1. There is a slight problem with the steps you wrote which ruins everything in the installation. If you choose to erase disk and install Ubuntu, you just installing Ubuntu. I think you wanted to say choose something else there and not the first option.

  2. Dear Dimitri,
    Thank you so much. Your instructions are very clear and easy to follow. It made my installing Ubuntu on a Win 10 machine so much easier.

  3. I tried your tutorial and I only have ubuntu showing for boot selection. Windows 10 is no longer showing. What can I do pls.

  4. Can we use this same approach on our windows 10 machines for the Ubuntu MATE distribution as opposed to Ubuntu 14?

  5. When done do I have to have to switch back to EFI boot or leave at CSM? I am using a toshiba laptop.

    • Hi, you can try to switch to EFI, but please remember settings for CSM. Also I would recommend to all of you, leave everything as it is if you are a newbie and don’t want to mess the things! :)

  6. My machine is 32 bit. Do I still need to install Ubuntu 64 bit in order to run it alongside Windows 10?

    • Hello,

      Yes you can trust, as you see in the comment there are people that worked well for them. It depends from case to case. Make sure to backup your data before doing it.

      Good Luck!

  7. ” Important: To be able to run Ubuntu alongside with Windows 10 you will have to download 64-bit version.”
    Does that mean 32 bit ubuntu won’t run alongside Windows 10?

  8. On my machine at least, there is no option for UEFI firmware settings and I cannot figure out how to turn off secure boot at all. I built my own PC with a Gigabyte motherboard and I can’t seem to find anything about secure boot in the BIOS either. I can’t even get Ubuntu to start installing as it always freezes before I get to any sort of GUI.

  9. Hi Dimitri, having followed your instructions everything is working well except… I have to press F12 during boot-up in order to get the choice of Ubuntu or Windows. This must be something to do with the Windows Boot Loader. I tried your ‘Repair the boot of the computer’ tool, but it always ends by aborting unfortunately. Any ideas? Thanks, HB

Leave a Reply