Fsck Root Filesystem The fsck command is used to check and repair filesystems on Unix and Linux systems. The root filesystem is the main filesystem on a system and is typically mounted at /.
Can you run fsck on a mounted filesystem?
no Do not run fsck directly on a file system or on a mount. fsck was used for additional verification and file recovery on Linux systems. Running fsck on a mounted filesystem usually results in disk corruption and/or important information.
When to run fsck on the affected filesystem?
If errors in the filesystem prevent a reboot, you should run fsck on a dismounted filesystem. If there are a lot of errors, you can type y for hours.
When to use fsck command to check and repair filesystem?
When You Need Help Using fsck with Red Hat You can use the fsck tool in several situations: Your system. A common problem that fsck can diagnose is when the platform won’t start.
How to use fsck to check filesystem in Linux?
# fsck -ful /dev/sda6 fsck util-linux 2.20.1 e2fsck 1.42 (November 29, 2011) /dev/sda6 contains buggy software executable, forced check. Pass 1: checking inodes, blocks, and parameters. Inode 2060353 is an unknown application type mode with number 0137642, but this situation looks like a pretty good reliable directory.
What kind of filesystem does fsck work on?
Other available file systems include fsck_msdos, which runs on the FAT file system; fsck_exfat, which scans ExFAT filesystems; and fsck_udf, which seems to be found on UDF filesystems. 4. fsck will almost certainly scan the filesystem or attempt to repair any corruption it finds.
Can You fsck a read only filesystem?
You can very well check a read-only filesystem because a read-only mount doesn’t actually mark it as dirty the way a read-only mount does. There aren’t really any changes to a single write cache, and most of the time some of it is flushed to disk, so many on-disk structures are consistent and thus safe for fsck to modify.
How to force fsck to check the filesystem?
The simplest idea is to use fsck to force a filesystem check with a root partition, for example. /dev/sda1 will create an empty file, medically called forcefsck, in the partition’s phone root directory. # /forcefsck touch This empty report will temporarily replace all the others and force fsck to check my file system the next time the loop restarts.

Vijay is a tech writer with years of experience in the Windows world. He’s seen it all – from simple problems to catastrophic system failures. He loves nothing more than helping people fix their PCs, and he’s always happy to share his wisdom with anyone who needs it.
When Vijay isn’t fixing Windows problems, he likes to spend time with his wife and two young children. He also enjoys reading, playing cricket, and watching Bollywood movies.