System Management

An administrator must reformat /dev/sdd1, which holds an old ext4 filesystem that is no longer needed, as XFS. Running mkfs.xfs /dev/sdd1 stops with a message that an existing filesystem was found. Which command creates the XFS filesystem over it?

Show the answer

Correct answerC. mkfs.xfs -f /dev/sdd1

mkfs.xfs -f forces creation of a new XFS filesystem over an existing signature. mkfs.ext4 -F also forces overwriting, but it would create ext4 rather than XFS. xfs_repair and xfs_growfs act only on existing XFS filesystems.