How to Fix GRUB in Ubuntu?
Last Updated :
05 May, 2025
One of the most important parts of Linux systems, including Ubuntu system software, is the GRUB (Grand Unified Bootloader), which controls the internal boot process. A live Linux distribution can be used to recover the overall Linux operating system if the GRUB bootloader has been corrupted or erased by the system. The GRUB bootloader may occasionally get corrupted or destroyed as a result of system updates, configuration modifications, or other causes, making it unable to boot into Ubuntu.
In this article, we will discuss how to fix grub in Ubuntu by using some simple processes.
How to fix Grub in Ubuntu?
We'll go through the actual process of getting your system to boot successfully by restoring the GRUB bootloader in Ubuntu in this guide. Now, we'll see the required steps to fix GRUB in Ubuntu -
Step 1: Boot the system using Live CD/USB
First, we need to boot the internal system using Live CD/USB for better performance.
- Create a live USB with Rufus or dd.
- Insert the live Ubuntu CD/USB > Boot the system with it.
- Select the Boot device from the system's BIOS or UEFI menu.
Step 2: Open the system Terminal
Next, we need to open the system terminal for further processing.
- Find out the already installed Linux partition
- Use lsblk or fdisk command.
#bash
sudo fdisk -l
- Look into the Linux partition type
- Note the required device name.
Step 3: Process the Root Partition system
After that, we need to process or mount the root partition system to follow the proper process.
- Replace the sda1 with the name of the required device.
#bash
sudo mount /dev/sda1 /mnt
Step 4: Reinstall the GRUB initialization
The process of reinstalling the GRUB depends on the user's preferences.
- If users are using BIOS, then follow the below-mentioned command:
#bash
sudo grub-install --boot-directory=/mnt/boot /dev/sda1
- If users are using UEFI, then follow the below-mentioned command:
#bash
sudo mount /dev/sda1 /mnt/boot/efi sudo grub-install --boot-directory=/mnt/boot --efi-directory=/mnt/boot/efi --removable /dev/sda1
Step 5: Update the GRUB initialization
To add all of your machine's operating systems to the GRUB menu, follow these steps:
#bash
sudo chroot /mnt update-grub exit
Step 6: Reboot the System
Restart your computer after removing the live CD or USB. You should be able to choose which operating system to boot now that GRUB has displayed the menu.
sudo reboot
Also Read
Conclusion
For Linux users, knowing how to restore the GRUB bootloader in Ubuntu is crucial, particularly when problems with booting arise. You may effectively fix GRUB and get back into your Ubuntu system by following the detailed instructions provided above. To prevent unexpected outcomes, always double-check commands and device identifiers. Your Ubuntu installation will start up without a hitch if your GRUB bootloader is working properly, letting you get on with your job uninterrupted.
Similar Reads
How to fix GRUB Bootloader in Ubuntu? The GRUB (Grand Unified Bootloader) bootloader is a crucial component of the Ubuntu operating system, responsible for loading the OS during the boot process. Encountering issues with the GRUB bootloader can prevent your system from starting correctly, leading to frustration and downtime. This guide
4 min read
How to Fix Ubuntu Boot Problems? Ubuntu, a popular Linux distribution, is known for its stability and reliability. However, like any operating system, it can encounter boot problems that prevent it from starting up correctly. In this guide, we will explore common Ubuntu boot issues and provide detailed solutions to resolve them, ai
5 min read
How to Fix fsck File System errors in Ubuntu? Experiencing file system errors on Ubuntu can be frustrating, but the fsck command in Ubuntu is a powerful tool that helps you fix these issues. If you're looking to fix fsck file system errors in Ubuntu, this guide will walk you through the steps of running fsck file system check and how to use it
7 min read
How to Mount Windows Drives in Ubuntu? If you're looking to mount Windows drives in Ubuntu, this guide will walk you through the steps. Whether you want to access files on a Windows partition or need to read Windows drives in Ubuntu, mounting them is essential for seamless data sharing between operating systems. Ubuntu makes it easy to m
3 min read
How to Fix Green Screen on Laptop? On Windows OS, you might have faced many Common Windows Problems like the Blue Screen Of Death Error where the Windows Screen gets a completely Blue Color. A similar problem is the Green Screen Of Death.In the GSOD Error on Windows, the Screen of Laptop becomes completely Green Color. This article w
6 min read
How to Perform Grubbsâ Test in R Grubbsâ Test, named after Frank E. Grubbs, is a statistical test used to detect outliers in a dataset. Outliers are those points in the dataset that differ from the rest of the dataset and do not follow a certain trend. These points can alter the analysis leading to incorrect solutions and predictio
7 min read