问题一:创建分区时报错
Re-reading the partition table failed.: Device or resource busy
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
问题二:格式化时报错
/dev/sdc1 is mounted; will not make a filesystem here!
sudo mkfs.ext4 /dev/sdc1
mke2fs 1.42.13 (17-May-2015)
/dev/sdc1 contains a ext4 file system
last mounted on /home/data on Thu Oct 31 16:30:41 2019
Proceed anyway? (y,n) y
/dev/sdc1 is mounted; will not make a filesystem here!
解决办法:卸载挂载
命令:
umount /dev/sdc1
然后重新分区、格式化即可;