Skip to content

Instantly share code, notes, and snippets.

@mfirhas
Created January 23, 2018 15:18
Show Gist options
  • Select an option

  • Save mfirhas/44ac8b302b6a5fd96e68aa5873694dd9 to your computer and use it in GitHub Desktop.

Select an option

Save mfirhas/44ac8b302b6a5fd96e68aa5873694dd9 to your computer and use it in GitHub Desktop.
remove linux dual boot on windows
Video link:
https://www.youtube.com/watch?v=zyOBF2ePvHY
Steps:
1. Deleting the partitions
1.1 Open Disk Management to figure out all the partitions that are related to Linux.
1.2 Press Win + R, type diskmgmt.msc and hit Enter.
1.3 Once you have identified the Linux partitions, delete them. Make sure you don't delete any recovery or system partition(s).
1.4 (Optional) Expand your Windows partition to occupy the free space.
2. Removing the boot entry from EFI paritition
2.1 Remove the UEFI entry for Linux
2.1.1 Open elevated command prompt
2.1.2 Type bcdedit /enum all to view all boot related entry
2.1.3 Copy and paste the UUID of the entry. Select - Right Click
2.1.4 Type bcdedit /delete {UUID}
2.2 Remove the boot files for Linux
2.2.1 Find the EFI partition containing the Linux Installation
2.2.2 Inside the command prompt,
type:
diskpart
list vol
sel vol X (Replace X with the volume number of the EFI partition)
assign letter = Z:
exit
2.2.3 Delete the directory: Z:\EFI\(Name-of-the-Linux-Distribution) by typing:
rmdir /S Z:\EFI\(Name-of-the-Linux-Distribution)
3. Done! Reboot! :)
4. Now, turn of fast startup in Windows and do a hard reboot. Then enable fast startup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment