I am trying to resize my /dev/sda1
as shown in the diagram using the gparted Live cd.However although I have unallocated space I am unable to expand it.I have tried expanding /dev/sda2
(which works) and then decreasing its size from the beginning(which doesnt). But that doesnt work either. Could someone please tell ,me how to resize my /dev/sda1
partition.
The extended
sda2
partition is in the way. Do one of two things:sda2
to the very right, and then you'll be able to expandsda1
.sda2
, expandsda1
by 2GB and then recreated your swap partition (an extended partition isn't required if you have 4 or less primary partitions).Simplified answer from the previous post article:
In gparted:
sda2
and resize it to fit all the unallocated space.sda5
and move linux-swap all the way to the right, at the end of the disk.sda2
again and resize it with the left handle to fit onlysda5
size on right corner, leaving unnalocated space to the left.sda1
and increase its size, and apply changes.To expand sda1 I booted into a gparted live disc and then I deleted the sda2 and extended the sda1. Gparted left 1mb over. When I booted it was alright. (Tip: when you close gparted you have to double click on exit)(Tip: do a backup - at one stage I did lose everything! luckily I had a backup)
I had this trouble and the blog post by: JOCHEN HEBBRECHT worked really well for me! It describes how to delete the annoying partitions and resize the repartition you want to.
The essential solution: using gParted
This worked for me and didnt corrupt what I already had installed. The virtualbox vm is still working great!