Have ever used Virtual Hard Disks (VHDs)? Okay, it is a file type that acts like a Hard Disk.
Now, we are going to discuss about the VHDs in our blog. In previous versions or Windows, VHDs were in use for Virtual Machines like Microsoft Virtual Server 2005 or Microsoft Virtual PC. In addition, Complete PC Backup in the Windows Vista Operating System created a copy of the Computer’s Hard Disk as a Virtual Disk Image.
Moreover, you can use the VHDs as a physical disk, with the Windows 7 Operating System. If you mount these VHDs, you can easily copy files to and from the Virtual Disks. At the same time, Windows 7 is easily configurable to boot from a VHD.
If you want to create a VHD, you can create it either from the Disk Management snap-in or the Command line. Once you create the VHD, you should attach it and then format if before you can use it, just like a physical partition.
Follow the steps to create from Disk Management console:
1. Right click on Disk Management, then click Create VHD, and follow the prompts that appear in front of you.
2. Now, right click the New Disk and then click Initialize Disk. Then click OK.
3. After that, right click the New Disk and then click on New Simple Volume or you can select a different volume type if it is available. Then follow the prompts as they appear.
4. That’s it. The new Virtual Disk is ready to use, just like your other Disk.
This is another way to create a VHDs.
1. Run the create “vdisk” command and specify the file and maximum parameters from the DiskPart Command Line tool at an elevated Command Prompt.
2. The code given below shows how to create a VHD file at :\vdisks\disk1.vdh with a maximum size of 16GB.
3. If you want additional options, run the Command Help create vdisk at the DiskPart Command Prompt.
4. Once you finish creating VHD, you should attach it, create a partition, assign it a drive letter and format it before it can be used just like a physical Disk.
5. The script given below shows how to do this, this should be run within a DiskPart session.
By
Now, we are going to discuss about the VHDs in our blog. In previous versions or Windows, VHDs were in use for Virtual Machines like Microsoft Virtual Server 2005 or Microsoft Virtual PC. In addition, Complete PC Backup in the Windows Vista Operating System created a copy of the Computer’s Hard Disk as a Virtual Disk Image.
Moreover, you can use the VHDs as a physical disk, with the Windows 7 Operating System. If you mount these VHDs, you can easily copy files to and from the Virtual Disks. At the same time, Windows 7 is easily configurable to boot from a VHD.
If you want to create a VHD, you can create it either from the Disk Management snap-in or the Command line. Once you create the VHD, you should attach it and then format if before you can use it, just like a physical partition.
Follow the steps to create from Disk Management console:
1. Right click on Disk Management, then click Create VHD, and follow the prompts that appear in front of you.
2. Now, right click the New Disk and then click Initialize Disk. Then click OK.
3. After that, right click the New Disk and then click on New Simple Volume or you can select a different volume type if it is available. Then follow the prompts as they appear.
4. That’s it. The new Virtual Disk is ready to use, just like your other Disk.
DiskPart Microsoft DiskPart version 6.1.7100 Copyright (C) 1999-2008 Microsoft Corporation. On computer: WIN7 DISKPART> create vdisk file="C:\vdisks\disk1.vhd" maximum=16000 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 F New Volume NTFS Simple 20 GB Healthy Volume 1 E New Volume NTFS Simple 40 GB Healthy Volume 2 R DVD-ROM 0 B No Media Volume 3 C NTFS Partition 75 GB Healthy System Volume 4 D New Volume NTFS Partition 52 GB Healthy DISKPART> select volume 0 Volume 0 is the selected volume. DISKPART> delete volume DiskPart successfully deleted the volume. |
This is another way to create a VHDs.
1. Run the create “vdisk” command and specify the file and maximum parameters from the DiskPart Command Line tool at an elevated Command Prompt.
2. The code given below shows how to create a VHD file at :\vdisks\disk1.vdh with a maximum size of 16GB.
3. If you want additional options, run the Command Help create vdisk at the DiskPart Command Prompt.
4. Once you finish creating VHD, you should attach it, create a partition, assign it a drive letter and format it before it can be used just like a physical Disk.
5. The script given below shows how to do this, this should be run within a DiskPart session.
create vdisk file="C:\vdisks\disk1.vhd" maximum=16000 attach vdisk create partition primary assign letter=g format |
By