Resizing Ubuntu partition

Discussion in 'Computer Software and Operating Systems' started by ThatDudeWithTheFood, May 23, 2011.

  1. ThatDudeWithTheFood
    OP

    ThatDudeWithTheFood TRIANGLEZ

    Member
    2,198
    291
    Mar 9, 2009
    United States
    Illuminati
    I want to increase the size of my Ubuntu partition.

    I had a 250 GB windows partition which I deleted to make some unallocated space.(I wasn't using it and I moved all my files I needed to the Ubuntu partition.)

    Then I went into GParted and moved my swap partition over all the way to the right so i could increase the size of my Ubuntu partition then I resized the partition and hit apply.

    Then I got an error with no message it just said unknown.

    When I looked at the logs it said at the very last step.

    "Cant have overlapping partitions"
    and also something about constraints.

    Also I forgot to mention there were 2 other bits of unallocated space both were around 2 GB.

    My partition table looks like this

    Macintosh HD|Unallocated Space|Ubuntu|Unallocated Space|Swap|Unallocated space
    140 GB 1-2gb 90 GB 1-2 GB 3GB 250 GB


    Also Disk Utility on the mac side doesnt show the small unallocated space areas so I don't know about them.
     
  2. FireEmblemGuy

    FireEmblemGuy Celebrating a decade of shitposting

    Member
    2,387
    417
    Jul 6, 2007
    United States
    Michigan, USA
    I don't do a lot of partition resizing, but you could try this (preferably from a Live CD/USB as not to mess up any partitions in use at the time):
    Delete the swap partition - this should create somewhere around 255GB of unallocated space
    Create a new partition using that entire amount of space
    Shrink that partition by however much swap space you want (I assume you just want the 3GB you already have)
    Create a swap partition in that new amount of open space
    Delete the unused ~250GB partition between Ubuntu and the swap space
    Extend your Ubuntu partition using the space you just re-freed.

    Sorry if that didn't make too much sense, I'm having an off day.
     
  3. ThatDudeWithTheFood
    OP

    ThatDudeWithTheFood TRIANGLEZ

    Member
    2,198
    291
    Mar 9, 2009
    United States
    Illuminati
    Thanks will try and post again after.
     
  4. ThatDudeWithTheFood
    OP

    ThatDudeWithTheFood TRIANGLEZ

    Member
    2,198
    291
    Mar 9, 2009
    United States
    Illuminati
    Well since this was a double post Ill use this as the solution post.

    What I did:

    Moved swap partition
    Deleted swap partition
    Left those 2 small unallocated spaces alone
    Grew my Ubunut partition
    remade swap partition.