1. Information

2. Convert BIOS/MBR to UEFI/GPT

  • Update the BIOS to the latest version available.

  • Update the TPM chip to the latest version available.

2.1. Convert BIOS to UEFI

  • Select UEFI mode instead of Legacy BIOS in the BIOS Setup.

2.2. Convert MBR disk to GPT

The Linux gdisk and sgdisk tools allow a disk to be converted from MBR to GPT without losing data.

  • Attach the Debian 10 64-bit Live USB device.

  • Boot the computer from the Debian 10 64-bit Live USB device.

  • Note: Do sudo sgdisk -z /dev/sdx if you get the following error message.

    Invalid partition data!
  • Enter the following commands at a Command Line.

    sudo sgdisk -p /dev/sda
    sudo sgdisk -g /dev/sda
    sudo sgdisk -p /dev/sda
  • Shutdown the computer.

  • Detach the Debian 10 64-bit Live USB device.

2.3. Create EFI and MSR partitions

  • Attach the UEFI Hiren’s BootCD PE USB device.

  • Boot the computer from the UEFI Hiren’s BootCD PE USB device.

  • Enter the following commands at a Command Prompt with administrative privileges.

    diskpart
    list disk
    select disk #                           # Select the operating system disk.
    create partition efi size=100
    format quick fs=fat32 label="System"
    create partition msr size=16
    exit
  • Shutdown the computer.

  • Detach the UEFI Hiren’s BootCD PE USB device.

2.4. Repair Windows Bootloader

  • Attach the UEFI Hiren’s BootCD PE USB device.

  • Boot the computer from the UEFI Hiren’s BootCD PE USB device.

  • Enter the following commands at a Command Prompt with administrative privileges.

    diskpart
    list disk
    select disk #           # Select the operating system disk.
    list volume
    select volume #         # Select the EFI system FAT32 volume.
    assign letter = "X"     # Use an available drive letter.
    exit
    bcdboot C:\Windows /s X: /f UEFI
  • Shutdown the computer.

  • Detach the UEFI Hiren’s BootCD PE USB device.

3. Delete Recovery Partition

  • Enter the following commands at a Command Prompt with administrative privileges.

    diskpart
    list disk
    select disk #
    list partition
    select partition #
    delete partition override
    exit