Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

There are other postings on this topic, but because of the importance of getting it right I am posting the exact details of my requirement.

My disk is:

  /dev/sda/sda1 to be mounted as /     has  10GB
  /dev/sda/sda6 to be mounted as /home has 150GB
  /dev/sda/sda5 to be mounted as /swap has   1GB

I have 1GB of RAM and think it would be advisable to increase the /swap partition to 2GB (tell me if you disagree). There is no unallocated space on the disk although plenty of spare space in /home. Can I increase the /swap either when installing Ubuntu 14.04 or with something like Gparted, without damaging the data in /home? Obviously I would do a backup first.

share|improve this question
post gparted screenshot to and then provide the uploaded link here. – Avinash Raj Apr 19 '14 at 15:45
Looks different in Gparted: – ChrisOfBristol Apr 19 '14 at 16:04
how much do you want for your swap partition and from where(According to the screenshot)? – Avinash Raj Apr 19 '14 at 16:24
See original post. System partition isn't very big so will have to be taken from /home. – ChrisOfBristol Apr 19 '14 at 16:44
from /home partition. – Avinash Raj Apr 19 '14 at 16:46
up vote 1 down vote accepted
  • Boot from Ubuntu live disk and then click on try Ubuntu option on starup.

  • Open gparted partition editor from dash.

  • After it opened, make sure that all the partitions are unmounted(including swap).So that only you can be able to resize corresponding partition.If the swap partition is already mounted then select Swap off option on right-clicking swap partition to get unmounted.

  • Shrink your /home(/dev/sda6) partition to get 1 GB of free space and add it to your /dev/sda5 swap partition.

share|improve this answer
Thanks, that is clear enough. Sorry to labour the point, but obviously I am concerned about my data - is it safe to take space from a partition with data in and re-allocate it? – ChrisOfBristol Apr 19 '14 at 16:55
yes, it's safe.Follow my instructions given in the answer correctly.If you have any doubts, feel free to ask me.Please don't do anything wrongly.See also… – Avinash Raj Apr 19 '14 at 16:58
I didn't really follow the link as it seems to be talking about unallocated space, but it doesn't matter. The reason I asked is because I have just installed elementaryOS and have had a few problems with it and found there is very little support, I will give it another couple of days and if the help doesn't materialise I will install something else, this is the point at which it would make sense for me to change the partitions. I'll let you know what happens. I will of course take great care with it - it's the scariest job on an OS I think. – ChrisOfBristol Apr 19 '14 at 17:11
Ok, go on with partitioning. And don't forget to accept my answer if it works. – Avinash Raj Apr 19 '14 at 17:13
I'll have to do a backup first. – ChrisOfBristol Apr 19 '14 at 17:28

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.