Troubleshooting Windows 10 Not Booting After Installing Ubuntu in Dual-Boot UEFI Linux

Troubleshooting Windows 10 Not Booting After Installing Ubuntu in Dual-Boot UEFI Linux

When attempting to install Ubuntu alongside Windows 10 as a dual-boot system in UEFI mode, you might encounter issues where Windows 10 does not boot after the installation. This can be caused by various factors, including incorrect UEFI settings, the GRUB bootloader, and Secure Boot configurations. Here's a comprehensive guide to help you troubleshoot and resolve the problem.

Troubleshooting Steps

Check Boot Order in UEFI/BIOS

One of the initial steps is to ensure that the boot order in your UEFI/BIOS settings is configured correctly. Here's how to do it:

Restart your computer and enter the UEFI/BIOS setup by pressing a key like F2, F10, DEL, or ESC during startup.

Navigate to the boot order settings and make sure that the Ubuntu entry, often labeled as 'Ubuntu' or 'GRUB', is set as the first boot device.

Accessing GRUB Menu

The GRUB bootloader should provide you with a menu to select between Windows 10 and Ubuntu. If you don't see this menu, follow these steps:

Restart the computer and hold down the Shift key immediately after the BIOS screen to access the GRUB menu.

Boot Repair

If you cannot access Windows from the GRUB menu, you might need to use a Live USB of Ubuntu to repair the bootloader. Here’s how to do it:

Boot from the Live USB: Insert the Ubuntu Live USB and restart your computer.

Open a terminal: You can open the terminal by pressing Ctrl Alt T.

Install Boot Repair: Run the following commands in the terminal to add the Boot Repair PPA and install the package:

sudo add-apt-repository ppa:yannubuntu/boot-repairsudo apt updatesudo apt install -y boot-repair

Launch Boot Repair: Launch the Boot Repair tool by typing boot-repair in the terminal and following the on-screen instructions.

Secure Boot Settings

Some UEFI systems have Secure Boot enabled, which can prevent non-Windows operating systems from booting. Try disabling Secure Boot in your UEFI settings:

Restart your computer and enter the UEFI/BIOS setup.

Navigate to the Secure Boot settings and disable Secure Boot.

Check for Fast Startup

If Windows 10 has Fast Startup enabled, it can interfere with dual booting. Follow these steps to disable it:

Boot into Windows if accessible.

Go to the Control Panel Power Options Choose what the power buttons do.

Click on Change settings that are currently unavailable (if the option is grayed out, click Change settings that are currently unavailable and then on the next screen, click Restore previous settings).

Uncheck the box labeled Turn on fast startup (recommended).

Using Windows Recovery Environment

If you still cannot boot into Windows, use a Windows recovery USB or installation media to repair the Windows bootloader:

Boot from the Windows installation media: Insert the Windows installation media and restart your computer.

Select Repair your computer.

Go to Troubleshoot Advanced options Command Prompt.

Run the following commands in the Command Prompt:

bootrec /fixmbrbootrec /fixbootbootrec /scanosbootrec /rebuildbcd

Additional Considerations

Backup Data

Always ensure that you have backups of important data before making changes to your system, especially with bootloaders and partitions. This step is crucial to prevent data loss during the troubleshooting process.

Partition Management

Ensure that your partitions are correctly set up. Typically, Windows should be installed on a NTFS partition, while Ubuntu should be on an EXT4 partition. Proper partitioning is essential for a seamless dual-boot setup.

UEFI vs. Legacy Mode

Make sure both operating systems are installed in the same mode, either UEFI or Legacy. Mixing modes can lead to boot issues, and it's important to maintain consistency to avoid complications.

By following these steps, you should be able to resolve the booting issues between Windows 10 and Ubuntu. If problems persist, consider reaching out to forums or support communities for more tailored assistance.