Thursday, September 11, 2008
Ubuntu: adding more space to root partition
I had given a mare 2.5 gigs of space to my gusty when I installed it and over the time it proved to be pretty miser :) So, I decided to add more space to it. I went to windows vista right click on my computer->properties->manage->disk to get disk management snapshot. From there I shrank my D: drive 4 gigs. Then comes the question of how to add this 4 gigs to my ubuntu root drive. If we boot to ubuntu then we cannot do any partition task as the root drive is mounted. So, we need a live CD. Every ubuntu CD is live, so if u got one then just boot from it and it will start a live session. From there, start gParted (the partitioning tool of ubuntu system->administration->gparted) and if the unallocated space is beside the ubuntu root partition you can just resize the root partition and grow it to include the unallocated storage. But here I faced another problem. My D: drive was a primary partition and so the unallocated space resulted from the shrinking of D: drive was just after that. But my linux installation is insize an extended partition. And, sorrowfully, I can see from gparted that the extended partition is locked and I cannot resize it due to the fact that the swap partition which is in extended partition is in use and locked. To recover, I right click on swap partition and unmount (unswap) it, so my extended partition is no longer locked. Then I resized the extended partition to include the unallocated space just preceeding it, and then resize the root partition of ubuntu to include the new unallocated space that I included inside the extended partition. And that was it!! Just apply the changes, and you are done :)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment