Linux Command Cheat Sheet/Check filesystem

Check and repair a filesystem.

Section: Storage Partitions and LVM

Check filesystem

bash
bash
sudo fsck -f /dev/sdb1
Explanation

Run on unmounted filesystems when possible.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Storage Partitions and LVM
Print working directory
Show the current absolute path.
OpenIn sheetbash1 tag match
List directory contents
List files and directories.
OpenIn sheetbash1 tag match
Copy files recursively
Copy files or directories.
OpenIn sheetbash1 tag match
Move or rename file
Move or rename a file or directory.
OpenIn sheetbash1 tag match
Show directory tree
Display a recursive tree of files and directories.
OpenIn sheetbash1 tag match
Remove file
Delete a file.
OpenIn sheetbash1 tag match