아래와 같이 GPT 에러가 발생할 경우 대처 방법입니다.

[에러]

root@kailink-XPS-15-9530:os# fdisk /dev/sdc

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

GPT PMBR size mismatch (25165823 != 1953525166) will be corrected by w(rite).
GPT PMBR size mismatch (25165823 != 1953525166) will be corrected by w(rite).

Command (m for help): w
GPT PMBR size mismatch (25165823 != 1953525166) will be corrected by w(rite).
fdisk: failed to write disklabel: 부적절한 인수


[해결방법]

root@kailink-XPS-15-9530:os# parted /dev/sdc
GNU Parted 3.2
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Warning: Not all of the space available to /dev/sdc appears to be used, you can fix the GPT to use all of the space (an extra 1928359343 blocks) or continue with the current setting? 
Fix/Ignore? F                                                             
Model: Seagate USB 3.0 Cable (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                  Flags
 1      1049kB  106MB   105MB   fat16        EFI System Partition  boot, esp
 2      106MB   525MB   419MB   ext4         Linux filesystem
 3      525MB   2622MB  2097MB               Linux swap
 4      2622MB  12.5GB  9857MB  ext4         Linux filesystem

(parted) quit


[확인하기]

root@kailink-XPS-15-9530:os# fdisk /dev/sdc

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/sdc: 931.5 GiB, 1000204885504 bytes, 1953525167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 86E515FD-0958-4B42-A67B-6091C5D792BA

Device       Start      End  Sectors  Size Type
/dev/sdc1     2048   206847   204800  100M EFI System
/dev/sdc2   206848  1026047   819200  400M Linux filesystem
/dev/sdc3  1026048  5122047  4096000    2G Linux swap
/dev/sdc4  5122048 24373247 19251200  9.2G Linux filesystem


Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.