Having only the Windows ISO file I installed Windows XP to a virtual machine, and moved it successfully to a physical partition on my machine.

Because I did a direct partition copy, from the virtual parition to the physical, Windows thinks it has still 10GB size, but the partition it sits in is 59GB.

Is there any way or hack to make it recognize the entire partition? Without data loss of course, respecting my ext4 or other linux partitions Windows XP does not know about.

Diskpart simply reject the extend command on it.

EDIT: I also heard people experiencing the same, when resizing the partition with GParted.

  • Shrinking the partition might resolve the issue. – Harry Johnston Oct 14 '12 at 21:56

You cannot resize the a partition that's mounted. That's why diskpart refuses the extend.

You need to boot an Ubuntu live CD or pendrive.

And run ntfsresize

Here is a little tutorial: http://linuxtechres.blogspot.hu/2007/08/how-to-use-ntfsresize-from-command-line.html

Basically it says:

You need to do the following commands:

  • fdisk -l to find out which partition to touch.
  • ntfsresize --info /dev/<parition> to get partition info.
  • ntfsresize --no-action --size <new volume size> <partition> to do a dry run. (you can use units in the size eg. 12000M)
  • ntfsresize --size <new volume size> <partition> to do the resize. This will schedule a chkdsk check so boot the Windows to finish it.

You need to be in disk group to carry out the action or run it as root.


Use the diskpart command extend filesystem instead. It extends the filesystem, even if it is mounted.

Command found at Microsoft Hotfix description.

  • Thanks, exactly what I've been looking for – Jannis Jun 12 '19 at 18:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.