How to use Ubuntu GRUB Bootloader Recovery to fix System issues

Ubuntu comes built-in with Advanced PC Recovery Tools. Let's figure out how to use them.

At times when something is wrong with your Ubuntu installation like for example broken packages, file system errors, etc., you got plenty of options to recover your PC. Earlier, I published a article on how to reinstall Ubuntu, keeping your data unaffected. But that guide is the last resort to recovery. If you are able to boot into GRUB bootloader, then you should try the Ubuntu Advanced Recovery first. Here is how.

Using Bootloader Recovery Tools in Ubuntu

Ubuntu comes built-in with some powerful recovery tools, which often resolves the issues in typical cases. To boot into Ubuntu Recovery tools, you must first boot into GRUB. Depending on your system configuration, your GRUB bootloader may be different. If you only have Ubuntu installed in your computer, then you may not be seeing GRUB at all. Ubuntu hides it as it is redundant unnecessary step when there is no other OS to boot into. In such case, you should press and hold <shift> key just as the PC boots.

Automatically Fix Broken Packages

Step 1) In the GRUB bootloader, use up/down arrow keys and select “Advanced Options for Ubuntu”.

GRUB Bootloader
GRUB Bootloader

Step 2) Select “Ubuntu, with Linux xxxxx-generic (recovery mode)”, and press <enter>. The version number xxxxx may be different in your case. That’s just Linux Kernel version.

GRUB Advanced Options
GRUB Advanced Options

Step 3) Use arrow keys to navigate, and select “dpkg”. Press <enter>.

dpkg - Broken Packages Recovery
dpkg – Broken Packages Recovery

Step 4) Ubuntu will prompt you that in order to continue, the file system should be loaded in Read-write mode. Select “Yes” (default selected), and press <enter>key.

Step 5) Ubuntu will show you how many packages are to be upgraded/fixed. Your PC need to be connected to downloaded packages. When ready, enter ‘y’.

Broken Packages Fix and Upgrade Report
Broken Packages Fix and Upgrade Report

Broken packages should be fixed.

Check All File Systems for Errors

Next thing to do is check if there are file system errors in any of the partitions in your PC.

Step 1) In the Recovery Menu, select “fsck – Check all file systems” and press <enter>.

Check File System Errors
Check File System Errors

Step 2) If you remember, the file system got changed to ‘Read/Write’ mode in previous section of this article when you were using ‘dpkg’. Hence you may see a prompt that File system need to be in ‘Read-only’ mode for scan to happen.

File System Read-Write Mode Error
File System Read-Write Mode Error

Therefore, you should go back to main Recovery menu again and come back so that you see ‘read-only’ filesystem state.

fsck read-only file system mode
fsck read-only file system mode

File System Check
File System Check

Ubuntu will give the scan report on if swap, root, and kernel systems are OK or not, and also fix the errors if found.

That’s all what Ubuntu’s Recovery tool can do to fix your PC. If you still see issues, then resetting Ubuntu is what I suggest you to do.

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!



Please enter your comment!
Please enter your name here




How to create a bootable CentOS Live USB drive on Windows

create centOS Live USB drive
CentOS ISO downloads are available in two different variations - Minimal ISO and DVD ISO. So what are these? In this guide, you will know how to create a CentOS Live USB drive that can also be used to install CentOS.
Ubuntu 19.10 beta overview
It may be early, but I've been looking forward to the release of Ubuntu 19.10 for some time now. As an impatient person, and promised readers in the FOSSLinux article announcing the release of Eoan Ermine that we would provide you a review of Ubuntu 19.10 Eoan Ermine - Beta.  So, here it goes.
Uninstall Programs in Ubuntu
Uninstallation of programs can be done by graphical way using the Ubuntu Software Center, and the Synaptic Package manager. Command-line way of doing it is also possible using apt-get and aptitude commands. We shall discuss each one of them in detail.
manjaro complete usb drive
In this tutorial, we will show step by step how to install a Manjaro on a USB flash. For those new to this distro, it is a light-weight distro that is based on Arch Linux. Arch Linux is known for its simplistic approach and is typically made for Linux pros, but Manjaro bridges the gap between user-friendliness and rock-solid performance.