[root@tanghuimin ~]# gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): FB42D8BC-9B54-4B3B-A16C-A39A39B902FF
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2029 sectors (1014.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 907141119 432.6 GiB 0700
2 907141120 948101119 19.5 GiB 0700
3 948101120 968581119 9.8 GiB EF00
4 968581120 976773119 3.9 GiB 8200
Command (?
for help): d
Partition number (1-4): 1
Command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): FB42D8BC-9B54-4B3B-A16C-A39A39B902FF
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 907141101 sectors (432.6 GiB)
Number Start (sector) End (sector) Size Code Name
2 907141120 948101119 19.5 GiB 0700
3 948101120 968581119 9.8 GiB EF00
4 968581120 976773119 3.9 GiB 8200
Command (?
for help): n
Partition number (1-128, default 1):
First sector (34-976773134, default = 2048) or {+-}size{KMGTP}:
Last sector (2048-907141119, default = 907141119) or
{+-}size{KMGTP}: 326G
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to 'Linux filesystem'
Command
(? for help): w
Final checks complete. About to write GPT data. THIS WILL
OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.