Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Setting noatime on Debian 12
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Setting noatime on Debian 12

aliletalilet Member

I wanted to set noatime as I read it improves disk I/O performance. This is what sudo nano /etc/fstab showed:

UUID=0c93f6bc-ef9c-468d-be02-84b4a70d3678 /               xfs     defaults        0       0
# /boot/efi was on /dev/vda2 during installation
UUID=0BBB-E1CA  /boot/efi       vfat    umask=0077      0       1
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sr1        /media/cdrom1   udf,iso9660 user,noauto     0       0

I changed it to following and rebooted:

UUID=0c93f6bc-ef9c-468d-be02-84b4a70d3678 /               xfs     defaults        0       0
# /boot/efi was on /dev/vda2 during installation
UUID=0BBB-E1CA  /boot/efi       vfat    umask=0077      0       1
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto,noatime     0       0
/dev/sr1        /media/cdrom1   udf,iso9660 user,noauto,noatime     0       0

Did I do this right or do I also need to write noatime on lines which start with UUID?

Comments

  • just for your root.
    Not sure what good it'll do on your efi or cdrom mountpoints.

    Thanked by 1alilet
  • You are right. Didn't notice those are CDROMs. So the first entry is my root drive?

  • jsgjsg Member, Resident Benchmarker

    @alilet said:
    ... do I also need to write noatime on lines which start with UUID?

    Nothing to do with UUID. You should set it - after some reflection - on any/all partitions whose file's access times you deem not important.

    But careful! The whole story depends a lot on how you spread your system over partitions, e.g. /home /var/www and whatnot all on the root partition -vs- a root partition with only the "core" and typically written to/read from often on separate partitions. There are files and directories of which you do want atime info!

    Thanked by 1alilet
  • Yeah UUID=0c93f6bc-ef9c-468d-be02-84b4a70d3678 is your root partition.

    Thanked by 1alilet
Sign In or Register to comment.