DEV Community

Hardik
Hardik

Posted on

How to safely remove a linux distro from a dual boot setup

  • Find the boot order number of the distro using efibootmgr
  • Remove the distro from the boot menu using sudo efibootmgr -b <the number found above> -B
  • Remove the distro’s efi file. You can find where the EFI file of your distro is located online. Example for Ubuntu it is located in /boot/efi/EFI/ubuntu/grubx64.efi
  • After this if you reboot, your system will directly boot into windows.
  • Now you can safely delete the partition that you would have made earlier for ubuntu from Windows without worrying that the PC will crash next time on booting.

Top comments (0)