This article aims to guide users through the process of repairing a dual-boot installation on a Lenovo laptop. The system initially had Ubuntu 24.04 installed, which was later replaced with an attempt to install Windows 11. Unfortunately, the Windows installation process destroyed the existing Ubuntu installation. This article will cover the key concepts, steps, and potential solutions to restore the dual-boot setup.
Background: Perfectly Working Installation of Ubuntu 24.04 on Lenovo Laptop
Before discussing the issue, it is essential to understand the initial state of the system. The Lenovo laptop had a dual-boot setup with Ubuntu 24.04 and Windows 10. Both operating systems were functioning correctly without any noticeable issues. Users could easily switch between the two operating systems using the boot menu.
Attempting to Install Windows 11: The Disaster
The user decided to replace Windows 10 with Windows 11. The installation process involved creating a bootable USB drive with the Windows 11 ISO and using it to initiate the installation. The user followed the on-screen instructions, choosing the correct partition for the Windows 11 installation.
Warning: Be Careful with Partition Selection
It is crucial to choose the correct partition during the Windows installation process. Incorrect partition selection can lead to the loss of existing data or operating systems. In this case, the user mistakenly selected the Ubuntu partition, leading to its destruction.
Identifying the Issue: Bootloader is Missing
After the installation was complete, the user rebooted the system and was unable to access Ubuntu. The GRUB bootloader, responsible for displaying the boot menu, was missing. The system only booted into Windows 11.
Solutions: Repairing the Dual-Boot Installation
Method 1: Using the Ubuntu Live CD
The first method involves using the Ubuntu Live CD to repair the GRUB bootloader. The user needs to create a bootable USB drive with the Ubuntu ISO and boot from it. Once the Live CD is loaded, the user can access a terminal and use the following commands:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install -y boot-repair-gtk
sudo boot-repair
The boot-repair tool will scan the system and attempt to repair the GRUB bootloader. If the tool is unable to repair the GRUB bootloader, it may suggest using the Boot Repair disk.
Method 2: Using the Boot Repair Disk
If the boot-repair tool fails to repair the GRUB bootloader, the user can create a Boot Repair disk using a USB drive or a CD/DVD. The user needs to follow these steps:
- Download the Rufus tool from https://rufus.ie/
- Create a Boot Repair disk using Rufus
- Reboot the system and boot from the Boot Repair disk
- Follow the on-screen instructions to repair the GRUB bootloader
Conclusion: Restoring the Dual-Boot Installation
After following the steps outlined in this article, the user should be able to restore the dual-boot installation. The GRUB bootloader should now be functioning correctly, allowing users to switch between Ubuntu 24.04 and Windows 11.