VHDMount without VHDMount

VHDMount without VHDMount

  • Comments 17
  • 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
  • <p>Now if they would just include a built-in ISO mount utility with Windows 7.</p>

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

  • <p>take a look at Portlock SMART Suite for windows. &nbsp;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</p>

  • <p>Dave,</p> <p>Can you mount differencing disks with this?</p> <p>Yeah, I know, I should get 2008 R2 up and running. &nbsp;Will do _soon_.</p> <p>Aidan.</p>

  • <p>In &quot;disk management&quot; look at &quot;actions-&gt;more actions&quot; - 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!</p>

  • <p>Thank you Soooooooo Much for this tip</p> <p>Gotta Love Diskpart!</p>

  • <p>Way cool - thanks for this Dave!</p>

  • <p>Nice one Dave, however it looks like it does not support RAW or EFS filesystems which I believe Vhdmount did. &nbsp;Bummer</p>

  • <p>Hi,</p> <p>did you have heard about Gizmo drive?</p> <p>It does many of the things that you are discussing here.</p> <p>It's a very handy tool and it's free.</p> <p><a rel="nofollow" target="_new" href="http://arainia.com/software/gizmo/overview.php?nID=4">http://arainia.com/software/gizmo/overview.php?nID=4</a></p>

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

  • <p>This post reminds me why I love the internet-thanks a million.</p>

  • <p>Thanks a lot! Saved me lots of time :)</p>

  • <p>Joe (&amp; others) you may want to check out ImDisk for working with disk virtual drives, &nbsp;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 &amp; 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). &nbsp;You can get it here:</p> <p><a rel="nofollow" target="_new" href="http://www.ltr-data.se/opencode.html#ImDisk">http://www.ltr-data.se/opencode.html#ImDisk</a></p>

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

  • <p>Thanks for the article and the comments--command line and diskmgmt.msc--Yea...</p> <p>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.</p>

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