Sunday, 5 August 2018

linux - Finding out the time a filesystem was last mounted


I want to find out the last time a filesystem was mounted on Linux (Debian). Any help?



Answer



Update: well that was too easy


$ sudo tune2fs -l /dev/sda1
tune2fs 1.41.11 (14-Mar-2010)
Last mounted on: /
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 7028736
Filesystem created: Sat Nov 14 20:49:49 2009
Last mount time: Wed Jun 9 18:19:42 2010
Last write time: Thu Jun 3 09:38:18 2010
Mount count: 20
Maximum mount count: 32

and tune2fs handles ext4 partitions too, I just don't have one handy.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...