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.

I'm trying to extend my D: partition in Windows Vista Home Premium to contain the 30.91 GB unallocated space seen below:

http://screenshoot.me/JpJZND

I've read this thread which says it is not possible to extend "backwards", and the answer to it says I should use third-party tools.

I was under the impression that third-party tools use the system commands anyway.

How can I extend the unallocated space into my D: drive without third-party tools?

share|improve this question
    
"third-party tools use the system commands anyway" -- I believe you're thinking of defrag tools rather than partition managers. And yes, most do use MS's Defrag API for moving files but each one has their own layout algorithm (choosing which files go where). The Defrag API merely lets them move parts of files in a uniform, (relatively) safe, and supported manner. –  afrazier Oct 13 '11 at 14:15

7 Answers 7

up vote 6 down vote accepted

The reason why there's no simple way to do what you want is that the internal data structures in a partition record where files are located relative to the start of the partition. Extending a partition to the right is relatively simple since it only requires changing the maximum size value. Extending to the left also requires either relocating every sector of data, or modifying all the data structures in the partition to change their offset values to reflect the changed starting location. Neither of those operations are quick and during the process the partition is not internally consistent which means that any interruption in the process (eg power failure) would leave it corrupt. The data loss risk in doing this is probably why a way to do this isn't built into the OS. The benefit to a small minority of users isn't worth the (primarily PR) liability they'd be taking on for when something goes wrong.

share|improve this answer

Yes that is possible. Copy all the data from your D drive to a different disk/partition, delete the volume of D and then re-create it. Then move your data back on the new D drive.

That is the only way without 3rd party tools.

share|improve this answer
    
Ughh, I totally forgot about this method. –  surfasb Oct 14 '11 at 9:09

If you don't want to spend money on third party tools, the resize you want to do can be done with GParted and you can download the GParted LiveCD for free. GParted Live CD Website

Have in mind that resizing the partition to use 'previous' space will take a long time since the partition software usually have to copy all data from your partition (259 Gb)

share|improve this answer
1  
Of course, GParted is a third-party tool, but herpahs the OP meant "commercial". –  CarlF Oct 13 '11 at 12:21
    
Could you elaborate on the second paragraph? Why do they have to copy all the data from the partition when it's extending backwards? –  Pacerier Oct 13 '11 at 20:22

Raw? No third party? Learn C++ and you can write a simple defragger that consolidates the partition, which then allows you to shrink the partition. You can download Visual Studios Express as a Dev environment.

share|improve this answer
    
The c compiler is a 3rd party tool. My first suggestion was a hex editor but then I realized that it is also a 3rd party tool ;) –  Robert Oct 13 '11 at 13:56

Here's another possibility...

  1. Get another drive with enough space to store the contents of drive D:
  2. Delete the existing partition D:
  3. Create a new partition in the empty space, which will include the extra 30GB
  4. Copy your files back

Make sure that when performing the copy, both the source and the destination are NTFS, and that you take care to preserve permissions.

share|improve this answer

It cannot be done. Yes, third-party tools use the system functions, but this takes millions of carefully constructed such functions and must be done from an environment in which it is safe to pass the disk through inconsistent states. You could not do it manually.

share|improve this answer

Just move the partition backwards using a 3rd-party tool, then extend it forward. Simple!

share|improve this answer
    
Since when can partitions be moved and extended forward? o_O –  Tom Wijsman Jul 14 '12 at 15:17
    
You can use diskpart to expand a partition forward into free space. –  Bigbio2002 Jul 16 '12 at 7:39
    
That still doesn't make you move the partition backwards, which is much harder. –  Tom Wijsman Jul 16 '12 at 12:19
    
Correct, I mentioned that a 3rd party tool is needed for that part in my answer. –  Bigbio2002 Jul 16 '12 at 16:38
    
It's possible that the OP edited his question to clarify that after I had answered, I don't remember. The date on this post is nearly a year ago. –  Bigbio2002 Jul 16 '12 at 19:34

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.