I know that the Linux kernel supports TRIM as of version 2.6.33, so there should be TRIM support in ubuntu 10.10.
Is TRIM enabled by default or do I need to change some settings or install additional software for it to work? If so, how?
feedback
|
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.
|
There are two forms of TRIM, manual (wiper.sh) and automatic: 1) Manual TRIM In ubuntu this can be performed with wiper.sh, but is not needed when automatic TRIM is enabled. 2) Automatic TRIM Automatic TRIM is supported since kernel 2.6.33 with the EXT4 file system For automatic TRIM to work, the drive needs to be mounted with the "discard" option in fstab. To add this option run:
add
reboot, automatic TRIM should now be working. Testing automatic TRIM: To Test if Trim is working issue the following commands (adapted from here):
From the output copy the number under "begin_LBA" and use it in the next command. Also check the system name of your SSD: System->Administration->Disk Utility (sda, sdb, or sdc ...)
you should receive a a long string of characters for those sectors
even after removing the file the sectors are still not empty. Wait a while then run the command again
if you get only zeros, then automatic TRIM is working. | |||||||||||
feedback
|