LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Tune2fs says volume is clean but does that mean zero errors (https://www.linuxquestions.org/questions/linux-server-73/tune2fs-says-volume-is-clean-but-does-that-mean-zero-errors-4175611365/)

anon091 08-05-2017 07:44 AM

Tune2fs says volume is clean but does that mean zero errors
 
Tune2fs says a big volume I have is "clean" but does that mean there are absolutely no issues at all and it doesn't need to be fsck'd to clean up even minor things, or is it more it hasn't hit an error threshold to flip it to dirty?

hydrurga 08-05-2017 01:08 PM

The superblock s_state field essentially shows whether or not the filesystem was cleanly unmounted.

According to man tune2fs:

Quote:

If you are using journaling on your filesystem, your filesystem will never be marked dirty.
This is because journaling can usually recover a system that has been incorrectly shut down.

Also, the man entry states:

Quote:

Bad disk drives, cables, memory, and kernel bugs could all corrupt a filesystem without marking the filesystem dirty or in error.
So, "clean" in this case does not mean that errors do not exist.

anon091 08-07-2017 07:33 AM

Thanks for the help, and settling an argument :)


All times are GMT -5. The time now is 09:22 AM.