How do I install Ubuntu alongside UEFI enabled Windows 8?

42,053

Solution 1

You should defragment your Windows partition, as far as I know Windows comes with a tool for that.

Once defragmentation is complete you have to perform a "full shutdown" in Windows, as by default it does like a hibernation when shutting down. To do that search for cmd in Windows Search and it will point you to the command line prompt, start it and execute the following command:

shutdown /s /t 0 

Now you have to start a Ubuntu live session by booting a Live-USB and choosing the option: Explore Ubuntu without installing.

When the desktop loads up, start GParted and you should see the EFI partition at the start of the partition table followed by your drive C:\ partition, click on the C:\ partition and re-size it to make room for Ubuntu partition. Click on the "Apply" button of GParted and wait until it completes the operations.

Now start the Ubuntu Installator, when it prompts you for the installation type you should choose Something Else, the last option.

Installation type

And now you just select the free space and click the + button at the bottom.

Disk allocation

Create the new partition as Primary type, using Ext 4 journaling file system and setting mounting point to /.

Create new partition

After installation is complete just reboot and check if everything works fine. Although, as your Windows is installed in UEFI mode you can experience problems, such as booting straight to Windows and not passing through GRUB. For problems like that you should use Ubuntu Boot-Repair tool. Also check these Q&As if in trouble: Windows 8 doesn't allow Ubuntu start-up and https://askubuntu.com/a/292783/21195 .

Solution 2

  1. Use the Windows tools to shrink your Windows partition.
  2. Disable SecureBoot in your BIOS
  3. Install Ubuntu in the free space via the Something Else install option. You will just need to create a SWAP partition (few GB), and the rest as root partition, see this page for more info.
  4. Reboot
  5. If you cannot access Windows or Ubuntu, run Boot-Repair to fix the GRUB menu.
Share:
42,053

Related videos on Youtube

Prahar
Author by

Prahar

Updated on September 18, 2022

Comments

  • Prahar
    Prahar over 1 year

    I recently (about a month ago) bought a Dell XPS 8500 Desktop with UEFI enabled Windows 8 Pro pre-installed. I am trying to install Ubuntu 13.04 64-bit dualboot with Windows on this computer. I don't know much about UEFI, but I think I followed the correct instructions to do this installation. Here's what I've done so far:

    1. I have a 256GB SSD drive with the Windows OS partition and a 1TB drive for data. I created a 100GB partition on the 1TB drive for ubuntu. This was done through Windows Disk Management.

    2. I downloaded Ubuntu and created a bootable USB as per the instructions on the Ubuntu website.

    3. I tried installing Ubuntu through the USB.

    PROBLEM: While installation, I do not see a "Install alongside Windows 8" option like I have usually seen in all my previous installs.

    Now, I don't know if this has to do with UEFI and I don't know much about that anyway.

    QUESTION: How should I proceed with the installation?

    I am currently on the same computer through Windows. I also have access to a laptop with Windows 8 Pro (possibly not enabled with UEFI - it's an old computer with newly installed OS) alongwith Ubuntu 12.10 dualboot.

    EDIT: I "tried" Ubuntu without installing it via the LiveUSB. It is not able to access any of the drives. Do you think that has anything to do with this issue? Any help would really be appreciated. Thank you so much.

  • Prahar
    Prahar almost 11 years
    I do not have a EFI mode. There is only UEFI mode and it is already enabled
  • LovinBuntu
    LovinBuntu almost 11 years
    in recent computers, EFI means UEFI.
  • Rod Smith
    Rod Smith almost 11 years
    UEFI refers to EFI version 2.x. The vast majority of PCs sold today support UEFI, but some use "EFI" in their firmware settings. Macs still use EFI 1.x, although Apple has moved several UEFI/EFI 2.x features into its version of EFI 1.x. For most Linux purposes, the differences between EFI 1.x and UEFI/EFI 2.x are unimportant. Thus, "EFI" vs. "UEFI" in the firmware is an unimportant distinction.
  • Prahar
    Prahar almost 11 years
    @Rod By that I meant that even with SecureBoot disabled, the Ubuntu LiveUSB could not identify my Windows partition. Thank you all for the help.
  • LovinBuntu
    LovinBuntu almost 11 years
    @Prahar I don't know why WIndows is not visible by Ubiquity (the Ubuntu installer), but I have seen many other users with this issue. I recommend you create a bug report here.
  • Rod Smith
    Rod Smith almost 11 years
    By "Windows is not visible," do you mean that you simply don't see an "install alongside" option, or do you mean that when you select the "something else" option, the disk shows up as unpartitioned? If the former, then you should do as LovinBuntu suggests and use the "something else" option. If that option shows no partitions, though, then that's an indication that libparted, upon which the Ubuntu installer relies, doesn't like your partition table. In that case, you'll need to fix the problem, probably with gdisk.
  • Prahar
    Prahar almost 11 years
    @LovinBuntu - Do you think this has anything to do with the SSD?