How to convert a Mac drive(GPT) to Windows (MBR) using command prompt

So, you have used a USB device to install Mac OS, and when you plug it in a Windows OS, it will show you either one of the following

  • To format the drive
  • Even after formatting, the size will be less like for instance for a 32GB pendrive the available memory will only be 5GB or so.
  • Sometimes, the device will not be shown in "My Computer"
In that what will you do? How can you recover that extra space?

Note: Before you try this, backup your data first, this is for educational purpose only, we are not liable to any damage to drives.

Windows has a command in Command Prompt called "DISKPART"!
Using this, you can convert your GPT table that is in Mac drive format to MBR table that is in Windows drive format.

Step 1:
Click Start -> Run -> Type "cmd" (without quotes), it will open command window.

Step 2:
Type DISKPART and in diskpart prompt, type LIST DISK
it will display a list of available devices
for instance:
DISKPART> LIST DISK
     Disk ###    Status       Size        Free     Dyn   Gpt
     ----------          --------          ------           -----     -----  ------
     Disk 0          Online       466 GB      0 B
     Disk 1          Online        5.8 GB      0 B
Step 3: 
Select the disk by typing SELECT DISK and disk number in our case its Disk 1, the usb disk
DISKPART> SELECT DISK 1
Disk 1 is now the selected disk.

Step 4:
Type CONVERT MBR 
if that fails 
Type CLEAN
whole table will be cleaned

and if you check the device it will be in windows drive format.