Resize VMWare Guest OS Disk Space

VMWare is a nice tool for developers to test Works. I have to use VMWare
very Frequently. But almost time I make same mistake. When I create
Virtual Machine, most of time I try to save my disk space creating smaller
size Virtual Machine. But I have to face trouble when my Guest OS promt me Low disk space.

We can increate Gust OS disk size applying some techniques. We can follow
below steps,

Resizing VMWare Virtual Disk Size
a. Turn Off Virtual Machine
b. Open Run
d. Write CMD
e. CD to C:\Program Files\VMware\VMware Workstation
f. Ran the command,
vmware-vdiskmanager -x 12GB “D:\VMWare_Image\WinxpSP2\Windows XP Professional.vmdk”

But this is not the End. The command only create space but it is now unallocated stage. For windows Guest OS we can use Disk Part ion Utilities like Partition Masic tools to extend Disk space or create new disk. I personally preffer EASEUS Partition Master which is free.

unluckily we have to do more for linux Guest OS. we should follow bellow steps,

(I test all command in RH4 Enterprise)

Create Partition from Unallocated Space
1.  Open Terminal
2. Check Current Disk Status
#> df -m
2. write command

Parted is build in utilites of Redhat. Check the Links for manual

#(parted) print
Disk geometry for /dev/sda: 0.000-15360.000 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031   9209.135  primary   ext3        boot
2       9209.136  10236.730  primary   linux-swap

Notice that some unallocated spare exist. Now we will create new disk,

#(parted) help
#(parted) mkpartf logical ext3 10236.731 15359.018
# quit

At this moment we like to format the new disk in ext3

#>  fdisk -l
#> mkfs.ext3 /dev/sda3
#> fdisk -l

Then the new disk need ot mount to a folder. It’s better to add new
entry in /etc/fstab for permanent mount at boot time.

#> gedit /etc/fstab
Add the new line
/dev/sda3                /NewDocsFolder        ext3    defaults    1 1

Now the final task, Please restard the computer and check
#> df -m

Khayer ,
GIS Programmer,
CEGIS, Dhaka, Bangaldesh