I have 2TB ext4 partition with half million files on it.
I want to check whether this partition contains any errors or not.
I don't want to search for bad blocks, only logical structure should be checked.
I have unmounted the partition and run
fsck /dev/sda2, but fsck returns immediately with exit code 0 without actually checking whole file system.
I'm expecting full partition check would take hours to complete.
I have read
man fsck but did not find an option for "thorough testing".
I'm afraid my partition may have some sectors accidentally overwritten by garbage data.
My HDD was previously connected to another OS, and ext4 partition may get harmed by wrong behavior of that OS.
That's why I want to be sure the whole tree structure is completely correct.
In other words, I want to perform a check similar to what utility
chkdsk.exe does on Windows.
What should I use on Debian to completely check ext4 file system?