2

Asides from viewing dmesg logs, does mount keep any records of when a partition has been mounted? perhaps viewing the ctime of the mount target? Does anyone have a definitive command for that?

1 Answer 1

2

The system tools for the filesystem you're using should be able to help you with that.

For example with ext2 / ext3 / ext4 there's dumpe2fs:

$ sudo dumpe2fs -h /dev/sda1 | grep 'Last mount time' Last mount time: Mon Apr 18 18:13:05 2016 

(where /dev/sda1 is the partition you're interested in)

1
  • Nice! that works. My problem involves finding information about a cifs mount which doesn't appear work with dumpe2fs. Commented Apr 21, 2016 at 13:37

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.