Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
Shrinking the partition might resolve the issue. –  Harry Johnston Oct 14 '12 at 21:56
add comment

1 Answer

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.
  • 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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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