What command can tell me the last time that a filesystem was fsck'd? A date would be nice, but I'd settle for the mount count since the last fsck.
I've looked all around for this in fsck*, lsattr, and stat, and I don't see it.
What command can tell me the last time that a filesystem was fsck'd? A date would be nice, but I'd settle for the mount count since the last fsck.
I've looked all around for this in fsck*, lsattr, and stat, and I don't see it.
tune2fs -l gives you that information for ex.
sudo tune2fs -l /dev/sda1 | grep "Last checked"
You can use tune2fs to get the information
Similarly you can get the mount count
Apart from
tune2fs -l
,dumpe2fs
will also give you this information:Thanks everyone! And for reiserfs I found that
debugreiserfs
shows the mount count and last fsck run date.if one uses lvm
will fail with:
one will have to do like this: