Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've got a Linux-based OS installed on a partition I want to shrink. Want to avoid reinstallation or losing/corrupting data, if possible.

share|improve this question

1 Answer

up vote 9 down vote accepted

As always: Just in case do a backup of sensible data on the partition, you want to shrink.

gparted screenshot with steps to do

Its a little messy but don't get scared (you'll be moving with your partition to your auntie and uncle in Bel Air. Wait wat? XD). Just start in the top right corner, and follow the numbers in ascending order.

Here is a text version of the steps:

  • Install gparted Install gparted / sudo apt-get install gparted
  • Start gparted
    1. Select the disk in the upper right dropbox
    2. Select the partition in the main list in the middle
      • If mounted: Unmount that partition using the contex menu (right click)
    3. Click the resize button
    4. A dialog will pop up
    5. Resize
    6. Click "Apply" after double checking your changes. That's it.
share|improve this answer
3  
+1 for the mounted part. If you're trying to shrink the / partition (or something that is essential to be mounted), just boot from a liveCD and then run gparted. – Capt.Nemo Jun 7 '11 at 8:25
Er, do you mind dividing the steps into different screenshots? The image is as confusing as your name is. – Oxwivi Jun 7 '11 at 8:51
Wait, now that I read the whole thing, just doing the usual shrinking will be fine? It will move the data by itself? – Oxwivi Jun 7 '11 at 8:54
It gave me a warning that it could rendered unbootable... – Oxwivi Jun 7 '11 at 9:02
Yes, gparted will move the data by itself as long as you don't shrink the partition to a size that's too small for it. Concerning the 'confusing' bit: The numbers in the pictures correspond to those in the text. As for the unbootable bit: What partition do you resize? – con-f-use Jun 7 '11 at 9:03
show 3 more comments

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.