I just installed Squeeze on a 128 gb ssd and am trying to enable TRIM on the drive's partitions. I added the discard option in /etc/fstab and rebooted.
I had mixed verifying whether TRIM is enabled according to the directions I found in a couple guides on the subject.
Running the following indicated it is enabled:
$ sudo hdparm -I /dev/sda | grep 'TRIM'
* Data Set Management TRIM supported (limit 8 blocks)
But testing according to the following article indicates TRIM is not working:
To summarize, I created a test file; checked to see if data was present at the sector where the file started; deleted the file; and checked to see if the sector was zeroed out.
Is there a better, definitive way of checking whether this is working?