VHDMount without VHDMount

VHDMount without VHDMount

  • Comments 18
  • Likes

To mount a VHD file onto your file system, you either ran some very complicated VB (or PowerShell) Script or you used VHDMount.exe that came with Virtual Server.  If you’re running Windows 7 (or Windows Server 2008 R2), you can now use Diskpart.

So, from an elevated command prompt, run Diskpart.

Select the VHD in question:

sel vdisk file="c:\users\daven\desktop\xp professional.vhd"

Then attach it to your system:

attach vdisk

image 

That’s it.  Pretty easy.

Dave

Share this post : Technet! del.icio.us it! digg it! live it! reddit! technorati!
Comments
  • Now if they would just include a built-in ISO mount utility with Windows 7.

  • I can only agree with you Joe - I've been asking for the same thing for years...

  • take a look at Portlock SMART Suite for windows.  No installation required. allows you to mount an ISO with a program called Portlock Drive Explorer. I had no problems accomplishing this on Win 7. Theres a free trial for download

  • Dave,

    Can you mount differencing disks with this?

    Yeah, I know, I should get 2008 R2 up and running.  Will do _soon_.

    Aidan.

  • In "disk management" look at "actions->more actions" - you can do the same thing with the GUI! - I am on Win7 build 7000, still - I suppose it is still there on newer builds too!

  • Thank you Soooooooo Much for this tip

    Gotta Love Diskpart!

  • Way cool - thanks for this Dave!

  • Nice one Dave, however it looks like it does not support RAW or EFS filesystems which I believe Vhdmount did.  Bummer

  • Hi,

    did you have heard about Gizmo drive?

    It does many of the things that you are discussing here.

    It's a very handy tool and it's free.

    http://arainia.com/software/gizmo/overview.php?nID=4

  • How to make .bat file to attach vhd every time I boot a system?

  • This post reminds me why I love the internet-thanks a million.

  • Thanks a lot! Saved me lots of time :)

  • Joe (& others) you may want to check out ImDisk for working with disk virtual drives,  not sure if it works with Windows 7 or not, but it allows you to mount ISO image files and other 'raw' image files (.bin, .ima, .img, .dsk & more) as virtual drives using the right click context menu, it handles raw images produced from entire physical drives or just images produced from individual partitions (FAT/FAT12/FAT32/NTFS possibly a few more not surethough).  You can get it here:

    http://www.ltr-data.se/opencode.html#ImDisk

  • You don't need to do it this way at all!  It is super easy to do using diskmgmt.msc or through manage computer --> disk management.  Once the console is finished loading, click the Action menu, choose Attach VHD, browse to your vhd file and viola!

    You may need to initialize the disk after it mounts.

    See, super easy!

  • Thanks for the article and the comments--command line and diskmgmt.msc--Yea...

    And for the ISO comment. I use 7-zip. It now extracts ISOs, runs x86, x64, etc. And it has always compresse better than Winzip. Plus you can run the command line version on your servers without an install.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment