• ARTICLES
SEARCH

How-To Geek

How to Recover Specific Files from a Windows System Image

Windows provides a fail safe way of recovering your entire hard drive with system images, but what if you only need to recover certain files from the image instead of restoring your entire hard drive?

Windows Vista and 7 have a few different options for recovering your computer in case of a catastrophe. System protection will allow you to keep a restore point and backup to an existing known good state, and a system image will allow you to reproduce every bit on your hard drive in case of total failure. A system image is more completed but there is no easy way to recover a single file from a system image.

Create Windows System Image

To get started you first need to make sure you create a Windows system image backup.

Once your backup has been created you will have a series of files on your external hard drive where you saved your backup. The root folder is called WindowsImageBackup with a folder named your username inside. This is where your backup is stored so we are going to use this to get the files back that we need.

Mount VHD

Open your start menu and right click on computer and then open manage.

In computer management click on disk management on the left side.

Open the action menu and select attach VHD.

Note: It looks like you need Windows Vista Enterprise or Ultimate to have this option available. Check out the link below to mount a VHD in Vista Home or Business. If the attach VHD option is greyed out, click in the blank space where your volumes are listed and it should become selectable.

Browse to the VHD file inside the backup folder that was created earlier. If you have two VHD files look at the file size because the smaller one will be your boot partition, and the larger one will be your system (C:) drive.

A new drive should show up in disk management using the next available drive letter.

Recover Files

The autoplay prompt will pop up if you have it turned on because we just plugged in a virtual hard drive.

Browse the files and copy any files you need to recover to your C: drive.

Disconnect VHD

When you have the files you need, go back to disk management and right click on the lower window where it says your disk number. Then select detach VHD to unmount your backup file.


Make sure you don’t check the box that asks if you want to delete the VHD when you detach it.

Mount Virtual Hard Drives the Easy Way

If you think opening disk management is a pain you can instead install VHD attach and open your VHD files directly from your right click menu.

VHD files will be attached to a drive letter just as before and you can recover files the same way.

VHD Attach

Attach VHD files in Windows Vista with a double click

Justin is a Linux and HTPC enthusiast who loves to try new projects. He isn't scared of bricking a cell phone in the name of freedom.

  • Published 11/8/10

Comments (12)

  1. shine

    Hi,

    I would do it in a shorter way. Just install 7-zip and open vhd with it.

    shine :)

  2. IAgree

    7-zip all the way. I use to to get files out of .wim images as well. 7-zip can get files out of anything.

  3. Justin Garrison

    I didn’t realize while writing this article that 7-zip can open VHD files. I wrote an article that will be posted later this week on doing it with .wim files and 7-zip. Thanks for the comments though.

  4. Ushindi

    Could you elaborate a little more on “If the attach VHD option isn’t available click in the blank space where your volumes are listed.”? I have Vista, and under “Action” I have the “Refresh”, Rescan Disks”, and “Help”. Clicking in every blank location I can find on where my volumes are listed produces absolutely nothing – no response. What am I doing wrong, or is this basically for 7 and NOT Vista?

  5. i fuck all the computer

    fuck this is not important to me

  6. Justin Garrison

    @Ushindi it looks like you need Vista Ultimate or enterprise to have the feature. You may want to try this method instead for Vista. http://blogs.msdn.com/b/cschotte/archive/2008/03/26/how-to-mount-a-vhd-quickly-under-vista-using-your-mouse.aspx

  7. Santo

    @ Justin/Geek

    Please remove the above inappropriate posting.

  8. shine

    You are welcome Justin.

  9. Leonidas Pegios

    I have 7 ultimate and I think it is the really cool way for me!

  10. Ushindi

    Thanks for the link, Justin – appreciate it.

  11. einstein

    thanx man, works well in win7 too

  12. theycallmedan

    Thanks this saved me a BUNCH of time and money. had a VHD from old PC; didn’t want to back-up current machine, restore old one just to get a few files, and then restore the current one again. Also, I tried 7zipping it. Problem is that w/ a 100GB+ .vhd image, 7-zip is just way too slow. Your method worked almost immediately. Thanks again.

Enter Your Email Here to Get Access for Free:

Go check your email!