Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed, already, ubuntu (latest) on SSD OCZ Vertex 4 (everything, home, tmp, /, swap, etc).

I have two other HDDs. One is just Windows (used by my wife, only) and one is used to just store big media files (300GB each).

Someone told me that swap and tmp files will wear out my SSD. Is this true?

Having this installation, what should I do now, in order to protect my SSD?

share|improve this question
If you fear to wear out your SSD, don't use it. Put it in a box somewhere and don't use it. If you actually want to use the speed of the SSD just install Ubuntu on it. – Alvar Aug 28 '13 at 9:37
If you go with bcache:… – Gabriel Sep 13 '13 at 16:58
up vote 2 down vote accepted

Even continual writing on modern SSDs (which yours is) will still get tens of years of life before things start deteriorating. On OCZ drives there's also an overhead the controller uses to swap out bad sectors to further enhance the lifetime.

That's not to say that faults don't happen before then but that's true of all hardware, and let's be honest here, mostly true of mechanical disks.

I wouldn't be too concerned. Back things up as usual (when SSDs "go", they really just stop working so there's no freezer or knocking option to restabilise the platters) and you'll be fine.

Minimising swap usage is just generally good business. Add RAM if you're swapping lots.

And once you have a load of RAM, mounting /tmp with tmpfs (a RAM-based cache) is generally a good idea. I've added this to /etc/fstab:

tmpfs       /tmp        tmpfs   defaults,noatime,mode=1777  0   0
tmpfs       /var/tmp    tmpfs   defaults,noatime,mode=1777  0   0

That'll have the added bonus of speeding things up, but it does require you have enough RAM or you'll just be swapping to disk (and that's much slower).

share|improve this answer
Thank you. That was very informative. 4 Gigs of RAM is enough? I can get more if you think would be better. That is the easiest thing to do. – xpanta Aug 28 '13 at 10:43
I can't prescribe an exact amount. It really depends on your usage. I'm a bit of a blip on the "normal usage" scale... On my desktop I have 24GB total, 5-20GB in use depending on what I'm doing. My swap is usually empty. – Oli Aug 28 '13 at 10:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.