Friday, May 3, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 627  / 2 Years ago, wed, january 5, 2022, 10:43:29

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


More From » partitioning

 Answers
6

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



[#28295] Thursday, January 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
donurp

Total Points: 328
Total Questions: 128
Total Answers: 123

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
;