6.3 Formatting the Unallocated Disk Partition
In order to make the new partition suitable for use by Ubuntu, it needs to have a file system created on it. The recommended file system type for the current release of Ubuntu is XFS which will be covered in greater detail in the chapter entitled “Adding a New Disk Drive to an Ubuntu System”. Creation of the file system is performed using the mkfs.xfs command as follows (installing the xfsprogs package if necessary):
# apt install xfsprogs
# mkfs.xfs /dev/sda1
meta-data=/dev/sda1 isize=512 agcount=4, agsize=1867776 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=0, rmapbt=0, reflink=0
data = bsize=4096 blocks=7471103, imaxpct=25
...