vote up 0 vote down star

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. :)

flag

1  
that's not programming related! – rAyt Oct 21 at 18:43

migrated from stackoverflow.com Oct 21 at 19:53

closed as exact duplicate by John T, Diago Oct 21 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.

2 Answers

vote up 2 vote down

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|flag
Yes, I am using ext3. Thanks for your answer. – Sunny Shah Oct 21 at 19:10
1  
AFAIK a VM can boot gparted just the same as a real machine. – harrymc Oct 21 at 19:48
gparted works in vmware. – Sunny Shah Oct 21 at 21:16
Ok, good to know. – Pascal Thivent Oct 21 at 23:58
vote up 1 vote down

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|flag
can i copy linux installation completely, I mean does symbolic links and pipe and other stuffs will get easily copied? – Sunny Shah Oct 21 at 19:03
I wouldn't do that – Pascal Thivent Oct 21 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 at 20:04
I did it with gparted live cd, It is now working fine. – Sunny Shah Oct 21 at 21:17

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