Connected Systems Chilled Out Blog

Hanging stuff together in a meaningful way with some fun added

  Home  |   Contact  |   Syndication    |   Login
  752 Posts | 10 Stories | 467 Comments | 116 Trackbacks

News

Twitter












Tag Cloud


Article Categories

Archives

Post Categories

Image Galleries

Blog Roll

Film

Great Sites

Product Blogs

SoliBlog

Tech Sites

Windows 7 has native support for VHD mounting. Either use Disk Management from the Admin tools or diskpart utilitiy from command line.

To mount a VHD file in scripts using diskpart.

  1. Create a text file with this content:

SELECT VDISK FILE=”filename.vhd”

ATTACH VDISK

  2.  To attach the VHD image in a script, Use:  “diskpart -s scriptfile

For example:

Master file: VHDMount.cmd

diskpart -s "C:\Scripts\Mount.s"

Mount.s:

SELECT VDISK FILE="C:\DataVHD\ImageVHD.vhd"
ATTACH VDISK

posted on Sunday, June 14, 2009 5:48 PM