mount -o remount,ro,noatime
As the title says - if the filesystem is actually read-only, does noatime have any affect?
mount -o remount,ro,noatime
As the title says - if the filesystem is actually read-only, does noatime have any affect?
Short answer: No.
If the filesystem is mounted read-only, then the kernel module should be sufficiently smart to not even think about writing atime entries for accessed files, because that would constitute a ... write, which is verboten by the read-only status.
No, read only means read only, if you told it to not write to it it will not write access times to it.
For more information, see man fstab.
Possibly. Depending on the filesystem.
Actually things here are much more interesting and odd than you might think.
...
Mounting your NFS filesystems with noatime will reduce the number of NFS requests you make to the server.
https://utcc.utoronto.ca/~cks/space/blog/linux/NFSReadonlyAtime
As you didn't specify an os.
I know that on certain systems ro mounted filesystem will still update the atime, unless you specify the noatime option.
Ro only means the user cant write not that the fs can't write.
So better safe than sorry.