Witaj na Forum Linuxiarzy
Zanim zalogujesz się, by pisać na naszym forum, zapoznaj się z kilkoma zasadami savoir-vivre'u w dziale Administracja.
Wiadomości z problemami zamieszczone w wątku "Przywitaj się" oraz wszelkie reklamy na naszym forum będą usuwane.

Istotne różnice

Zaczęty przez pregunta, Luty 18, 2015, 01:24:20 PM

Poprzedni wątek - Następny wątek

Albedo 0.64

Domyślam się z kontekstu, że chodzi o trim na dysku ssd. Do tego służy program fstrim (powinien być w katalogu /sbin). Konfiguracja odbywa się w terminalu. Nie ustawiałem tego, gdyż mam dysk hdd.
MX Linux Xfce
Linux registered user 556565

pregunta

Tak, chodzi o ssd.
Ręcznie wykonałem to w terminalu przy użyciu komendy sudo fstrim -v / [/home,/boot].
Natomiast chodzi o to by usługa ta działała automatycznie i cyklicznie.
Przeglądałem poradniki w tym temacie ale są tam pewne różnice i dlatego pytam celem pomocy w ustawieniu tego.

Albedo 0.64

A nie możesz tego dodać do programów startowych?
MX Linux Xfce
Linux registered user 556565

pregunta

Nie wiem jak.

A tak może być?
To use a daily cron job (so the trimming will occur once a day) for TRIM (fstrim), open /etc/cron.daily/trim as root with a text editor (/etc/cron.daily/trim doesn't exist so this will create the file):
[b]gksu gedit /etc/cron.daily/trim[/b]
and paste this:
[b]#!/bin/sh
LOG=/var/log/trim.log
echo "*** $(date -R) ***" >> $LOG
fstrim -v / >> $LOG
fstrim -v /home >> $LOG[/b]

The last two commands in the code above perform the actual trimming for the root (/) and home (/home) partition and you need to edit them: here, add the SSD partitions for which you want to enable the daily TRIM job (usually, you must add "/" if the root partition is on the SSD and "/home" if you've set up a separate home partition).

Before saving the file, you can check if the fstrim command works:
sudo fstrim -v /

The output should look similar to this:
andrei@ubuntu-desktop:~$ sudo fstrim -v /
/: 8158715904 bytes were trimmed

Once you've added your SSD partitions, save the file and make it executable using the following command:
sudo chmod +x /etc/cron.daily/trim

http://www.webupd8.org/2013/01/enable-trim-on-ssd-solid-state-drives.html

Albedo 0.64

Jeśli działa to tak może być. Programy startowe dodaje się w trybie okienkowym. Znajdziesz w menu administracja lub preferencje. Trzeba tam wskazać program, w tym przypadku w katalogu /sbin, a w polu komendy wpisać polecenie uruchamiające ( chyba "fstrim -v"). Możesz podpatrzeć we właściwościach innych programów w autostarcie.
MX Linux Xfce
Linux registered user 556565

pregunta

Spróbuję.

Teraz mam inne pytanie.
Jak wyłączyć irytujące dźwięki systemowe jak choćby ten przy wyłączeniu komputera?

Zobacz najnowsze wiadomości na forum