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

here is 12.10

partition is 2 swap-devs with size of each 16 Gibi and one dev with boot and one dev with main-partition for home.

I want to dissolve 1 swap-dev for to enlargen the home partition with additional 16 Gibi.

How do I do this correctly without risk of data-loss ?

There is no partition-table ! command fdisk shows no reaction.

share|improve this question

There will always be a risk of data loss when you resize a partition with data on it.

That said, since you're making the partition larger, it should be a non-issue (though the partition software will likely still complain).

The usually-recommended partition software is gparted, which you can get from the repos. Using it, it should be fairly straightforward to do what you need to do. Here's a general run-down:

  1. Delete the swap partition.
  2. Find the home partition and find the resize command
  3. Resize it to use the newly-available space

You may have to do this from a LiveCD, since /home is mounted when you're logged in (I haven't resized partitions under Ubuntu in a while, so I don't know offhand whether it will let you resize while its mounted), but the steps will be the same in either case.

Edit To provide a little better understanding of how partitions work, it might be good to think of it in terms of image editing.

The Gimp has a feature called "Resize canvas", which allows you to resize the editable area of your image, without resizing the image that's already there.

If you resize your canvas to a size smaller than what your image currently takes up, then it will warn you that resizing the canvas will result in some of the image being cropped.

However, if you resize the canvas to a larger size than what you started with, you don't get this warning, because the canvas fits the image and has room to spare.

The same goes for hard drive partitions, basically. When you resize a partition, you're changing the amount of "canvas" on which data can be placed.

share|improve this answer
gparted is no stranger to me ... I did not know, that it can re-size partitions - so home-partition's datas don't get lost ? - when I re-size /home ? – dschinn1001 Dec 4 '12 at 17:05
As I said, there is always a chance, but since you're making it larger, that chance should be slim. When in doubt, back up your data, so you're prepared if something does go wrong. See the analogy in my edit. – Shauna Dec 4 '12 at 18:41

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.