1

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

8
  • 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, 2013 at 20:31
  • @user68186: I've updated my question with more information, please take a look.
    – Chris
    Nov 22, 2013 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. Nov 22, 2013 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, 2013 at 11:01
  • you can use only the unallocated space which was inside the extended partition. Nov 22, 2013 at 11:05

2 Answers 2

1
  • 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.

2
  • 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, 2013 at 12:24
  • 1
    yes,if there any problem occurs post here.I will help you. Nov 22, 2013 at 12:34
0

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.

1
  • 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, 2013 at 10:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .