Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an old PC booting Windows XP from a 40Gb drive. It also has a 320Gb hdd and a CD r/w. The 40Gb drive is getting quite noisy, and I'd like to swap it for a quieter 12Gb drive I have lying around.

I only use the machine to play video through my TV. Apart from occasional updates to XP and VLC (the video player I use) I don't write to the boot drive, which currently has about 8Gb in use. I periodically use Paragon Backup & Recovery (free) to put the latest 'snapshot' of the boot drive onto the 320Gb 'data' drive.

I always do a defrag before backing up, using Smart Defrag. But both this and XP's built-in defragger leave gaps between files. So I can't just swap drives and restore to the 12Gb unit, because the backup image actually wants to spread itself across nearly 15Gb (to mirror how the files exist on the original).

Is there any (preferably free) way to defrag the 40Gb boot drive so all the files are contiguous, within the first 8Gb of space?

UPDATE - I'm beginning to think I must need something that can create its own 'Boot CD'. Everything that's been suggested so far seems to use at least the filing system components of XP from the disk I'm trying to defrag - so they can't move those files, because they're 'in use'.

UPDATE2 - I seem to have answered my own question. Paragon Total Defrag has just done what I want. It's a 30-day trial, but I only need it once, so that's me sorted. Note that I'm not concerned about optimising disk performance at all - I just want to get all files contiguous, with no gaps between them.

share|improve this question

Give this one a shot, it worked for me. : Auslogics Disk Defrag

share|improve this answer
Thasnks, but Auslogic's offereing didn't work for me. Which is what I expected, when I saw it runs under Windows. It certainly can't move OS files that are currently in use. I also suspect it doesn't even try to move files that aren't actually in use, if they have System and/or Hidden and/or Read-only attributes set. – FumbleFingers May 15 '11 at 17:10

There are programs that can move the free space to the end of the drive during the defrag process.

Does it for sure but its a paid app: Diskeeper:

Think these do it as well, worth checking on as they are free: and

share|improve this answer
@Amartel: defraggler is the same as Auslogic's - they're Windows progs that can't touch files in use. I think maybe I need a cd to boot into Linux or something, the way Paragon's Backup/Restore CD works. – FumbleFingers May 15 '11 at 18:21
Diskeeper is the only one that I am sure does what you need. It has an option to defrag offline before a full boot therefore can move every file. There is a free trial available, check it out – Amartel May 16 '11 at 1:14
+1 for Diskeeper. The 2011 version is excellent. You can check out their free trial – user81516 May 16 '11 at 15:08
@Amartel: I just tried Diskeeper (Pro) trial version, but it works the same as Smart Defrag. The 'boot defrag' feature (which runs before XP is 'fully' loaded) still can't move those 'system files' that are way down near the end of the drive. I didn't like Diskeeper much anyway - it forced me to supply an email addr and personal details before even to d/l the free 30-day trial. At least Smart Defrag doesn't mess about like that, and it's not time-limited either. – FumbleFingers May 16 '11 at 15:31
Defraggler is sufficient in most cases. But the biggest thing is MTF Fragmentation, I believe Diskeeper can fix that in preboot mode. MTF fragmentation is the largest performance hit in regards to fragmentation. – Jeff F. May 17 '11 at 17:01
up vote 3 down vote accepted

Not sure of the etiquette here. None of the suggestions worked, so I don't want to accept any of them. But I found Paragon Total Defrag (30-day trial), and it seems to have done the trick after allowing me to create a Boot CD and defrag from that.

I haven't actually restored to 12Gb drive yet, but SmartDefrag's 'disk map' suggests the awkward files at the end of the old 40Gb drive are gone.

Be warned! It took Paragon over 2 hours to defrag a drive which was already fully optimised apart from those few awkward files. So I wouldn't try it on a 1Tb+ drive unless you've got a free weekend!

share|improve this answer

There is reviews for free software here:

I tested MyDefrag and it does just that.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .