Creating a file system

Solution 1:

The mkfs program should be at /sbin/mkfs under Ubuntu; however it calls filesystem-specific subprograms depending on the -t < type > parameter e.g. mkfs.ext3, mkfs.ext4 and so on. In the case of xfs, that program (mkfs.xfs) is not installed by default but should be part of the xfsprogs package - so you probably need to install that, either via your favorite GUI package manager or

sudo apt-get install xfsprogs