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...]

Force FSCK on Reboot

Scenario / Question: How do I force a fsck on the file system Solution / Answer: To force fsck that is used to check and repair Linux file systems. Fsck should always be run on unmounted file system. By invoking fsck while the system is starting or booting like on a reboot, you can ensure that [continue...]