Dual-boot Ubuntu 14.04 and Windows 7 on a PC with UEFI firmware
This post shows how to dual-boot Ubuntu 14.04 and Windows 7 on a computer with UEFI firmware. Note that the computer I used for the tutorial is not an OEM one. Rather, it is a custom-built computer, with an ASRock motherboard and Intel Core i3 processor. However, if you follow this guide step-by-step, you should be able to use it to dual-boot Ubuntu 14.04 and Windows 7 on any computer with UEFI firmware on a single hard drive.
An assumption made here is that you have Windows 7 already installed on the target hard drive. However if necessary, you can always install it afresh. So based on that assumption, here are the steps involved:
Before we proceed to the
instructions, this screenshot shows the partitions that the Windows 7 installer
will likely create, as seen from the Windows 7 partition manager. Note that the
C drive is about 420 GB and the EFI partition is about 100 MB. In the
first step of the installation process, space that will be used to install
Ubuntu 14.04 will have to be recovered from the C drive.
This is what you’ll see from the
Ubuntu 14.04 installer. It offers a much clearer detail about the layout of the
number and type of partitions than the Windows 7 partition manager. /dev/sda1
is the 100 MB EFI partition that you saw in the previous screenshot.
With all that introduction out of the way, let’s get this thing done.
Step 1. Shrink
Windows 7’s C Drive: To shrink the C drive, launch the
Windows 7 partition manager and right-click on the bar that represents the C
drive. Select Shrink Volume from the context menu. You should be able to
recover enough disk space to install Ubuntu. A detailed description of how to
accomplish this step is available in this forum post.
Step 2. Install
Ubuntu 14.04: Ubuntu 14.04 will be installed in the space that was
recovered from step 1. To begin this step, reboot the computer with the
installation media you created in the optical drive or in a USB port. Start the
installer and click through until you get to the step shown in this screenshot.
It is very likely that the installer will inform you that “This computer currently
has no detected operating systems. What would you like to do?” Select the Something
else option, then click Continue.
That should open the installer’s
Advanced Partitioning Tool’s window. You should see all the partitions on the
system, including the space that was recovered from Windows 7’s C drive.
That space should be marked as “free space.” To start creating partitions to
install Ubuntu 14.04, select it, then click on the + button directly
That should open the installer’s
partition editor. If you are new to the concept of disk partitions in Linux and
creating partitions in Ubuntu Desktop, it is highly recommended that you read Guide to disks and disk partitions in Linux and How to install Ubuntu 14.04 on encrypted MBR partitions.
For each partition that you’ll create at this step, all you need to modify are
the values for “Size,” “Use as” and “Mount point.” And because a few of the
partitions needed were already created during the installation of Windows 7,
only partitions for / (root), /home and Swap will need to be created for Ubuntu
14.04 – in that order.
Install Ubuntu 14.04.1 and also to have Windows 7 bootloader with two OS options: Windows 7 and Ubuntu
On installation, choose the Soomething else option to open the advanced partitioning tool.
Make a separate partition for
(500 MB in size is enough):
and another one for root:
You can make a separate partition for
for your data and settings and also one for swap if you want to use
hibernation on Ubuntu.
Before continuing to install, you must choose the boot partition as the
bootloader. On the screenshot below it's on
After the installation got completed you won't see Ubuntu on the Windows bootloader and your Winodws will boot as usual. Then, you can use EasyBCD grub editor on Windows to add Ubuntu to its bootloader.