1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| wujianjun@wujianjun-work:~$ lsblk #查看硬盘分区及容量情况 wujianjun@wujianjun-work:~$ fdisk /dev/sdb Welcome to fdisk (util-linux 2.37.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): e Partition number (1-4, default 1): First sector (2048-3907029167, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-3907029167, default 3907029167):
Created a new partition 1 of type 'Extended' and of size 1.8 TiB.
Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. wujianjun@wujianjun-work:~$ mkfs -t ext4 /dev/sdb1 #对新区进行格式化
|