Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

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

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

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

2 Answers 2

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

share|improve this answer
    
Yes, I am using ext3. Thanks for your answer. –  SunnyShah 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. –  SunnyShah Oct 21 '09 at 21:16
    
Ok, good to know. –  Pascal Thivent Oct 21 '09 at 23:58

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.

share|improve this answer
    
can i copy linux installation completely, I mean does symbolic links and pipe and other stuffs will get easily copied? –  SunnyShah 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. –  SunnyShah Oct 21 '09 at 21:17

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