Linux has support for all things SSD. However, you do need to take a few steps to get everything working optimally!
This excellent guide has instructions for how to align paritions for an SSD in Linux.
I did the following for my OCZ Vertex 32GB SSD. It is serving as a single parition drive, being the root partition of my desktop. You can alter this to create more partitions if you desire.
sudo fdisk -H 32 -S 32 /dev/sda
Command (m for help): o
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-61067, default 1): 2
Last cylinder, +cylinders or +size{K,M,G} (2-61067, default 61067): 61067
Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): 83
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
—–
Issue this to make sure the first partition starts on a multiple of 512:
sudo fdisk -lu /dev/sdd
Disk /dev/sdd: 32.0 GB, 32017047552 bytes
255 heads, 63 sectors/track, 3892 cylinders, total 62533296 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00066ce0
Device Boot Start End Blocks Id System
/dev/sdd1 * 2048 62524979 31261466 83 Linux
The next thing that is important depending on who you talk to, is trim.
Trim support is in Linux, through requires the following:
- An SSD with trim support
- kernel 2.6.33 or later
- ext4 only
- must be enabled manually when mounting the drive (/etc/fstab)
As with all new/experimental things in Linux, the default is that the feature is opt-in, enabling only when you know what you are doing.
You are reading a Linux blog so I assume you know what you are doing.
To turn on trim support, simply add mount option ‘discard’ to your /etc/fstab entry of your SSD.
Ex:
/dev/sda1 / ext4 defaults,noatime,discard 0 1
How is SSD performance in Linux?
Pretty insane. Check out this benchmark:
Bootcharts are crazy. 11 second boot!
For much, much more check out this Arch wiki page.