LINUX LITE 7.4 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not enough expertise to enable TRIM
#1
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
Reply
#2
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
Want to thank me?  Click my [Thank] link.
Reply
#3
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
Reply
#4
It's not showing anything as being trimmed.  Since this log gets updated at startup, reboot and view the log file again.
Want to thank me?  Click my [Thank] link.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)