D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Resizing a partition

 

On Thu, 20 Nov 2014, NW wrote:

On my laptop I had two main partitions, one with Xubuntu and one with
Mint. I have decided to get rid of Mint, so I have deleted the
partition using Gparted live..  I had to run boot repair but now I can
boot into the Xubuntu partition.

Now, when I check using gparted, I have the Xubuntu partition, sda1, on
the left and then a partition marked 'unallocated' next to it. I want to
extend the Xubuntu partition to  include the unallocated part.

When I try to resize it I can make it smaller but I cannot make it
larger. It shows no space available after it. I must be missing
something.

Can anyone point me in the right direction please?

In generic terms, using a partition management tool (cfdisk, fdisk, gdisk), you need to delete the unused partition, then delete the active partition, then re-create the active partition to have *exactly* the same starting block as it had before plus the space after it that was occupied by the unused partition.

Then you can resize it. (resize2fs)

If there's a gap in between the 2 then you need to delete that gap and incorporate it.

If the partitions are the other way round then it's harder because I think resize only goes the one way. (ie. you can add blocks to the end of a partition but not to the start).

I think running gparted might help, but you might have to boot the laptop off a recovery CD with gparted installed and run it from there.

Gordon

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq