Welcome to fdisk (util-linux 2.39.3).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.The device contains 'ext4' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.Device does not contain a recognized partition table.Created a new DOS (MBR) disklabel with disk identifier 0x24d0d017.Command (m for help):
输入n,新建一块全新的磁盘
出现以下结果
Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions)Select (default p):
新建一个主分区即可,输入p
出现以下结果
Partition number (1-4, default 1):
回车选择默认选项即可
出现以下结果
First sector (2048-61439999, default 2048):
回车选择默认选项即可
出现以下结果
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-61439999, default 61439999):
新建一个主分区即可,输入+4G
出现以下结果
Created a new partition 1 of type 'Linux' and of size 4 GiB.