Clone Windows 7 from HDD to SSD; How To

So you decided to upgrade your current harddrive with a blazingly fast SSD. But you just installed Windows 7, all your apps, and got settled in Microsofts new OS, and really don’t wanna spend an entire day reinstalling it all again. Well, atleast that was my scenario.
So would it be possible to take your current install from a much bigger harddrive over to one of the small and fast SSD’s, without reinstalling? Yes, ofcourse. And it’s not even as bad as it might seem, and best of all, it won’t cost you a daime.
Proceed below to read my humble guide on how I switched from a 500 GB HDD to a 160 GB SSD.
Ok, to begin this guide I’ll set up some kind of overview of what we have to do here. The scenario is; we have windows 7 installed on our HDD which is most likely bigger than the SSD we want to transfer to. Since we want to “clone” the system from one disk to another, we will need to make the size of the backup image we’re going to use smaller. If you for instance have Windows 7 installed on one big partition that is bigger than the disk you wanna clone to, the restore function of any cloning tool will tell you, that it can’t clone the image, since your target disk doesn’t have space enough. So let’s start looking at making your current system partition smaller.
Step 1: Setting system disk partition down
Windows 7 has a habbit of placing some systemfiles in the very end of the harddisk. So that means, if you have a 500 gb harddisk, all system files, and other files you might have on the drive, will most commonly be placed in the beginning of your drive, where a pagefile will be placed in the very end of your drive. We need to change that somehow, so you can resize your system partition.
1. Defragging.
First thing I did was to defrag my current harddrive. Windows defrag sadly won’t do here, since it doesn’t move the pagefile, as far as I have experienced anyways. So what you need to use is PerfectDisk 10 (Get it here!). Install the trial version, and run it. Choose to defrag your c: drive, or where ever you have your Windows 7 installed. When it’s done, simply close the program, and proceed.
2. Fixing the partition.
I personally had a 500 GB disk without any partitions except the one I used for Windows 7. Since my new SSD disk only could hold 160 GB, I clearly needed to shrink down my 500 GB partition to fit it on the new SSD. Windows own Disk Manager wouldn’t let me touch my system partition though, so I had to find a good 3rd party app, that would let me shrink my system partition. Partition Wizard is a brilliant app for this task (Get it here!). Just download the app, install it, and run it. Go set the size of the system partition c: using the rulers, press the button Apply, and reboot when it asks you to do so. I personally changed my c: partition from 400 GB to 100 GB. Windows 7 has a 100 MB hidden partition, that it brings on over to your new drive when you’re cloning, so basically, resize your c: partition to approx the size of the disk you want to clone to, minus 100 or 200 MB. When your computer has rebooted, a short status-screen will pop up during Windows loading, telling you what is going on. When that is done it will boot into Windows, and your disk has been shrinked to the wanted size.
Step 2: Making the Windows 7 image
Windows 7 has a brilliant backup tool build in. Some say it’s only from Windows 7 Proffesional and up, but I wouldn’t know, since I run Windows 7 Pro here, and the tool worked for me. Anyways, we will use the built-in backup tool here, especially because it’s free, it’s very simple, and it doesn’t misallign you partition. Let me break this down in steps. You need an extra harddisk for this step, formatted in NTFS.
1. Go to Control Panel and press Backup and Restore.
2. On your left hand in the little pane there you’ll see the point “Create a system image”. Click it.
3. Your system will now scan for free space where it can put the image you’re gonna create. Once it’s done scanning, select the place where you want to place your backup, and press next.
Windows will now create a system image on your chosen location. Once it’s done backing up it will ask if you want to create a repair disc. If you have the Windows 7 install disc you can simply click “No” to this, as the installation disc has the same feature.
With your system image all good to go, find your Windows 7 installation disc or repair disc, and tell Windows to shut down.
Step 3: Cloning your system to your SSD
This is really simple. To start with, you need to unplug your HHD’s sata cable, and plug your new SSD in instead. Turn on your PC afterwards, and put the Windows 7 installation disc or repair disc into your DVD drive. Be sure that your BIOS is set to boot from the DVD drive unless there is a system disk. So, what should happen is, that your PC will boot from the Windows 7 DVD.
When the installer has booted, simply choose your prefered language, as you would do when you installed Windows 7. On the next screen you get the install option. Don’t press that though. Underneath, with smaller text, is an option to repair. Press “Repair” to choose that option. Once it hits the next screen, it will ask if you would like to repair from a system image, and this is what you want. It will scan your drives, find the image you made earlier, and proceed. On a short note, I would make sure that only my target disk, the SSD, and the disk which holds the system image are connected to the PC. That way you can’t make any errors, and format any other important discs. Anyhow. Press the button to fullfill the task, and let it work. It warns you, that it will format and replace all data on the disk, but that’s fine, since that’s what we want. And aslong as you only have your new SSD disk and the disk with your system image connected, there is no worries.
Now lean back, and watch it restore your system image onto your new SSD disk. Once it’s done, it will reboot, and your system is now on your new and fast SSD.
Small tips!
Activating AHCI
If you installed Windows 7 previously with your motherboard set to AHCI mode instead of IDE mode your settled. If your motherboard runs in IDE mode though you really want to set it to run AHCI instead, since it’s faster. Some claim you need to reinstall Windows to archieve this, but that’s not true. Thing is, you need to do two very simple things to activate AHCI.
1. Activate AHCI in Windows first!
There’s a brilliant guide on how to activate AHCI in Windows from Microsfot here! Since it’s written in danish, I’ll just re-write it here in english. So here’s how to activate AHCI in Windows, which needs to be done first before you activate it in your BIOS.
1a. Close all your open programs in Windows.
2a. Click Start (the windows logo in your taskbar) and type regedit in the searchfield.
3a. Open regedit, and do a search for HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci
4a. Right click on the “Start” entry it found under Msachi, and select “Properties”
5a. The value will most likely say “3″. Change that value to “0″ (zero).
6a. Quit regedit, and reboot your PC. AHCI has now been activated.
2. Activate AHCI in your BIOS
When your PC boots up, press Delete, F2 or whatever your BIOS prompts you to press to enter setup. When you’re inside your BIOS, go to the harddisk configuration menu. Now go to where it says SATA Setting or similar, and it will probaly stand as “IDE”. Simply select “IDE” press enter, and choose AHCI from the drop-down menu. Once it’s set to AHCI, press escape, save and exit.
Your SSD will now run in AHCI mode, and gain some speed. Notice, that it is very important to activate AHCI in Windows before you activate it in the BIOS. If you do not activate it in Windows first, you’ll simply get a blue screen upon loading Windows. If that happens, just go to your BIOS and set SATA mode back to IDE, then boot Windows, and activate AHCI as described above, reboot, and jump back into BIOS and activate AHCI as described.
Making use of your former harddrive
What I did here was simply plugging my old drive back in the SATA connector while having Windows booted on my SSD. Doing it like this will prevent your old disk from booting the system rather than your SSD. Windows will find the drive, but you won’t be able to see or use it. Well, not untill you reformatted it. To do this, click on the start button, and hover your mouse over the “Computer” button. Now right-click, and choose “Manage”. In the manager, go to “Disk Management”, and find your previous system disk, ie. your old HDD from which you cloned Windows 7. In the most right side of your disk describtion you’ll see it says that the drive is offline. Right-click on the drive, and set it to “online”. Now you’ll be able to delete it’s partitions, and to reformat it. Presto, now your old drive is free again, and it won’t bother your SSD disk during boot.
I hope you find this guide useful. It’s how I did it, and it works great for me.
Additional tweaks for Windows 7
This site here has some additional tweaks for you if you use Windows 7 and an SSD. Read it through carefully though, and also note the comments. Also note, that Windows 7 will make some of those weaks on it’s own, once it detects the SSD.
Another quick tip: Make Windows 7 shut down faster
Open Registry Editor and go to the following location:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\
In the right side, double click on “WaitToKillServiceTimeout” and edit the Value Data and click on OK and close the Registry Editor.
NOTE: The Value Data should be from 2000 to 20000 Milliseconds. The default will be 12000 Milliseconds. I’ve set my own to 2000, and the PC now shuts down fairly fast. Nice for reboots atleast.
Posted in Uncategorized
November 17th, 2009 at 1:05 am
It doesn’t work for me.
It states that there is no disk it can recover the image to.
And yes the SSD disk is recognized because it shows up in the list of possible disks to exclude.
November 17th, 2009 at 9:49 am
That’s weird. I simply went to the bios and made it find and add the disk, unplugged my hdd with windows on it, and it worked fine. I also got the option to exclude my SSD in the recovery window, but since I was cloning to it I didn’t obviously.
What drive are you trying to clone to? As in, what brand, size etc.?
Also, are you sure your diskimage you made has a small enough partition/size that it fits on your new SSD?
November 17th, 2009 at 1:04 pm
I didn’t even need to go to the BIOS, as it recognizes the attached disks automaticaly. I just need to press F10 after the restart and then I can choose, from a list, which drive to boot from.
I have 1TB HDD with ~80GB system partition and another partition with 630GB which contains a few programms and games installed(thus I want to cloen it as well) and 2 another not important partitions.
I want to clone it to my new X25-M Intel SSD 80GB.
The content of my both 2 first partitions is about 35BG(20GB from system partitions and the rest from the programs partition).
I didn’t do step 1, because the image size is much smaller than 80GB so I thought it’s enough.
I’m thinking about installing new Win7 and migrate settings/files from the original. It’s frustrating
November 17th, 2009 at 3:01 pm
Yeah, I thought it would fit nicely also, since my image was only 51 GB big. However, it told me that it wouldn’t fit on my disk. Therefor I did partition my system drive just like 30 GB under the capacity of the SSD, so I was sure it would fit on the SSD.
So, does the recovery DVD tell you that:
A: There isn’t sufficient space on your drive
or
B: That there is no drive to clone to?
I’d imagine, that if you try to partition your system drive down to 60 GB, it will fit on the SSD without any problems. So basically, partition it to 60 GB, make a new disk image of it, and try to recover from the DVD again. You have to remember, that Windows 7 has some hidden partitions also, so if your main partition is 80 GB it won’t fit on a 80 GB SSD.
I’m not sure this will help you in your case, but that’s what I did, and it worked like a dream.
Lemme know how you’re getting along.
November 17th, 2009 at 5:17 pm
Hi,
I’ve already tried something similar. I shrinked the system partition of the HDD to ~64GB, made a new image of it and tried the same again – nada!
It doesn’t report anything has to do with space. It just states that there is no disk on which restoring the image is possible. Again – the SSD is recognizable drive as it shows also in command prompt.
Maybe it expects to get a disk with the same signature or something.
November 17th, 2009 at 5:54 pm
Very odd I’d say.
All I can advise you is to make 100% sure the disk is activated in your BIOS. Recovery mode might be able to exclude the disk, but if it isn’t activated in your BIOS, you won’t be able to put data on it.
What you also could try is to let it be connected when you boot Windows, and format it in Windows. I don’t know if you tried that.
So basically, make sure it’s activated in your BIOS, if that doesn’t help, take it into Windows, partition it there and format it (your SSD that is).
Let me know how it’s going with that.
November 17th, 2009 at 7:08 pm
I finally succeeded!
In a different way. I used EASEUS disc copy application to:
1. copy the hidden partition to SSD.
2. copy the system partition to SSD right after it.
3. Removing the HDD>
4. changing the new system partitions’ in SSD letter to C via DISKPART from Win7 installation DVD.
5. Making the hidden partition in SSD to be active, again, using DISKPART.
6. It still didn’t work because of “boot failure”. I did restart, again, with the Win7 DVD and applied the automatic repair there – it fixed the trouble and it worked.
7. installed back the HDD – it didn’t do any problems and was just assigned different letters to its 1st 2 partitions(ie the hidden and system, the hidden is no more hidden now).
I hope the above can be helpful for people who failed doing so your way(even though it isn’t a step-by-step because I didn’t write how exactly to use DISKPART).
Thanks for you help dude.
November 17th, 2009 at 8:36 pm
It’s odd that you had to manually copy the hidden partition, since Win7 disk image tool should copy it over also, but nonetheless, great that it worked out for ya in the end
Have fun with your SSD, I know I do
December 12th, 2009 at 5:33 pm
Hello Sonic,
Do i need to set alignment on the X25-M if i wanna clone from my velociraptor HDD to the X25-M?
Thanks
December 12th, 2009 at 6:14 pm
No, Windows 7 own disk image tool will set the correct allignment. I tested this, and it works perfect.
December 12th, 2009 at 6:56 pm
How do you check whether the alignment is good?
December 12th, 2009 at 6:58 pm
btw, the win 7 disk image tool, it’s just like any other cloning tools that will clone the ENTIRE C:\ drive?
December 12th, 2009 at 8:13 pm
You can find an online alignment calculator here: http://www.techpowerup.com/articles/other/157
And yes, the Windows 7 Disk Image tool is just like any other clone-tool, just easier to use and understand, and doesn’t screw your alignment over. That’s why it’s as cool as it is
December 13th, 2009 at 6:47 am
So basically once i “clone” into my X25-M SSD, i input the values into this calculator and it will check whether it’s aligned?
December 13th, 2009 at 5:04 pm
Yes, that is correct
January 3rd, 2010 at 1:02 am
PC Build:
Windows 7 Ultimate 64bit
Western Digital Raptor 74gb to Intel X-25m Gen 2
Sonic this is the best guide I have ever seen! I LOVE YOU MAN!
Backup:
Used the FANTASTIC WIndows 7 image backup tool just like this guide says.
Imaging Process:
Then I used the windows 7 repair disk to boot from. Once in the bootcd I ran the tool to restore from image. I had to run it a couple of times before it found the image (Odd). Once the scan did find the image it started to load but advised me I needed to restart and run the tool again. It does this because a reboot is required if your SSD isn’t already partitioned. After the restart I ran the tool again and it completed the restore perfectly.
SSD Windows 7 Optimizations:
The author was 100% correct to suggest enabling AHCI in WIndows 7 and then in the BIOS. It improved ALL of my disk performance by 10%, enables NCQ and allows TRIM to function.
SONIC: You made a mistake when copying Microsofts instructions for enabling AHCI: You missed these lines:
In the right pane, right-click Start in the Name column, and then click Modify.
In the Value data box, type 0, and then click OK.
On the File menu, click Exit to close Registry Editor.
TRIM:
The Trim command should be enabled by default on Windows 7, but if you want to check to make sure do this
Command prompt(Run as Administrator)> fsutil behavior query disabledeletenotify
DisableDeleteNotify = 1 (Windows TRIM commands are disabled)
DisableDeleteNotify = 0 (Windows TRIM commands are enabled)
DISK RESIZING:
Finally I used Partition Wizard to resize my OS drive from 69gbs to 74gbs. It worked perfectly.
FINAL STEP:
Now that you have a perfectly working TRIM enabled WIndows 7 install MAKE A NEW IMAGE! Backup Backup Backup!
Then thank Sonic for all his hard work. Your the man dude!
January 11th, 2010 at 10:01 pm
***Note*****
You have to change the start entry to 3(left that part out).
*****Important Note********
Activating AHCI
This worked on one computer and would blue screen others 0x00000007b(driver). I had to follow the steps changing the reg and also changed HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\iaStor start(dword) to 3. (I looked up the current driver for my storage controller and set the corsponding reg entry to 3)
August 16th, 2010 at 5:37 pm
I can only second Colin’s statement… thank you Sonic! This is a fantastic guide!
Before finding this page I read many confusing forums that focused on alignment and third party imaging tools. Your recipe is way easier than anything else I found… and it worked!
I had a bit of trouble due to the ~18 GB recovery partition that came with my Dell… but once I removed it and got my original hdd OS booting again, the guide worked almost perfectly for me.
I had an additional hiccup during my first attempt to restore to my 60 GB vertex 2… apparently shrinking the OS partition on my hdd down to 50 GB wasn’t enough. I reduced it further to 40 GB and tried again, and it worked beautifully.
I made a few other simultaneous adjustments… so I’m not entirely sure that it was the partition size that caused my problem. After failing the first time, I booted back into the original hdd OS, shrunk the partition, formatted the new ssd with zeros, and created a new OS image. It’s possible I had made a mistake with the first image, or that the factory delivered state of the ssd wasn’t compatible with the Windows 7 restoration tool.
So for those of you for which this technique didn’t work the first time out… don’t give up. You probably just need to make some minor tweak somewhere.
Thanks Sonic!
August 25th, 2010 at 3:53 am
I have followed this guide but have a problem. When I go to repair to load the previously saved image, the system cannot see the drive. I saved the old image to an external hard drive. I have subsequently loaded Windows 7 Starter on the drive and can easily see the external drive but it is not identified when I go to repair. What can cause the failure to see the drive image in repair mode?
August 25th, 2010 at 10:21 am
Good question. I’ve heard of people having this problem before. I think what you might wanna do, is shrink your Windows 7 partition more, before making an image of it. If the image of your windows partition is bigger than your SSD, it won’t reckognize your SSD as a viable source for the cloning process.
Try this, and lemme know how it goes.