Oct 28 2010
How to Extend a Windows Partition
Extend a Windows volume in command line is pretty easy on Windows with the Diskpart utility. It is available on all Windows flavours. It needs to be done everytime a partition is extended on a SAN for example.
Note that this works for secondary partitions, you need a special tool to extend the C: drive.
C:\Documents and Settings\Administrateur>diskpart
Microsoft DiskPart version 5.2.3790.3959
Copyright (C) 1999-2001 Microsoft Corporation.
On computer: RADON
DISKPART> select volume Y
Volume 5 is the selected volume.
DISKPART> extend
DiskPart successfully extended the volume.
DISKPART> exit
Leaving DiskPart...