Ubuntu and SSDs

abssorb

Member
Usually with Ubuntu it's a simple matter of booting into the install media and going through the install steps. But with an SSD it's different. We went through the this with our new PC Specialist machine and it ran very well, but we learnt a few new things to do with Ubuntu and SSD which I thought I'd share.

Purple method (Legacy mode): The normal install, just put the media in and boot. Gives a working system on SSD.
Black method (EFI mode): Uses UEFI install, and involves BIOS changes to take proper advantage of SSD speed (boot in 30 seconds).


Black method:
1. You have to set the BIOS to UEFI mode before installing Ubuntu to get the best results.
Doing this is a little hidden in ASUS UEFI BIOS. Switch to advanced mode, press "Exit" in the top right corner and choose "Launch EFI shell from filesystem device", which will make change needed.
https://help.ubuntu.com/community/UEFI

2. Run the Ubuntu install (a CD rather than liveUSB is suggested).
You should see a black Ubuntu option screen (example), which indicates that you're using UEFI mode. If you see the purple one, step 1 hasn't worked.
Re the CD, what can happen with a UEFI LiveUSB is the devices get confused during the install. The partitioner can't tell the difference between SSD flash memory and USB flash memory, and you might end up with a system that won't boot unless your USB flash drive is in place. There are many fixes but the quick and easy way is to use a CD.​

3. Follow the rest of the install as normal.
4. Set Ubuntu up to run with a SSD, moving commonly updated files to virtual and using TRIM command etc. this is a good guide:
5. If you're using virtualbox, change each virtual machine: "Settings / Storage / <Virtual HDD name> /tick the "Solid state drive" box".
You're done!

Changing a purple method to a black method:
If you have already installed Ubuntu using the Legacy purple method, you can convert it, but it's not straightforward and it would be easy to spend more hours getting a good result than it would take to install again. Info we found was here:

Fresh install on a used SSD:
In the end we went for a fresh install rather than try and convert, and did this:

Re-format:
If you are starting again, it's a important to perform a secure format of the SSD to truly wipe the disk back to factory fresh. This is not possible in either the purple or black install methods, the partitioner format is not the same thing.
http://wiki.freeswitch.org/wiki/SSD_Tuning_for_Linux#Objectives
The process is not as daunting as it seems.

:chef:
 

Toxophilix

Bright Spark
Thanks for sharing this.

One question: what boot times do you get with UEFI? I find Linux Mint boots in 19 seconds in legacy mode (that's with pausing the timer while entering passwords etc). Booting from the HDD used to take about 39 seconds. However, the most noticeable improvement was that going from the login screen to the desktop is instantaneous with an SSD. I guess that UEFI should shave a few more seconds in hardware initialization.
 
Last edited:

abssorb

Member
Our build runs a lot of headless virtual machines at startup and we saw about a minute to boot on SSD with legacy, which went down to 30 seconds with UEFI. The biggest improvement though is in the responsiveness of the system.
 

Nicolondres

New member
Thanks a lot for sharing your info!

Would this apply to a dual boot install with W7 home premium preinstalled?
Thanks a lot.:)
 

barrydrake

Silver Level Poster
I don't know whether this still applies with the latest SSDs, but three years ago, the advice was to install Ubuntu using ext2 (no journalling) and no swap partition in order to minimise the number of writes and prolong SSD life.
 

DannyJo

Member
From what I've been reading up on lately you want to use ext4 simply because it has a lot better (more complete) support for TRIM.
 

pepe999

Member
I don't know whether this still applies with the latest SSDs, but three years ago, the advice was to install Ubuntu using ext2 (no journalling) and no swap partition in order to minimise the number of writes and prolong SSD life.
Yes, that's right. It's recommended even on Windows to minimize the page file to prolong SSD life. The swap partition on linux is not needed these days anyway.
Has anyone some experience with btrfs on SSDs?? I use only ext4 but had ReiserFS as on a root partition once and no problems.
 
Top