$ sudo fdisk /dev/sda > m #(获取帮助) > print #(打印现状) Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 999423 997376 487M 83 Linux /dev/sda2 1001470 209713151 208711682 99.5G 5 Extended /dev/sda3 999424 1001469 2046 1023K 83 Linux /dev/sda5 1001472 209713151 208711680 99.5G 8e Linux LVM > n #(创建新分区) Partition type p primary (2 primary, 1 extended, 1 free) l logical (numbered from 5) Select (default p): p Selected partition 4 First sector (209713152-4294967295, default 209713152): Last sector, +sectors or +size{K,M,G,T,P} (209713152-4294967294, default 4294967294): +1.2T Created a new partition 4 of type 'Linux' and of size 1.2 TiB. > print #(打印现状) Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 999423 997376 487M 83 Linux /dev/sda2 1001470 209713151 208711682 99.5G 5 Extended /dev/sda3 999424 1001469 2046 1023K 83 Linux /dev/sda4 209713152 2776627199 2566914048 1.2T 83 Linux /dev/sda5 1001472 209713151 208711680 99.5G 8e Linux LVM > w #(写入保存退出)
若有红色报警
1
>The size of this disk is 2 TiB (2199023255552 bytes). DOS partition table format can not be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT).