Web Hosting

How to resize partitions in Linux/Ubuntu using Gparted

Linux How-to

A lot of people have problems on Linux, especially first timers. As soon as they think they are understanding this OS, some complex problem comes up and they have no clue what to do. Yes, this sucks!
But that's why Techhoodoo is going to make those complex problems simple. Just when you'll think that Linux is hard, we'll make it simple for you. More difficult the problem you think it is, easier is the solution.

I've seen a lot of people get in trouble when they install a lot of softwares and then they get an error “No space left”. So today we're going to see how you can resize partitions without any complications. Now you have installed Linux, you are using it and after installing a few softwares, boom, you get an error “Only 300 MBs or so left” and it won't install another software. So do you want to solve it? YES?? Then let's do it.

To resize partitions, we are going to use Gparted. It’s a really simple software. It might look complicated, but trust me, it is easy.
So the first thing you have to do, take a backup of the partitions that you want to resize. If you run into any problem then there's a chance of you losing your data. The software will give you pop ups about the same warning. So it’s always better to have a backup of your data if something goes south.

Now you have to boot Mint/Ubuntu with a live CD or a bootable pen drive. Done? Awesome. No, don't install it again, obviously. Okay, so now you have to open GParted on the live OS that you are using. This is how it’s gonna look:
Screen 1
Our sda9 is Linux-swap memory, sda10 is root (“/”) and sda11 is (“/home”).

Now you can see that our “/” just has 585.77 MBs left and it won't install any other software. So we have 48.83 GBs of unallocated space. Now right click on Linux swap and switch it off. Yes, this is an important step. Otherwise, you won't be able to resize it properly as it will have a key sign next to “/dev/sda9” which means it’s mounted. This is the reason why we don't resize partitions in the OS that we use. Unmounting the root “/” folder, really? Do you think that's a good idea? Obviously no.

So let's continue resizing our partition. You switch off Linux Partition, and then right-click on it again and click on resize partition. You'll get something like this:
You can move scroll bar left or right
Again, don't get too confused with all those text-fields. So we had 49.83 GBs of unallocated space that we wanted to move to “/” and “/home”. Using the arrows you see above, you can resize it. If you leave space on the left, you'll find the space that you have left in the text-field “Free space preceding”. Whatever is covered in the white part that increases/decreases the size of that particular partition.
Click on green tick to complete the transfer
So what we're gonna do is, we'll have 0 MBs in “Free space preceding”, 8 GBs in “New size” as our linux swap which is supposed to be double of the RAM. And in “Free space following” we'll have rest of the space.

Now you can see that after clicking on resize/moving, you'll have the operation pending. Click on the green tick button you see above and it will process it. And voila, look, it's done.
48.55 GBs of unallocated space left

Now you have the unallocated space of 48.55 GBs on the right of Linux swap and on the left of “/” folder.

As you know, your “/” folder is like the C Drive of windows, and “/home” folder is like My Documents. So all your software will be installed in “/” folder and your personal files will be in “/home” folder.

Now, right click on “/dev/sda10”, click on resize/move. You will get something like this:


I personally don't want any unallocated space anymore. So I'll take the arrow on the left to the extreme, and check how much space I want in this folder. The rest, I'll leave on the unallocated by taking the right arrow left, so in the “Free space following” we have approx 3.4 GBs. We can use this 3.4 GB in “/home” folder as I already have 26 GB free on “/home” folder. Click on resize/move.


Now you will get the above screen. As the operation is pending, click on the green tick, it will take its time but it will do it. Don't cancel it as it can destroy the data inside and then it will be a huge problem for you.

You will have 2.92 GBs of unallocated space on the right of “/dev/sda10” and on the left of “/dev/sda11”. Using the same process as above, you can increase the space of “/dev/sda11”.

Now you are done, close the window, restart your laptop and open your pre-installed Linux. And check on Gparted. Voila, it’s done.

If you have any problems while resizing the partition in Linux/Ubuntu, you can contact us at [email protected] and we'll get back to you as soon as possible.

Share on Google Plus
    Blogger Comment
    Facebook Comment


  1. Informative post can i resize custom animation with lunix I've lots video which is hight resolution i want to resize it ?

  2. One thing nobody has commented on: the most complicated and potentially damaging thing to your equipment you can do is resize your partition or reparation your drive in any way.i face lots of problem working for mobile app developers texas If you put Linux on a new partition successfully and potentially if you put windows on it -- you can and will be violating your warranty almost certainly.

  3. Yeah, Linux can be a real trouble to deal with for beginners. But as you have said the solution is always somewhere near and can be easily found.

  4. Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon.

    Dream Life

  5. You should take part in a contest for one of the best blogs on the web. I will recommend this site!


  6. Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon.

    Click Here

  7. Nice post. I learn something more challenging on different blogs everyday. It will always be stimulating to read content from other writers and practice a little something from their store. I’d prefer to use some with the content on my blog whether you don’t mind. Natually I’ll give you a link on your web blog. Thanks for sharing.


  8. This is the right blog for anyone who wants to find out about this topic. You realize so much its almost hard to argue with you (not that I actually would want…HaHa). You definitely put a new spin on a topic thats been written about for years. Great stuff, just great!

    Click Here
    Visit Web

  9. Spot on with this write-up, I truly think this website needs much more consideration. I’ll probably be again to read much more, thanks for that info.

    Click Here

  10. This is a very interesting post. Your information is very important to me. Thanks for sharing.Odoo Consultancy India

  11. IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Projects for CSE It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

    JavaScript Online Training in India

    JavaScript Training in India

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training