How Enable Trim on Ssd Linux?
Contents Trimming Your Ssd Can Also Be Accomplished Manually on the Command Line or in a Cron Job. as a Super User (Using Su or Sudo), Run Fstrim / -v to...
Trimming your SSD can also be accomplished manually on the command line or in a cron job. As a super user (using su or sudo), run fstrim / -v to accomplish manual trimming, or set up a cron job to run this command for you on a regular basis when your computer is not in use.
Does my SSD support TRIM Linux?
TRIM helps the SSD avoid performance issues by preparing used data blocks for the overwriting process. You can check for TRIM support on your SSD through the Linux command line, as well as enabling it if it is not turned on by default in your system.
How do I enable TRIM in Ubuntu?
In Ubuntu, open a terminal and type:
- sudo hdparm -I /dev/sda. …
- sudo fstrim -v / …
- sudo nano /etc/ …
- #!/bin/sh fstrim -v / …
- fstrim -v /home >> $LOG. …
- #!/bin/sh LOG=/var/log/trim.log echo “*** $(date -R) ***” >> $LOG fstrim -v / >> $LOG fstrim -v /home >> $LOG. …
- sudo chmod a+x /etc/