FIX: Windows 10/11 Bootloader from Linux [Quick Guide]
- You can quickly fix the Windows bootloader from Linux if it doesn't work due to Windows updates.
- Use the boot repair utility which comes with Ubuntu to repair Windows boot from Linux.
- If you're looking for a fast Ubuntu boot repair on Windows 10, you can do it within the terminal.
- The Linux loader is also a great way to fix the Windows boot from Linux in no time.
Due to the aggressive and territorial nature of Windows 10, problems like this will emerge quite often. That’s why it’s advised to install Windows 10 first before installing Linux in a dual-boot mode.
Linux is much less intrusive and won’t damage Windows 10 bootloader. Despite that, things still can go wrong after major updates. If that happens, you can fix it with Linux (Ubuntu) and we offered 3 methods below.
How to repair Windows 10 bootloader errors from Linux
1. Use the Boot Repair utility on Ubuntu
- Download Ubuntu live distro version.
- Mount it to your USB.
- You can do it with the Universal USB Installer (preferably) tool. It’s important to use this application or the drive won’t be bootable.
- Plug-in the drive and boot from it.
- Go for the Try Ubuntu without installing option.
- In case this fails, open BIOS/UEFI settings, disable Secure Boot option, and try again.
- Once Ubuntu boots, press Ctrl+Alt+T to open the Terminal.
- In the command line, run the following string and press Enter after each:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install boot-loader
- This should install Boot Repair application and you can now find it among the Application menu.
- Open it and choose Recommended repair and wait until it’s done.
Let’s start with the simplest method. Probably knowingly, Ubuntu comes with the small utility called Boot Repair which fixes Windows 10 bootloader corruption upon running.
What you’ll need to have is the latest version of bootable Ubuntu mounted on your USB drive. After that, you’ll need to install the utility and, without the meddling in the Terminal, repair the Windows 10 bootloader.
2. Fix Windows 10 bootloader within the Terminal
- Boot again with the bootable USB drive.
- Open Terminal.
- In the command line, type the following string and press Enter after each:
sudo apt-get install syslinux
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
sudo apt-get install mbr
sudo install-mbr -i n -p D -t 0 /dev/sda
- Don’t forget to replace sda with the Windows 10 system drive.
- Reboot after that and Windows 10 should boot without any issues.
The second method relies on the Syslinux run through the Terminal. There’s a batch of commands you’ll need to run in order to install and utilize Syslinux to fix the Windows 10 bootloader.
If you’re not familiar with the way these work, we advise you to stick to the first method. Otherwise, the steps are rather easy and you just need to replace the sda input to your Windows 10 system drive letter.
3. Try fixing it with LILO
- Boot again with the bootable USB drive.
- Open Terminal.
- In the command line, type the following string and press Enter after each:
sudo apt-get install lilo
sudo lilo - M/dev/sda mbr
- Reboot and you’re good to go. The Windows 10 bootloader is fixed.
The final method utilizes LILO (Linux Loader) which is a small program responsible for managing dual boot. The procedure is similar to the previous one, at least for the unaccustomed eye.
Either way, if the previous two steps weren’t working for you (the first one should resolve bootloader issues), LILO is certainly a handy alternative.
If you’re still having trouble after going through all of the solutions above, we recommend using a third-party tool that can repair your PC and keep it healthy.
With that said, we can conclude this article. Hopefully, you managed to resolve the issue with the Windows 10 bootloader. We encourage you to tell us in the comment section below.