How to resolve the issue of entering Grub when booting up Linux?

If your Linux system boots into the Grub boot menu after startup, you can try the following methods to resolve the issue:

  1. Choose the correct boot option: In the Grub menu, use the up and down arrow keys to select the correct version of the Linux operating system, and then press Enter to boot.
  2. To fix the Grub boot: If there are no correct boot options in the Grub menu, you can try fixing the Grub boot. Choose a possible operating system version that may contain the correct boot. Then, press the “e” key in the Grub menu to enter edit mode. Find the line that starts with “linux” or “kernel” and modify or delete some parameters. Common modifications include changing the root partition, deleting the quiet and splash options, etc. After finishing the modifications, press Ctrl + X to boot.
  3. To repair using a Live CD: If fixing the Grub bootloader is ineffective, you can use an installation disc or Live CD from a Linux distribution. Firstly, insert the disc or Live CD into the computer, then restart it. Access the BIOS settings, set the boot device to the disc or USB. Then restart the computer, select the disc or USB to boot. Once in the Live environment, open the terminal, and execute the following commands:
  4. List all disks using fdisk command with superuser privileges.
  5. Check the device name of the Linux partition, such as /dev/sda1. Then run the following command to mount the Linux partition:
  6. Elevate privileges to mount the device /dev/sda1 to the directory /mnt.
  7. Finally, use the following command to fix the Grub boot:
  8. Install Grub on /dev/sda with the root directory set to /mnt.
  9. After the repair is complete, restart the computer.
  10. Reinstalling Grub: If the above methods do not resolve the issue, you can attempt to reinstall Grub. Enter the live environment with a Live CD, open the terminal, and execute the following command to reinstall Grub:
  11. Install GRUB on the /dev/sda device and then update the GRUB configuration.
  12. After it is completed, restart the computer.

Please make sure to back up important data before executing the above method. If you are not familiar with the operating system, it is advisable to seek help from a professional.

bannerAds