mkfs 用于在分区或设备上创建文件系统。
mkfs
示例 1:创建 ext4 文件系统
mkfs.ext4 /dev/sdb1
示例 2:创建 xfs 文件系统
mkfs.xfs /dev/sdb1
示例 3:创建 exFAT(适用于 USB)
mkfs.exfat /dev/sdc1