Linux Lite Forums
Not enough expertise to enable TRIM - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Hardware - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=6)
+--- Forum: Hard Drives and SSDs (https://www.linuxliteos.com/forums/forumdisplay.php?fid=26)
+--- Thread: Not enough expertise to enable TRIM (/showthread.php?tid=3392)



Not enough expertise to enable TRIM - vieira.rr - 10-12-2016

Hi

I followed the steps in Help Guide and stopped in this point.

This is my original 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>
# / was on /dev/sda1 during installation
UUID=3675cb98-88ea-4020-aa45-03f6f2cd64c3 /              ext4    errors=remount-ro 0      1
# swap was on /dev/sda5 during installation
UUID=96b87783-47cb-4268-b3a2-0e5d63e770a6 none            swap    sw              0      0



After including noatime, :


# /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>
# / was on /dev/sda1 during installation
UUID=3675cb98-88ea-4020-aa45-03f6f2cd64c3 /              ext4    noatime,errors=remount-ro 0      1
# swap was on /dev/sda5 during installation
UUID=96b87783-47cb-4268-b3a2-0e5d63e770a6 none            swap    sw              0      0



because my ssd only have / partition, my edited rc.local file should be:



#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

LOG=/var/log/trim.log
echo “*** $(date -R) ***” >> $LOG
fstrim -v / >> $LOG
echo " " >> $LOG

exit 0

Or should I keep the original rc.local file containing /boot and /home? I’m not sure


Thanks for help


Re: Not enough expertise to enable TRIM - torreydale - 10-12-2016

Seems ok to me.  Have you viewed your trim.log file?  You can do so by copying and pasting in the following:

Code:
cat /var/log/trim.log



Re: Not enough expertise to enable TRIM - vieira.rr - 10-12-2016

Using the rc.local file as above the system keeps working and

~$ cat /var/log/trim.log
“*** Wed, 12 Oct 2016 16:24:31 -0300 ***”

Voilá
Thanks for help Smile



Re: Not enough expertise to enable TRIM - torreydale - 10-12-2016

It's not showing anything as being trimmed.  Since this log gets updated at startup, reboot and view the log file again.