Welcome to YLOAN.COM
yloan.com » Windows » How to Create and Use a Virtual Hard Disk on Windows 7
Games Personal-Tech Data Entry registry cruise torrent mac code virus storage uninstaller systems cisco bugs wireless codes maintenance dell update communication trojan atlanta Data Backup Data Storage Data Protection Data Recovery Anti-Virus Windows Linux Software Hardware Mobil-Computing Certification-Tests Computers & Internet Internet

How to Create and Use a Virtual Hard Disk on Windows 7

How to Create and Use a Virtual Hard Disk on Windows 7


If you are just a Windows 7 user, now you can completely mount Virtual hard disks (VHDs) exactly like a physical disk. Of course, you can easily copy files to and from the virtual disk by mounting a VHD. Also Windows 7 can be configured to boot from a VHD. You can create a VHD from either the Disk Management snap-in or the command line.

Virtual hard disks (VHDs) are a file type that acts like a hard disk. In previous versions of Windows, VHDs were used by virtual machines, such as those created by Microsoft Virtual Server 2005 or Microsoft Virtual PC. Additionally, Complete PC Backup in Windows Vista created a copy of the computer's hard disk as a VHD disk image.

Note: After you create the VHD, you must attach it and then format it before you can use it, just like a physical partition.


From the Disk Management console, follow the steps below:

1. Right-click Disk Management and then click Create VHD. Then follow the prompts that appear.

2. Right-click the new disk and then click Initialize Disk. Click OK.

3. Right-click the new disk and then click New Simple Volume (or select a different volume type, if available). Then follow the prompts that appear.

Now you can use the new virtual disk (just like any other disk).

From the DiskPart command-line tool at an elevated command prompt, run the create vdisk command and specify the file (to name the file) and maximum (to set the maximum size in megabytes) parameters. The following code demonstrates how to create a VHD file at C:vdisksdisk1.vdh with a maximum file size of 16 GB (or 16,000 MB).

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.

Additionally, run the command help create vdisk at the DiskPart command prompt. Once you create a VHD, you must attach it, create a partition, assign it a drive letter, and format it before it can be used.

Thefollowing script (which must be run within a DiskPart session) demonstrates how to do this.

create vdisk file="C:\\vdisks\\disk1.vhd" maximum=16000

attach vdisk

create partition primary

assign letter=g


format

Ifyoualsohavesomequestionsafteryoureadthisarticle,youcanvisittheoriginalarticlefrom:

http://www.newton360.com/Detail/How-to-Create-and-Use-a-Virtual-Hard-Disk-on-Windows-7.html

Welcometohttp://www.newton360.com togetmoreinformatin,includingWindows7tips,news,wallpapersandsoftwares...etc.
An Informative Guide To Different Types Of Windows How to Check if Your Roof Needs Repairs How to Customize the Start Menu Options in Windows 7 Use Three Dedicated System Information Tools to Dig Deep into your system in Windows 7 The History Of Anglian Windows History Of Zenith Windows What You Need To Know About Common iPod Repair Needs Newton Plumbing - Newton MA plumber heating drain gas repair What To Look For When Searching For Mac Repair Technician How to modify the logon screen picture for windows7 and delete files completely and safely The Key Technology Of Chinese Doors And Windows Hardware Products' Competitive Power How to Fix "Serious disk errors writing to drive X" in Microsoft Windows? Printer repair 5 times within six months, said Daewoo reply within a week - printer maintenance - office supplies industry
print
www.yloan.com guest:  register | login | search IP(18.191.238.220) Mato Grosso do Sul / Campo Grande Processed in 0.010132 second(s), 7 queries , Gzip enabled , discuz 5.5 through PHP 8.3.9 , debug code: 70 , 3308, 13,
How to Create and Use a Virtual Hard Disk on Windows 7 Campo Grande