1. boot
  2. try
  3. open terminal
  4. apt update
  5. apt install

This tutorial is on installing gpart in Ubuntu Live CD because when you have to use gpart it's basically to rescue an existing Ubuntu or Windows installation which has to be done via Live CD.

1) Download and burn Ubuntu Live CD

The first step is to get the latest Ubuntu Live CD (if you don't already have) from the official download page;


Choose the architecture of your system and click on the big download button.

It's safer to choose 32 bit as it'll work on most systems

Refer to the instruction on the Ubuntu's download page on how to burn the downloaded ISO image

2) Boot into Ubuntu Live CD

Insert the Ubuntu Live CD into the optical drive tray and boot your PC or laptop. Make sure the computer is set to boot from the optical drive.

You'll come to Ubuntu's welcome screen. Click on Try Ubuntu to continue

3) Install gpart

gpart which stands for Guess Partition which we'll use to recover the partition is not installed by default. Follow these steps to have it installed.

a) Enable community maintained repository

gpart is available in the Universe or the Community Maintained repository. You'll need to enable it before you can install the program.

Firstly, run the Update Manager program

And click Settings

Now you'll need to enable the Universe repository and click the Close button

Click Reload once prompted

And wait till it finishes

After it's done, click Close

b) Install

Now is the part where you really install the program. To do that, run the terminal program.

Once inside it, running the following command will install gpart.

sudo apt-get install gpart

Guide compatibility:

Operating System
Ubuntu 16.04 LTS (Xenial Xerus)
Ubuntu 16.10 (Yakkety Yak)
Ubuntu 17.04 (Zesty Zapus)
Ubuntu 17.10 (Artful Aardvark)
Ubuntu 18.04 LTS (Bionic Beaver)
Ubuntu 18.10 (Cosmic Cuttlefish)
Ubuntu 19.04 (Disco Dingo)
Discuss the article:

Comment anonymously. Login not required.