Ubuntu install on SSD: How to edit /etc/fstab

Terminal:

sudo gedit /etc/fstab

 

add mounting options noatime,nodiratime,discard to the mount point root(/) and other partitions on SSD
UUID=xxxx-xxxx / ext4 noatime,nodiratime,discard,errors=remount-ro 0 1

I don’t look at log, so I configure all logs get written to RAM disk.

tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /home/jack/.cache tmpfs defaults,size=512M 0 0