Friday, May 10, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 606  / 1 Year ago, sun, march 26, 2023, 9:07:59

After doing some research on how to extend Ubuntu root partition, I tried to extend it using the GParted from a liveUSB session of Ubuntu. But I couldn't extend it. When I right click on my root partition and select resize/move, it doesn't offer me the unallocated space. Here is the screenshot of GParted showing my current partition structure:



GParted Screenshot



Somewhere on AskUbuntu I read that unallocated space has to be inserted into the Extended partition. I don't know if that's true and I don't know how to move it into the Extended partition. Please help me, I spent the whole day behind this...


More From » partitioning

 Answers
6

First of all you need to understand that sda5, sda6, sda7 and sda8 are inside sda3.



After that it looks simpler.




  1. Boot from LiveCD. Do not mount any partitions by clicking them.


  2. Run sudo swapoff -a


  3. Expand sda3 left.


  4. Move sda5, sda6, sda7 left.


  5. Expand sda8 left.




Do not forget to press "Apply" button.



After you do it you also need to update grub this way.



sudo mount /dev/sda8 /mnt
sudo chroot /mnt
sudo update-grub
exit

[#19127] Tuesday, March 28, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ciousuntru

Total Points: 352
Total Questions: 124
Total Answers: 95

Location: Grenada
Member since Tue, Oct 12, 2021
3 Years ago
;