Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Ubuntu 12.10 installed on an SSD with the swap partition on the same disk. Now I want to use the swap partition only for hibernating (not for swapping memory) because the SSD don't like the type of usage required for a memory.

I can hibernate my computer, but after I restorer the system from hibernation it is using the swap partition for swapping memory. I want to disable this behavior and use the swap for hibernating ONLY.

Is it possible somehow?

share|improve this question
    
How much RAM? Is swap used at all? If it is how much/often then? –  Takkat May 21 '13 at 14:14
    
I have 8GB RAM, but after I restore the system from hibernation, the system is using 100-500MB swap although I have a few GB free RAM. –  SqrtPi May 22 '13 at 17:00
add comment

1 Answer 1

up vote 3 down vote accepted

I won't copy and paste the entire article, but I think this is what you want:

The first link is a succinct Debian article which should be close enough to get it working on Ubuntu. The second is an article using Kubuntu which should be closer to home but it looks like the same process as the Debian link just spanned over five pages with a bunch of fluff in between.

Pick your poison. :)

share|improve this answer
    
Setting "vm.swappiness=1" will suffice. The rest isn't completely relevant. –  Hugo Aug 2 '13 at 3:08
add comment

Your Answer

 
discard

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.