Possible Duplicate:
How to extend partition size in linux(ubuntu 9.04) ?

Hi Friends,

I am using Ubuntu 9.04 in vmware for my programming purpose. I previously had 12GB of virtual harddisk, my partition scheme was as follows,


8GB Primarimary Partition for (/)

2GB logical extended partition for home

2GB logical extended partition for swap


Now I need 20 GB more space for my (/) Partition. So I added 20GB to my virtual harddisk so now, my partition scheme was as follows,


8GB Primarimary Partition for (/)

2GB logical extended partition for home

2GB logical extended partition for swap

20GB unpartotioned space.


can you please tell me is it possible to make my Primary partition (/) to 28 GB, If yes tell me how?

It would be great if you can tell me some GUI software, otherwise for commandline please elaborate little more. :)

link|improve this question

1  
that's not programming related! – Henrik P. Oct 21 '09 at 18:43
feedback

migrated from stackoverflow.com Oct 21 '09 at 18:56

This question came from our site for professional and enthusiast programmers.

closed as exact duplicate by John T, Diago Oct 21 '09 at 19:53

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

2 Answers

I don't think that you will be able to use a graphical tool like GParted in vmware (the traditional way is to run it from a Live CD). But this article details the command line steps: How To Resize ext3 Partitions Without Losing Data (assuming you're using ext3).

link|improve this answer
Yes, I am using ext3. Thanks for your answer. – Sunny Shah. Oct 21 '09 at 19:10
1  
AFAIK a VM can boot gparted just the same as a real machine. – harrymc Oct 21 '09 at 19:48
gparted works in vmware. – Sunny Shah. Oct 21 '09 at 21:16
Ok, good to know. – Pascal Thivent Oct 21 '09 at 23:58
feedback

Safest way is to create a new empty drive in VMware.
Mount it under linux in vmware.
Copy over the linux installation (see "cp -a" )
Disconnect the original disk.

link|improve this answer
can i copy linux installation completely, I mean does symbolic links and pipe and other stuffs will get easily copied? – Sunny Shah. Oct 21 '09 at 19:03
I wouldn't do that – Pascal Thivent Oct 21 '09 at 19:09
Rather than "cp -a" I would use the dump and restore utilities. You may have to install them, since not all distros install them by default. – Jerry P Oct 21 '09 at 20:04
I did it with gparted live cd, It is now working fine. – Sunny Shah. Oct 21 '09 at 21:17
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.