LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-24-2012, 12:48 PM   #1
CHIhost-Corey
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
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!
 
Old 11-24-2012, 01:34 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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
.
.
 
Old 11-26-2012, 07:48 PM   #3
CHIhost-Corey
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Very helpful, thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Manipulate Date based on number of days? pinga123 Solaris / OpenSolaris 1 03-02-2012 02:05 PM
[SOLVED] looping thru input files with different number of days. btacuso Programming 8 11-03-2010 11:54 PM
[SOLVED] How to subtract two dates in a file to get number of days? btacuso Linux - Newbie 2 07-13-2010 11:33 AM
e2fsck is running for 3 days checking 800 GB ext3 lvm volume kyriakos Linux - Software 8 02-06-2006 02:21 PM
e2fsck: Bad magic number in super-block jamesdin Debian 3 04-25-2005 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration