LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-08-2009, 03:56 AM   #1
meshcurrent
Member
 
Registered: Oct 2002
Posts: 38

Rep: Reputation: 15
File System Creation Time


I am trying to determine the date/time a file system was created. In particular, I am interested in ReiserFS and JFS. Initially, I considred using the ctime as an indicator, but it turned out not to be a reliable one. Then, I looked into the debugreiserfs and jfs_debugfs utilities, but they did not seem to be able to obtain that information.

Any suggestions are appreciated.

Youssef Eldakar
Bibliotheca Alexandrina
 
Old 02-08-2009, 06:40 AM   #3
meshcurrent
Member
 
Registered: Oct 2002
Posts: 38

Original Poster
Rep: Reputation: 15
Thank you for the link with information on ctime, mtime, and atime, which explains how it is not possible to tell when a file was created in Unix. However, I am trying to determine when a file system, not a file, was created.

Youssef Eldakar
Bibliotheca Alexandrina
 
Old 02-08-2009, 07:03 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
I didn't see a date entry using "udevinfo -q all -n /dev/sda1" or using "sudo /usr/sbin/hwinfo --block". Perhaps some filesystems have a date stamp in the structure, but it would depend on the filesystem.

In ext3, I think the only date used is the last time checked.
 
Old 02-08-2009, 07:29 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Quote:
Originally Posted by meshcurrent View Post
I am trying to determine when a file system, not a file, was created.
ROTFL. Short read there, my apologies. ReiserFS and XFS I don't know about, but listing the superblock contents in ExtFS (debugfs, tune2fs) shows a "Filesystem created" entry. I doubt it's worth much though (as in "forensically irrefutable").

Last edited by unSpawn; 02-08-2009 at 07:30 AM.
 
Old 02-08-2009, 11:46 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Did you use dumpe2fs?

I should have looked for that.
Code:
...
Filesystem created:       Wed Dec  3 01:05:02 2008
Last mount time:          Tue Jan 13 07:13:29 2009
Last write time:          Tue Jan 13 07:13:29 2009
...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
file creation time dina3e Linux - Newbie 2 03-25-2008 12:45 PM
how to find time of file creation of a given file??? raklo Linux - General 4 08-13-2007 05:28 AM
File Creation Time? enine Linux - General 9 05-17-2006 11:46 AM
list file creation time allelopath Linux - General 2 08-02-2005 09:02 PM
Time of creation of a file proxyserver Linux - Software 2 04-11-2004 10:29 AM


All times are GMT -5. The time now is 06:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration