Ubuntu: Any way of changing the partition size of a Ubuntu install from inside the install?



Question:

Is there anyway to change the partition size of Ubuntu while using Ubuntu? I currently have 2 partitions and would like to shrink the one I have Ubuntu installed on to make a storage partition so I can easily format and reinstall without constantly backing up personal files.


Solution:1

The smart answer is to boot from the Ubuntu Live CD or USB, which has gparted on it, from which you can easily resize the partitions on your hard drive without any of them needing to be mounted. It has a nice GUI and it makes it easy. No brainer. If you don't want a broken system, do that. (And make sure your data's backed up always!)

If you really want to know if it's possible to resize a partition while actually running Ubuntu from that partition, then the answer is that it may be, but I definitely wouldn't recommend it unless you love taking risks.

  • The ext3 file system allows for live resizing - enlarging a partition while it's active and mounted. This would not allow you to shift the partition left or right, nor to shrink it, but to enlarge a partition.

  • If you use LVM (an alternative to partitioning, sort of) then you can move, resize, etc partitions while live without any problems. This is complex.

  • From the root recovery prompt, you may be able to resize or move those partitions other than the root partition. This is very advanced.


Solution:2

There is no way to change the partition size while the partition is in use unless you are using LVM which is only available in the alternate installer and requires some knowledge of the LVM system to use.

Sorry. :)

To achieve what you want you need a Live CD/USB. You can do the transformation and then adjust the mount points in /etc/fstab of the root partition. There are some intricacies but they are mostly answered on askubuntu or other places. If in need - ask another question about that.


Solution:3

You can not change partitions while they are mounted.

Best method: create a gParted bootable CD/DVD and use gparted from there or click here for the download itself.

Youtube Video demostrating this.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »