Ubuntu Installation step by step guide with disk partitioning

Harish Kumar · · 36967 Views

Ubuntu is the most loved OS for many desktop users, particularly for developers. Canonical releases new Ubuntu versions every six months with free support for nine months and every 4th release would get long-term support, up to five years from the date of release.

In this post, I will show you Ubuntu installation steps with disk partition. All the steps listed in this post are applicable for each version of Ubuntu OS.

Step 1: Download Ubuntu

You can download the latest version of the Ubuntu desktop iso image from the Ubuntu website.

Step 2: Create a bootable USB disk

Windows:

Use Universal USB Installer (BIOS compatible) or Rufus (UEFI compatible) to make a bootable USB disk.

Linux:

Run the following command in the terminal to create bootable USB in Linux:

dd bs=4M if=/path/to/ubuntu-20.04-desktop-amd64.iso of=/dev/sdx status=progress oflag=sync

Replace /path/to/ubuntu-file.iso with the path to the downloaded ISO file and /dev/sdx with your USB drive name.

Step 3: Boot from bootable USB

Power on your system and press the F2, F10, F12, or DEL key to select the boot order.

Then, you need to select boot from USB or removable drive and to boot from USB.

Step 4: Preparing to Install Ubuntu

Ubuntu image will begin to load. Do not interrupt the booting of the Ubuntu image.

Ubuntu Installation step by step guide with disk partitioning

When the system is completely booted from Live USB, you will get the OS installer that looks like below.

To install Ubuntu, click on the Install Ubuntu button.

Ubuntu Installation step by step guide with disk partitioning

Choose your keyboard layout. In case, if you don't know about your keyboard layout, use the Detect Keyboard Layout option. 

Ubuntu Installation step by step guide with disk partitioning

Step 5: Normal/Minimal Installation

On this screen, you need to pick the applications for installation.

Normal Installation - You will get a graphical desktop with all standard software.

Minimal Installation - You will get a basic desktop with an internet browser and core system utilities.

You can either decide to install updates and other third-party software while installing Ubuntu or leave it (you can install them later if you need).

The updates and third-party software installation requires a functioning internet connection with your system. The installation may take somewhat additional time relies on the downloadable contents.

For this demo, I decided to do the Ubuntu Normal installation.

Ubuntu Installation step by step guide with disk partitioning

Step 6: Create Partitions

At this point, if you have an empty hard disk then you will get only two options in the installation type. If you have installed other OS already in your system then you will get more options accordingly.

Because we want to set up partitions manually so choose Something else and click Continue.

Ubuntu Installation step by step guide with disk partitioning

On this screen, the installer will list all the accessible hard disks.

Since this is the new disk, I needed to click on New Partition Table to make an empty partition.

Ubuntu Installation step by step guide with disk partitioning

Next, click Continue from the pop-up window to make an empty partition table on the system.

Ubuntu Installation step by step guide with disk partitioning

We will now create four partitions for our Ubuntu installation.

These Partitions are:

  1. /boot

  2. swap

  3. /home

  4. / -- (root)

Select the free space and afterward click on the + sign at the bottom left to make a partition.

The following image shows for /boot partition.

Ubuntu Installation step by step guide with disk partitioning

The following screen shows the swap partition. The swap partition serves as an overflow space for your RAM. If your RAM fills up totally, any extra applications will run off the swap partition rather than RAM.

It is recommended to have the swap partition double the size of the RAM. And I also recommend never create a swap partition of more than 4GB.

Here, I have created a 4GB swap partition. If your system has enough memory, then you can choose not to have a swap partition.

Ubuntu Installation step by step guide with disk partitioning

The following is for /home partition.

Ubuntu Installation step by step guide with disk partitioning

We will use the remaining space for the / (root) partition.

Ubuntu Installation step by step guide with disk partitioning

Review your partition layout and click on Install Now button.

Ubuntu Installation step by step guide with disk partitioning

Click on the Continue button to create partitions as per the plan.

Ubuntu Installation step by step guide with disk partitioning

Step 7: Additional Configurations

On the next screen, select your timezone location from the map. Then, click on the Continue button.

Ubuntu Installation step by step guide with disk partitioning

On this screen, you can create a username and password to get access to your system.

Additionally, set the hostname for your system.

Here is one thing you should remember - if you chose to log in automatically, then the system will directly take you to the desktop without asking for any credentials.

Click on Continue.

Ubuntu Installation step by step guide with disk partitioning

The below screenshot shows the installation of Ubuntu.

Ubuntu Installation step by step guide with disk partitioning

The installation will take near about 10 to 15 minutes. Once the installation is complete, restart your machine.

When the system is restarted, you will get a login window. Sign in to your system with the username and password that you created earlier.

That’s All. I hope you have learned how to install Ubuntu in your system.

2

Please login or create new account to add your comment.

2 comments
Enrique
Enrique ·

Hi Harish.

I have run into this guide and I'm hoping I can get additional help from you.

After step 6, my ubuntu installation asks me for an EFI partition. I even create one, but the installation never goes through this step.

My pc used to be a hackintosh (a pc with MacOs installed), but since it gave some trouble (I used it for 10 years!) I decided to re use it as a linux computer. I formated the HDD on my mac, as fat32.... maybe that's the problem?

Why Ubuntu does not re format the HDD from scratch? is there a way to do this?... so, wha am I doing wrong?. Hopefully I can get an answerr from you ;) thanks Enrique from Spain

Harish Kumar
Harish Kumar ·

I am not sure about the issue, I guess the issue is fat32 because it cannot store large files.

You may also like:

How To Install NVM (Node Version Manager) on Ubuntu System?

This tutorial will assist you with installing NVM on the Ubuntu machine. Additionally, allow you to install different node versions and other useful examples.
Harish Kumar

Install Laravel Valet Linux+ development environment on Ubuntu System

The official Laravel Valet development environment is great if you are an Apple user. But there is no official Valet for Linux or Window system.
Harish Kumar

Install and Setup Oh-My-Zsh on Ubuntu System

In this post, I will show you how to install ZSH (Z-Shell). Then, we set up the oh-my-zsh framework for managing ZSH. We will likewise show you how to change the ZSH theme and (...)
Harish Kumar

10 Things to Do After Installing Ubuntu Operating System

In this article, I will show you 40 things you can do after installing Ubuntu on your system. This isn't restricted to a specific version of Ubuntu; you can follow these on any (...)
Harish Kumar

How to Install phpMyAdmin with Nginx on Ubuntu Server?

The phpMyAdmin is an open-source PHP-based tool for handle MySQL and MariaDB databases over a web-based interface. 
Harish Kumar

How to install Laravel with LEMP stack on Ubuntu

Laravel is one of the most popular open-source PHP framework, and Laravel allows you to build scalable and flexible web applications. Because of its outstanding features, for example, (...)
Harish Kumar