Today, I was searching for some files that I used to have on my PC, two installs ago (I’m running Window 7 RC now, before that I was running Windows 7 Beta and before that Windows Vista SP1).
However, I apparently missed something when migrating, as I could not find the files. Hopefully, I could find these on the few backups I made before installing the RC. I made backups using Complete PC Backup feature of Windows 7/Vista.
I wondered how to restore only files from an image that was not from this installation. Restore center does not find other installs backup, hence you cannot use it to restore files from another install’s backup files. As I browsed in the backup folder (that is named WindowsImageBackup), I realized that the files stored in there are some .vhd and a bunch of xml files.
I remembered that one of Windows 7 new feature is that you can mount an .vhd file in the disk manager. I never did this before, and it turned out to be piece of cake. Just read here.
Once this was done, I could access all the content of the backed up drives, and restore what I needed.
Sadly, the files were not there, they were on an install I apparently got rid of, so they are lost forever… Now that I have a Windows Home Server at home, I won’t happen again!
Quick reminder: I had a WD Raptor 74 Gb hard drive that was not working properly. The system was installed on that drive, so I had to copy it to as second drive (a WD 320 Gb disk), in order to send the Raptor back to WD support.
Two weeks ago, I received a package from Western Digital. Very nice surprise, the package contained a brand new WD Raptor 160 Gb drive! Guys, you have a customer for life!
Anyway, the next actions were obvious:
- Make a Complete PC Backup of the system partition onto one of the other partition of the 320 Gb drive;
- Restore that system on the brand new 160Gb Raptor drive.
Sounded easy (too easy?), I was already seeing myself with my PC up and running in less that an hour.
As you can guess, I was wrong, very wrong.
When I tried to restore the system partition (40 Gb) on the Raptor, I had an error saying that the target drive was not big enough. Not big enough? I don’t have the exact error message, but I was quite shocked.
Some research quickly revealed that you cannot restore a backup made from a drive A onto a drive B if A > B, even if the partition that you want to restore is smaller than drive B . You read correctly, drive size is the thing that matters, not partition size! So the Complete PC Restore tool was not able to restore my 40 Gb partition on a 160 Gb drive.
So from there, there are two solutions I could think of:
- The hard way: restore the system in a virtual machine on a bigger drive, then resize the drive to make it smaller than the target drive, backup the system in the virtual machine, then finally restore it on the physical drive. I didn’t try that one, but I’d like to, one of these days. I figure that they will be some hardware issues, though.
- The easy way: use a third party tool, like Acronis True Image.
After installing Acronis True Image free trial version (15 days), I could copy my system partition on the new drive, in a few minutes. I then rebooted and the system magically restarted on the new drive.
So, there is still some work to be done on that Complete PC Backup and Restore tool…
Some time ago, while reading comments on this post from Coding Horror, I discovered that there was a Complete PC Backup and Restore tool build-in in Windows Vista (well, at least some of versions of Vista).
What a fantastic feature! In a few click, you can make a copy of your current system. then, if something goes wrong, you can restore it, even on an other hard drive or/and computer if needed.
At least, that’s what they say. But if you actually tried this, you may have ran into some issues. However, I managed to get this working and I’m now writing on my system that has been moved from one disk to an other.
A bit more than two years ago, I bought a complete new PC. As hard drive, I chose a Western Digital 76Gb Raptor. It was a bit expensive, but according to the tests, it was well worth it.
I must say that I was very satisfied about the drive. It was a bit noisy, but inside my Antec P150 case it didn’t make much noise.
But after some time, I started having read problem on the drive. The computer stopped responding, and could not boot if reset, stating that a read error occurred, or event not displaying the drive at all. I bought a second drive, some WD 320Gb drive (that I’m using as primary drive today), and re-installed the system on it.
I still had some problem then, the computer refused to work with two hard drives at the same time. I still don’t know what was the problem, but that is another story.
Anyway, a month ago, I bought a nearly new PC (CPU, GFX Card, RAM and was forced to buy a new case as the power supply of the P150 was not strong enough for my new 260 GTX), but kept my old drives as they were still okay. I installed Vista Ultimate that I received at some Microsoft event, and everything ran smoothly. I finally had a working computer at home.
For a week or so…
The reading error appeared again. This time, there was no doubt, the Raptor was guilty.
I decided to send it back to Western Digital, and to copy my current system on the other drive.
First Attempt: Backup image is on the same (physical) drive
In my configuration, I had two hard drives available:
- 76Gb WD Raptor as primary drive, 39Gb partition for the system, the remaining space allowed to a game partition;
- 320Gb WD as data drive, a 100Gb empty partition and the remaining space left for some data.
My plan was simple:
- Make a complete PC backup of the system drive (first Raptor partition) on the second partition of the second drive;
- Remove the Raptor from the case;
- Boot on Vista install DVD and run setup to do a complete PC restore of the backup image on the first partition of the second drive.
You can see the actual steps with screenshots on this tutorial.
The first two steps went well, but third step failed. I received some "The parameter is incorrect. (0x80070057)" error. After some search, I found this interesting post that lists common causes and solutions to backup and restore tools from Vista.
However, even if the error number is the same, the error listed is about File Restore, not Complete PC Restore.
I figured out that this was related to the fact that I only had one hard drive, as the setup never actually asked me about partitions.
Second Attempt: Backup image is on an external USB drive
I plugged the Raptor in the PC again and booted Vista. I plugged an WD Passport 250Gb drive in on of the USB port, and did a Complete PC Backup of the system partition on that external drive.
Once again, I stopped the computer, removed the Raptor and booted on Vista install DVD.
This time, the restore complained again, but with an other error. The error was: "A data disk is currently set as active in BIOS. Set some other disk as active or use the DiskPart utility to clean the data disk, and then retry the restore operation. (0x80042406)".
As you can use the command line in the restore menu of the Vista DVD, I headed there and ran Diskpart. I typed in "select disk=0" to select the first disk. Then I typed in "clean", which took a few seconds. apparently that was successful. However, doing some "select partition" command after that taught me that my whole drive was gone with the clean command. So, that command erases all partitions on the drive. Hopefully, nothing important on that second data partition…
Back to the Complete PC Restore utility in the Vista DVD menu, this time it worked. Finally, I was having that progress bar saying that disk C: was being restored.
I went away from the computer while the restore process took place.
When I came back, the progress bar was nearly full, and en error message was saying that some I/O error happened. Well, I guess this can happen sometimes with USB powered external drives… I ran the operation again (going trough Diskpart again, of course), went away again, came back and saw the same error.
Damn, I thought, is this thing working at all?
Third Attempt: Backup image is on an NAS drive
I still had one card up my sleeve. I own a QNAP TS-101 that holds a 500Gb drive (a Samsung drive that I find very noisy, they didn’t have any WD left when I bought it).
In one of my previous attempt, I noticed that on top of the images found by the restore tool, you can specify a location yourself. And this location can be on the network.
As this was a few days after, I wanted to make a new backup image of the system. However, when creating a backup image, you can only select hard drives or DVDs as location for the backup… I selected the second partition of the Raptor disk (reminder: the other disk is gone due to the clean command). I then started FileZilla as administrator (otherwise the files cannot be seen in FileZilla) and uploaded the WindowsImageBackup directory on the NAS drive.
Once more, I opened the case, remove the Raptor drive, booted on the Vista DVD and followed the restore procedure.
When the setup scanned for images on the drives, I promptly clicked the "Skip" button, then was able to connect to the network. Although it didn’t find anything on the network, I was asked to enter the location of the backup image. I entered the network location, and the setup found the image.
A few clicks later, the restore process then started. I went away again.
When I came back, the screen was displaying the Vista login screen! At last, it worked. I logged in and found my system exactly as it was when I backed it up.
I went to check the state of the drive in the disk manager utility, out of curiosity. I realized that the restore process created a partition of the exact same size as the one I backed-up, and left all the remaining space unallocated.
Here are the things to remember from this experiment:
- You need a spare drive to restore your system on. Even if you only backed up a partition of a drive, the restore process needs a full drive to restore. It will create a partition of the size of the backed up partition, and leave the remaining space as un-partitioned space.
- You should avoid using a USB powered disk as storage for image backup. However, according to this post (which is a more successful story than my own), an external drive is ok.