View Single Post
Staro 04.07.2014., 21:31   #112
cccp
Premium
Moj komp
 
cccp's Avatar
 
Datum registracije: Feb 2004
Lokacija: Rijeka
Postovi: 1,030
Citiraj:
Autor zvonac Pregled postova
Izgleda da je po defaultu trim na samsungovom ssdu upaljen..
https://sites.google.com/site/lightr...bledandworking

Okinul sam ovu skriptu, ali...
Trebal bi dobit ovo: If TRIM is properly working the result of the last command should be a bunch of zeros..
Al u mom slučaju ko da nekaj ne štima, prva slika...


Dok pokrenem u terminalu, sudo fstrim -v /
/: 1129930752 bytes were trimmed
Poovom bi ispalo da radi...hmmm

EDIT: Pokrenul sam i ovo:

Become root:
sudo -i
Make a 50MB file with random data:
dd if=/dev/urandom of=tempfile count=100 bs=512k oflag=direct
Check the starting LBA address of the file:
hdparm --fibmap tempfile
Read the first address of the file, note that you need to put the first LBA in place of [ADDRESS]:
hdparm --read-sector [ADDRESS] /dev/sdX
Now remove the file and synchronize the filesystem:
rm tempfile
sync
Use the same command as in 4 to re-read the LBA:
hdparm --read-sector [ADDRESS] /dev/sdX

Al i tu nekaj ne štima, druga slika..
Ovaj X u /dev/sdX moraš zamjeniti s nekim slovom koje predstavlja hard, X samo drži mjesto. Koje je slovo može ti pomoći naredba "lsblk". U terminal upišeš lsblk i on ti izlista "block" uređaje, tj. diskove. Prvi ti je /dev/sda, drugi /dev/sdb i slično.
cccp je offline   Reply With Quote