«

»

Aug 30

Mount a VHD File as a Drive in Windows 7

One of the features in Windows 7 is the ability to mount a VHD file as a drive, this could be very useful in this world of HyperV because this allows you to extract a file directly from the VHD file on a desktop machine very useful if you have a VHD backup of your server and just require a few files.

The first step is to open disk management, once open right click on Disk Management and choose “attach VHD”.

Once attached you will see a new drive in my computer, you can then copy files from and too the mounted VHD file.

To dismount the VHD from disk manager just right click on the disk and from the sub context menu choose “Detach VHD”

You can as well mount the VHD from the command prompt or via PowerShell first from the CLI load diskpart

Next use the command select vdisk file=”C:\vhd\test.vhd”

To attach the VHD use the command attach vdisk

To unmount the VHD use detach vdisk

UPDATE

Deano left a great comment on the post:which i thought i would share -

“This is a really handy feature of Windows 7 that I have used a lot of times. One thing to point out is that this feature is only available in Windows 7 Enterprise and Windows 7 Ultimate”

Dave

About Dave Coleman

Dave Coleman has written 332 post on this blog.


Technorati Tags: , ,

Related posts:

  1. Windows 7 GodMode Part 2 Earlier in the week i posted on GodMode in Windows...
  2. Create SharePoint 2010 sites using PowerShell reading an XML file Just a quick post to show how easy it is...
  3. Don’t Forget Windows 7 RC Starts Auto Shutdown 1st March   For those people still running the Windows 7 Release...
  4. Windows 7 Phone unveiled Today at the Mobile world congress Steve Balmer Microsoft CEO...
  5. Blocking Windows Update KB976002 Last week I did a short post called Windows Update...
  6. Windows Update and the EU Nanny state (KB976002) I am a great believer in keeping not only my...

4 comments

  1. Deano

    This is a really handy feature of Windows 7 that I have used a lot of times. One thing to point out is that this feature is only available in Windows 7 Enterprise and Windows 7 Ultimate

  2. Dave Coleman

    Thanks i will update the post and credit you if that is ok?

  3. Deano

    Oh all right then, if you must! :)

  4. Ravikanth

    Nice! Check this post: http://www.ravichaganti.com/blog/?p=349
    You can actually extend the right-click context menu for VHDs to add the mount and unmount options.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>