I have Ubuntu installed on a drive. The problem is it is running low on disk space. This is installed on vmware. I expanded the virtual drive and booted into ubuntu. But when I opened gparted(sudo gparted), the move/resize option is unavailable. This is the partition Ubuntu is installed on, but I need to resize it. Any ideas? I am comfortable using command line
|
You are almost there. |
|||
|
|
|
As a matter of fact, you CAN enlarge the root filesystem while Ubuntu is running (I learned this recently myself here) - this sounds incredible but it's true :) The magic command is
My understanding is that |
|||
|
|
|
Regarding resize2fs, enlarging the root file system does NOT mean you can increase the partition size, as the man page ("man resize2fs") states clearly. |
|||
|
|
|
Thank you for your note. I believe I have now answer (not comment...). I succeeded in enlarging my primary ext4 partiion using the methodology described here: http://www.howtoforge.com/linux_resizing_ext3_partitions Some notes from my personal experience: - The link example is for shrinking partition, hence the order is resize2fs first and then fdisk. When enlarging partition (as in my case) the order should be fdisk first, reboot and then resize2fs. Also, when using fdisk, the primary as well as the extended partitions should be removed and re-defined. - I booted the ubonto from another drive and then worked on this drive which actually was mirror (using dd) of the older drive. Made it bootable using GParted - The current version of resize2fs (I am using ubontu 12.04LTS) support ext4 - no need to do the actions described in the link of changing it the ext2. |
|||
|
|