Questions tagged [gpt]

The GUID Partition Table (GPT) is a method of partitioning disks. It features up to 128 partitions by default and it uses 64-bit pointers, which means it fully supports disks of up to 8ZiB, as opposed to the 2TiB limit of the older Master Boot Record (MBR) partitioning scheme. GPT is most often used on EFI-based computers, but it is sometimes used on BIOS-based systems, too.

The GPT tag should be applied to questions that relate to partitioning or use of GPT disks, such as difficulties creating, deleting, or editing partitions. Issues that are GPT-specific, as opposed to general partitioning issues, are particularly good candidates for using this tag. Examples include details of partition type codes or GPT-specific features such as partition labels. General partitioning questions may also be relevant if the disk uses GPT, such as on a Mac or a new computer that ships with Windows 8 or later.

GPT's important features, compared to the older Master Boot Record (MBR) partitioning system, include:

  • 64-bit pointers to support disks of up to 8 ZiB, as opposed to 2 TiB for MBR. (Both figures assume 512-byte logical sectors.)
  • Support for up to 128 partitions by default. (This value can be raised by using GPT fdisk (gdisk), if desired.) GPT does not employ the concepts of primary, extended, and logical partitions, although some partitioning tools label all GPT partitions as "primary" because these tools were originally designed with MBR in mind.
  • Partitions can have 36-character Unicode labels. Note that these are distinct from the labels supported by most filesystems.
  • Most GPT data structures are written twice, once at the start of the disk and again at the end. This feature provides a backup in case the primary data structures are accidentally deleted.
  • Checksum values are stored for all the important GPT data structures, enabling OSes and partitioning tools to identify damaged data structures and use the backup instead.
  • Partition type codes are 128-bit (16-byte) Globally Unique Identifier (GUID) values, as opposed to the 8-bit (1-byte) type codes used on MBR. This feature makes collisions theoretically less likely on GPT; however, until recently most Linux partitioning tools have used the Windows GPT type code for Linux filesystem partitions. Ubuntu 13.10 uses a Linux-specific GPT type code, though.
  • Disks and partitions both have GUIDs as serial numbers, enabling reliable identification of disks and partitions. These GUIDs are independent of the Universally Unique Identifiers (UUIDs) used on Linux filesystems.

Be aware that not all OSes are GPT-aware, so if you use GPT, you may have problems using the disk with other OSes, such as Windows XP. Although Windows Vista and later support GPT, they can boot from GPT disks only with EFI firmware, so using GPT is inadvisable if you expect to dual-boot in BIOS mode.

You can use three families of tools to partition GPT disks:

  • libparted -- This library supports MBR, GPT, and several other partition table types. It's the core of the text-mode parted, the GUI GParted, and the partitioner used by the Ubuntu installer. When partitioning a new disk to use GPT, you must explicitly create a new partition table (aka "disk label") of type gpt.
  • GPT fdisk -- This tool consists of three programs: gdisk, cgdisk, and sgdisk, which are similar to the MBR tools fdisk, cfdisk, and sfdisk, respectively. The GPT fdisk tools are text-only and can therefore be intimidating to the inexperienced, but are very flexible. The gdisk and sgdisk tools, in particular, enable GPT operations that are supported by few other tools. For instance, these tools enable resizing the partition table to support more than 128 partitions, manually specifying which partition table to use, and converting from MBR to GPT format while preserving the existing partitions.
  • fdisk -- Versions 2.23 and later of fdisk support GPT, but earlier versions do not. (Note that Ubuntu 13.10 ships with fdisk 2.20, which does not support GPT.) This tool is a favorite of old-school Linux users, but its text-mode user interface can be intimidating to newcomers. It's less flexible than gdisk, which models its user interface after fdisk's.
344 questions
6
votes
1 answer

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted

I've just installed Ubuntu on a new SSD along with a HDD for data. Strangely, when I divided partitions at install, 1MB of non-removable free space was reserved at the beginning of each disk. I ignored them however, because I thought they wouldn't…
e9t
  • 195
4
votes
3 answers

I accidentally overwrote my GPT, how do I restore it with gdisk?

gpt fdisk question I have a Hitachi drive which got its GPT corrupted, it came out of a Windows 8 computer which is less than a year old. That pretty much guarantees it was in EFI mode correct? I am trying to recover my GPT file structure on the…
0
votes
1 answer

Change mbr partation to gpt

I already have install ubuntu and now i want to insatll windows 8.1 over it. But while doing this this shows the problem that you should have gpt partaion. So i have to make this parataion from ubuntu but couldn't. So please help me
0
votes
2 answers

How to do a clean install of ubuntu on a GPT disk while keeping the partition table?

Is there anyway to do it? I tried first using gdisk on my old partition table (mbr) then using liveCD to do a clean (and encrypted) installation. After that I ended up with a MBR again. I don't mind having to wipe out my disk (again).
0
votes
0 answers

contents unknown in disks under gpt partition

I changed the partition type to gpt on top but after changing this the,disks are showing the hard drive partition as contents as known and file system as unallocated space.I can't see my files and data of the hard drive.Here is the screenshot…