對硬盤進行格式化:
# 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了