fsck

Check the integrity of a filesystem or repair it. The filesystem should be unmounted at the time the command is run. More information: <https://manned.org/fsck>.

Install

All systems
curl cmd.cat/fsck.sh
Debian Debian
apt-get install util-linux
Ubuntu
apt-get install util-linux
Alpine
apk add util-linux
Arch Arch Linux
pacman -S util-linux
image/svg+xml Kali Linux
apt-get install util-linux
CentOS
yum install util-linux
Fedora
dnf install util-linux
Windows (WSL2)
sudo apt-get update sudo apt-get install util-linux
OS X
brew install util-linux
Raspbian
apt-get install util-linux
Docker
docker run cmd.cat/fsck fsck powered by Commando

Check the integrity of a filesystem or repair it. The filesystem should be unmounted at the time the command is run. More information: <https://manned.org/fsck>.

  • Check filesystem `/dev/sdXN`, reporting any damaged blocks:
    sudo fsck /dev/sdXN
  • Check filesystem `/dev/sdXN`, reporting any damaged blocks and interactively letting the user choose to repair each one:
    sudo fsck -r /dev/sdXN
  • Check filesystem `/dev/sdXN`, reporting any damaged blocks and automatically repairing them:
    sudo fsck -a /dev/sdXN

© tl;dr; authors and contributors