fsck
fsck
File System Consistency Check
This is like ChkDsk in windows
Tu use umount device.
pi@buster48:~$ sudo fsck /dev/sda1
fsck from util-linux 2.33.1
e2fsck 1.44.5 (15-Dec-2018)
usbdisk1: clean, 91538/61054976 files, 205448926/244190203 blocks
pi@buster48:~$ fsck --help
Usage: fsck [options] -- [fs-options] [<filesystem> ...]
Check and repair a Linux filesystem.
Options: -A check all filesystems -C [<fd>] display progress bar; file descriptor is for GUIs -l lock the device to guarantee exclusive access -M do not check mounted filesystems -N do not execute, just show what would be done -P check filesystems in parallel, including root -R skip root filesystem; useful only with '-A' -r [<fd>] report statistics for each device checked; file descriptor is for GUIs -s serialize the checking operations -T do not show the title on startup -t <type> specify filesystem types to be checked; <type> is allowed to be a comma-separated list -V explain what is being done
-?, --help display this help --version display version
Usage: fsck [options] -- [fs-options] [<filesystem> ...]
Check and repair a Linux filesystem.
Options: -A check all filesystems -C [<fd>] display progress bar; file descriptor is for GUIs -l lock the device to guarantee exclusive access -M do not check mounted filesystems -N do not execute, just show what would be done -P check filesystems in parallel, including root -R skip root filesystem; useful only with '-A' -r [<fd>] report statistics for each device checked; file descriptor is for GUIs -s serialize the checking operations -T do not show the title on startup -t <type> specify filesystem types to be checked; <type> is allowed to be a comma-separated list -V explain what is being done
-?, --help display this help --version display version