Results 1 to 3 of 3

Thread: Mounting snaps and others with noatime on an SSD

  1. #1
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,288
    Distro
    Ubuntu

    Question Mounting snaps and others with noatime on an SSD

    I have an SSD. To reduce wear (and, I believe, to improve response times), I mount my file systems with noatime instead of the default relatime. That includes /boot, /boot/efi, and root, which is on LUKS.

    I've noticed, however, that all of the other file systems are mounted with relatime. This includes the many snaps. For example:
    Code:
    /var/lib/snapd/snaps/vlc_2344.snap on /snap/vlc/2344 type squashfs (ro,nodev,relatime,x-gdu.hide)
    Wouldn't it be better for me to remount them as noatime? For example:
    Code:
    mount --options=remount,noatime /snap/vlc/2344
    Or, maybe there's a way to change the default for snaps, so that they load as noatime in the first place?

    There are also pseudo file systems such as cgroup, FUSE, and so forth, but I suspect that they are all RAM file systems and therefore unimportant to change; please correct me if I'm wrong.

    What is your opinion — should I bother with this? Or am I fussing about something trivial?
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

  2. #2
    Join Date
    Apr 2007
    Beans
    3,141
    Distro
    Ubuntu

    Re: Mounting snaps and others with noatime on an SSD

    Unless I am wrong, these file systems are mounted read only anyway, so writing will not occur even with the relatime option. So you should not worry with respect to "wear" of the ssd. Whether the system does not attempt to write access times at all, or just fails because the system is ro, is another question. If the system does attempt to write, it would be better to have a noatime option, else it does not matter in any way (although still it may not make any noticeable difference for practical purposes).

  3. #3
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,288
    Distro
    Ubuntu

    Re: Mounting snaps and others with noatime on an SSD

    Quote Originally Posted by vanadium View Post
    Unless I am wrong, these file systems are mounted read only anyway…
    You are right!

    I missed that.

    Thank you for pointing what should have been the obvious 😳
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •