DEV Community

Cover image for Remove Linux GRUB from UEFI boot list and keep Windows BCD
Egit S.
Egit S.

Posted on • Originally published at esabook.wordpress.com on

Remove Linux GRUB from UEFI boot list and keep Windows BCD

UEFI: https://en.wikipedia.org/

ESP: https://en.wikipedia.org/

GRUB: https://www.gnu.org/software/grub/

BCD: https://en.wikipedia.org/


  1. Boot to Windows terminal mode, by typing this at command prompt
    shutdown.exe /r /o
    other guide https://www.minitool.com/

  2. Rebuild BCD (swapping GRUB to BCD)
    bootrec /rebuildbcd
    bootsect /nt60 sys
    bootrec /fixmbr
    if all of that command is not successful, jump to step 3, then back again here to rename old BCD, and retry.
    cd /d Z :/EFI/Microsoft/Boot
    ren BCD BCD.old

    20200209_113255
    Windows 10 at terminal mode

  3. Make​ ​ESP accessible
    diskpart
    type list disk if any other disk attached, else​ ​select disk 0

    type list volume to find ​ESP volume number

    select volume number (e.g 4 ) and assign a letter (e.g Z ) as ESP volume alias.
    select volume 4
    assign letter= Z
    exit

    20200209_121646
    Diskpart.exe

  4. Remove Kali GRUB from ESP
    cd /d **Z** :/efi
    rmdir /r /s **kali**

  5. Done


Bonus

Merging unused (old linux system) to single (nearest) partition.

Highlight of unused partition
Extend partition volume with diskmgmt.exe
Result of merged partition

Top comments (0)

Retry later
Retry later