xfs_ncheck command not found

In this troubleshooting guide we learn how to fix xfs_ncheck command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

xfs_ncheck: command not found

or when using sudo you get the following error message

sudo: xfs_ncheck: command not found

Solutions to xfs_ncheck: command not found

How To Fix xfs_ncheck: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xfs_ncheck is provided by xfsprogs package.

xfsprogs is:

A set of commands to use the XFS filesystem, including mkfs.xfs.

XFS is a high performance journaling filesystem which originated on the SGI IRIX platform. It is completely multi-threaded, can support large files and large filesystems, extended attributes, variable block sizes, is extent based, and makes extensive use of Btrees (directories, extents, free space) to aid both performance and scalability.

Refer to the documentation at https://xfs.wiki.kernel.org/ for complete details.

To fix this problem, we can install more using the command below.

sudo apt-get -y install xfsprogs

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install xfsprogs.

sudo apt -y install xfsprogs

Or if you have aptitude installed you can use the following command.

sudo aptitude install xfsprogs

Summary

In this tutorial we learn how to fix xfs_ncheck command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.