Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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've been looking around and seen two different things ways to declare swap in fstab.

I've seen something like the line below:

UUID=UUID-HERE none swap sw 0 0


UUID=UUID-HERE none swap swap 0 0`

What, if anything, is the difference?

share|improve this question
up vote 5 down vote accepted

When the filesystem type is swap, neither of these options mean anything. In fact, the only option that makes sense is pri=n, specifying the swap space priority. Usually you don't need it and can just specify defaults:

UUID=foo   none   swap   defaults

(The mount point, as well as dump and pass fields, are irrelevant too.)

share|improve this answer
Thanks, I figured mount dump and pass were irrelevant. I hadn't seen it as defaults before, but I have since I was searching after asking the question. – Rob Sep 19 '11 at 18:16

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.