Reduce writes to your SSD on Linux by noatime

In order to prolong live of your SSD on Linux you could turn off writes on disk when files are being accessed. To do so enable noatime option in /etc/fstab.

Example

# /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>
/dev/mapper/vgxubuntu-root /               ext4    errors=remount-ro 0       1

Change last line to:

/dev/mapper/vgxubuntu-root /               ext4    errors=remount-ro,noatime 0       1

If you have more mount points, you can do it as well.

Apply changes

To apply changes without rebooting your system type mount for your mounting path:

$ mount -o remount /

Then type:

$ mount | grep noatime

To verify your changes.

Contents