Ubuntu – Last access timestamp updated every 24 hours

datefilestimestamp

The last access timestamp of my files is updated every 24 hours whenever I access an files. E.g. I type "ls" and if the last access timestamp of the file is older than 24 it is updated to the current date.

Has anyone else the same phenomenon and any idea what is causing it. I have a SSD, perhaps it is related to this.

Best Answer

If you have a SSD, the relatime mount option is automatically set. Here is what it does (source):

Relatime maintains atime data, but not for each time that a file is accessed. With this option enabled, atime data is written to the disk only if the file has been modified since the atime data was last updated (mtime), or if the file was last accessed more than a certain length of time ago (by default, one day).

Try changing relatime to noatime in your /etc/fstab file to confirm the reason for these updates.

Related Question