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

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

SunnyShah

Posted 2009-10-21T18:40:28.533

Reputation: 247

Question was closed 2009-10-21T19:53:57.747

1that's not programming related! – Henrik P. Hessel – 2009-10-21T18:43:43.633

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

Pascal Thivent

Posted 2009-10-21T18:40:28.533

Reputation: 1 492

Yes, I am using ext3. Thanks for your answer. – SunnyShah – 2009-10-21T19:10:05.620

1AFAIK a VM can boot gparted just the same as a real machine. – harrymc – 2009-10-21T19:48:04.453

gparted works in vmware. – SunnyShah – 2009-10-21T21:16:55.130

Ok, good to know. – Pascal Thivent – 2009-10-21T23:58:13.013

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.

Martin Beckett

Posted 2009-10-21T18:40:28.533

Reputation: 6 073

can i copy linux installation completely, I mean does symbolic links and pipe and other stuffs will get easily copied? – SunnyShah – 2009-10-21T19:03:22.420

I wouldn't do that – Pascal Thivent – 2009-10-21T19:09:46.370

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 – 2009-10-21T20:04:15.917

I did it with gparted live cd, It is now working fine. – SunnyShah – 2009-10-21T21:17:41.683