580

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.

Should I do it with Wubi, or through the Live USB/DVD?

What steps do I need to take to correctly install Ubuntu?

3
  • 59
    Warning: As of today Canonical advices to not use WUBI in relation with Windows 8. More on this: omgubuntu.co.uk/2013/04/wubi-advice
    – Rinzwind
    Apr 11, 2013 at 12:00
  • 4
    @minerz029, Hi friend, I have edited your question to make it more general in regards to dual booting with Windows 8. Aug 28, 2014 at 3:44
  • 1
    I follow that way, but boot-repair didn't work. That's the workaround I followed to install in UEFI mode: askubuntu.com/questions/519610/… ceers
    – feligiotti
    Sep 3, 2014 at 13:27

12 Answers 12

576

If you are using Ubuntu 16.04+, many issues with compatibility are now solved. But still, depending on the version you are using and the hardware/model you have, you might need all or some of the steps provided in this answer. If you are reading this in August 2017+, I can say that with Ubuntu 17.04 I have installed it on over 40+ Laptops with UEFI, ranging from Lenovo, Dell, HP, Sony, Acer and Toshiba where the models were 2016 and Up, and I have had no issues at all installing Ubuntu by simply following the steps in the installer. With the basic steps I mean:

  1. Insert the Ubuntu USB Installer
  2. Select Install Ubuntu (Install Ubuntu alongside Windows)
  3. Select Wireless Card & Upgrade 3rd Party software while installing Ubuntu
  4. Finish installation and see Ubuntu install without any issue with Windows or Ubuntu.

Now, this is not a 100% full proof verification. Am just mentioning that I am impressed by the fact that out of 43 total Laptops, 43 did not have any issues whatsoever on my end. Still, if you do have an issue, this is the reason why this guide was created.

Before explaining the steps to do it, I want to be clear that I have tried many ways of installing Ubuntu with versions older than 15.04 (Or any other distro for that matter) from within Windows 8 or Windows 10. No luck. Microsoft Windows really created a big mess for all Linux distributions. If you have a pre-installed Windows 8 system, you will probably never be able to install Ubuntu or any other OS in the normal (LiveCD/LiveUSB) or Wubi way. This is because Windows 8 introduced several new features, of which 2 are:

  • UEFI which substitutes what we have known as the BIOS (an alternative to)
  • Secure Boot which prevents anything but the installed operating system, in this case, Windows 8 from booting. This is no longer the case for Ubuntu since 12.04.2 so there is no need to disable secure boot.

On a further note I want to mention something about Secure Boot taken from the UEFI Wiki

SecureBoot

"Secure Boot" is a new UEFI feature that appeared in 2012, with Windows 8 preinstalled computers. Ubuntu supports this feature starting with 12.10 64 bit (see this article) and 12.04.2 64 bit, but as PCs implementing support for it have only become widespread at the end of 2012 it is not yet widely tested, so it's possible that you may encounter problems booting Ubuntu under Secure Boot.

IMPORTANT: If you do find a bug, please file a bug report against the shim package in Ubuntu, preferably using the command:

ubuntu-bug shim

once you've installed with Secure Boot disabled. As mentioned by slangasek:

It is not required to disable SecureBoot in the firmware to install Ubuntu on a Windows 8 machine. Ubuntu 12.04.2 and 12.10 are SecureBoot-compatible. Any machine that ships with the recommended Microsoft Third-Party Marketplace keys in firmware will be able to boot Ubuntu under SecureBoot. If there is any problem file a launchpad bug for the shim package.

I also want to notify that I spend this week testing 15.04 and had an excellent outcome. Of 12 Laptops ( 4 Toshibas, 3 HP & 5 Lenovo) where Windows 8.1 was pre-installed, on all cases, Ubuntu detected the Windows Boot Manager correctly, gave the option to install alongside Windows 8.1 (It actually said Install alongside Windows Boot Manager) and solved any issues that appeared on previous Ubuntu versions. I basically did not have to do anything else on this cases. This was with Secure Boot on and on an EFI enabled boot system. I also. Tested 4 Windows 10 PCs and it worked perfectly with 15.10 & 16.04.

This does not mean that in your case it will work perfectly, it just means that on my cases, I had a 100% Ubuntu Perfect installation. Again, with 15.04 (Also on 15.10 and 16.04. On all cases it was 64-bit). I even had talks with users like Marius Nestor from Softpedia who actually had to disable Secure Boot in order for the installation to work, so it should be noted that, even if I currently have an excellent experience with Secure Boot, you might not. Keep this in mind when all else fails (We can thank Marius for his excellent contribution). I would in any case, send the bug report to the provided link above.

So with all of this said, installing Ubuntu via WUBI is not doable (not recommended at least from me), things like trying to boot for example with the Windows 8 bootloader are not possible right now unless something changes in the future (There are also some bugs related to this in launchpad, like the one mentioned by bcbc). Apart from this, WUBI does not work from within Windows 8 and up if you have UEFI with a GPT Partition (Not MS-DOS type partition). Pleas read Does UEFI support mean Wubi will now work on laptops shipped with Windows 8? for more information.

Not only that, but trying to install 32 bit Ubuntu is impossible. You need the 64 bit version for everything to work correctly. Read more about Wubi in Can I install Ubuntu inside Windows?

The following is a small guide to install Ubuntu with a Pre-Installed Windows 8 or 10 system. The steps HAVE TO BE done in the precise order I mention them here to get everything started. If a step is skipped or done before another, you will most likely end up with some of the problems mentioned at the bottom of this guide.

For the time, you need to do it via a LiveCD, LiveDVD or LiveUSB, assuming (actually requiring) you have the following points:

  • You are using a 64-bit version of at least Ubuntu 12.04.2. 32-bit versions will not work.
  • Your system came with Windows 8 or 10 pre-installed (And you do not want to delete it)
  • You are not installing Ubuntu inside of Windows 8 or 10 but rather alongside of it. Inside it is impossible because it needs Wubi which is unsupported.
  • Your system has UEFI activated (And cannot be disabled) with Secure Boot.
  • You have already created a free space for Ubuntu from within Windows 8 with at least 8 GB (I recommend to leave at least 20 GB or so, so you can test the hell out of it).
  • You made sure that you actually have free space left on the drive to create the needed partitions and you also made sure that you did not have all primary partitions used (In case of using an MS-DOS Scheme) because this will create a problem with the Ubuntu installer showing you only the "Replace Windows" option instead of the "Alongside Windows" option.
  • You know how to burn a LiveCD, LiveDVD or LiveUSB from within Windows 8. If not, look for Windows apps that can do that for you. I do mine in another PC with Ubuntu ^^.
  • Windows 8 was not shutdown in either Hibernation mode or any other mode ('fast start-up' which is by default on Windows 8) that leaves it on a saved state. Shutdown Windows 8 in the normal way, with the shutdown option. This will prevent other problems related to this from appearing. Read the bottom (TROUBLESHOOT) of this answer for more information regarding this point.
  • You are installing on an MS-DOS type disk scheme (You can only have 4 primary partitions as opposed to GPT Scheme) which has at least 1 Free Primary Partition (You can find out the type of scheme you have from here if operating on an Ubuntu Live CD or here if from Windows). Remember that if you are already using 4 Primary Partitions no partitions will appear on the Ubuntu installer since there are no more Primary partitions left to use (MS-DOS type partitions are limited to 4 Primary ones, GPT are limited to 128). This happens a lot on many laptops that come with 4 pre-created primary partitions. If you are installing on a GPT type partition and want it to boot, you need to leave UEFI enabled.

PLEASE READ THE ABOVE POINTS SINCE MANY USERS JUMP THIS PART AND WHEN THEIR PROBLEMS ARE FOUND IT NORMALLY IS BECAUSE THEY DID NOT FOLLOW ONE OF THEM.

Before we start we need to do the following:

Run compmgmt.msc on Windows 8. From there on, create a partition with enough size. Note that I mention creating this FROM Windows 8 because I have had cases where doing the partition from the LiveUSB rendered Windows 8 unbootable, even after doing a boot repair. So to remove that problem or have a greater chance of removing it (Or simply skipping the problem altogether) and making sure both systems work, partition your hard drive from within Windows 8 first.

Now follow this steps to have a working Windows 8 + Ubuntu installed on your system:

Windows 8 + Ubuntu

We first need to know with what type of motherboard options we are dealing with. Open a terminal (By going to the start menu and typing PowerShell for example) and run the terminal as an Administrator (Right Click the app that will show in the start menu and select Run as Administrator). Now type Confirm-SecureBootUEFI. This can give you 3 results:

True - Means your system has a Secure boot and is Enabled

False - Means your system has a Secure boot and is Disabled

Cmdlet not supported on this platform - Means your system does not support Secure boot and most likely you do not need this guide. You can install Ubuntu by simply inserting the LiveCD or LiveUSB and doing the installation procedure without any problems.

If you have it Enabled and have the necessary partitioning done then we can proceed with this guide. After booting into Windows 8 we go to the power off options and while holding the SHIFT key, click on Restart.

enter image description here

(This is a really old trick on most Windows, even since Windows 3.1 where you hold a key to do something special when rebooting)

Windows 8 will show you a totally different restart window:

enter image description here

When you get the menu above, select Troubleshoot

You will then get the following options:

enter image description here

Select UEFI Firmware Settings

NOTE - In the Spanish version of Windows 8, the option for UEFI Firmware Settings is not available in several laptops, tested Lenovo, HP, and Acer. They do have an option to boot the computer and another custom menu will appear which lets you do a couple of things. In the case of Lenovo, you will not have an option to install Ubuntu with Windows 8, the only option is to remove Windows 8 completely. This only applies if you are not using 15.04+.

THIS IS AN IMPORTANT PART

The system will reboot and you will be allowed to go to the BIOS (If not press the appropriate key, some common are DEL,F2 or F10).

In this part, I can't help much since each BIOS is different for each Motherboard model. There are 2 options you can take here, both of which are optional since Ubuntu might install without any problems at all. You can either look for an option to disable Secure Boot or an option to disable UEFI. In some cases you will be able to find both, it will show in the BIOS as an option called Secure Boot or Enable UEFI.

If you find this options, then depending if you cannot install Ubuntu with Secure Boot enable then disable Secure Boot (Remember to report this as a bug using ubuntu-bug shim), to be able to still stay in UEFI mode and also be able to Boot with Ubuntu. In some motherboards, this will be the only option you actually need to change and also will be the only option you see related to UEFI because they will not offer the possibility to disable UEFI.

DUAL BOOT ISSUES

I would also like to mention an important note here. If you happen to install Ubuntu in Legacy Mode (No SecureBoot) you might have problems booting both, Windows and Ubuntu at the same time since they will both not appear on a Dual-Boot Menu. If you have Windows on UEFI for example and you install Ubuntu on Legacy Mode, you will only be able to boot to Ubuntu in Legacy Mode and Windows in UEFI Mode.

So before proceeding, make sure that you are installing Ubuntu with the same boot options as Windows. This way you will be able to choose which one to boot from in the same boot menu and not worry if one will work or not. From the Ubuntu UEFI Guide you can see that there is a section that teaches you how to know if you actually installed Ubuntu in the same Boot setup as Windows (UEFI Mode):

An Ubuntu installed in EFI mode can be detected the following way:

    its /etc/fstab file contains an EFI partition (mount point: /boot/efi)
    it uses the grub-efi bootloader (not grub-pc)
    from the installed Ubuntu, open a terminal (Ctrl+Alt+T) then type the following command:

    [ -d /sys/firmware/efi ] && echo "Installed in EFI mode" || echo "Installed in Legacy mode" 

So if you have ANY dual boot problems, this could be the problem. Please read the Ubuntu UEFI Guide since it covers various ways of solving Dual boot problems and converting Ubuntu to Legacy or EFI mode. I have already tested this with various Ask Ubuntu members that helped me apart from 2 Laptops I was provided with for the testing. This should then solve any Dual Boot problems related to Windows 8 + Ubuntu, but I again encourage anyone with problems (same or new) to file a bug report as mentioned above. The Ubuntu Developers are working very hard in providing an easy to install solution for all cases and this is one of the top priorities.

Continuing with the guide, in other motherboards that do offer the possibility to disable UEFI which would completely eliminate UEFI and Secure Boot on it and boot in the normal BIOS like way, if you find this is the way you want (To have a UEFI free computer and not face any of the problems related to this) then, by all means, do it. I for one have tested the Intel DZ68DB and did both case studies. Remember that doing so will make the Dual Boot process not work in almost all cases you will be left with a system that either Boot Windows in UEFI or Boots Ubuntu in Legacy.

With that in mind, remember to also select the Boot Order to make sure that it boots either your CDROM, DVDROM or USB Drive so you can boot from your Live Ubuntu image after rebooting.

Some points we should consider before continuing:

  1. If Windows 8 was installed with UEFI enabled, it is highly recommended to stay in UEFI, although if you still want to disable it for specific reasons you can, GRUB will create the bootable part for Windows 8. But if you do disable UEFI and want to access Windows 8 afterward (before installing Ubuntu), it will not work since the boot part for Windows 8 needs UEFI (Again the Dual Boot problem).

  2. If you only disable Secure Boot, there is no problem in some cases. You are only disabling the part that creates the most problem between Windows and Linux, which is the one that prevents Ubuntu from booting correctly. In either case, I encourage you to first try to install Ubuntu with UEFI/Secureboot, since in most cases it will work. if you disable any of them and install Ubuntu, you might not be able to boot to Windows 8 afterward through the GRUB Boot Menu.

Now before saving, some motherboards offer a Boot Mode option. Verify that this option is not pointing to UEFI Boot but instead to CSM Boot (Compatibility Support Module) which provides support for Legacy BIOS like systems.

Other systems offer a UEFI Boot option you can enable or disable. Depending on the options I mentioned above you can set this to the one you want.

And lastly, others offer a UEFI/Legacy Boot First option where you select which one you wish to use first. Obviously, the option is self-explanatory.

Now save the changes and reboot.

When the Ubuntu Live image starts, it will show rather different than the normal one we are all used to. Do not worry, this is because Ubuntu has an alternative boot option when a system has EFI installed. Just select everything like you are used to. I highly recommend reading the following article in the Ubuntu site regarding Ubuntu installations when using UEFI. If there is a problem, then try to create a small partition (About 250 MB of size) for the EFI part of the system. This is done in the installation part where it asks you if you want to install on the desired partition or used the Advanced Options. Select the advanced options if you come up with a problem. In there, create a 250 MB partition for EFI and the rest for GRUB and other stuff you are accustomed to.

I think up to here you should be fine and have avoided several problems typically found when trying Ubuntu with Windows 8 which are:

  • Not booting a LiveCD/LiveDVD/LiveUSB/Wubi
  • Not installing Ubuntu because of security issues (Yeah right, more correctly monopoly issues)
  • Not booting either Windows 8 / 10 or Ubuntu (not showing either one of them)
  • Not letting Ubuntu create a partition
  • Not recognizing the EFI part of the system
  • Ubuntu not recognizing the Windows 8 / 10 Partition
  • Not seeing GRUB and booting directly to Windows
  • Windows 8 / 10 not booting or readable because or partition changes are done from Ubuntu

TROUBLESHOOTING

YOUR COMPUTER BOOTS DIRECTLY TO WINDOWS

This is a common problem and if you do not get a GRUB menu, re-installing or repairing grub will NOT HELP

Every BIOS/EFI system is different, it might look like one of the following pictures:

UEFI 1

UEFI 2

Notice the "UEFI Boot Option Priority" or "Boot Option Menu". Usually, Windows is the default and Ubuntu (or as in the second picture elementary OS) will be an option.

Once you select Ubuntu on the UEFI boot menu you will then get a grub menu. You should be able to boot either Ubuntu or Windows from the grub menu.

Another issue that could make the system boot directly to Windows (without even showing the GRUB menu) is if either Windows took hold of the boot manager or after installing Ubuntu, the EFI partition was not properly configured for Windows. To solve this, simply go to Windows and open a terminal, then type the following (Need Administrative Privileges):

bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

This will configure the Windows Boot Manager to take into consideration the GRUB Boot Manager. This could still happen even after running the Boot Repair from within Ubuntu. So making sure that Windows reads the Ubuntu EFI partition, in case you are using an EFI boot system instead of the old BIOS will solve it. In the above command line, the difference between shimx64.efi and grubx64.efi is that shimx64 is the actual Microsoft signed binary that works with Secure Boot enabled while grubx64 is the normal grub binary (Not signed).

Windows 8.1 / 10 Not Recognized / Ubuntu not showing option to Install Alongside

If you have followed all the steps above including making a partition ahead of time through Windows 8.x, proceed with the normal Ubuntu installation. When you arrive at the option to how you would like to install it if you do not see the option to install Alongside it, select "Something Else" instead of wiping the hard drive. Configure the new partition layout on the empty space you've set aside that isn't Windows 8 / 10.

You need to create at least 1 partition for the root system (Which shows as the symbol "/") and set it to Ext4, another for SWAP (Virtual Memory). The SWAP space can be as small as 128MB if you have a lot of ram or as high as 4GB. With this 2 partitions created based on the empty space you provided you should be ready to proceed. And one last one for the EFI part which should be around 100MB.

When the installer asks where to put the bootloader, tell it to put it on the partition with the type "efi". This will install GRUB which will load once your system starts in the future which will give you the choice of going with Ubuntu (or whatever flavor is installed) or going to the Windows Boot Manager which will take you to Windows 8.

I would also recommend reading the following links to get additional information on some issues and causes in this particular part:

REPAIRING THE BOOT

After finishing the installation, if you happen to have Windows 8 disabled from booting and it only boots to Ubuntu, do not worry. In Ubuntu after it boots, install Boot-Repair in Ubuntu by opening a Terminal and typing the following:

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

Boot Repair will mention that we have some GRUB error, that we have an EFI system and that Ubuntu rocks. Since Ubuntu rocks (It does not work if Ubuntu does not rock! ^^), just click on Apply so boot repair fixes everything. Now reboot and you should see Windows 8 and Ubuntu side by side.

For cases with rare booting problems, partitioning or using old hard drives on a newer motherboard, your solution might be checking out FixParts which solves misaligned partitions and other partitioned type problems.

If you are experiencing one of the following issues:

  • Loosing Data when copying from Ubuntu to Windows 8 after shutting down Windows 8
  • Can not access your Windows partitions from Ubuntu getting a Disk contains an unclean file system

    This is most likely the cause of an option in Windows 8 called Fast Startup which behaves similar to hibernation and keeps a snapshot of the system so when you boot up, it will load faster. Since it keeps a snapshot, anything you copy or change in Windows 8 from Ubuntu after doing the fake shutdown will be lost (Apart from other issues found HERE).

    The solution in Windows 8 is to go to:

    Control Panel --> Power Options --> Choose what the power button does

    In here click on "Change settings that are currently unavailable" where you should see something like this:

    enter image description here

    Uncheck the option that says "Turn on fast startup". You also need to disable hibernation. You can do this with this command (you need to be in a console with admin rights):

    powercfg.exe -h off
    

    This should remove the hibernation file and enable partition to be mounted in Ubuntu.

A demonstration video is now available on this issue. We can install Ubuntu 12.04.2 (64 bit versions) onwards with SecureBoot enabled. But we need to disable the SecureBoot after the Boot Repair step.

6
  • 1
    For me the too long don't read version is run boot-repair from an Ubuntu Live USB and following these instructions: help.ubuntu.com/community/Boot-Repair
    – geneorama
    Aug 26, 2017 at 22:49
  • 2
    +1 for updating this with > August 2017 new information. It saves much time wasted over historical fixes that are no longer relevant. A trap I recently fell into with Samsung Pro 960 PCIe NVMe M.2 SSD installation on Skylake (HM170) platform where all the research was unwarranted and installation was hassle free. Oct 15, 2017 at 18:20
  • Hi, I don't understand how to create a partition from windows. In my laptop's hdd, there are more than 100 GB free space (unallocated). Is it OK to proceed? Or I must create a partition (new simple volume)? Thanks.
    – user153245
    Nov 21, 2017 at 12:49
  • 6
    Too much unnecessary brief almost like writing a full blog here. Dec 11, 2017 at 4:18
  • Hello @Luis Alvarado, can you help me to solve a problem related to the ubuntu installation please? Maybe it is typical for asus laptop. askubuntu.com/questions/1195977/… Dec 14, 2019 at 8:48
40

Wubi doesn't work on newer computers with UEFI (see bug report http://pad.lv/694242). If you bought a computer with Windows 8 preinstalled it is almost certainly using UEFI (since this is required for Secure boot and all OEM Windows 8 computers are supposed to be secure boot).

Wubi uses Grub4dos to locate the Grub2 wubildr file. There is no support for GPT disks built into Grub4dos (and UEFI uses GPT disks unless it's booting in hybrid mode). In addition, with Secure Boot, it's not possible just to add new boot entries as before.

So, what you need to do is a normal dual boot. If you have secure boot (likely) then you need the 64 bit Ubuntu.

4
  • I have downloaded ISO of Ubuntu 12.04 64-bit. Then I used Nero to burn it on the CD. After that I rebooted computer (CD was in) and it asked me for which OS would I like to use. I chose Ubuntu and the same error as before appeared... What did I wrong? Nov 26, 2012 at 18:43
  • 5
    You have to tell the computer to boot from CD. It ignored it and booted from the hard drive. That Ubuntu entry is leftover from the Wubi install (which you should remove from Control Panel, Add or Remove progams, then double-click on Ubuntu). PS have a look at this link: help.ubuntu.com/community/UEFI
    – bcbc
    Nov 26, 2012 at 19:27
  • Ubuntu did not support SecureBoot when 12.04 was released. That came with Ubuntu 12.04.2LTS and Ubuntu 12.10. Aug 28, 2013 at 17:02
  • @Jo-ErlendSchinstad you're right. My answer was specifically concerning Wubi (at the time I knew little more about UEFI), hence my link to the community docs. I wasn't attempting to describe how to install with UEFI which is still not exactly straightforward based on the adventures described here: ubuntuforums.org/showthread.php?t=1769482 (and case in point, an unofficial, unsupported, boot-repair app is required in many cases to get it to work; despite requests this app has not been either accepted into the official repos, or made redundant by improving the install process).
    – bcbc
    Aug 28, 2013 at 18:12
31

You can do the same as you could in Windows 7, although I'm not sure I'd recommend it using the graphical boot menu (reason in the end).

Some things first:

The usual setup for people who have dual boot configurations with Linux being one of the OSs that the machine has installed is to have a Linux bootloader by default, and there add an entry for the Windows OS. What that does is to load the Linux bootloader and if you want to load Windows it chainloads into the Windows bootloader which then boots Windows.

Since usually there's only one Windows installed the menu selector of the Windows bootloader never appears giving the impression that the entry you added in the Linux bootloader actually loads Windows.

The opposite is possible too, although not common among Linux users. For instance, my main bootloader is the one from Windows which then chainloads into a Linux one to boot Linux; I have configured the Linux one to be mostly invisible and load right away though.

How to add a Linux entry in the Windows bootloader:

It really depends on what you install first and what later, I'm sure there are some guides around the internet to explain a detailed procedure on how to setup a dual+ boot environment. So I'll just go through 2 different setups:

When you install Windows first: In this case when you're installing your Linux distribution, if it allows you to install the bootloader in a partition directly instead of in the MBR of the hard drive do so. After restart you'll find that you're booting Windows just like Linux was not installed at all, after that follow the scenario in which Linux was installed first described below.

If you can only install the bootloader in the MBR of the hard drive after the reboot you'll see a Linux bootloader (Syslinux, GRUB, you name it), choose the Windows entry there and boot into Windows.

Now, I like to use EasyBCD (free for personal usage) to deal with the Windows bootloader, but anything that I do with it can be accomplished without with the proper bcdboot, bcdedit, etc. commands.

  1. Open EasyBCD and go to the "Add New Entry" section and the "Linux/BSD" tab.
  2. Select the bootloader you have for your Linux distribution. In case of GRUB2 there's an autoselect mode which will select the appropriate partition for you, for Syslinux for example you have to compulsory select the partition where it is installed.
  3. Name the entry, the name you put there is the one that will appear in the Windows bootloader.
  4. Select the partition where your bootloader resides or autoselect if that option is possible. In the end you should end up with something like this:

    enter image description here

  5. Click in "Add entry" and you'll receive the result in the bottom left part of the program:

    enter image description here

  6. Now you have to restore the Windows bootloader as the default one, for that go to the "BCD Deployment" section, there select to write the Vista/7 bootloader in the MBR (which by the way is the same as for Windows 8):

    enter image description here

  7. After that you're all set, you'll receive a similar confirmation as before. When booting up you'll see the boot menu prompting you to select one of them:

    enter image description here

When you install Linux first: In this case you don't have to restore the MBR (Master Boot Record, tells what to execute next grosso modo) as Windows installation will overwrite any previous value there.

NOTE: with UEFI and GPT disks this may be different though, but I have no way of trying it out.

Why I'm not sure I'd recommend doing this using the new graphical boot menu in Windows 8:

Essentially because the way it works is different than with the textual menu (default for Windows 7). In Windows 7 (or Vista) you're first presented with the boot menu and then it starts to load whatever you choose to, in the new graphical menu it first loads some stuff (= takes time) and then presents you with the boot menu. If you don't select to load Windows 8, it reboots the machine and starts to load whatever you selected which in this case is the Linux bootloader.

I find waiting to load some stuff just to discard it and reboot unnecessary if I just want to boot another OS; but it's my personal opinion on the matter, there's no problem whatsoever by loading Linux, or any other OS in this manner.

Anyway, there are different ways to use the textual boot menu instead in Windows 8, if you're interested check this answer out.

Source from : Xandy

2
  • 2
    I normally avoid easybcd. With no experience, one can easily mess up their uefi booting computer.
    – Hellreaver
    Dec 21, 2014 at 4:08
  • @DeeJaVu, I don't see the "success" message you see in step 5. Instead it shows nothing, just blank as per usual. Is this due to me being GPT/UEFI?
    – Pacerier
    Apr 27, 2015 at 0:52
30

If your computer comes preinstalled with 64-bit Windows 8 then you need to boot ubuntu using the secure boot option. In other words, when you are at the boot menu, choose to boot the drive as a secure device. Then you can install ubuntu. Most likely, after you install, you'll have to reboot after install using the disk and then do a boot repair.

The other option is you can boot the drive normally, do a normal install, and then still reboot after install and do a boot repair. This was the option I ended up doing.

Ubuntu 12.10 does a great job of resizing the windows partition and installing itself alongside Win8. For some reason, Grub is the problem. Once I installed, I could boot into Ubuntu with no problems but couldn't get into Win8. Running the repair got Grub fixed and then everything worked smoothly after that.

Here's a great link that will probably help because it did help me: https://help.ubuntu.com/community/UEFI

2
  • 3
    so you didnt create a partition before you installed? the installer took care of that for you?
    – Richlewis
    Mar 8, 2013 at 11:14
  • 2
    Correct. It was all part of the process. Apr 4, 2013 at 21:54
15
  1. Create a LiveDVD or LiveUSB of Ubuntu (>=12.04.2) 64bit ONLY.

  2. In your BIOS, disable QuickBoot/FastBoot and Intel Smart Response Technology (SRT). If you have Windows8, also disable FastStartup.

  3. Boot your PC using the LiveDVD or LiveUSB and choose "Try Ubuntu". If you get a Secure boot or signature error, you may wish to disable SecureBoot, then retry to boot the disk.

  4. Install Ubuntu from the Live CD/DVD or Live USB in the usual manner, then reboot the PC.

  5. If the PC does not load Ubuntu (but instead loads Windows, for example, as in Bug #1050940), or if the Windows entry in the GRUB 2 menu does not boot Windows (see Bug #1024383), boot your PC using the Live CD/DVD or Live USB and choose "Try Ubuntu" once again. When the live session has loaded, run Boot-Repair (see link for details). When Boot-Repair loads, click on the "Recommended repair" button, and write on a paper the URL (paste.ubuntu.com/XXXXXX/) that will appear. Then reboot the pc.

  6. This should fix most boot problems. If this does not fix your boot problems, please create a new thread in this forum, describing your problem and indicating the URL you wrote in the previous step.

Source: Lifted word-for-word from this wiki.

2
  • this did not work for me. please see askubuntu.com/q/451710/59618
    – psychok7
    Apr 20, 2014 at 23:54
  • 1
    After hours of fiddling with all types of configurations and settings I made a new Ubuntu LiveUSB on a 2Gb Flashdrive (instead of the 16Gb one that I started with) and everything worked 100% using all of the original settings that I started with. Not sure exactly why, but it worked - just thought I'd mention it here. Apr 9, 2015 at 9:17
13

To install Ubuntu alongside Windows 8 (with UEFI, GPT support or not) is a simple or not so simple task, depending on your computer's specifications. Many things have been said in this answers and some of them are obsolete, as Hellreaver noticed. Because every new question about this topic is redirected here, I feel obligated to respond. Now I am not a programmer, so if I can do it, you can do it.

There might be a little difference between desktop and laptop computers, hence I will explain first for the desktop (easier) version.

Many forms of UEFI are out there and every manufacturer has its own solution. For example, I use Lenovo Y580 laptop and it doesn't have an option to boot from a DVD. So I will present a universal solution (and the fastest one) - install Ubuntu from USB. To properly make a bootable USB you need to download RUFUS. Do not use Wubi (nor UNetbootin...) because to my knowledge, at the present time, they do not support all these technologies (UEFI, GPT...), so the only option that I know of and have tested successfully is Rufus. It is a simple and effective program. In case you are wondering whether you have GPT partition table or MBR, you can check this by opening Windows Disk Management, right-click on Disk0 and select properties/volumes tab/partition style.

As for other UEFI options, as Luis Alvarado mentioned, you might want to try installing Ubuntu with Secure boot enabled. If boot fails then disable it. You should also disable fast boot (if available) and enable USB boot as well. If everything else fails then you should install Ubuntu in Legacy mode. Afterwards, use Boot-Repair tool to adjust Grub2 (it is an automated process). Then you can boot both OS from the same UEFI mode.

For some reason (probably a bug) my UEFI doesn't recognize the bootable USB at first entrance, so I have to boot twice into UEFI to change the boot device order.

As for the installation of Ubuntu itself, if you are new to this procedure, take my advice and you should see some explanatory video, for it is reported that some people had some issues when it comes to selecting the installation type. Of course, if you want Windows alongside Ubuntu, you should choose the "Something else" option, it's the last one – not the first, as shown on the screenshot!

Installation Type

Then select the partition for Ubuntu (whether to choose sda1, sda2, sdb1, sdb2...). The interface is different from Windows installation.There is a good post explaining this matter, but read it whole especially the OEM chapter. You must know why it is better to have separate root and home partitions, do you need swap area concerning SSD drives, etc.

Choose partition

Now Luis Alvarado already mentioned that you should have free space, for your Ubuntu partition, formed and ready before you start the Ubuntu installation. It is for the best, and you can easily do it from Windows "Disk Management". Note that this partition must be an active type partition.

This is the point where laptop users should pay attention. My laptop came with Windows 8 preinstalled and with the software option for back-it-up. So it has a keyboard button near the power button, to backup/restore Windows in case something goes wrong. I don't believe you can repartition your hard drive (change its size) and not to mess up your backup software. Apparently it will alter the ID of the Recovery partition. That's why I recommend either to contact your manufacturer how to back-it-up on DVD or you can simply clone it with Clonezilla live CD/USB. It's no problem, obviously, if you have two hard drives, for example, an SSD and an HDD.

Before installing Ubuntu you should really try it first. It is important to know whether Ubuntu's current kernel supports all of your hardware.

2
  • 1
    I thought you'd be interested in reading this recent answer because of your recommendation to use Rufus. In his answer Rod Smith writes: Tools like Pen Drive Linux and Unetbootin work by copying files to the target medium. Most such tools were written before EFI became common, and older versions don't create the right EFI boot files. Even some newer versions require activating special options that aren't set by default to create an EFI-bootable image.
    – karel
    Mar 15, 2015 at 17:19
  • 2
    Thanks for your comments Karel and Yes, I am well aware that Universal USB Installer is recommended. That is just one of the reasons I am writing this post. I have just downloaded the latest version of the application and it just doesn't get along with my UEFI. Sure, you can make a bootable USB drive in many ways, if you are a programmer. There are several reasons I insist on Rufus, because it is: GNU GPL licensed, frequently updated, GUI based so anyone can use it, supports UEFI/BIOS GPT/MBR FAT32, simple and not much can go wrong, easy to use and for the main reason....it works.
    – VRR
    Mar 16, 2015 at 17:55
11

When I installed Ubuntu, the installation media didn't recognize Windows 8. I selected "Something else" option from installation menu and then installed it on a disc free space. After rebooting my PC, GRUB did recognize Windows. No problems. Maybe it will be helpful for someone having this issue.

1
  • Could anyone confirm it with Windows 10? Dec 15, 2018 at 20:11
8

I'm not sure if this works, but for my case, my laptop has 2 hard disk slot. It came with 1 hard disk with Windows 8 pre-installed. Another hard disk is from my busted old laptop, and I just plug it in. Surprisingly, I can boot to Windows 8 and Ubuntu 12.04LTS non-UEFI (of course I need to enable UEFI if I want to use Windows and disable if I want to use Ubuntu).

Now my question is this: Is it possible to installed non-UEFI Ubuntu in the same partition as Windows 8, and boot it by disable the UEFI boot option? If that is possible, maybe we can temporary use this method until our grub are more stable to handle UEFI boot. By the way, currently my configuration on dual boot is like this.

Another way though, is to buy one external hard disk and install Ubuntu in that external hard disk. I attempt install Ubuntu on the external hard disk and I can say quite success. I can boot Windows 8 with UEFI boot option, and I can boot external hard disk by changing the settings of the BIOS. Of course this is done using Ubuntu 12.04 LTS (non-UEFI).

Anyway, in conclusion, for the mean time, avoid install Ubuntu alongside with Windows 8, as it is not very stable. I suggest using external hard disk (or if your giant laptop has 2 hard disk slot,use secondary hard disk) for Ubuntu. This will somehow avoid potential OS damage caused by M$ UEFI boot option.

7

I had some trouble documented here.

The solution which I chose for now was to install Ubuntu in BIOS mode and leave Windows 8 in UEFI. I'm not sure if this represents a problem, since in the Ubuntu community it is said that both systems need to be in the same format, but I could get both systems working.

The only problem (more an annoyance) is that every time I want to change system I need to go to the BIOS setup and enable or disable UEFI.

I could convert the Ubuntu BIOS to Ubuntu UEFI using this, but during the installation of Ubuntu I needed to create a Bootable BIOS... don't know what would be of that, so I preferred not to play with it.

Hope this can get someone going and if you have any suggestion for me, let me know. Thanks!

2
  • So, it is possible to install Ubuntu in what they call 'Legacy Mode' in Windows partition (or in same hard disk as Windows)? If this is possible, we can create a workaround for new-bies to install and use Ubuntu OS. I'm using 2 hard disk for the mean time.
    – user220402
    May 14, 2014 at 3:51
  • Indeed I managed to install in Legacy Mode along with my Windows, but I read it is not the recommended way. I had problems with system time when switching the OSes and also it was a pain in the neck needing to go to setup every time I wanted to change OSes. Would recommend that you figure out how to install it properly or depending on how you plan to use Ubuntu, try VirtualBox or Vagrant.
    – marcelocra
    May 15, 2014 at 1:13
7

With Packard Bell EasyNote TE was impossible to disable Secure Boot unless we set a password in the Bios. Once we set up a password, we could change the Secure Boot value to false!

I have a HP 250 with UEFI, tried and failed last year to install Ub but after reading this article, tried the new 15.04 distro and cracked it! One prob, installed, but then would not boot into Linux/GRUB, but rather than sort out the GRUB issue I re-installed wiping the entire windows OS ( never liked Win 8 anyway, very very slow on celerons ). Now boots into Ubuntu on start up and everything so far seems fine.

5
  • 2
    This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review Jan 6, 2016 at 12:37
  • @DavidFoerster, we have spent hours trying to find out how to install it in this specific laptop. We did not find anything useful on the Internet. This weird trick can save hours to anybody who is looking for how to install Ubuntu on a Pre-Installed Windows with UEFI in this specific laptop.
    – chelder
    Jan 6, 2016 at 17:24
  • 1
    That's great, but it still doesn't answer the question at hand – only a fraction of it with some particular hardware setup. If you want to share your findings, please ask a new question (e. g. “How do I disable UEFI Secure Boot and install Ubuntu on a Packard Bell EasyNote TE?”), answer it yourself and link this question to make the connection apparent. Jan 6, 2016 at 17:57
  • OK. Feel free to do it for me, or delete the answer if you prefer. For me both are OK.
    – chelder
    Jan 6, 2016 at 19:59
  • Just in case the improvement of my answer by @shanewiley is not accepted. He said that he had the same problem with his HP 250 with UEFI. Hopefully the Google robots will do its job to help others to find this solution!
    – chelder
    Jan 18, 2016 at 23:33
6

If you are new to Linux, I would highly recommend upgrading pre-installed version of Windows to current first.

I had Windows 8 + Ubuntu dual boot laptop. When Microsoft forced me to upgrade Windows 8 to 8.1 I lost dual boot UEFI GRUB loader and stick to Windows for while. Luckily I managed to repair it from Windows when I installed Ubuntu for second time. As a potential new Linux user you wouldn't like to risk loss of Windows during installation, so I recommend to look at this page and install Live USB Creator. That way you could run Ubuntu Live and then decide if you like it.

Luis Alvarado gave thorough description, so if you finally decide to install follow his advice and read other sites.

2

With Ubuntu, you really can't go wrong with preparing a live install media by using unetbootin. With unetbootin you can use your Hard Disk or an external flash drive for the installation media.

1. installing on A Hard Disk

In the unetbootin window, choose Hard Disk from the drop down menu. Choose the Ubuntu ISO you want to install from and perform the rest of the steps needed to finalize the installation. The next time you boot up your system, you will see the unetbootin boot menu rather than booting into Windows.

HDD

2. installing on a USB flash drive

This is fairly straightforward but you can't use this method to install OSes to UEFI-GPT systems unless you install the OS to run in legacy mode. To install to systems that use the BIOS firmware standard, this is the best and most practical method. The variation from the method depicted above is that you have to choose USB Drive in the drop-down menu in the unetbootin window.

USB

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .