Score:1

How can I check if adding noatime to /etc/fstab was effective?

in flag

To prevent my SSD from unnecessary write accesses, I entered noatime under the mount options in /etc/fstab for the system and home partitions:

UUID=bla-bla-bla-1 /       ext4  errors=remount-ro,noatime 0 1
UUID=bla-bla-bla-2 /home   ext4  defaults,noatime          0 2

After that I rebooted.

Now I am surprised that the command

find . * -atime -0,01 -type f -printf "%TY-%Tm-%TdT%TT %p\n" | sort -r | ssed -R 's/^([^.]+)\.\d+ (.*)$/\1 \2/'

which I use occasionally to check which files have been accessed within the last approx. 1/4 hour, still works. On the one hand this is pleasing, but on the other hand I fear that noatime has not taken effect after all.

How can I check this?

sudodus avatar
jp flag
Check what is mounted now, and how it is mounted with `mount|grep '^/dev'`
in flag
Thanks, great! It shows me `(rw,noatime,errors=remount-ro) ` for the first one and `(rw,noatime)` for my home partition! But how can my command show files by atime any longer?
sudodus avatar
jp flag
I think the information is there, but it is not updated, which reduces the number of writes to the memory cells (which is important on pendrives and memory cards with cheap hardware with a low average number of writes to failure). Today new SSDs can stand a lot of writes, I don't think you need noatime on a modern SSD.
in flag
Thank you for the explanation.
Score:4
cn flag

Type

mount | grep noatime

and will list all mountpoints with noatime in use. These 2 show relatime and you should see noatime next to your mountpoint.

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.