Install Windows 10 alongside Ubuntu 14.04

66,626

This is a FULL solution to the problem. I'll be outlining all my steps and possible alternatives for others. A lot of thanks go out to Zacharee1 and the Ubuntu community as whole.

Steps:

  1. You'll need to download some tools.

    1. UNetbootin will make your live USB's. It runs on Win, Mac, and Linux.

    2. I used Ubuntu to split my partitions from a live USB.

    3. Grub Boot Repair. This will allow you to recognize all the OS's on all your partitions. It installs Grub2.

  2. Making a Live USB and Partitioning.

    1. Run UNetbootin

    2. You have two options on the main screen. We want to choose Disk Image, not distribution. Make sure it says .iso, then click the "..." button and find your Ubuntu .iso file we downloaded earlier and select it. Now make sure you're selecting USB on the main screen and the appropriate drive letter for your USB. You can ignore making extra space, as we won't be needing it for this. Then install that .iso file. It should only take a couple minutes.

    3. Restart your PC as prompted. On restart you need to get into your Boot Menu. On my laptop this means hitting the F12 key during boot. Yours might be different. Once you're in your bios screen select your boot device (You should see your USB). It'll open Ubuntu and ask if you want to install or run from the USB in a trial version. Run the trial version.

    4. Open Gparted from the desktop. You should see "blocks" of memory here. You want to Resize a partition (this makes room for a new one). So right click on the partition and select resize/move. You now see a min and max size. Don't set it directly to your minimum size, but leave room for expansion -- at least a few GB if possible. The numbers are in MB. You can google the conversion if you need to. Now click resize/move.

    5. You are now back on the GParted main screen and a new partition labeled "Unallocated" has appeared. Right click on this partition and select NEW. Create it as a PRIMARY PARTITION with a files extension of NTFS. You can set the size as well; by default it'll use all the free space which is fine. You can add a label, but I find it easier to let the system name it. Now click add. You are back to the main screen. Click the Green checkmark to run both the resize operation and the NTFS formatting operation. If you are working on sizes with 100's of GB this is going to take a long time (took me 1.5 hours).

  3. Installing Windows 10

    1. Restart your PC and install the Windows 10 .iso to a USB using UNetbootin (same steps as in #2)

    2. Restart your PC, hammer on your boot key (mine is F12) to enter your BIOS. Select the USB from the boot list.

    3. Windows will walk you through installing itself. It will directly ask you to pick a partition. Select the new one you made in Step 2. When it's done it will have altered your boot settings and it will look like Ubuntu is missing (but it's not, don't panic).

  4. Repairing Grub

    1. Use UNetBootin to make a live USB for the grub boot repair .iso (see previous steps for instructions)

    2. Restart your PC and hammer on your boot key (mine is F12) to enter the BIOS. Select your USB from the boot list.

    3. You are now in a desktop designed simply to repair GRUB for you. You the "recommended settings" button that pops up on the desktop. You'll be prompted to connect to the internet during the repair process. They store your log file in a URL for you to access later, nothing crazy. Once you're done you should be good to go. Grub should load automatically allowing you to select your OS when you restart the computer. But if you are unlucky like me, and restarting just throws you into Windows, go to step 5.

  5. Changing your UEFI boot order.

    This should not be necessary for most people. My UEFI and BIOS just hated me. There are three methods to fixing this: Using Ubuntu, Using Windows, and Using your BIOS. Ubuntu and Windows failed for me, using the BIOS directly worked.

    • Ubuntu Method. (Copied mostly from Cleaning up and changing the EFI boot order permanently using eifbootmgr)

      Open a terminal and type:

      sudo efibootmgr -v
      

      You'll see your boot order now. Here's my broken order, paraphrased. Yours will vary:

      BootOrder: 0005,0000,2001
      Boot0000* Ubuntu
      Boot0002* UEFI Onboard LAN IPv4
      Boot0003* UEFI Onboard LAN IPv6
      Boot0005* Windows Boot Manager
      Boot2001* EFI USB Device
      

      The line BootOrder: 0005, 0000, 2001 is our problem. It means we're loading Windows and not Ubuntu (which holds Grub) first. We need to change this. Copy this line and change the numbers as needed for your own system:

      sudo efibootmgr -o 0000,0005,2001
      

      This will change the order to Ubuntu, then Windows, then a USB. This is specific to MY system. You need to use your own numbers, but in that exact same format. You can add more commas and numbers, but don't use any spaces and all numbers are 4 digits. Restart your PC and see if you load directly into GRUB for Ubuntu. Mine didn't stick, so I then tried the windows method below.

    • Windows Method.

      If you boot into the Windows 10 OS, you can try configuring the UEFI Boot order manually. Unfortunately my system didn't detect my files properly. Here is how to do it though: Changing the Default Boot Entry These are the instructions I followed and they do a good job. I had to go to the next step though.

    • BIOS Method.

      This method sucks because every BIOS interface is different.

      1. Restart your PC. Hammer on your BIOS key (mine is F12) to enter the boot menu.
      2. Find some sort of menu that talks about boot order. Mine was hidden in an "advanced" tab. You should see your list and Windows will be at the top.
      3. Using +/- you can change the order. Place Ubuntu at the TOP. My system only uses -, but it still works.
      4. SAVE AND EXIT that screen. Exit out of your bios.
      5. You should now see the Grub Menu (since Ubuntu is the default UEFI Boot now).
      6. Select the OS you want.
      7. Restart your PC one more time. If Grub pops up, then you're done and good to go. Hope this helped.

Again, thanks to the community for all the support articles and friendly advice. If you wish to configure your Grub Menu, please refer to Ubuntu Wiki - Grub2/Setup - Configuring GRUB 2. It has a lot of fun options to tinker with, like your timeout for loading into a default OS.

Share:
66,626

Related videos on Youtube

Michael L Hansen
Author by

Michael L Hansen

Updated on September 18, 2022

Comments

  • Michael L Hansen
    Michael L Hansen over 1 year

    I'm having a lot of issues dual booting Windows 10 and Ubuntu 14.04. I'd like to not do anything too crazy if possible.

    I need to install Windows 10, when I already have Ubuntu 14.04 installed. My Laptop is a Dell.

    OK, here's what I need help with:

    1. Downloading everything I need
    2. Making my live USB's
    3. Split partitions
    4. Installing Windows 10
    5. Repairing Grub
    6. Fixing the UEFI to boot Grub
    • Admin
      Admin over 8 years
      Use Gparted to make a new NTFS partition for Windows. Burn the Windows ISO to the USB and install Windows to the partition. You now won't be able to boot Ubuntu, but there is a fix. Download boot-repair from the Ubuntu Community site, make a USB with the ISO and boot from it. Run it and GRUB should be back. If Windows is not seen in GRUB, run sudo update-grub in a terminal.
    • Admin
      Admin over 8 years
      It's recommended that Windows is installed first because Windows overwrites the Ubuntu bootloader, while GRUB doesn't overwrite Windows'.
    • Admin
      Admin over 8 years
      Any ideas on how to make a bootable windows 10 USB from Ubuntu 14.04? winusb fails and every other method I've seen is horridly complex. Is there a utility for this?
    • Admin
      Admin over 8 years
      That worked. UNetbootin is a great tool for all of this. I'll post again once I've failed/succeeded at all of this. Once more, thank you for your help!
    • Admin
      Admin over 6 years
  • Person
    Person about 8 years
    Okay, so I installed Windows 10 on my USB via UNetbootin without problems. But when I rebooted, went to the boot menu and selected the USB device, it says: "Missing operating system." and then goes to my normal GRUB boot menu. Any ideas how to fix this?
  • Michael L Hansen
    Michael L Hansen about 8 years
    You used a .iso file for windows 10? And your system supports the OS? (i.e. you're not trying to install a 64 bit WIN OS on a 32 bit machine). Also, make sure that your USB has NOTHING but the fresh .iso file of the windows 10 OS on it installed from UNetBootin.
  • Person
    Person about 8 years
    Yes, I used the official .iso, downloaded from the official website. I have a 64-bit machine so I downloaded the 64-bit .iso. Just to point out, I'm actually not trying to install Windows 10, as it's already installed on my machine. But somehow it broke and I can't boot it. So I'm trying to do a startup repair through the Windows 10 on the USB stick. And there was nothing else on the USB stick.
  • Michael L Hansen
    Michael L Hansen about 8 years
    Honestly, I'm not sure. Sorry :(
  • Andreas
    Andreas over 6 years
    Unetbootin is not meant for creating bootable media for Windows: " UNetbootin - Bootable live USB creator for Ubuntu, Fedora, and Linux distributions". That's a pretty ambiguous statement but that's what it means. There are other utilities meant for this, which is the way to fix it @Igettäjä The answer should be updated too.