Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Can you please how can I increase swap space in ubuntu 9.10? I go to 'Palimpsest Disk Utility' click '724 MB Extended' but I cant' increase the size.

Thank you.

share|improve this question
add comment

2 Answers

If you don't want to/can't create a new or larger swap partition, you can use a swap file.

  1. Create a file of the size you need: "dd if=/dev/zero of=/root/tmpfile bs=1m count=1024" would create a 1 gigabyte file.
  2. Define the file as swap: "mkswap /root/tmpfile".
  3. Activate with "swapon /root/tmpfile".

I'm assuming you need the new swap only temporarily. If you want to make it permanent, you'll need to add an entry to /etc/fstab:

/root/tmpfile none swap sw 0 0

share|improve this answer
add comment

Boot from the Ubuntu install CD, use the partition editor included, then resize the swap partition. If there's no free unallocated space available, you can resize other partition to make space.

share|improve this answer
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.