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 need more space at for my Ubuntu partition, so I will need to shrink the Data partition and extend the size of the ext4, right? This is the current state of the partitions:

enter image description here

What is the proper way to achieve this? Using windows to shrink the Data partition? (An unrelated partition to windows, though). And then, with an ubuntu live cd, using gparted, extending the size of the ext4 partition to the unallocated space?

Update-1:
The state I posted above, was from my laptop. I tried the resizing process at my Desktop and at the step grow filesystem to fill the partition > real resize it failed and here are the details (also, on pastebin).

What can I do?

Update-2: At Gparted, it seems that the process completed successfully. The unallocated space, is the one I've set before the partition shrink process. So, I can assume that everything went good? Also, if you see, at the bottom of the message, it was asking me to reply Y/n but I don't think I could do that via gParted (and not using a terminal). This is the current state from gParted via Ubuntu Live CD. State of partitions after the error

share|improve this question
2  
You should be able to do this all from Live CD/DVD/USB choosing "Try Ubuntu" and then opening Gparted. Keep backup of all the partitions in case things go wrong. –  user68186 Nov 21 '13 at 20:31
    
@user68186: I've updated my question with more information, please take a look. –  Chris Nov 22 '13 at 10:18
    
After reducing the size of data partition,the unallocated space comes under the linux swap partition.Then you can extend the ext4 partition. –  Avinash Raj Nov 22 '13 at 10:25
    
@AvinashRaj: So I can assume that as this step failed, I can extend the ext4 partition to use all the unallocated space? –  Chris Nov 22 '13 at 11:01
    
you can use only the unallocated space which was inside the extended partition. –  Avinash Raj Nov 22 '13 at 11:05

2 Answers 2

up vote 1 down vote accepted
  • From the screenshot,it was clear that you had mounted extended partition.It was not possible to resize a mounted partition via gparted.So you must run a gparted live disk or run a ubuntu live disk and install gparted on it.

  • Open gparted and right click on the extended partition.Now you can add the unallocated space to the extended partition.The unallocated space comes under the linux-swap partition.

  • Then rightclick on the ext4 partition,now you can be able add the unallocated space to the ext4 partition.

share|improve this answer
    
Thanks a lot, the process completed successfuly. I will do this at my laptop as well. Just in case, if after that I cannot boot, I will have to re-install grub, right? –  Chris Nov 22 '13 at 12:24
1  
yes,if there any problem occurs post here.I will help you. –  Avinash Raj Nov 22 '13 at 12:34

You can do it all from the live CD. Probably better to do it from the CD because windows seems to recognise partitions differently to linux.

share|improve this answer
    
I tried doing this at my desktop pc, and I've updated my question with more information, please take a look, there are some errors. –  Chris Nov 22 '13 at 10:18

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.