Ubuntu Installation

Download pdf version

DISCLAIMER!!!!!!!

This guide intends to help you to install ubuntu alongside windows. I will try my best to keep it as simple as possible and readable by everyone. But I AM NOT RESPONSIBLE for any broken laptops or lost data. Make BACKUPS before you start.


Step I: Preparing for installation

1.1 Downloads

It is helpful if you download all the resources that you need right in the beginning. Note these downloads may take some time.

1.2 Creating Partitons

  • The first thing you need to take care of is to create free space on the computer hard disk in case the system is installed on a single partition.

    Login to your Windows machine with an administrative account and right-click on the Start Menu -> Command Prompt (Admin) in order to enter Windows Command Line.
  • Once in CLI, type diskmgmt.msc on prompt and the Disk Management utility should open. From here, right click on C: partition and select Shrink Volume in order to resize the partition.
    C:\Windows\system32\>diskmgmt.msc
  • On Shrink C: enter a value on space to shrink in MB (use at least 30000 MB depending on the C: partition size)(60000 MB recommended) and hit Shrink to start partition resize as illustrated below (the value of space shrink from below image is lower and only used for demonstration purposes).

    Once space has been resized you will see a new unallocated space on the hard drive. Leave it as default and reboot the computer in order to proceed with Ubuntu 16.04 installation.

1.3 Making a bootable

  1. Install the PowerISO in windows and open it.
  2. Insert the USB drive you intend to boot from.
  3. Choose the menu "Tools > Create Bootable USB Drive". The "Create Bootable USB Drive" dialog will popup. If you are using Windows Vista or above operating system, you need to confirm the UAC dialog to continue.
  4. In "Create Bootable USB Drive" dialog, click "..." button to open the iso file of Windows operating system.
  5. Select the correct USB drive from the "Destination USB Drive" list if multiple USB drives are connected to the computer.
  6. Choose the proper writing method. "USB-HDD" is recommended.
  7. Click "Start" button to start creating a bootable USB drive.
  8. PowerISO will alert you that all data on the USB drive will be destroyed. Click "OK" to continue.

The program will start writing the USB drive, and showing the progress information. You should get the message “Writing USB drive completed successfully.” after the operation completes.


Step II: Make a Backup

This is to emphasize that you can lose your data if something went wrong, so it is better to make a backup of some really important files now.


Step III: Installing Ubuntu

  1. Place the USB stick or DVD in the appropriate drive, reboot the machine and instruct the BIOS/UEFI to boot-up from the DVD/USB by pressing a special function key (usually F12, F10 or F2 depending on the vendor specifications).
  2. Once the media boot-up a new grub screen should appear on your monitor. From the menu select Install Ubuntu and hit Enter to continue.
  3. After the boot media finishes loading into RAM you will end up with a completely functional Ubuntu system running in live mode.
  4. On the Launcher hit on the second icon from top, Install Ubuntu 16.04 LTS, and the installer utility will start(this may also start automatically). Choose the language you wish to perform the installation and click on the Continue button to proceed further.
  5. Now select the second option if you wish to have the third party softwares or multimedia drivers preinstalled.
  6. Now it’s time to select an Installation, check the Something else option and hit on Continue button to proceed further.
    The option Erase disk and install Ubuntu should be avoided on dual-boot because is potentially dangerous and will wipe out your disk.
  7. On this step, we’ll create our custom partition layout for Ubuntu 16.04. On this guide will recommend that you create two partitions, one for root and the other for the swap. To create the first partition, the root partition, select the free space (the shrink space from Windows created earlier) and hit on the + icon below. On partition settings use the following configurations and hit OK to apply changes:
    • Size = at least 30000 MB (this would be whatever space you have shrunk minus 10000MB)
    • Type for the new partition = </b>Primary</b>
    • Location for the new partition = Beginning
    • Use as = EXT4 journaling file system
    • Mount point = /
    • Then click on the 10000MB free space again and hit the plus button this time select
    • Use as = SWAP Area
    • And hit OK.
  8. When finished, hit the Install Now button in order to apply changes to disk and start the installation process.
  9. A pop-up window should appear to inform you about swap space. Ignore the alert by pressing on the Continue button.
  10. Next, a new pop-up window will ask you if you agree with committing changes to disk. Hit Continue to write changes to disk and the installation process will now start.
  11. On the next screen adjust your machine physical location by selecting a city nearby from the map. When done hit Continue to move ahead.
  12. Next, select your keyboard layout and click on the Continue button.
  13. Pick up a username and password for your administrative sudo account, enter a descriptive name for your computer and hit Continue to finalize the installation.
  14. These are all the settings required for customizing Ubuntu 16.04 installation. From here on the installation process will run automatically until it reaches the end.
  15. After the installation process reaches its end hit on Restart Now button in order to complete the installation.
  16. The machine will reboot into the Grub menu, where for ten seconds, you will be presented to choose what OS you wish to use further: Ubuntu 16.04 or Microsoft Windows.

Congrats, now you should have Ubuntu installed on your system


Troubleshooting

Boot Repair

Many times after installation, the grub is not configured properly. This may result in your device unable to boot into neither ubuntu nor windows and showing you a blank screen with something like “Grub Recovery” written on it. To fix this you can follow the following steps.

  1. Insert the bootable USB drive, and boot into it. (Follow Step III.1 from above)
  2. In the menu as shown below, select the Try Ubuntu option. This should open a live Ubuntu session
  3. Now open the terminal, either by pressing Start key and seacrhing for "terminal" (OR) pres Ctrl + Alt + T .
  4. Connect to the Internet.
  5. Type the following commands one by one and hit Enter
    sudo add-apt-repository ppa:yannubuntu/boot-repair
    sudo apt-get update
    sudo apt-get install -y boot-repair
    sudo boot-repair
  6. After the commands are executed, a window should pop up, select Recommended Repair option in that.
  7. Restart your computer and remove the bootable drive. (Can do a force restart if it gets stuck)</li>