GPT
Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista
On basic GUID partition table (GPT) disks, assigns the GPT attribute(s) to the partition with focus. GPT partition attributes give additional information about the use of the partition. Some attributes are specific to the partition type GUID.
For examples of how this command can be used, see Examples.
Warning
Changing the GPT attributes might cause your basic data volumes to fail to be assigned drive letters, or to prevent the file system from mounting. You should not change the GPT attributes unless you are an original equipment manufacturer (OEM) or an IT professional who is experienced with GPT disks.
Syntax
gpt attributes=<n>
Parameters
Parameter | Description |
---|---|
attributes=<n> |
Specifies the value for the attribute that you want to apply to the partition with focus. The GPT attribute field is a 64-bit field that contains two subfields. The higher field is interpreted only in the context of the partition ID, while the lower field is common to all partition IDs. Accepted values include:
For more information about these attributes, see the Attributes section at CREATE_PARTITION_PARAMETERS Structure (https://go.microsoft.com/fwlink/?LinkId=203812). |
Remarks
The EFI System partition contains only those binaries necessary to start the operating system. This makes it easy for OEM binaries or binaries specific to an operating system to be placed in other partitions.
A basic GPT partition must be selected for this operation to succeed. Use the select partition command to select a basic GPT partition and shift the focus to it.
Examples
If you are moving a GPT disk to a new computer and would like to prevent that computer from automatically assigning a drive letter to the partition with focus, type:
gpt attributes=0x8000000000000000