Avoid hard drives spinning up by writing file access times

Aus wiki.frank-wulf.de
Zur Navigation springen Zur Suche springen

It looks like some directories like lost+found are accessed on a regular basis. This can result in unwanted spinning ups of sleeping hard drives, because file access times are written to the drives even when files/directories are only read.

To avoid this behaviour the hard drive can be mounted using "noatime" parameter in file /etc/fstab.

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system>                                 <mount point>   <type>  <options>               <dump>  <pass>
UUID=baf190b5-71ae-4c5b-b171-ce01c8a2c44f       /               ext4    errors=remount-ro       0       1
UUID=cca60f8e-245a-4408-9892-76816641582e       none            swap    sw                      0       0
# Backup Disk 1
#UUID=b226cecb-a2e8-4869-ab6d-fa835d3125c6      /srv/backup     ext4    defaults                0       0
# Backup Disk 2
#UUID=16f9d7f6-5298-425d-909b-01523df0ff67      /srv/backup     ext4    defaults                0       0
# Backup Disk 3 (installed 2023-08-01)
UUID=e581fe6d-ce7a-40a5-a57f-0c51cd72d636       /srv/backup     ext4    defaults,noatime        0       0
UUID=3f618a06-971e-4fcf-aa8a-baa1e08d93e6       /srv/data       ext4    defaults                0       0
UUID=a3b4ca89-4ca1-49d5-96d5-b32d65d5fa07       /srv/nas        ext4    defaults                0       0
UUID=f3303f64-d334-4439-ae63-d5f7831e9937       /srv/cloud-data ext4    defaults                0       0