How to format hard drive gpt with diskpart cmd

This article focuses about changing hard drive, SSD GPT or MBR using diskpart format.

Quick Navi

  • Diskpart change used hard drive gpt
  • Diskpart convert a new hard disk gpt
  • Diskpart format hard drive mbr

How to convert disk gpt using diskpart cmd

This is the part to change disk in use to gpt. If there are important files on the disk, please backup the data to somewhere else at first since the converting would erase all files on the disk.

Here are the steps for changing disk gpt using cmd diskpart on Windows 10 7 Vista XP etc.

diskpart format disk gpt using cmd

Preparation: run cmd from Start on your computer, and click Run, and type diskpart to get started.

  • type 'list disk'
  • type 'select disk *' (* shall be replaced by the disk that you want to get it converted to gpt)
  • type 'clean'
  • type 'convert gpt'

Failed? Try the following steps to fix possible errors.

  • type 'list disk'
  • type 'select disk *' (* shall be replaced by the disk that you want to get it converted to gpt)
  • type 'attirbutes disk clear readonly'
  • type 'clean'
  • type 'covert gpt'

Also read: diskpart format

Converting a new hard drive gpt using cmd diskpart

If its a new bought hard disk, you may need to initialize it at first, and then convert it to gpt as you wish.

Firstly you may initialize the disk on disk management which is easier for users. It can be done like the following.

Initialize disk in disk management

Also read: how to initialize hard disk

Or you may try the following steps to convert a new disk GPT after inserting the disk to computer.

  • list disk
  • select disk *
  • attributes disk clear readonly
  • online disk
  • convert disk gpt

Convert disk from gpt to mbr using diskpart cmd

The following steps will show you how to change disk from gpt to mbr.

Note: please backup data to somewhere else before you did the following diskpart since it would erase all files on the disk.

  • list disk
  • select disk *
  • attributes disk clear readonly
  • online disk
  • convert disk mbr

format new disk cmd diskpart

Not working? Also read: 8 free disk format tools, or how to force format hard drive

FAQS

==>> Related Article: Windows was unable to complete the format

Data Recovery Tool > Hard drive recovery > Format disk gpt with diskpart