Click here for the new  weblog.

Addendum to the SSD Trim Article

I think I should clarify a few points about some SSD, Trim and OS X myths before you all start to download Ubuntu and to enter the Terminal:

1. Mac OS X is not Windows 7!
> means OS X and an HFS+ file system don’t slow down a SSD like Windows 7…

2. If your SSD has a Garbage Collector you don’t need to trim it!
> simply use Disk Utility to erase the free space and zero out deleted files…

3. You don’t have to worry about write endurance!
> long time before this occurs you will own a new Mac.
> even if you overwrite your (newer) SSD completely 3 times a day it will last over 50 years…


All your efforts to ‘maintain’ your SSD under OS X are more for your mental well being (cock extension for the poor) than they actually improve the writing speed.

But hey, mental well being is very important :-)

How to trim a SSD with OS X (HFS+) without deleting the system first

Mac OS X does not support to trim sector ranges like Windows 7 or Linux does. But with an Ubuntu Live CD (USB Stick) you can even trim an HSF+ formatted file system without deleting it first:

1. Backup your system (Macintosh HD)
2. Burn an Ubuntu 10.10 Live CD (or create an USB Stick)
3. Boot Ubuntu
4. Open Terminal
5. Do the following steps:

sudo bash
add-apt-repository "deb http://archive.ubuntu.com/ubuntu maverick universe"
apt-get update
apt-get install gawk
apt-get install sleuthkit
wget http://sourceforge.net/projects/hdparm/files/hdparm/hdparm-9.36.tar.gz
tar -xvf hdparm-9.36.tar.gz
cd hdparm-9.36
make
make install
cd wiper


6. Run wiper.sh:

// test
./wiper.sh /dev/sda1

// real
./wiper.sh --commit /dev/sda1


(sda1 is the first partition of the first disk, you may need to change this - Disk Utillity will give you the answer)

7. Enjoy the regained speed :-)


Addendum to the SSD Trim Article

TRIM Support for Macs to see at the horizon