Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 1825  / 2 Years ago, sat, july 30, 2022, 11:58:56

I have an Ubuntu 11.04 installation. The /home directory is on a partition
which uses the ext4 filesystem. I haven't changed the default configuration so
the filesystem is mounted at boot time with the defaults mount option. man mount explains which mount options the option defaults implies:
rw, suid, dev, exec, auto, nouser, and async.



I noticed that the access time (atime) of a file isn't updated every time I
access a file (for example with an editor or cat).



I looked around in the man page of mount and found the following option:





  • relatime: Update inode access times relative to modify or change time. Access time is only updated if the previous access time was earlier than the current modify or change time.




This is exactly the behaviour which I observe on my system. But the relatime
mount option is not enabled.



Is the behaviour described in the description of the relatime mount option the
default behaviour of atime? Does this apply to all filesystems which support
atime?


More From » mount

 Answers
5

From man mount:




Some of these options could be enabled or disabled by default in the system kernel. To check the current setting see the options in /proc/mounts.




cat /proc/mounts


Shows that relatime is an option for almost all filesystem mounted, but I can't say for sure if is a default for every filesystem that supports atime.


[#43540] Monday, August 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ongdiligenc

Total Points: 452
Total Questions: 111
Total Answers: 107

Location: Ukraine
Member since Sun, Dec 13, 2020
3 Years ago
;