View Single Post
Staro 04.07.2014., 22:32   #113
zvonac
Premium
Moj komp
 
zvonac's Avatar
 
Datum registracije: Mar 2006
Lokacija: Sv.Nedelja
Postovi: 5,642
Nego našel sam nekaj drugo...
Ovo sam koristil...



Preferred method: by rc.local
8.1. You can add the TRIM command to /etc/rc.local. Then this command will be executed automatically on system boot. This hardly slows the boot process down. This is the method that I prefer.

You can do that as follows:

a. First make sure that you have installed the applications gksu and leafpad.

b. Then type in the terminal (use copy/paste):
gksudo leafpad /etc/rc.local

Press Enter.

c. Above the line exit 0 in that file, you now add the TRIM command
fstrim -v for every automatically mounted EXT4 partition.

Note: not for partitions that aren't mounted by default! And also not for the swap partition, as that's already being trimmed automatically by the system by default, during the boot process.

An example is most clarifying. When your Ubuntu is on one single partition, so you have only the root partition / , then your rc.local should look like this:

#!/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.
fstrim -v /
exit 0



A ovo isto koristim, ručno..

How to execute TRIM manually
9. You can execute TRIM manually as well, namely as follows:

Click on the grey Ubuntu logo (Dash home). Query: terminal.
Click on Terminal.

Type (use copy/paste):
sudo fstrim -v /

Press Enter. Type your password when prompted; this remains entirely invisible, not even dots will show, this is normal. Press Enter again.

This operation may last for minutes; it then looks as if the terminal has frozen. That's not true, however; simply wait patiently....

The above terminal command is enough when you have only one Ubuntu partition and a swap partition (because for the swap it's unnecessary; the system takes care of that automatically).
https://sites.google.com/site/easylinuxtipsproject/ssd

Izgleda da ima više načina za pokretanje TRIMa tj opcija...

Podesil sam da se kod bootanja TRIMa i ručno da ga pokrenem naredbom sudo fstrim -v /..
zvonac je offline   Reply With Quote