Link to home
Start Free TrialLog in
Avatar of hertel-dev
hertel-devFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Ran diskpart, disk has extended but the volume is the same size

Hi,

I have a virtual machine running Windows Server 2003 R2 Std 32bit which has one 15GB hard disk.

I extended the disk size by 15GB and restarted the virtual machine.

I checked disk management in Windows and there was a 15GB C: volume and 15GB unused space.

I ran diskpart.exe as follows:

diskpart
list volume
select volume 0
extend

The command prompt Window hung on extend, I left it for over a day and it did not change.

I checked disk management and DISK 0 is showing the size as being 30GB but the C: volume is still only 15GB.

I have found various articles on the internet advising to run "extend filesystem" as advised here: http://www.tomshardware.co.uk/forum/page-194981_36_0.html but this does not work (see code).

I have tried to run gparted live (advised here: https://www.experts-exchange.com/questions/22409507/DiskPart-failed-to-extend-the-volume-Basic-Disk-Primary-Partition.html) but that does not work either as it see's the partition as 30GB so there is nothing to extend.

This MS article describes the problem I am having but is only for 2K and XP : http://support.microsoft.com/default.aspx?scid=kb;en-us;329826

Any ideas how I can resolve this?





DISKPART> list volume
 
  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
* Volume 0     C   SYSTEM       NTFS   Simple        30 GB  Healthy    System
  Volume 1     Z                       CD-ROM          0 B  Healthy
 
DISKPART> select volume 0
 
Volume 0 is the selected volume.
 
DISKPART> extend filesystem
 
The volume you have selected may not be extended.
Please select another volume and try again.
 
DISKPART>

Open in new window

Avatar of oBdA
oBdA

You can't expand the system partition with diskpart.
You can try (make a backup of the virtual disk first!) to attach the disk temporarily to another virtual machine, expand the disk on this machine, then link it back to the original machine.
ASKER CERTIFIED SOLUTION
Avatar of hertel-dev
hertel-dev
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Disk management will show you the full size as soon as the volume is expanded; but that doesn't change the size available to Windows.
Again: diskpart will NOT extend the system partition, which is what you've been trying to do. You can only extend this partition if you mount it into another machine as additional disk.