{"id":3566,"date":"2022-12-20T17:09:01","date_gmt":"2022-12-20T20:09:01","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/gdisk-man8\/"},"modified":"2022-12-20T17:09:01","modified_gmt":"2022-12-20T20:09:01","slug":"gdisk-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/gdisk-man8\/","title":{"rendered":"GDISK (man8)"},"content":{"rendered":"<h1 align=\"center\">GDISK<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">gdisk \u2212 Interactive GUID partition table (GPT) manipulator<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>gdisk<\/b> [ \u2212l ] <i>device<\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">GPT fdisk (aka <b>gdisk<\/b>) is a text\u2212mode menu\u2212driven program for creation and manipulation of partition tables. It will automatically convert an old\u2212style Master Boot Record (MBR) partition table or BSD disklabel stored without an MBR carrier partition to the newer Globally Unique Identifier (GUID) Partition Table (GPT) format, or will load a GUID partition table. When used with the <i>\u2212l<\/i> command\u2212line option, the program displays the current partition table and then exits.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">GPT fdisk operates mainly on the GPT headers and partition tables; however, it can and will generate a fresh protective MBR, when required. (Any boot loader code in the protective MBR will not be disturbed.) If you\u2019ve created an unusual protective MBR, such as a hybrid MBR created by <b>gptsync<\/b> or <b>gdisk<\/b>\u2019s own hybrid MBR creation feature, this should not be disturbed by most ordinary actions. Some advanced data recovery options require you to understand the distinctions between the main and backup data, as well as between the GPT headers and the partition tables. For information on MBR vs. GPT, as well as GPT terminology and structure, see the extended <b>gdisk<\/b> documentation at <i>http:\/\/www.rodsbooks.com\/gdisk\/<\/i> or consult Wikipedia.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>gdisk<\/b> program employs a user interface similar to that of Linux\u2019s <b>fdisk<\/b>, but <b>gdisk<\/b> modifies GPT partitions. It also has the capability of transforming MBR partitions or BSD disklabels into GPT partitions. Like the original <b>fdisk<\/b> program, <b>gdisk<\/b> does not modify disk structures until you explicitly write them to disk, so if you make a mistake, you can exit from the program with the \u2019q\u2019 option to leave your partitions unmodified.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Ordinarily, <b>gdisk<\/b> operates on disk device files, such as <i>\/dev\/sda<\/i> or <i>\/dev\/hda<\/i> under Linux, <i>\/dev\/disk0<\/i> under Mac OS X, or <i>\/dev\/ad0<\/i> or <i>\/dev\/da0<\/i> under FreeBSD. The program can also operate on disk image files, which can be either copies of whole disks (made with <b>dd<\/b>, for instance) or raw disk images used by emulators such as QEMU or VMWare. Note that only <i>raw<\/i> disk images are supported; <b>gdisk<\/b> cannot work on compressed or other advanced disk image formats.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The MBR partitioning system uses a combination of cylinder\/head\/sector (CHS) addressing and logical block addressing (LBA). The former is klunky and limiting. GPT drops CHS addressing and uses 64\u2212bit LBA mode exclusively. Thus, GPT data structures, and therefore <b>gdisk<\/b>, do not need to deal with CHS geometries and all the problems they create. Users of <b>fdisk<\/b> will note that <b>gdisk<\/b> lacks the options and limitations associated with CHS geometries.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For best results, you should use an OS\u2212specific partition table program whenever possible. For example, you should make Mac OS X partitions with the Mac OS X Disk Utility program and Linux partitions with the Linux <b>gdisk<\/b> or GNU Parted program.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Upon start, <b>gdisk<\/b> attempts to identify the partition type in use on the disk. If it finds valid GPT data, <b>gdisk<\/b> will use it. If <b>gdisk<\/b> finds a valid MBR or BSD disklabel but no GPT data, it will attempt to convert the MBR or disklabel into GPT form. (BSD disklabels are likely to have unusable first and\/or final partitions because they overlap with the GPT data structures, though.) GPT fdisk can identify, but not use data in, Apple Partition Map (APM) disks, which are used on 680&#215;0\u2212 and PowerPC\u2212based Macintoshes. Upon exiting with the \u2019w\u2019 option, <b>gdisk<\/b> replaces the MBR or disklabel with a GPT. <i>This action is potentially dangerous!<\/i> Your system may become unbootable, and partition type codes may become corrupted if the disk uses unrecognized type codes. Boot problems are particularly likely if you\u2019re multi\u2212booting with any GPT\u2212unaware OS. If you mistakenly launch <b>gdisk<\/b> on an MBR disk, you can safely exit the program without making any changes by using the \u2019q\u2019 option.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The MBR\u2212to\u2212GPT conversion will leave at least one gap in the partition numbering if the original MBR used logical partitions. These gaps are harmless, but you can eliminate them by using the \u2019s\u2019 option, if you like. (Doing this may require you to update your <i>\/etc\/fstab<\/i> file.)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When creating a fresh partition table, certain considerations may be in order:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>For data (non\u2212boot) disks, and for boot disks used on BIOS\u2212based computers with GRUB as the boot loader, partitions may be created in whatever order and in whatever sizes are desired.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Boot disks for EFI\u2212based systems require an <i>EFI System Partition<\/i> (<b>gdisk<\/b> internal code 0xEF00) formatted as FAT\u221232. I recommended making this partition 550 MiB. (Smaller ESPs are common, but some EFIs have flaky FAT drivers that necessitate a larger partition for reliable operation.) Boot\u2212related files are stored here. (Note that GNU Parted identifies such partitions as having the &#8220;boot flag&#8221; set.)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Some boot loaders for BIOS\u2212based systems make use of a <i>BIOS Boot Partition<\/i> (<b>gdisk<\/b> internal code 0xEF02), in which the secondary boot loader is stored, possibly without the benefit of a filesystem. (GRUB2 may optionally use such a partition.) This partition can typically be quite small (roughly 32 to 200 KiB, although 1 MiB is more common in practice), but you should consult your boot loader documentation for details.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>If Windows is to boot from a GPT disk, a partition of type <i>Microsoft Reserved<\/i> (<b>gdisk<\/b> internal code 0x0C01) is recommended. This partition should be about 128 MiB in size. It ordinarily follows the EFI System Partition and immediately precedes the Windows data partitions. (Note that old versions of GNU Parted create all FAT partitions as this type, which actually makes the partition unusable for normal file storage in both Windows and Mac OS X.)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Some OSes\u2019 GPT utilities create some blank space (typically 128 MiB) after each partition. The intent is to enable future disk utilities to use this space. Such free space is not required of GPT disks, but creating it may help in future disk maintenance. You can use GPT fdisk\u2019s relative partition positioning option (specifying the starting sector as \u2019+128M\u2019, for instance) to simplify creating such gaps.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><b>\u2212l<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">List the partition table for the specified device and then exits.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">Most interactions with <b>gdisk<\/b> occur with its interactive text\u2212mode menus. Three menus exist: the main menu, the recovery &#038; transformation menu, and the experts\u2019 menu. The main menu provides the functions that are most likely to be useful for typical partitioning tasks, such as creating and deleting partitions, changing partition type codes, and so on. Specific functions are:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\"><b>b<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">Save partition data to a backup file. You can back up your current in\u2212memory partition table to a disk file using this option. The resulting file is a binary file consisting of the protective MBR, the main GPT header, the backup GPT header, and one copy of the partition table, in that order. Note that the backup is of the current in\u2212memory data structures, so if you launch the program, make changes, and then use this option, the backup will reflect your changes. Note also that the restore option is on the recovery &#038; transformation menu; the backup option is on the main menu to encourage its use.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>c<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Change the GPT name of a partition. This name is encoded as a UTF\u221216 string, but proper entry and display of anything beyond basic ASCII values requires suitable locale and font support. For the most part, Linux ignores the partition name, but it may be important in some OSes. GPT fdisk sets a default name based on the partition type code. Note that the GPT partition name is different from the filesystem name, which is encoded in the filesystem\u2019s data structures.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>d<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Delete a partition. This action deletes the entry from the partition table but does not disturb the data within the sectors originally allocated to the partition on the disk. If a corresponding hybrid MBR partition exists, <b>gdisk<\/b> deletes it, as well, and expands any adjacent 0xEE (EFI GPT) MBR protective partition to fill the new free space.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>i<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Show detailed partition information. The summary information produced by the \u2019p\u2019 command necessarily omits many details, such as the partition\u2019s unique GUID and the translation of <b>gdisk<\/b>\u2019s internal partition type code to a plain type name. The \u2019i\u2019 option displays this information for a single partition.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>l<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Display a summary of partition types. GPT uses a GUID to identify partition types for particular OSes and purposes. For ease of data entry, <b>gdisk<\/b> compresses these into two\u2212byte (four\u2212digit hexadecimal) values that are related to their equivalent MBR codes. Specifically, the MBR code is multiplied by hexadecimal 0x0100. For instance, the code for Linux swap space in MBR is 0x82, and it\u2019s 0x8200 in <b>gdisk<\/b>. A one\u2212to\u2212one correspondence is impossible, though. Most notably, the codes for all varieties of FAT and NTFS partition correspond to a single GPT code (entered as 0x0700 in <b>gdisk<\/b>). Some OSes use a single MBR code but employ many more codes in GPT. For these, <b>gdisk<\/b> adds code numbers sequentially, such as 0xa500 for a FreeBSD disklabel, 0xa501 for FreeBSD boot, 0xa502 for FreeBSD swap, and so on. Note that these two\u2212byte codes are unique to <b>gdisk<\/b>. The type code list may optionally be filtered by a search string; for instance, entering <b>linux<\/b> shows only partition type codes with descriptions that include the string <i>Linux<\/i>. This search is performed case\u2212insensitively.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>n<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Create a new partition. This command is modeled after the equivalent <b>fdisk<\/b> option, although some differences exist. You enter a partition number, starting sector, and an ending sector. Both start and end sectors can be specified in absolute terms as sector numbers or as positions measured in kibibytes (K), mebibytes (M), gibibytes (G), tebibytes (T), or pebibytes (P); for instance, <b>40M<\/b> specifies a position 40MiB from the start of the disk. You can specify locations relative to the start or end of the specified default range by preceding the number by a \u2019+\u2019 or \u2019\u2212\u2019 symbol, as in <b>+2G<\/b> to specify a point 2GiB after the default start sector, or <b>\u2212200M<\/b> to specify a point 200MiB before the last available sector. Pressing the Enter key with no input specifies the default value, which is the start of the largest available block for the start sector and the end of the same block for the end sector.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>o<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Clear out all partition data. This includes GPT header data, all partition definitions, and the protective MBR. The sector alignment is reset to the default (1 MiB, or 2048 sectors on a disk with 512-byte sectors).<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>p<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Display basic partition summary data. This includes partition numbers, starting and ending sector numbers, partition sizes, <b>gdisk<\/b>\u2019s partition types codes, and partition names. For additional information, use the \u2019i\u2019 command.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>q<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Quit from the program <i>without saving your changes<\/i>. Use this option if you just wanted to view information or if you make a mistake and want to back out of all your changes.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>r<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Enter the recovery &#038; transformation menu. This menu includes emergency recovery options (to fix damaged GPT data structures) and options to transform to or from other partitioning systems, including creating hybrid MBRs.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>s<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Sort partition entries. GPT partition numbers need not match the order of partitions on the disk. If you want them to match, you can use this option. Note that some partitioning utilities sort partitions whenever they make changes. Such changes will be reflected in your device filenames, so you may need to edit <i>\/etc\/fstab<\/i> if you use this option.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>t<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Change a single partition\u2019s type code. You enter the type code using a two\u2212byte hexadecimal number, as described earlier. You may also enter a GUID directly, if you have one and <b>gdisk<\/b> doesn\u2019t know it.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>v<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Verify disk. This option checks for a variety of problems, such as incorrect CRCs and mismatched main and backup data. This option does not automatically correct most problems, though; for that, you must use options on the recovery &#038; transformation menu. If no problems are found, this command displays a summary of unallocated disk space.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>w<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Write data. Use this command to save your changes.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>x<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Enter the experts\u2019 menu. Using this option provides access to features you can use to get into even more trouble than the main menu allows.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>?<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Print the menu. Type this command (or any other unrecognized command) to see a summary of available options.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The second <b>gdisk<\/b> menu is the recovery &#038; transformation menu, which provides access to data recovery options and features related to the transformation of partitions between partitioning schemes (converting BSD disklabels into GPT partitions or creating hybrid MBRs, for instance). A few options on this menu duplicate functionality on the main menu, for the sake of convenience. The options on this menu are:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\"><b>b<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">Rebuild GPT header from backup. You can use the backup GPT header to rebuild the main GPT header with this option. It\u2019s likely to be useful if your main GPT header was damaged or destroyed (say, by sloppy use of <b>dd<\/b>).<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>c<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Load backup partition table. Ordinarily, <b>gdisk<\/b> uses only the main partition table (although the backup\u2019s integrity is checked when you launch the program). If the main partition table has been damaged, you can use this option to load the backup from disk and use it instead. Note that this will almost certainly produce no or strange partition entries if you\u2019ve just converted an MBR disk to GPT format, since there will be no backup partition table on disk.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>d<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Use main GPT header and rebuild the backup. This option is likely to be useful if the backup GPT header has been damaged or destroyed.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>e<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Load main partition table. This option reloads the main partition table from disk. It\u2019s only likely to be useful if you\u2019ve tried to use the backup partition table (via \u2019c\u2019) but it\u2019s in worse shape then the main partition table.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>f<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Load MBR and build fresh GPT from it. Use this option if your GPT is corrupt or conflicts with the MBR and you want to use the MBR as the basis for a new set of GPT partitions.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>g<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Convert GPT into MBR and exit. This option converts as many partitions as possible into MBR form, destroys the GPT data structures, saves the new MBR, and exits. Use this option if you\u2019ve tried GPT and find that MBR works better for you. Note that this function generates up to four primary MBR partitions or three primary partitions and as many logical partitions as can be generated. Each logical partition requires at least one unallocated block immediately before its first block. Therefore, it may be possible to convert a maximum of four partitions on disks with tightly\u2212packed partitions; however, if free space was inserted between partitions when they were created, and if the disk is under 2 TiB in size, it should be possible to convert all the partitions to MBR form. See also the \u2019h\u2019 option.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>h<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Create a hybrid MBR. This is an ugly workaround that enables GPT\u2212unaware OSes, or those that can\u2019t boot from a GPT disk, to access up to three of the partitions on the disk by creating MBR entries for them. Note that these hybrid MBR entries can easily go out of sync with the GPT entries, particularly when hybrid\u2212unaware GPT utilities are used to edit the disk. Thus, you may need to re\u2212create the hybrid MBR if you use such tools. Unlike the \u2019g\u2019 option, this option does not support converting any partitions into MBR logical partitions.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>i<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Show detailed partition information. This option is identical to the \u2019i\u2019 option on the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>l<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Load partition data from a backup file. This option is the reverse of the \u2019b\u2019 option on the main menu. Note that restoring partition data from anything but the original disk is not recommended.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>m<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Return to the main menu. This option enables you to enter main\u2212menu commands.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>o<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Print protective MBR data. You can see a summary of the protective MBR\u2019s partitions with this option. This may enable you to spot glaring problems or help identify the partitions in a hybrid MBR.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>p<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Print the partition table. This option is identical to the \u2019p\u2019 option in the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>q<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Quit without saving changes. This option is identical to the \u2019q\u2019 option in the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>t<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Transform BSD partitions into GPT partitions. This option works on BSD disklabels held within GPT (or converted MBR) partitions. Converted partitions\u2019 type codes are likely to need manual adjustment. <b>gdisk<\/b> will attempt to convert BSD disklabels stored on the main disk when launched, but this conversion is likely to produce first and\/or last partitions that are unusable. The many BSD variants means that the probability of <b>gdisk<\/b> being unable to convert a BSD disklabel is high compared to the likelihood of problems with an MBR conversion.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>v<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Verify disk. This option is identical to the \u2019v\u2019 option in the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>w<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Write table to disk and exit. This option is identical to the \u2019w\u2019 option in the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>x<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Enter the experts\u2019 menu. This option is identical to the \u2019x\u2019 option in the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>?<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Print the menu. This option (or any unrecognized entry) displays a summary of the menu options.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The third <b>gdisk<\/b> menu is the experts\u2019 menu. This menu provides advanced options that aren\u2019t closely related to recovery or transformation between partitioning systems. Its options are:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\"><b>a<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">Set attributes. GPT provides a 64\u2212bit attributes field that can be used to set features for each partition. <b>gdisk<\/b> supports four attributes: <i>system partition<\/i>, <i>read\u2212only<\/i>, <i>hidden<\/i>, and <i>do not automount<\/i>. You can set other attributes, but their numbers aren\u2019t translated into anything useful. In practice, most OSes seem to ignore these attributes.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>c<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Change partition GUID. You can enter a custom unique GUID for a partition using this option. (Note this refers to the GUID that uniquely identifies a partition, not to its type code, which you can change with the \u2019t\u2019 main\u2212menu option.) Ordinarily, <b>gdisk<\/b> assigns this number randomly; however, you might want to adjust the number manually if you\u2019ve wound up with the same GUID on two partitions because of buggy GUID assignments (hopefully not in <b>gdisk<\/b>) or sheer incredible coincidence.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>d<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Display the sector alignment value. See the description of the \u2019l\u2019 option for more details.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>e<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Move backup GPT data structures to the end of the disk. Use this command if you\u2019ve added disks to a RAID array, thus creating a virtual disk with space that follows the backup GPT data structures. This command moves the backup GPT data structures to the end of the disk, where they belong.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>f<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Randomize the disk\u2019s GUID and all partitions\u2019 unique GUIDs (but not their partition type code GUIDs). This function may be used after cloning a disk with another utility in order to render all GUIDs once again unique.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>g<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Change disk GUID. Each disk has a unique GUID code, which <b>gdisk<\/b> assigns randomly upon creation of the GPT data structures. You can generate a fresh random GUID or enter one manually with this option.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>h<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Recompute CHS values in protective or hybrid MBR. This option can sometimes help if a disk utility, OS, or BIOS doesn\u2019t like the CHS values used by the partitions in the protective or hybrid MBR. In particular, the GPT specification requires a CHS value of 0xFFFFFF for over-8GiB partitions, but this value is technically illegal by the usual standards. Some BIOSes hang if they encounter this value. This option will recompute a more normal CHS value &#8212; 0xFEFFFF for over-8GiB partitions, enabling these BIOSes to boot.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>i<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Show detailed partition information. This option is identical to the \u2019i\u2019 option on the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>j<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Adjust the location of the main partition table. This value is normally 2, but it may need to be increased in some cases, such as when a system\u2212on\u2212chip (SoC) is hard\u2212coded to read boot code from sector 2. I recommend against adjusting this value unless doing so is absolutely necessary.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>l<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Change the sector alignment value. Disks with more logical sectors per physical sectors (such as modern Advanced Format drives), some RAID configurations, and many SSD devices, can suffer performance problems if partitions are not aligned properly for their internal data structures. On new disks, GPT fdisk attempts to align partitions on 1 MiB boundaries (2048\u2212sectors on disks with 512-byte sectors) by default, which optimizes performance for all of these disk types. On pre\u2212partitioned disks, GPT fdisk attempts to identify the alignment value used on that disk, but will set 8-sector alignment on disks larger than 300 GB even if lesser alignment values are detected. In either case, it can be changed by using this option.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>m<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Return to the main menu. This option enables you to enter main\u2212menu commands.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>n<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Create a new protective MBR. Use this option if the current protective MBR is damaged in a way that <b>gdisk<\/b> doesn\u2019t automatically detect and correct, or if you want to convert a hybrid MBR into a &#8220;pure&#8221; GPT with a conventional protective MBR.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>o<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Print protective MBR data. You can see a summary of the protective MBR\u2019s partitions with this option. This may enable you to spot glaring problems or help identify the partitions in a hybrid MBR.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>p<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Print the partition table. This option is identical to the \u2019p\u2019 option in the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>q<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Quit without saving changes. This option is identical to the \u2019q\u2019 option in the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>r<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Enter the recovery &#038; transformations menu. This option is identical to the \u2019r\u2019 option on the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>s<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Resize partition table. The default partition table size is 128 entries. Officially, sizes of less than 16KB (128 entries, given the normal entry size) are unsupported by the GPT specification; however, in practice they seem to work, and can sometimes be useful in converting MBR disks. Larger sizes also work fine. OSes may impose their own limits on the number of partitions, though.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>t<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Swap two partitions\u2019 entries in the partition table. One partition may be empty. For instance, if partitions 1\u22124 are defined, transposing 1 and 5 results in a table with partitions numbered from 2\u22125. Transposing partitions in this way has no effect on their disk space allocation; it only alters their order in the partition table.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>u<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Replicate the current device\u2019s partition table on another device. You will be prompted to type the new device\u2019s filename. After the write operation completes, you can continue editing the original device\u2019s partition table. Note that the replicated partition table is an exact copy, including all GUIDs; if the device should have its own unique GUIDs, you should use the <b>f<\/b> option on the new disk.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>v<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Verify disk. This option is identical to the \u2019v\u2019 option in the main menu.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>z<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Zap (destroy) the GPT data structures and exit. Use this option if you want to repartition a GPT disk using <b>fdisk<\/b> or some other GPT\u2212unaware program. You\u2019ll be given the choice of preserving the existing MBR, in case it\u2019s a hybrid MBR with salvageable partitions or if you\u2019ve already created new MBR partitions and want to erase the remnants of your GPT partitions. <i>If you\u2019ve already created new MBR partitions, it\u2019s conceivable that this option will damage the first and\/or last MBR partitions!<\/i> Such an event is unlikely, but could occur if your new MBR partitions overlap the old GPT data structures.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>?<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Print the menu. This option (or any unrecognized entry) displays a summary of the menu options.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">In many cases, you can press the Enter key to select a default option when entering data. When only one option is possible, <b>gdisk<\/b> usually bypasses the prompt entirely.<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Known bugs and limitations include:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\"><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">The program compiles correctly only on Linux, FreeBSD, Mac OS X, and Windows. Linux versions for x86\u221264 (64\u2212bit), x86 (32\u2212bit), and PowerPC (32\u2212bit) have been tested, with the x86\u221264 version having seen the most testing. Under FreeBSD, 32\u2212bit (x86) and 64\u2212bit (x86\u221264) versions have been tested. Only 32\u2212bit versions for Mac OS X and Windows have been tested by the author, although I\u2019ve heard of 64-bit versions being successfully compiled.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>The FreeBSD version of the program can\u2019t write changes to the partition table to a disk when existing partitions on that disk are mounted. (The same problem exists with many other FreeBSD utilities, such as <b>gpt<\/b>, <b>fdisk<\/b>, and <b>dd<\/b>.) This limitation can be overcome by typing <b>sysctl kern.geom.debugflags=16<\/b> at a shell prompt.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>The fields used to display the start and end sector numbers for partitions in the \u2019p\u2019 command are 14 characters wide. This translates to a limitation of about 45 PiB. On larger disks, the displayed columns will go out of alignment.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>In the Windows version, only ASCII characters are supported in the partition name field. If an existing partition uses non\u2212ASCII UTF\u221216 characters, they\u2019re likely to be corrupted in the \u2019i\u2019 and \u2019p\u2019 menu options\u2019 displays; however, they should be preserved when loading and saving partitions. Binaries for Linux, FreeBSD, and OS X support full UTF-16 partition names.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>The program can load only up to 128 partitions (4 primary partitions and 124 logical partitions) when converting from MBR format. This limit can be raised by changing the <i>#define MAX_MBR_PARTS<\/i> line in the <i>basicmbr.h<\/i> source code file and recompiling; however, such a change will require using a larger\u2212than\u2212normal partition table. (The limit of 128 partitions was chosen because that number equals the 128 partitions supported by the most common partition table size.)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Converting from MBR format sometimes fails because of insufficient space at the start or (more commonly) the end of the disk. Resizing the partition table (using the \u2019s\u2019 option in the experts\u2019 menu) can sometimes overcome this problem; however, in extreme cases it may be necessary to resize a partition using GNU Parted or a similar tool prior to conversion with <b>gdisk<\/b>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>MBR conversions work only if the disk has correct LBA partition descriptors. These descriptors should be present on any disk over 8 GiB in size or on smaller disks partitioned with any but very ancient software.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>BSD disklabel support can create first and\/or last partitions that overlap with the GPT data structures. This can sometimes be compensated by adjusting the partition table size, but in extreme cases the affected partition(s) may need to be deleted.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Because of the highly variable nature of BSD disklabel structures, conversions from this form may be unreliable \u2212\u2212 partitions may be dropped, converted in a way that creates overlaps with other partitions, or converted with incorrect start or end values. Use this feature with caution!<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>*<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Booting after converting an MBR or BSD disklabel disk is likely to be disrupted. Sometimes re\u2212installing a boot loader will fix the problem, but other times you may need to switch boot loaders. Except on EFI\u2212based platforms, Windows through at least Windows 7 doesn\u2019t support booting from GPT disks. Creating a hybrid MBR (using the \u2019h\u2019 option on the recovery &#038; transformation menu) or abandoning GPT in favor of MBR may be your only options in this case.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Primary author: Roderick W. Smith (rodsmith@rodsbooks.com)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Contributors:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">* Yves Blusseau (1otnwmz02@sneakemail.com)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">* David Hubbard (david.c.hubbard@gmail.com)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">* Justin Maggard (justin.maggard@netgear.com)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">* Dwight Schauer (dschauer@gmail.com)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">* Florian Zumbiehl (florz@florz.de)<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cfdisk<\/b>(8), <b>cgdisk<\/b>(8), <b>fdisk<\/b>(8), <b>mkfs<\/b>(8), <b>parted<\/b>(8), <b>sfdisk<\/b>(8), <b>sgdisk<\/b>(8), <b>fixparts<\/b>(8).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>http:\/\/en.wikipedia.org\/wiki\/GUID_Partition_Table<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>http:\/\/developer.apple.com\/technotes\/tn2006\/tn2166.html<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>http:\/\/www.rodsbooks.com\/gdisk\/<\/i><\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>gdisk<\/b> command is part of the <i>GPT fdisk<\/i> package and is available from Rod Smith.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  gdisk \u2212 Interactive GUID partition table (GPT) manipulator <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,687,4],"class_list":["post-3566","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-gdisk","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3566"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3566\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}