3

So after reading a lot of blogs and forums I have been able to create a new partition and install Windows 10 on my Ubuntu PC. I had to install Windows 10 because I go back to school.

The Ubuntu version I use is 15.04

Windows 10 works fine and I also have not lost any data on my Ubuntu partition.

After the installation of Windows 10 the computer also automatically booted Windows 10 and I did not get a prompt for which OS would like to use.

Using a live-usb I recreated Grub and now I am able to boot into Ubuntu, but I still do not get a prompt for what OS I want to boot.

Could someone tell me what I can do, so I get a prompt for what OS to use when starting the computer?

Pablo Bianchi
  • 15,657
  • 1
    Have you reviewed existing answers? eg. http://askubuntu.com/questions/221835/installing-ubuntu-on-a-pre-installed-windows-with-uefi – david6 Sep 02 '15 at 11:15
  • 1
    @david6 I have reviewed existing answers, but I was not able to find one location that delivered a solid answer for my particular situation. After a lot of research and going trough a couple of blogs and forums I have been able to create a dual boot for Windows 10 on an Ubuntu laptop. – Johan Vergeer Sep 09 '15 at 09:35
  • You could provide those details, as the answer to your question. – david6 Sep 09 '15 at 10:26
  • @david6 I have created the answer to the question. I hope other people will also find this helpful. – Johan Vergeer Sep 09 '15 at 11:16
  • Try Boot Repair, this tool is great to fix any boot problems or "fix" Grub. When you install Windows, it tends to replace Grub with Windows boot manager and therefore, only boot to Windows. https://help.ubuntu.com/community/Boot-Repair – alexenferman Jun 12 '20 at 20:52

3 Answers3

1

I have been able to create a dual boot with Ubuntu 15.04 and Windows 10. It takes some effort but it is doable. I will also have to say I am not an expert so there might be some things missing or I might have used some wrong terminology. If you have any remarks that can add to this answer please feel free to do so.

This is an explanation of how to install Windows 10 after Ubuntu 15.04 has been installed.

Make a backup of all your data

I did not lose any information but it is better to be safe then sorry.

Create bootable flash drives

Ubuntu

I already had a bootable flash drive with Ubuntu 15.04. If you still need to do this you can find more info here: https://help.ubuntu.com/community/Installation/FromUSBStick

Windows

To create a bootable flash drive with Windows 10 it takes a bit more effort. First you will need to download a Windows 10 ISO file. Next you have to mount the ISO file (I used Furious ISO Mount) and copy all the files to the flash drive.

MAKE SURE THE FLASH DRIVE IS FORMATTED AS NFTS. For this you can use gparted.

Set the correct boot sequence in the bios

This is different for every pc. When you are not sure how to get into the bios: just Google: bios boot sequence computer brand or type. You will surely find a forum or a manual that will explain it for your particular system. On a HP Pavilion this is Esc. :)

Boot the Ubunu 15.04 flash drive

Once booted you can use trial, you do not have to install. We will run Ubuntu from the flash drive. Now the real fun begins. I hope you have done the first step and made a backup. If you did not and you are not sure what you are doing, go back and make a backup.

Create a new partition for Windows 10

You can use gparted to divide your harddrive into multiple partitions. Right-click on your harddrive and click Resize/move and set the new size for your Ubuntu partition. The rest will go into the new partition you can use for Windows 10.

How you divide the harddisk space is all up to you but keep in mind that windows will take a lot more space than Ubuntu.

The shrinking of the Ubuntu partition might take a while so it is time to get a cup of coffee.

Format

Right-click on the new partition and this time select Format to NFTS.

Set flag

Right-click one more time on the new partition and set the flag to boot.

Set label

This is not mandatory but if you like to keep this organised it is nice to give your partitions a name. Right click on each partition you would like to rename and set the label.

Now you are all set and done to install Windows 10.

Install Windows 10#

Turn off the computer, remove the Ubuntu flash drive and insert the Windows_10 bootable flash drive. Run the installation process. Be sure you install it on the right partition. (Are you still sure you didn't need that backup?)

Reinstall Grub

After installing Windows you will notice that the computer automatically boots into Windows 10. But we wanted to have dual boot. For this we will need to do one more step. We will have to reinstall Grub. I have found a great link that helped me to do this: http://www.howtogeek.com/howto/ubuntu/reinstall-ubuntu-grub-bootloader-after-windows-wipes-it-out/

Now you should be all set and done with your brand new Ubuntu 15.04 and Windows Dual boot machine. Awesome.

From this point I would like to thank everyone that helped me to figure this out.

0

Have you tried Boot-Repair? https://help.ubuntu.com/community/Boot-Repair
I recovered Grub many times Windows 7 dualboot with Boot-Repair. I believe it can also auto detect Windows 10 and set your Grub accordingly.

emrecnl
  • 860
0

Since Windows boot manager is unable to recognize the presence of any other OS so the ideal solution is to install windows first and then install Ubuntu. In this way Ubuntu boot manager becomes the default boot manager. Since Ubuntu boot manager recognizes the presence of windows OS it will everytime prompt whether to boot Ubuntu or Windows.

rancho
  • 4,036