Ubuntu is known as one of the most powerful operating system with complete support recovering the system. The Recovery Mode helps the users to effortlessly fix the broken system. The recovery mode allows the users to test if the system is not working, fix a misconfigured file and numerous other issues. Most of the users don’t know about the recovery mode in Ubuntu, for those people, it is very easy to work with the recovery mode.
Using Recovery Mode on Linux
To access the recovery mode on Linux, you need to run the Grub bootloader, in case you are using an alternate bootloader, it might be possible that this feature will not work.
Recovery Mode is an option in the Grub Bootloader, to access the bootloader, you need to first reboot the system. It can be done by systemctl, Reboot option, Power button and by.
In case the reboot is not available for the OS then you can run:
sudo systemctl reboot
After the PC restarts, the Grub Bootloader will appear on the screen with different options. Majority of the operating systems provides different entries including:
- The latest release of the Ubuntu Linux kernel for your OS (default)
- Advanced booting options for your Linux OS (Advanced options for Ubuntu)
- Memory test (memtest86+)
- Memory test (memtest86+, serial console 115200)
In the Selection menu for Advanced options. Use the arrow keys to move selection and on the Advanced options for Ubuntu and press enter. The Advanced options submenu, choose the recovery mode for Ubuntu. You need to choose from the submenu, follow the fall-back kernel, in the “recovery” kernel
The ‘recovery’ kernel is very similar to the normal Linux but with a small Grub tweak that allows to quickly boot in the Recovery mode. Access the command-line to fix the broken system.
There are different tools in the recovery options, you can access different tools and options to recover the system. Follow the given steps to recover.
Clean Recovery Mode
The Clean feature provides support to free up the disk space on the system partition. To use the clean feature, move down to the clean option and press Enter.
A terminal window will load, follow to an instruction to free up disk space.
Dpkg Recovery Mode
The Ubuntu provides support for Dpkg Recovery Mode, it provides support for uninstalling any potentially broken packages that are causing problems.
This feature requires internet connectivity, so you need to choose the Network in the Recovery Mode list to get online.
Now through the Recovery Mode list of Dpkg, use the Down Arrow key and press Enter to start. Read the prompt messages and allow Ubuntu to purge any problem making packages.
FSck Recovery Mode
The Fsck Recovery mode can fix the corrupt hard disk by scanning as well as finding the issues and removing them from the disk. These issues include some problematic bytes that are failing to load the Linux.
To use Fsck, highlight the Recovery Mode menu from the recovery Down Arrow and press enter to start. It will automatically remove the corrupt data.
Grub Recovery Mode
The Grub Recovery Mode window allows the users to scan the system and update the bootloader automatically and reset the Grub system. All you need to move down with the Down Arrow and press Enter to start the update.
Root Recovery Mode
When the Linux system refuses to boot due to any misconfigurations or system error, this recovery option provides access through the Recovery Mode so to recover forgotten password and moving down with the Arrow to select Root and Press Enter to continue.