BASH 43
Reduce SSD Writes & Enable Drive Cache By mike on 28th March 2021 03:30:58 PM
  1. #  http://averagelinuxuser.com/30-things-to-do-after-installing-ubuntu-18-04-lts/
  2.  
  3. # Enable Drive Cache
  4. # Usually, the program waits until the data is written to the disk and it proceeds to the next step only after the write event. However, you can force your programs to cache the data and write it to the disk with some delay. For the purpose of enabling the hard drive cache, go to the menu and search for the Disks application and open it. Select the disk where Ubuntu is installed. Open the menu and select Drive settings. Then, go to the Write cache tab and enable it.
  5.  
  6. #Reduce SSD Writes
  7. # There are two things that are necessary for good performance and a longer lifespan of an SSD drive. The first thing is Trim and the second is to reduce write cycles. Ubuntu 18.04 already has trim enabled, so there’s no need to do anything. However, the write to SSD cycles is not reduced by default. But, there is an option to unable very easy. Execute in the terminal:
  8.  
  9. gedit admin:///etc/fstab
  10.  
  11. # Find your SSD partitions, likely it is the partition that has sda in its name. Find the right partitions based on their size. And add noatime before the word errors. But DON’T do it for the Swap partition. Example;
  12. #OLD: /dev/mapper/ubuntu--vg-root /               ext4    errors=remount-ro    0       1
  13. #NEW: /dev/mapper/ubuntu--vg-root /               ext4    noatime,errors=remount-ro    0       1

Hasta la pasta! is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.