1 (edited by (O)fer_cz 2011-07-26 15:33:35)

Topic: ESXi extend linux partition

Hi, Im trying to extend partion of Debian (debian-6.0.2.1-amd64-netinst.iso) in ESXi 4.1 update 1.
I had extented disk in ESXi (pic 1), then booted gparted live cd. I can see disk, i can shrink it, but cannt extend (grow) it.
Im using gparted-live-0.9.0-6.iso

1
http://i.imgur.com/hlwJU.png
i cant extend sda2 "extended"
http://i.imgur.com/c3XUV.png
http://i.imgur.com/B2wPM.png
http://i.imgur.com/uPZum.png

fdisk -l -u output
http://i.imgur.com/jUlgA.png

thanks for help

2

Re: ESXi extend linux partition

Since the sda2 partition is not MiB aligned, you might try growing sda2 using "Align to Cylinder".

3

Re: ESXi extend linux partition

i can resize (grow/shrink) sda2 with no problem, i want to resize sda1, i can shrink it, but cannt grow it

4

Re: ESXi extend linux partition

The unallocated space must be adjacent to a the partition in order to add it to the partition.

In your case you would need to perform the following steps:
1)  Move sda5 (linux-swap) to the end of the drive
2)  Shrink sda2 (extended partition) by moving the left-hand-side of sda2 to make the unallocated space available to sda1 (ntfs)
3)  Grow the ntfs partition.

Before editing partition tables regardless of which software you use, I highly recommend that you backup your important data.  That way if something goes wrong (software bug, hardware failure, power outage) you will be able to recover your data.

5

Re: ESXi extend linux partition

thank you very much, that dragging part and moving from left to righ confused me a little big_smile

6

Re: ESXi extend linux partition

Glad to hear that you have things sorted out now.   smile