GPT Disk Partitioning Tool
The gdisk command is an interactive GUID Partition Table (GPT) manipulator. It's designed for working with GPT partition tables, which are the modern replacement for the older MBR (Master Boot Record) partition scheme. GPT supports larger disks, more partitions, and provides better data integrity.
| Option | Description |
|---|---|
-l |
List partition tables and exit |
-i |
Show detailed partition information |
-o |
Clear out all partition data |
-g |
Convert MBR to GPT and exit |
-m |
Convert GPT to MBR and exit |
-A |
Show attributes for all partitions |
Once inside gdisk, you can use these single-letter commands:
| Command | Description |
|---|---|
p |
Print partition table |
n |
Create new partition |
d |
Delete partition |
t |
Change partition type |
i |
Show detailed partition information |
w |
Write changes and exit |
q |
Quit without saving changes |
? |
Show help menu |