You can create a VHD from the Disk Management Console
The other day I was experimenting with Windows XP Mode on my Microsoft Windows 7 test system and was backing up my Windows XP Mode virtual machine and the accompanying virtual hard disk (VHD), when it occurred to me that I could use a VHD as a backup device.
Once I began experimenting with this technique, I knew that it would be perfect complement to my overall backup strategy. I don't trust a single backup device and like to have multiple backups just in case. Using VHDs, I can easily back up my data and then just copy the VHD file to another external device.
In this edition of the Windows Desktop Report, I'll show you how to create and use a VHD as a backup device.
Getting started
Because the technology is built right into the Windows 7 operating system, you don't have to install Windows Virtual PC to create a VHD - you can do it right from the Disk Management Console or even from the command line with the Diskpart command. Let's take a look at the procedure using the Disk Management Console. (I'll go over the Diskpart command procedure at a later time.)
To get started, click the Start button and type Diskmgmt.msc in the Start Search box and then press [Enter]. When the Disk Management Console appears, as shown, you're ready to create your VHD.
You'll then need to specify a location, name, and size for your VHD
Pull down the Action menu and select the Create a VHD command. When you do, you'll see the Create and Attach Virtual Hard Disk dialog box. You'll then need to specify a location and name by clicking the Browse button. You then will specify a size. The Size drop down will allow you to select the size of the VHD in MB, GB, and, TB. As you can see in Figure B, I set up a 40GB VHD called My VH Disk in the Documents folder.
You'll see a progress gauge at the bottom of the Disk Management Console window
A dynamically expanding VHD will create a file that at any given time is as large as the actual data written to it plus the size of the header and footer. For example, if you create a virtual hard disk that is 40GB in size, the system will create a host file approximately 80MB in size. As more data is written, the file dynamically increases in size by allocating more disk space from the host hard disk.
For the purposes of creating a virtual Back up device, either format is fine.
When you click OK, the Disk Management Console will begin creating the VHD. Depending on the size that you selected, it may take a little while to create the VHD. You'll see a progress gauge at the bottom of the Disk Management Console window, as shown.
When you select the command you'll see the Initialize Disk dialog box
When you select the command and you'll see the New Simple Volume Wizard
Initializing the disk is a very quick operation. Once it is complete right click on right side and select the New Simple Volume command and you'll see the New Simple Volume Wizard, as shown.
When you complete the wizard, an AutoPlay dialog box will appear and prompt you to open the new drive
You can locate and copy your VHD file to multiple locations.
To back up your data to the VHD, you can simply copy the files and folders from your hard disk to the VHD or you can use Windows 7's Backup and Restore to actually create its backup file on the VHD. You can then locate the actual VHD file, as shown, and copy it to an external hard disk or to a network drive.
You can locate and copy your VHD file to multiple locations.
If you want to have multiple copies of your backup, you can copy the VHD file to multiple locations.
Comments
VHD has takes whole image of your OS.You can use VHD as Virtual image source