# 使用命令n创建一个新的分区,并将剩余磁盘空间分配给该分区,我这里是sda4 sudo fdisk /dev/sda Welcome to fdisk (util-linux 2.34). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
GPT PMBR size mismatch (41943039 != 83886079) will be corrected by write.
Command (m forhelp): n Partition number (4-128, default 4): 4 First sector (41940992-83886046, default 41940992): Last sector, +/-sectors or +/-size{K,M,G,T,P} (41940992-83886046, default 83886046):
Created a new partition 4 of type'Linux filesystem' and of size 20 GiB.
Command (m forhelp): w The partition table has been altered. Syncing disks.