If you have messed up your Ubuntu system and after trying numerous ways to fix it, you finally give up and take the easy way out: you reinstall Ubuntu.
We have all been in a situation when reinstalling Linux seems a better idea than try to troubleshoot and fix the issue for good. Troubleshooting a Linux system teaches you a lot but you cannot always afford to spend more time fixing a broken system.
There is no Windows like recovery drive system in Ubuntu as far as I know. So, the question then arises: how to reinstall Ubuntu? Let me show you the steps for the same.
Warning!
Playing with disk partitions is always a risky task. I strongly recommend to make a backup of your data on an external disk.
How to reinstall Ubuntu Linux
Here are the steps to follow for reinstalling Ubuntu.
Step 1: Create a live USB
First, download Ubuntu from its website. You can download whichever Ubuntu version you want to use.
Once you have got the ISO image, it’s time to create a live USB from it. If your Ubuntu system is still accessible, you can create a live disk using the startup disk creator tool provided by Ubuntu.
If you cannot access your Ubuntu system, you’ll have to use another system. You can refer to this article to learn how to create live USB of Ubuntu in Windows.
Step 2: Reinstall Ubuntu
Once you have got the live USB of Ubuntu, plugin the USB. Reboot your system. At boot time, press F2/10/F12 key to go into the BIOS settings and make sure that you have set Boot from Removable Devices/USB option at the top. Save and exit BIOS. This will allow you to boot into live USB.
Once you are in the live USB, choose to install Ubuntu. You’ll get the usual option for choosing your language and keyboard layout. You’ll also get the option to download updates etc.
The important steps comes now. You should see an “Installation Type” screen. What you see on your screen here depends heavily on how Ubuntu sees the disk partitioning and installed operating systems on your system.
Be very careful in reading the options and its details at this step. Pay attention to what each options says. The screen options may look different in different systems.
In my case, it finds that I have Ubuntu 18.04.2 and Windows installed on my system and it gives me a few options.
The first option here is to erase Ubuntu 18.04.2 and reinstall it. It tells me that it will delete my personal data but it says nothing about deleting all the operating systems (i.e. Windows).
If you are super lucky or in single boot mode, you may see an option where you can see a “Reinstall Ubuntu”. This option will keep your existing data and even tries to keep the installed software. If you see this option, you should go for it it.
Attention for Dual Boot System
If you are dual booting Ubuntu and Windows and during reinstall, your Ubuntu system doesn’t see Windows, you must go for Something else option and install Ubuntu from there. I have described the process of reinstalling Linux in dual boot in this tutorial.
For me, there was no reinstall and keep the data option so I went for “Erase Ubuntu and reinstall”option. This will install Ubuntu afresh even if it is in dual boot mode with Windows.
The reinstalling part is why I recommend using separate partitions for root and home. With that, you can keep your data in home partition safe even if you reinstall Linux. I have already demonstrated it in this video:
Once you have chosen the reinstall Ubuntu option, the rest of the process is just clicking next. Select your location and when asked, create your user account.
Once the procedure finishes, you’ll have your Ubuntu reinstalled afresh.
In this tutorial, I have assumed that you know things because you already had Ubuntu installed before. If you need clarification at any step, please feel free to ask in the comment section.
I reinstalled ubuntu(say 2) using “Erase Ubuntu 20.04.1 LTS and reinstall” and the ubuntu(2) is successfully installed.
In earlier ubuntu(say 1), i gave 100 GB partition size to it & installed there.
I just want to know that the currently installed ubuntu(2) is installed in that 100 GB partition or is installed randomly anywhere in system?
Open the Disks application and check it :)
Been running 20.04 on a Toshiba laptop without problems with the exeption that it is stuck on airplane mode. Therefore it cannot connect to wifi. We have been using ethernet so it has not been an issue, but now it needs to be functional on wifi.
So I have been attempting a clean install from a usb stick (the same we used to do the original install, and which we have subsequently used for two other computers).
Hitting F12 has been bringing up a long bios (?) process after which it just starts up the currently installed system.
I have tried many times, but it keeps on doing this.
What is the remedy?
I do not thinks Ubuntu 20.04 or 20.10 has erase and reinstall option. In fact this screen is not there at all.
Hi, This was a great posting. Lots of info. I have a dual boot laptop windows ubuntu that I wanted to upgrade to Lubuntu so I installed reusing the same ubuntu partition, but some how the laptop is now booting up only into a Lubuntu boot up menu. I run form a USB lubuntu and saw that all the partitions are there, but the Linux is the only one flagged as boot. There is a linux swap in there that does not allow me to change anything (all greyed out). Below is my partition export.
I have 3 main partitions: WIndows10, Files and Linux
# number start end type roles label flags
1;2048;1026047;ntfs;primary;””;””
2;1026048;126016865;ntfs;primary;”Windows10″;””
3;126017536;127877119;ntfs;primary;””;””
4;127881214;468860927;extended;extended;””;””
5;127881216;411473919;ntfs;logical;”Files”;””
6;464695296;468860927;linuxswap;logical;””;””
7;411475968;464693247;ext4;logical;”Linux”;”boot”
Any recommendations on how to restore the multiboot?
Thanks
I made it to the black “Install Ubuntu” page and selected the option to install and it pulls up the Ubuntu loading screen, but then proceeds to freeze. I have tried multiple solutions, but I cannot seem to get past this.