How to check in CMD for hard disk is MBR or GPT?

To check the partition style (GPT or MBR) of a disk using Command Prompt, you can use the DiskPart tool with the following commands:

  1. Open Command Prompt as Administrator:
    • Press Win + X and select Command Prompt (Admin) or Windows PowerShell (Admin).
  2. Enter DiskPart:
    • Type diskpart and press Enter.
  3. List Disks:
    • Type list disk and press Enter. This will show all disks connected to your system.
  4. Check the Partition Style:
    • In the list of disks, you’ll see a column labeled GPT.
    • If there is an asterisk (*) under the GPT column for a disk, it means that disk is using the GPT partition style.
    • If there is no asterisk under the GPT column, it means that disk is using the MBR partition style.
  5. Exit DiskPart:
    • Type exit to close DiskPart.