Results 1 to 6 of 6

Thread: How can i move this free space?

  1. #1
    Join Date
    Jan 2012
    Beans
    3

    How can i move this free space?

    Hello.
    First of all an image to guide: http://img849.imageshack.us/img849/9969/particiones.jpg

    Well my idea is to add those 5.05 Gb in the partition "sda6" which has 3.89 Gb (Ubuntu was installed there)

    The problem is that I can't do it directly, according to what I understand I have to "move" that free space.

    My idea: I booted with Ubuntu LiveCd and open GParted, with all the partitions unmounted, I tried to put all in the swap because then I wanted to reduce swap so i could have the free space above. But here comes other problem, I couldn't modify the swap partition. (I'm not allowed)

    I don't know why but that free space I can add it in the partition "sda3"

    Some idea to solve the problem and increase "sda6"? I don't want to reinstall
    Is there any risk to do this kind of things? I mean resize / move partition.


    Thanks and sorry for my english, it's a bit rusty jaja.

  2. #2
    Join Date
    Nov 2009
    Location
    Lake Wales Florida
    Beans
    607
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How can i move this free space?

    You should be able to delete the swap partition (sda7) making it unallocated along with what is already there , expand sda6 leaving enough left over to recreate sda7 as swap after you are done with sda6.
    I would highly suggest you back up any important data first.
    AMD FX-6200 - MSI 4.1Ghz- Nvidia GTX550Ti -12/GIG - 60GB-SSD/500 Sata - 12.04 - Gnome 3

  3. #3
    Join Date
    Jan 2012
    Beans
    3

    Re: How can i move this free space?

    Thanks Bobhuber, I thought that but here comes my question: Why doing that would allow me to expand sda6? For example now I can't expand the swap, I don't have that option.

  4. #4
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How can i move this free space?

    You cannot move, resize the swap partition while it is active. You need to set it from swap on to swap off.

    May I suggest that you move sda3 to the right that will move the 2.9Mib unallocated space to the left of sda3.

    Then move the swap partition to the right so that all the unallocated space is now on the left of the swap partition.

    Finally, re-size sda6 to take up all the unallocated space.

    But do this one operation at a time. This site has some pictures about swap on - swap off

    http://techie-buzz.com/foss/ubuntu-e...partition.html

    Regards.
    Last edited by grahammechanical; January 20th, 2012 at 03:41 AM.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  5. #5
    Join Date
    Oct 2005
    Location
    Syracuse, NY
    Beans
    659
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How can i move this free space?

    I don't think grammarmechanical noticed but you can't expand or move the swap as it's outside of sda2, which is the extended partition. Gparted visualizes it for you up above (The light blue surrounds sda5,6,7). You can expand sda2, move or delete sda7, and then resize sda6.

    Moving sda3 is going to take an extremely long time as it's going to rewrite all 183GB's over just 2.5MB's. PITA. And once it's started you can't stop it. If that 2.5MB's at the end bothers you then just resize sd3 to overtake it.

    My recommendation is:

    1.) Backup anything important on ANY partition.
    2.) Expand sda2 to fill in the 5.50GB gap. Apply. (You may have to click on sda7 and 'swap off')
    3.) Move sda7 to the far right of sda2 or delete and recreate a new swap partition. As it's so small I'd probably just move it so that way you don't have to edit your fstab file with the new UUID. Apply.
    4.) Resize sda6. This shouldn't take too long as you're not moving it backwards at all, just adding blank space at the end. Apply.
    5.) Reboot
    Last edited by xyzzyman; January 20th, 2012 at 03:46 AM.

  6. #6
    Join Date
    Jan 2012
    Beans
    3

    Re: How can i move this free space?

    Thanks!!! I did what xyzzyman said and problem solved

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •