Sunday, 8 November 2020

Optional: set noatime [for SSD]

 

Optional: set noatime

12. By setting "noatime", you disable the "access time stamp", that the operating system puts on a file whenever it's being read by the operating system. For an SSD "noatime" might be better, because it reduces the disk writes somewhat.

Although noatime doesn't make a big difference (which is why setting it has been labeled as optional), it has hardly any negative side effects: only in very rare use cases which almost nobody will ever encounter.

The easiest way to set noatime for your SSD, is this:

a. Launch a terminal window.
(You can launch a terminal window like this: *Click*)

b. Then use copy/paste for transferring the following line into the terminal (don't try to type it: a typo can have serious consequences!):

sudo sed -i 's/ errors=remount-ro/ noatime,errors=remount-ro/' /etc/fstab

Press Enter. Type your password when prompted. In Ubuntu this remains entirely invisible, not even dots will show when you type it, that's normal. In Mint this has changed: you'll see asterisks when you type. Press Enter again.

Note: Do you have a separate partition for /home? Then you need to execute this command as well (use copy/paste, don't type):

sudo sed -i 's/ defaults/ noatime,defaults/' /etc/fstab
Share:

0 comments:

Post a Comment