Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 3 down vote accepted

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.

share|improve this answer
This works only for ext* and requires root privilege. I'm looking for this answer but for anykind of FS (local, NFS, etc). – Benoît Oct 9 '13 at 10:30
@Benoît then you should probably ask a new question instead of commenting on a answer from 3 years ago. – msw Oct 9 '13 at 13:28

I've just found a way for NFS by reading /proc/self/mountstats (or any other PID). It gives the age in seconds:

device mounted on /mnt/HOME with fstype nfs statvers=1.1
    age:    1047998
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.