Sunday, March 10, 2013

How to Re-Size(Extend) Hard Disk using DiskPart Utility

Scenario: In your virtual environment at the movement one hard disk volume almost full, you need to increase this hard disk capacity without effecting volume data, You can extend your hard disk size From any virtualization solution (VMware, Hyper-V)

Connect to DiskPart from command prompt
Run Command Prompt as Administrator

Note: Before you run the Extend command you must add additional capacity for this volume

C:\Documents and Settings\Administrator>diskpart
DISKPART>
DISKPART> list

DISK        - Prints out a list of disks.
PARTITION   - Prints out a list of partitions on the current disk.
VOLUME      - Prints out a list volumes.
 
DISKPART> list volume 

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     D   Tran         NTFS   Partition     10 GB  Healthy    Pagefile
  Volume 1     Y   TRP          NTFS   Partition    480 GB  Healthy
  Volume 2     W   LES     NTFS   Partition   1946 GB  Healthy
  Volume 3     E   DOC   NTFS   Partition    550 GB  Healthy
  Volume 4     X   CFC           NTFS   Partition    700 GB  Healthy
  Volume 5     B                       CD-ROM          0 B  Healthy
  Volume 6     I   LEIS         NTFS   Partition   1434 GB  Healthy
  Volume 7     U   IT   NTFS   Partition    350 GB  Healthy
  Volume 8     T   PBP          NTFS   Partition    250 GB  Healthy
  Volume 9     Z   MIT          NTFS   Partition    250 GB  Healthy
  Volume 10    C                NTFS   Partition     40 GB  Healthy    System 

Select volume which you want Extend

DISKPART> select volume 7
Volume 7 is the selected volume. 

DISKPART> extend

DiskPart successfully extended the volume.

No comments:

Post a Comment