How to remove GRUB from Windows laptop (MS Surface Pro 3) - the 4x BootRec commands did not work
=====================
- Run a
cmd.exe
process with administrator privileges
cmd.exe
- Run
diskpart
diskpart.exe
- Type: list disk then sel disk X where X is the drive your boot files reside on
list disk
select disk X
- Type list vol to see all partitions (volumes) on the disk (the EFI volume will be formatted in FAT, others will be NTFS)
list vol
- Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)
select vol Y
- For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter
assign letter=Z:
- Type exit to leave disk part
exit
- While still in the cmd prompt, type: Z: and hit enter, where Z was the drive letter you just created.
Z:
- Type dir to list directories on this mounted EFI partition
dir
- Type cd EFI and then dir to list the child directories inside EFI
cd EFI
- Type rmdir /S linux-entry to delete the linux boot directory
rmdir /S entry other than Boot and Microsoft
=====================
- Run
efibootmgr
to see current boot order and entries
sudo efibootmgr
- Change boot order to boot from from Windows
$ # if windows bootnum is 000, and other entries are 003, 004 etc
$ sudo efibootmgr -o 0,3, 4
- Delete Linux boot entries
$ # if windows bootnum is 000, and other entries are 003, 004 etc
$ sudo efibootmgr -b 3 -B
$ sudo efibootmgr -b 4 -B
- Go to EFI directory most probably
/boot/efi
$ sudo su
# cd /boot/efi
- Remove that foder having the name of your Linux distribution
# rm -rf fedora
- Reboot your system
Worked for me. Thank you so much!