How to check for bad blocks

Scenario / Question: How do I check my hard drive for bad blocks and if any bad blocks are found add them to the bad block inode to prevent them from being allocated in the future. Solution / Answer: Run fsck and have it run bad blocks program. This allows fsck to fix any bad blocks that are [continue...]

How should I run fsck on a Linux file system

Scenario / Question: I need to check file system for errors using fsck. Can I run fsck on a mounted file system ? Solution / Answer: Running fsck on a mounted file system can result in data corruption. The two options are: 1) Change the running state of the system to single user mode and [continue...]