1.检查磁盘是否已被系统识别到,连接无问题
root@feiniu:~# fdisk -l
Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Fanxiang S500 256GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
root@feiniu:~# fdisk -l /dev/sdb
Disk /dev/sdb: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: WDC WD40EFZX-68A
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
2.检查是否已被挂载(为空就是没有)
root@feiniu:~# mount | grep /dev/sdb
3.显示后进行安装工具
root@feiniu:~# sudo apt-get update
root@feiniu:~# sudo apt-get install ntfs-3g
4.使用命令格式化(格式化失败)
root@feiniu:~# sudo mkntfs /dev/sdb
Failed to set locale, using default 'C'.
/dev/sdb is entire device, not just one partition.
Refusing to make a filesystem here!
5.使用强制格式化(等待完成即可)
root@feiniu:~# sudo mkntfs -F /dev/sdb
Failed to set locale, using default 'C'.
/dev/sdb is entire device, not just one partition.
mkntfs forced anyway.
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 1%