General File System check for linux

You can either use

fsck -fy  /dev/sda1

f - force

y - yes

/dev/sda1 - partition that I need to run file system check. This can be an LVM or a direct drive also.


e2fsck also does the same but not found in all linux distributions because e2fsck stands for file system check in ext family, while fsck is the general one which can be used on other file system types.

Comments

Popular posts from this blog

Logical volume vmxxxx_img is used by another device - Error on LVM removal

Open VZ cheat Sheet

Cheat sheet for Hardware RAID health check - Megaraid, Adaptec, 3wareraid and HPraid.