How do I use the VHDMount utility?

John Savill

March 8, 2007

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. Once installed, VHDMount is fairly simple to use with only a few command-line options to use to mount and unmount VHD files. To mount a VHD file, use this command:

    
C:Program FilesMicrosoft Virtual ServerVhdmount>vhdmount /m "d:virtualosclientclient hard disk.vhd"  

If you run the command and you receive an error that says the device driver software was not successfully installed, the problem is that the device driver isn't signed (the final version will be).

To work around the problem, open Device Manager. You'll see the problem device under "Disk drives", as the figureshows. Right-click the device and select Properties. Select the Driver tab and select "Update Driver." Choose the option to manually select the driver and select for the user to pick the specific driver, select Have Disk, and select vhdstor.inf from C:Program FilesMicrosoft Virtual ServerVhdmount. The volume will now mount, and the content will be viewable and modifiable. Another option is to change the Drive Signing to Ignore in Windows XP (Start, Control Panel, System, Hardware tab, Driver Signing and set to Ignore). However this opens the machine up to other risks and won't be necessary with the signed, final version of the driver. For Windows Vista, see the FAQ "How do I disable device driver signing in Windows Vista?" at http://www.jsifaq.com/SF/Tips/Tip.aspx?id=11163 but this isn't recommended.

When finished, unmount using /u, as the following example shows:

C:Program FilesMicrosoft Virtual ServerVhdmount>vhdmount /u "d:virtualosclientclient hard disk.vhd"

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like