I want to increase size of my root partition /dev/sda1
but I'm not able to do so either with GParted or with Terminal.
-
On Terminal It gives the following error:
The filesystem is already 4718592 blocks long. Nothing to do!
-
On GParted it doesn't give me any option to increase the disk size.
-
Use Gparted Live same result as Point 2
Best Answer
What you are trying to do does not work from within a running system ... so follow these steps :
Right click the
swap
partition and select swap off in case it is mounted.As there is no data on
sda2
andsda5
, first deletesda5
and thensda2
.Resize
sda1
, right click the partition and select Resize/Move to increase it.Now create a new
linux-swap
partition from the unallocated free space.You have to update the UUIDs of the partitions in the
/etc/fstab
file afterwards.Open a terminal and execute :
sudo mount /dev/sda1 /mnt
To correct the UUID entries in the fstab file execute :
sudo blkid
Open another terminal and execute :
sudo gedit /mnt/etc/fstab
Replace the UUID entries of
sda1
(in case it is different) andsda2
(with those entries of the output given from the
blkid
command).Shutdown, remove the Live media and boot the operating system ...