对硬盘进行格式化:

# mkfs.xfs /dev/sdb1  

系统显示:

 mkfs.xfs error: 

command not found. 

 

可能是系统不完全安装

 

运行 which mkfs  查看mkfs的命令目录

# which mkfs

/sbin/mkfs

 

 

查看目录 

# ls -la /sbin/mkfs*
-rwxr-xr-x. 1 root root  10336 8月   6 2013 /sbin/mkfs
-rwxr-xr-x. 1 root root  26208 8月   6 2013 /sbin/mkfs.cramfs
-rwxr-xr-x. 5 root root  68960 8月  13 2013 /sbin/mkfs.ext2
-rwxr-xr-x. 5 root root  68960 8月  13 2013 /sbin/mkfs.ext3
-rwxr-xr-x. 5 root root  68960 8月  13 2013 /sbin/mkfs.ext4
-rwxr-xr-x. 5 root root  68960 8月  13 2013 /sbin/mkfs.ext4dev
lrwxrwxrwx. 1 root root      7 9月   2 18:06 /sbin/mkfs.msdos -> mkdosfs
lrwxrwxrwx. 1 root root      7 9月   2 18:06 /sbin/mkfs.vfat -> mkdosfs

 

发现没有 mkfs.xfs

需要安装  xfsprogs  rpm包

 #yum -y install xfsprogs

 

就ok了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
猜你喜欢
  • 2022-01-15
  • 2022-01-10
  • 2021-12-04
  • 2021-09-08
  • 2021-10-23
相关资源
相似解决方案