Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

Fix broken ext4 partitions

Boot from a live distribution like ubuntu (

fsck.ext4 -cDfty -C 0 /dev/sda

Note: Replace “sda” with your harddrive.

-c check for bad sector check
-D optimize directories if possible
-f force check
-t print timing stats
-y assume answer "yes" to all questions
-C 0 print progress info to stdout


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.