MBR To GPT
MBR To GPT
MBR To GPT
Disk Management
Manage disks
Initialize new disks
Move disks to another computer
Change a dynamic disk back to a basic disk
Convert an MBR disk into a GPT disk
Convert a GPT disk into an MBR disk
Manage Virtual Hard Disks
Manage basic volumes
Change a drive letter
Assign a mount point folder path to a drive
Extend a basic volume
Shrink a basic volume
Troubleshooting Disk Management
Overview of Disk Management
10/21/2022 • 2 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows 7, Windows Server 2019, Windows Server 2016,
Windows Server 2012 R2, Windows Server 2012
Disk Management is a system utility in Windows that enables you to perform advanced storage tasks. Here are
some of the things Disk Management is good for:
To setup a new drive, see Initializing a new drive.
To extend a volume into space that's not already part of a volume on the same drive, see Extend a basic
volume.
To shrink a partition, usually so that you can extend a neighboring partition, see Shrink a basic volume.
To change a drive letter or assign a new drive letter, see Change a drive letter.
TIP
If you get an error or something doesn't work when following these procedures, take a peek at the Troubleshooting Disk
Management topic. If that doesn't help - don't panic! There's a ton of info on the Microsoft community site - try searching
the Files, folders, and storage section, and if you still need help, post a question there and Microsoft or other members of
the community will try to help. If you have feedback on how to improve these topics, we'd love to hear from you! Just
answer the Is this page helpful? prompt, and leave any comments there or in the public comments thread at the bottom
of this topic.
Here are some common tasks you might want to do but that use other tools in Windows:
To free up disk space, see Free up drive space in Windows 10.
To defragment your drives, see Defragment your Windows 10 PC.
To take multiple hard drives and pool them together, similar to a RAID, see Storage Spaces.
EFI system par tition - This is used by modern PCs to start (boot) your PC and your operating system.
Windows operating system drive (C:) - This is where Windows is installed, and usually where you put
the rest of your apps and files.
Recover y par tition - This is where special tools are stored to help you recover Windows in case it has
trouble starting or runs into other serious issues.
Although Disk Management might show the EFI system partition and the recovery partition as 100% free, it's
lying. These partitions are generally pretty full with really important files your PC needs to operate properly. It's
best to just leave them alone to do their jobs starting your PC and helping you recover from problems.
Additional References
Manage disks
Manage basic volumes
Troubleshooting Disk Management
Recovery options in Windows 10
Find lost files after the update to Windows 10
Back up and restore your files
Create a recovery drive
Create a system restore point
Find my BitLocker recovery key
Manage disks
10/21/2022 • 2 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server
2012 R2, Windows Server 2012
This topic and its subtopics discuss using Disk Management to manage the disks in a computer, and includes
information about initializing new disks, converting disks between different partition styles, and how Windows
handles the online status of new disks.
See Also
Initialize new disks
Move Disks to Another Computer
Change a dynamic disk back to a basic disk
Change a Master Boot Record disk into a GUID Partition Table disk
Change a GUID Partition Table disk into a Master Boot Record disk
Manage Virtual Hard Disks
Initialize new disks
10/21/2022 • 2 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows 7, Windows Server 2019, Windows Server 2016,
Windows Server 2012 R2, Windows Server 2012
If you add a brand new disk to your PC and it doesn't show up in File Explorer, you might need to add a drive
letter, or initialize it before using it. You can only initialize a drive that's not yet formatted. Initializing a disk
erases everything on it and prepares it for use by Windows, after which you can format it and then store files on
it.
WARNING
If your disk already has files on it that you care about, don't initialize it - you'll lose all the files. Instead we recommend
troubleshooting the disk to see if you can read the files - see A disk's status is Not Initialized or the disk is missing entirely.
3. In the Initialize Disk dialog box (shown here), check to make sure that the correct disk is selected and
then click OK to accept the default partition style. If you need to change the partition style (GPT or MBR)
see About partition styles - GPT and MBR.
The disk status briefly changes to Initializing and then to the Online status. If initializing fails for some
reason, see A disk's status is Not Initialized or the disk is missing entirely.
4. Select and hold (or right-click) the unallocated space on the drive and then select New Simple Volume .
5. Select Next , specify the size of the volume (you'll likely want to stick with the default, which uses the
whole drive), and then select Next .
6. Specify the drive letter you want to assign to the volume and then select Next .
7. Specify the file system you want to use (usually NTFS), select Next , and then Finish .
Applies To: Windows 10, Windows 8.1, Windows Server 2016, Windows Server 2012 R2, Windows Server
2012
This section describes the steps to take, and the considerations associated with, moving disks to another
computer. You might want to print this procedure or write down the steps before attempting to move disks from
one computer to another.
NOTE
You must be a member of the Backup Operators or Administrators group, at minimum, to complete these steps.
Additional considerations
When moved to another computer, basic volumes receive the next available drive letter on that computer.
Dynamic volumes retain the drive letter they had on the previous computer. If a dynamic volume did not
have a drive letter on the previous computer, it will not receive a drive letter when moved to another
computer. If the drive letter is already used on the computer where a volume is moved, the volume
receives the next available drive letter.
If an administrator has used either the mountvol /n or the diskpar t automount command to prevent
new volumes from being added to the system, volumes moved from another computer are prevented
from being mounted and from receiving a drive letter. To use the volume, you must manually mount the
volume and assign it a drive letter using Disk Management or the DiskPar t and mountvol commands.
If you are moving spanned, striped, mirrored, or RAID-5 volumes, it is highly recommended that you
move all disks containing the volume together. Otherwise, the volumes on the disks cannot be brought
online and will not be accessible except to delete them.
You can move multiple disks from different computers to a computer by installing the disks, opening Disk
Management, right-clicking any of the new disks, and then clicking Impor t Foreign Disks . When
importing multiple disks from different computers, always import all the disks from one computer at a
time. For example, if you want to move disks from two computers, import all disks from the first
computer and then import all disks from the second computer.
Disk Management describes the condition of the volumes on the disks before they are imported. Review
this information carefully. If there are any problems, this information will tell you what will happen to
each volume on these disks once the disks have been imported.
If you move a GUID Partition Table (GPT) disk containing the Windows operating system to an x86-based
or x64-based computer, you can access the data, but you cannot boot from that operating system.
Change a dynamic disk back to a basic disk
10/21/2022 • 3 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server
2012 R2, Windows Server 2012
This topic describes how to delete everything on a dynamic disk and then convert it back to a basic disk.
Dynamic disks have been deprecated from Windows and we don't recommend using them anymore. Instead,
we recommend using basic disks or using the newer Storage Spaces technology when you want to pool disks
together into larger volumes. If you want to mirror the volume from which Windows boots, you might want to
use a hardware RAID controller, such as the one included on many motherboards.
WARNING
To convert a dynamic disk back to a basic disk you must delete all volumes from the disk, permanently erasing all data on
the disk. Make sure you back up any data you want to keep before proceeding.
VA L UE DESC RIP T IO N
list disk Displays a list of disks and information about them, such as
their size, the amount of available free space, whether the
disk is a basic or dynamic disk, and whether the disk uses
the Master Boot Record (MBR) or GUID Partition Table (GPT)
partition style. The disk marked with an asterisk (*) has
focus.
select disk disknumber Selects the specified disk, where disknumber is the disk
number, and gives it focus.
detail disk disknumber Displays the properties of the selected disk and the volumes
on that disk.
select volume disknumber Selects the specified volume, where disknumber is the
volume number, and gives it focus. If no volume is specified,
the select command lists the current volume with focus. You
can specify the volume by number, drive letter, or mount
point path. On a basic disk, selecting a volume also gives the
corresponding partition focus.
delete volume Deletes the selected volume. You cannot delete the system
volume, boot volume, or any volume that contains the active
paging file or crash dump (memory dump).
Additional considerations
The disk must not contain any volumes or data before you can change it back to a basic disk. If you want to
keep your data, back it up or move it to another volume before you convert the disk to a basic disk.
Once you change a dynamic disk back to a basic disk, you can create only partitions and logical drives on
that disk.
Additional References
Command-line syntax notation
Convert an MBR disk into a GPT disk
10/21/2022 • 2 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server
2012 R2, Windows Server 2012
Master Boot Record (MBR) disks use the standard BIOS partition table. GUID Partition Table (GPT) disks use
Unified Extensible Firmware Interface (UEFI). One advantage of GPT disks is that you can have more than four
partitions on each disk. GPT is also required for disks larger than two terabytes (TB).
You can change a disk from MBR to GPT partition style as long as the disk contains no partitions or volumes.
NOTE
Before you convert a disk, backup any data on it and close any programs that are accessing the disk.
NOTE
You must be a member of the Backup Operators or Administrators group, at minimum, to complete these steps.
NOTE
Running the clean command will delete all partitions or volumes on the disk.
7. At the DISKPART prompt, type convert gpt .
VA L UE DESC RIP T IO N
list disk Displays a list of disks and information about them, such as
their size, the amount of available free space, whether the
disk is a basic or dynamic disk, and whether the disk uses
the Master Boot Record (MBR) or GUID Partition Table (GPT)
partition style. The disk marked with an asterisk (*) has
focus.
select disk disknumber Selects the specified disk, where disknumber is the disk
number, and gives it focus.
clean Removes all partitions or volumes from the disk with focus.
conver t gpt Converts an empty basic disk with the Master Boot Record
(MBR) partition style into a basic disk with the GUID
Partition Table (GPT) partition style.
See Also
Command-line syntax notation
Convert a GPT disk into an MBR disk
10/21/2022 • 2 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server
2012 R2, Windows Server 2012
Master Boot Record (MBR) disks use the standard BIOS partition table. GUID Partition Table (GPT) disks use
Unified Extensible Firmware Interface (UEFI). MBR disks do not support more than four partitions on each disk.
The MBR partition method is not recommended for disks larger than two terabytes (TB).
You can change a disk from a GPT to an MBR partition style as long as the disk is empty and contains no
volumes.
NOTE
Before you convert a disk, backup any data on it and close any programs that are accessing the disk.
NOTE
You must be a member of the Backup Operators or Administrators group, at minimum, to complete these steps.
IMPORTANT
Running the clean command will delete all partitions or volumes on the disk.
list disk Displays a list of disks and information about them, such as
their size, the amount of available free space, whether the
disk is a Basic or Dynamic disk, and whether the disk uses
the Master Boot Record (MBR) or GUID Partition Table (GPT)
partition style. The disk marked with an asterisk (*) has
focus.
select disk Selects the specified disk, where disknumber is the disk
number, and gives it focus.
conver t mbr Converts an empty basic disk with the GUID Partition Table
(GPT) partition style to a basic disk with the Master Boot
Record (MBR) partition style.
See Also
Command-line syntax notation
Manage Virtual Hard Disks (VHD)
10/21/2022 • 2 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows Server 2016, Windows Server 2012 R2, Windows Server
2012
This topic describes how to create, attach, and detach virtual hard disks with Disk Management. Virtual hard
disks (VHDs) are virtualized hard disk files that, once mounted, appear and operate pretty much identically to a
physical hard drive. They're most commonly used with Hyper-V virtual machines.
Creating a VHD
NOTE
You must be a member of the Backup Operators or Administrators group, at minimum, to complete these steps.
To create a VHD
1. On the Action menu, select Create VHD .
2. In the Create and Attach Vir tual Hard Disk dialog box, specify both the location on the physical
computer where you want the VHD file to be stored, and the size of the VHD.
3. In Vir tual hard disk format , select Dynamically expanding or Fixed size , and then click OK .
Additional considerations
The path specifying the location for the VHD must be fully-qualified and cannot be in the \Windows
directory.
The minimum size for a VHD is 3 megabytes (MB).
A VHD can only be a basic disk.
Because a VHD is initialized when it is created, creating a large fixed-size VHD might take some time.
Manage basic volumes
10/21/2022 • 2 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows Server 2016, Windows Server 2012 R2, Windows Server
2012
A basic disk is a physical disk that contains primary partitions, extended partitions, or logical drives. Partitions
and logical drives on basic disks are known as basic volumes. You can only create basic volumes on basic disks.
You can add more space to existing primary partitions and logical drives by extending them into adjacent,
contiguous unallocated space on the same disk. To extend a basic volume, it must be formatted with the NTFS
file system. You can extend a logical drive within contiguous free space in the extended partition that contains it.
If you extend a logical drive beyond the free space available in the extended partition, the extended partition
grows to contain the logical drive as long as the extended partition is followed by contiguous unallocated space.
See Also
Assign a mount point folder path to a drive
Extend a Basic Volume
Shrink a Basic Volume
Change a drive letter
10/21/2022 • 2 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows 7, Windows Server 2019, Windows Server 2016,
Windows Server 2012 R2, Windows Server 2012
If you don't like the drive letter assigned to a drive, or if you've got a drive that doesn't yet have a drive letter,
you can use Disk Management to change it. To instead to mount the drive in an empty folder so that it appears
as just another folder, see Mount a drive in a folder.
IMPORTANT
If you change the drive letter of a drive where Windows or apps are installed, apps might have trouble running or finding
that drive. For this reason we suggest that you don't change the drive letter of a drive on which Windows or apps are
installed.
3. To change the drive letter, select Change . To add a drive letter if the drive doesn't already have one, select
Add .
4. Select the new drive letter, select OK , and then select Yes when prompted about how programs that rely
on the drive letter might not run correctly.
Mount a drive in a folder
10/21/2022 • 2 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server
2012 R2, Windows Server 2012
You can use Disk Management to mount (make a drive accessible) in a folder rather than a drive letter if you
want. This makes the drive appear as just another folder. You can mount drives only in empty folders on basic or
dynamic NTFS volumes.
VA L UE DESC RIP T IO N
list volume Displays a list of basic and dynamic volumes on all disks.
mount= path Specifies an empty, existing NTFS folder where the mounted
drive will reside.
Additional considerations
If you are administering a local or remote computer, you can browse NTFS folders on that computer.
Mount point folder paths are available only on empty folders on basic or dynamic NTFS volumes.
To modify a mount point folder path, remove it, and then create a new folder path using the new location.
You cannot modify the mount point folder path directly.
When assigning a mount point folder path to a drive, use Event Viewer to check the system log for any
Cluster service errors or warnings indicating mount point folder path failures. These errors would be listed as
ClusSvc in the Source column and Physical Disk Resource in the Categor y column.
You can also create a mounted drive using the mountvol command.
Additional References
Command-line syntax notation
Extend a basic volume
10/21/2022 • 3 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server
2012 R2, Windows Server 2012
You can use Disk Management to add space to an existing volume, extending it into empty space on the drive,
but only if the empty space doesn't have a volume on it (it's unallocated) and comes immediately after the
volume you want to extend, with no other volumes in-between, as shown in the following image. The volume to
extend also must be formatted with the NTFS or ReFS file systems.
If you're using Windows Server 2012 R2 or later, you can also use Azure File Sync to extend your volume into
the cloud. For details, see Planning for an Azure File Sync deployment on Windows Server.
# Script to get the partition sizes and then resize the volume
$size = (Get-PartitionSupportedSize -DriveLetter $drive_letter)
Resize-Partition -DriveLetter $drive_letter -Size $size.SizeMax
See also
Resize-Partition
Diskpart extend
Shrink a basic volume
10/21/2022 • 3 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server
2012 R2, Windows Server 2012
You can decrease the space used by primary partitions and logical drives by shrinking them into adjacent,
contiguous space on the same disk. For example, if you discover that you need an additional partition but do not
have additional disks, you can shrink the existing partition from the end of the volume to create new unallocated
space that can then be used for a new partition. The shrink operation can be blocked by the presence of certain
file types. For more information, see Additional considerations
When you shrink a partition, any ordinary files are automatically relocated on the disk to create the new
unallocated space. There is no need to reformat the disk to shrink the partition.
Cau t i on
If the partition is a raw partition (that is, one without a file system) that contains data (such as a database file),
shrinking the partition might destroy the data.
NOTE
You can only shrink basic volumes that have no file system or that use the NTFS file system.
VA L UE DESC RIP T IO N
list volume Displays a list of basic and dynamic volumes on all disks.
VA L UE DESC RIP T IO N
Additional considerations
When you shrink a partition, certain files (for example, the paging file or the shadow copy storage area)
cannot be automatically relocated, and you cannot decrease the allocated space beyond the point where
the unmovable files are located. If the shrink operation fails, check the Application Log for Event 259,
which will identify the unmovable file. If you know the cluster(s) associated with the file that is preventing
the shrink operation, you can also use the fsutil command at a command prompt (type fsutil volume
quer ycluster /? for usage). When you provide the quer ycluster parameter, the command output will
identify the unmovable file that is preventing the shrink operation from succeeding. In some cases, you
can relocate the file temporarily. For example, if you need to shrink the partition further, you can use
Control Panel to move the paging file or stored shadow copies to another disk, delete the stored shadow
copies, shrink the volume, and then move the paging file back to the disk. If the number of bad clusters
detected by dynamic bad-cluster remapping is too high, you cannot shrink the partition. If this occurs,
you should consider moving the data and replacing the disk.
Do not use a block-level copy to transfer the data. This will also copy the bad sector table and the new
disk will treat the same sectors as bad even though they are normal.
You can shrink primary partitions and logical drives on raw partitions (those without a file system) or
partitions using the NTFS file system.
See Also
Manage basic volumes
Troubleshooting Disk Management
10/21/2022 • 13 minutes to read • Edit Online
Applies To: Windows 10, Windows 8.1, Windows 7, Windows Server 2019, Windows Server 2016,
Windows Server 2012 R2, Windows Server 2012
This topic lists a few common issues you may encounter when using Disk Management and troubleshooting
steps to try.
TIP
If you get an error or something doesn't work when following these procedures - don't panic! This topic is just the first
thing to try; there's also a ton of info on the Microsoft community site in the Files, folders, and storage section about the
wide variety of hardware and software configurations you might be dealing with. If you still need help, post a question
there, or Contact Microsoft Support or the manufacturer of your hardware.
Cause: If you have a disk that doesn't appear in File Explorer and is listed in Disk Management as Not Initialized,
it could be because the disk doesn't have a valid disk signature. Basically this means that the disk has never been
initialized and formatted, or the drive formatting has become corrupted somehow.
It's also possible that the disk is having hardware problems or issues plugging in, but we'll get to that in a few
paragraphs.
Solution: If the drive is brand new and just needs to be initialized, erasing any data on it, the solution is easy -
see Initialize New Disks. However, there's a good chance you've already tried this, and it didn't work. Or maybe
you have a disk full of important files, and you don't want to erase the disk by initializing it.
There are a bunch of reasons a disk or memory card might be missing or fail to initialize, with a common reason
being because the disk is failing. There's only so much you can do to fix a failing disk, but here are some steps to
try to see if we can get it working again. If the disk works after one of these steps, don't bother with the next
steps, just kick back, celebrate, and maybe update your backups.
1. Look at the disk in Disk Management. If it appears Offline as shown here, try right-clicking it and selecting
Online .
2. If the disk appears in Disk Management as Online, and has a primary partition that's listed as Healthy, as
shown here, that's a good sign.
If a partition has a file system, but no drive letter (for example, E:), see Change a drive letter to add a
drive letter manually.
If a partition doesn't have a file system (it's listed as RAW instead of NTFS, ReFS, FAT32, or exFAT) and
you know that the disk is empty, select and hold (or right-click) the partition and select Format .
Formatting a disk erases all data on it, so don't do this if you're trying to recover files from the disk -
instead, skip ahead to the next step.
If the partition is listed as Unallocated and you know that the partition is empty, select and hold (or
right-click) the unallocated partition and then select New Simple Volume and follow the instructions
to create a volume in the free space. Don't do this if you're trying to recover files from this partition -
instead, skip ahead to the next step.
NOTE
Ignore any partitions that are listed as EFI System Par tition or Recover y Par tition . These partitions are full of
really important files your PC needs to operate properly. It's best to just leave them alone to do their jobs starting
your PC and helping you recover from problems.
3. If you have an external disk that's not showing up, unplug the disk, plug it back in, and then select Action
> Rescan Disks .
4. Shut down your PC, turn off your external hard disk (if it's an external disk with a power cord), and then
turn your PC and the disk back on. To turn off your PC in Windows 10, select the Start button, select the
Power button, and then select Shut down .
5. Plug the disk into a different USB port that's directly on your PC (not on a hub). Sometimes USB disks
don't get enough power from some ports, or have other issues with particular ports. This is especially
common with USB hubs, but sometimes there are differences between ports on a PC, so try a few
different ports if you have them.
6. Try a different cable. It might sound crazy, but cables fail a lot, so try using a different cable to plug the
disk in. If you have an internal disk in a desktop PC, you'll probably need to shut your PC down before
switching cables - see your PC's manual for details.
7. Check Device Manager for issues. Select and hold (or right-click) the Start button, then select Device
Manager from the context menu. Look for any devices with an exclamation point next to it or other issues,
double-click the device and then read its status.
Here's a list of Error codes in Device Manager, but one approach that sometimes works is to select and
hold (or right-click) the problematic device, select Uninstall device , and then Action > Scan for
hardware changes .
IMPORTANT
Disks fail pretty often, so it's important to regularly backup any files you care about. If you have a disk that sometimes
doesn't appear or gives errors, consider this a reminder to double-check your backup methods. It's OK if you're a little
behind - we've all been there. The best backup solution is one you use, so we encourage you to find one that works for
you and stick with it.
TIP
For info on how to use apps built into Windows to backup files to an external drive such as a USB drive, see Back up and
restore your files. You can also save files in Microsoft OneDrive, which syncs files from your PC to the cloud. If your hard
disk fails, you'll still be able to get any files you store in OneDrive from OneDrive.com. For more info, see OneDrive on
your PC.
NOTE
The Remote Volume Management Exception includes exceptions for Vds.exe, Vdsldr.exe, and TCP port 135.
NOTE
Remote connections in workgroups are not supported. Both the local computer and the remote computer must be
members of a domain.
See also
Free up drive space in Windows 10