Linux Lite Forums

Hardware - Support => Hard Drives and SSDs => Topic started by: vieira.rr on October 12, 2016, 12:16:24 PM

Title: Not enough expertise to enable TRIM
Post by: vieira.rr on October 12, 2016, 12:16:24 PM
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
Title: Re: Not enough expertise to enable TRIM
Post by: torreydale on October 12, 2016, 02:44:50 PM
Seems ok to me.  Have you viewed your trim.log file?  You can do so by copying and pasting in the following:

Code: [Select]
cat /var/log/trim.log
Title: Re: Not enough expertise to enable TRIM
Post by: vieira.rr on October 12, 2016, 03:27:44 PM
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 :)
Title: Re: Not enough expertise to enable TRIM
Post by: torreydale on October 12, 2016, 03:54:01 PM
It's not showing anything as being trimmed.  Since this log gets updated at startup, reboot and view the log file again.