LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   e2fsck: checking number of days since last backup (https://www.linuxquestions.org/questions/linux-server-73/e2fsck-checking-number-of-days-since-last-backup-4175438560/)

CHIhost-Corey 11-24-2012 12:48 PM

e2fsck: checking number of days since last backup
 
Hello, I'm looking for a way to determine the number of days since a drive was last scanned with e2fsck. I'm assuming it keeps a variable somewhere and tracks the days there (since it outputs the number of days since the last check when you run a scan), but does anyone know where that variable can be accessed? Thanks in advance!

druuna 11-24-2012 01:34 PM

Have a look at the output of:
Code:

dumpe2fs -h /dev/xyz
This is part of the output (one of my partitions):
Quote:

$ dumpe2fs -h /dev/sda2
.
.
Filesystem created: Sun May 20 14:03:42 2012
Last mount time: Sat Nov 24 09:35:35 2012
Last write time: Sat Nov 24 09:35:35 2012
Mount count: 11
Maximum mount count: 26
Last checked: Fri Nov 16 07:35:27 2012
Check interval: 15552000 (6 months)
Next check after: Wed May 15 08:35:27 2013
.
.

CHIhost-Corey 11-26-2012 07:48 PM

Very helpful, thank you!


All times are GMT -5. The time now is 12:40 PM.