How Do I Use Fsck in Linux?
Contents

How does fsck work Linux?

fsck checks that all the blocks marked as free are not claimed by any files. … The fsck program compares this count to the number of free blocks it finds within the file system. If the counts do not agree, fsck replaces the count in the superblock with the actual free-block count.

How do I use fsck root filesystem?

For 17.10 or older…

  1. boot to the GRUB menu.
  2. choose Advanced Options.
  3. choose Recovery mode.
  4. choose Root access.
  5. at the # prompt, type sudo fsck -f /
  6. repeat the fsck command if there were errors.
  7. type reboot.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest