fsck.f2fs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
fsck.f2fs: command not found
or when using sudo you get the following error message
sudo: fsck.f2fs: command not found
Solutions to fsck.f2fs: command not found
How To Fix fsck.f2fs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu fsck.f2fs is provided by f2fs-tools package.
f2fs-tools is:
F2FS is a new filesystem for Linux aimed at NAND flash memory-based storage devices, such as SSD, eMMC, and SD cards. It is based on Log-structured File System (LFS).
To fix this problem, we can install more using the command below.
sudo apt-get -y install f2fs-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install f2fs-tools.
sudo apt -y install f2fs-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install f2fs-tools
Summary
In this tutorial we learn how to fix fsck.f2fs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.