问题:WARNING:The size of this disk is 4.0 TB (3999721580032 bytes).DOS partition table format can notWARNING:The size of this disk is 2.2 TB (2199023255552 bytes).DOS partition table format can not be used on drives for volumeslarger than 2.2 TB (2199023255040 bytes).Use parted(1) and GUID partition table format (GPT)
译者注:磁盘大小是4TB。DOS分区表格式不能在超过2TB(512个字节的扇区)的卷上使用。请使用parted命令和GUID分区表格式(GPT) 答案是:使用parted命令。如果你的系统上没有parted,请安装它吧!
解决方法:参考https://zhuanlan.zhihu.com/p/574643088;https://zhuanlan.zhihu.com/p/574643088
sudo parted /dev/sdb
打印
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
打印
Model: ATA TOSHIBA HDWD260 (scsi)
Disk /dev/sdb: 6001GB
Sector size (logical/physical): 512B/4096B
Partition Table:
Disk Flags:
Number Start End Size File system Name Flags
输入
mklabel GPT
输入
mkpart primary n1% n2% ###进行分区,如果只分一个区:mkpart primary 0% 100%;如果分两个:mkpart primary 0% 60% mkpart primary 61% 100%
分区完quit退出即可
格式化分区
mkfs.ext4 /dev/sdb1
挂载
sudo mount -t ext4 /dev/sdb1 /mnt/public
查看
df -l