Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I bought a computer with pre-installed Windows 8. But I didn't like Windows 8, so i decided to install Ubuntu as a second operating system.

I'm absolutely new to Linux. I have been using Windows for all my life, but I have read about Ubuntu (and Linux in general) and I think I'll like it. So, I downloaded WUBI and started installing it. It successfully installed and rebooted. During rebooting it asked me which OS I'd like to use. I chose Ubuntu but it showed an error about some missing component and showed me options such as Recovering, Repair etc. Then I chose Windows 8 and successfully started.

Now I'm re-installing Wubi but I think I will probably have an error again.

The error I get when trying to boot to Ubuntu is:

Starting Windows didn't succeed. The reason may be changing software.
To solve this problem:
1. Insert installation disc of Windows and reboot pc
2. Choose language settings and click Next
3. Use Repair
If you dont own this disk contact with the administrtor.
File: \ubuntu\winboot\wubildr.mbr
State: 0xc000007b
Information: Could not load application or Operating System because of the lack of the required file or errors in this file

Can someone point me on what to do next to make Ubuntu run on my pc?

share|improve this question
2  
"re-installed Windows 8. But I didn't like Windows 8," - well, if you mean that get rid of it – cipricus Nov 26 '12 at 0:55
The problem with this is that you have not said where to format this partition in windows or whether you keep it as free space. You need alot more detail. – Richard Robes Dec 28 '12 at 18:04
Related (but not a duplicate, this is more about the background, and explains "secure boot"): 12.10 UEFI Secure Boot install – Eliah Kagan Jan 21 at 9:06
@Michat Tabor -can you let me know if the answer solves your problem. This is because I can not mark other similar questions as duplicate of your if you have not yet accepted an answer. – Luis Alvarado Feb 2 at 1:11
3  
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 at 12:00
show 2 more comments

3 Answers

Before explaining the steps to do it I want to be clear that I have tried many ways of installing Ubuntu (Or any other distro for that matter) from within Windows 8. 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 (Is an alternative to)
  • Secure Boot which prevents anything but the installed operating system, in this case Windows 8 from booting.

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.

If you do, 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. Please read the comments below this answer by slangasek.

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).

Not only that, but trying to install Ubuntu with the 32 Bit is impossible. You need the 64 bit version for everything to work correctly.

The following is a small guide to install Ubuntu with a Pre-Installed Windows 8 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. I would recommend 12.10+.
  • Your system came with Windows 8 pre-installed (And you do not want to delete it)
  • Your system has UEFI activated (And can not be disabled) with Secure Boot.
  • You have already created a free space for Ubuntu from within Windows 8 with at least 4GB (I recommend to leave at least 20 GB or so, so you can test the hell out of it).
  • 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 that leaves it on a saved state. Shut Windows 8 in the normal way, with the shutdown option. This will prevent other problems related to this from appearing. Read the bottom of this answer for more information regarding this point.

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 Secure boot and is Enabled

False - Means your system has 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

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 can not 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.

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 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 recommended to stay in UEFI, but you can actually disable it and after installing Ubuntu, GRUB will create the bootable part for Windows 8. But in the case where you disable UEFI and want to access Windows 8 afterwards (before installing Ubuntu), it will not work since the boot part for Windows 8 needs UEFI.

  2. If you only disable Secure Boot, there is no problem. 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, if you disable any of them and install Ubuntu, you will be able to boot to Windows 8 afterwards 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 a 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.

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, open a Terminal and type the following:

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

Now run 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.

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 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 Windows 8 Partition
  • Windows 8 not booting or readable because or partition changes done from Ubuntu

TROUBLESHOOT

If you experience 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"

share|improve this answer
Luis, it is ABSOLUTELY NOT required to disable SecureBoot in the firmware to install Ubuntu on a Win8 machine; Ubuntu 12.04.2 and 12.10 are SecureBoot-compatible, and any machine that ships with the recommended Microsoft Third-Party Marketplace keys in firmware will be able to boot Ubuntu under SecureBoot. We've gone to great lengths to make Ubuntu work/install transparently under SecureBoot with the live image, and you do users a disservice to route them through the BIOS setup. If you have had problems installing Ubuntu when booted under SecureBoot, please file bugs in Launchpad about this. – slangasek yesterday
@slangasek So what you are saying that I should be able to install Ubuntu out of the box without ever going to the BIOS in all motherboards that offer this option and come with Windows 8 pre-installed? I have anyway added some minor edits to the answer to include some info about what you are saying. I have not tested on latest 12.04.2 but with 12.10 it gave me problems if I did not remove UEFI. – Luis Alvarado yesterday
@slangasek Ok I made a couple of calls and the bad news is I have nobody right now that can help me test out any computer with Windows 8 pre-installed and Ubuntu since they all either removed Windows 8, Went to an older version of Windows or installed Ubuntu over Windows. So is going to be difficult but the only case I have right here that I can test is an Intel DZ68DB that I could test out with 12.04.2 (Did not test 12.04.2 when I did all of this tests on this machine). – Luis Alvarado yesterday
Luis, you may have to get into your BIOS to change the boot order. But you should not have to disable Secure Boot, or disable UEFI, to boot and install Ubuntu (12.04.2/12.10 and later). – slangasek 5 hours ago
@slangasek yes sir, that is why I added the new information (Linking to similar information you mentioned and giving as an option (Not as something that has forcibly be done). I see you point of view. So for any new users that might have a secure boot problem they will follow the bug report guidelines as you mentioned. – Luis Alvarado 4 hours ago

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.

share|improve this answer
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? – Michał Tabor Nov 26 '12 at 18:43
3  
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 '12 at 19:27

If this is preinstalled windows 8 and it's a secure install 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 me: https://help.ubuntu.com/community/UEFI

share|improve this answer
1  
so you didnt create a partition before you installed? the installer took care of that for you? – Richlewis Mar 8 at 11:14
1  
Correct. It was all part of the process. – Jason Shultz Apr 4 at 21:54

protected by Community Jan 22 at 19:57

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.