Thursday, January 10, 2013

Mounting a VHD file as a drive letter in Windows 7 and Server 2008


Just found something rather cool, you can create or mount a VHD file as a drive letter in Windows 7 and 2008 and then copy files to it or from it.

In windows 7 or 2008
Right-click My Computer or Computer and choose Manage
Go to storage\Disk Management, right-click Disk Management and you can Create VHD or Attach VHD in this case choose Attach VHD
Browse to your VHD file and then click OK
Your VHD file is now mounted as a drive letter and you can mess with partition or files.

To Detach the VHD
Right-click My Computer or Computer and choose Manage
Go to storage\Disk Management, right-click the DISK #
Choose detach VHD
Click OK

If you wanted to create a VHD file that you could then copy tons of files or data too.
Right-click My Computer or Computer and choose Manage
Go to storage\Disk Management, right-Click Disk Management and choose Create VHD or Attach VHD
Click Browse, then browser to your new VHD files location and give it a name
Choose the VHD file size
Choose the type of VHD file you want
Click OK, this will create your new VHD and mount it for you
Right-click it and choose Initialize
Right-click it and choose New Simple Volume, follow the wizard
Your new VHD is now created and ready to accept file/data via Explorer


If you want to simply mount or dismount a VHD by right-clicking the VHD file you need to download and install VHD Attach.

No comments:

Post a Comment