0

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

1

2 Answers 2

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

4
  • Yes, I am using ext3. Thanks for your answer.
    – SunnyShah
    Oct 21, 2009 at 19:10
  • 1
    AFAIK a VM can boot gparted just the same as a real machine.
    – harrymc
    Oct 21, 2009 at 19:48
  • gparted works in vmware.
    – SunnyShah
    Oct 21, 2009 at 21:16
  • Ok, good to know. Oct 21, 2009 at 23:58
1

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.

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

Not the answer you're looking for? Browse other questions tagged .