| Windows 7: Virtual Hard Disk - Create and Attach VHD Virtual Hard Disk - Create and Attach VHD How to Create and Attach a Virtual Hard Disk in Windows 7
Published 17 Nov 2008
|  Published by | | |
 Featured Tutorial | | | How to Create and Attach a Virtual Hard Disk in Windows 7  Information A Virtual Hard Disk is a created VHD file on your hard drive that acts as a separate hard drive disk in Computer. This will show you how to create and attach (mount), or only attach (mount) an existing, a VHD in Windows 7.
Special thanks to Steven (dmex) for pointing out this new feature in Windows 7.  Warning The VHD is only attached for the current session. When you restart the computer, any attached VHD files you have will no longer be attached and appear in Computer. You will have to reattach any VHD file to have it display back in the Computer window again until the next restart.
If you disable the Disk Defragmenter service, then you will get the error below when you try to do anything in Disk Management. If you get this error, then make sure that the Disk Defragmenter service is set to only Manual. EXAMPLE: New Virtual Hard Disk (VHD) in Computer Here's How: 1. Open the Control Panel (icons view). A) Click on the Administrative Tools icon, and click on Computer Management.
B) Go to step 3. OR 2. Open the Start Menu.A) In the Search box, type compmgmt.msc and press Enter. 3. If prompted by UAC, click on Yes, then do either step 4 or 5 below. 4. To Attach an Existing VHD File NOTE: This is for a detached VHD file that you had already created in step 5 below, or from an existing VHD file.A) In the left pane, right click on Disk Management, and click on Attach VHD. (See screenshot below) NOTE: You can also click on Disk Management, Action on the menu bar, and Attach VHD. B) Click on the Browse button. (See screenshot below) C) Navigate to the VHD file location and select it, then click on the Open button. (See screenshot below) D) If you want the VHD to be read-only, then check the box, otherwise leave it unchecked. Click on OK. (See screenshot below) E) If the existing VHD file is unallocated, go to step 6. (See screenshot below step 6A) WARNING: Be sure to create a backup copy of the VHD file first to be safe in case of data loss.
F) If the existing VHD file is allocated, go to step 8. (See screenshot below step 8) 5. To Create and Attach a New Virtual Hard Disk (VHD file)A) In the left pane, right click on Disk Management, and click on Create VHD. (See screenshot below) NOTE: You can also click on Disk Management, Action on the menu bar, and Create VHD. B) Click on the Browse button. (See screenshot below) C) Navigate to the location you would like to store the new VHD file, type in a name for the VHD file, and click on Save. (See screenshot below) D) Type in the maximum size you want the Virtual Hard Disk to be, and select the size to be MB, GB, or TB (1024 MB = 1 GB, 1024 GB = 1 TB). (See screenshot below)
E) Select (dot) if you want the new VHD size to be Dynamic or Fixed, and click on OK. (See screenshot below) F) Continue to step 6. 6. To Initialize the Virtual Hard DiskA) Right click on the new unallocated VHD Disk # and click on Initialize Disk. (See screenshot below) B) Select (check) the Disk # from above for the new VHD. Select (dot) if you want the new VHD to have a MBR (Master Boot Record) or GPT (GUID Partition Table) partition, and click on OK. (See screenshot below) C) Continue to step 7. 7. To Create a New Simple Volume in the VHDA) Right click on the new unallocated VHD and click on New Simple Volume. (See screenshot below) B) Click on the Next button. (See screenshot below) C) Type in how much of the maximum disk space (step 5D) you want for the size of this VHD partition, and click on Next. (See screenshot below) NOTE: If you do not use the maximum space, then you will have a second unallocated VHD partition left with the remaining available disk space.  D) Select the file system (NTFS or FAT32) you want the VHD partition to be. (See screenshot below)
E) Type in a name for the VHD to be displayed in Computer. (See screenshot below)
F) Check the Perform a quick format box, and click on Next. (See screenshot below) G) Click on the Finish button. (See screenshot below)
8. The VHD is now attached and ready to access like a HDD. (see screenshot below)
That's it,
Shawn | | | Need more help? Try searching our extensive help and support site.
Loading | |
17 Nov 2008
|
#1 | | |
At first glance when you see Windows 7 it doesn't look allot different from Vista, But when you start to dig a little you start to see all of extra hidden features and this is only a Pre Beta, so it will more than likely have many more features with the final release.
Nice work Shawn. | My System Specs |
| System Manufacturer/Model Number Home Brew OS Windows 7 Ultimate Vista Ultimate x64 CPU Core 2 Duo E8500 3.16Ghz @ 3.8Ghz Motherboard eVGA 750i FTW Memory 2x2Gigs Patriot PC2-6400 LL Graphics Card Inno3D GeForce GTX260 216 SP Monitor(s) Displays ASUS VW222U 22" 2ms Response time Screen Resolution 1680x1050 Keyboard Logitech G15 Gaming Keyboard Mouse Logitech G9 Gaming Mouse PSU HYTEC 600W & Thermaltake 650W Toughpower Power Exp Case Thermaltake Armor LCS (Liquid Cooling System) Cooling Liquid Cooling System Hard Drives SATA 150GB
SATA II 250GB
USB IDE 750GB Ext. |
17 Nov 2008
|
#2 | | |
I can't wait to see what other features Windows 7 may have either.
Thank you Mr GRiM. | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
11 Apr 2009
|
#3 | | |
My English is not good 
Please help, after 4e ->error
thanks you!
And, why did admin band my Ip 118.71.66.77? | My System Specs | | |
11 Apr 2009
|
#4 | | |
Excellent work as always Shawn. I noticed this option a couple of days ago & thought to myself 'I wonder if there's a tutorial on it yet' & 'Wouldn't it be great to write 1?'. Guess you're just 3 steps ahead of every1 LOL | My System Specs | | System Manufacturer/Model Number Compaq Desktop OS Windows 7 Ultimate x64 CPU AMD Sempron Dual Core Memory 3GB Graphics Card NVIDIA GeForce 6150SE nForce 430 Screen Resolution 1024x768 Hard Drives 150GB Sata |
11 Apr 2009
|
#5 | | |
Thank you very much, can you help more? My English is not good  | My System Specs | | |
11 Apr 2009
|
#6 | | |
Hello Son,
It looks like you mave some group policy setting set preventing you from doing this. Are you part of a domain?
If needed, this can help with translations. Google Translate | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
11 Apr 2009
|
#7 | | |

Quote: Originally Posted by Orbital Shark Excellent work as always Shawn. I noticed this option a couple of days ago & thought to myself 'I wonder if there's a tutorial on it yet' & 'Wouldn't it be great to write 1?'. Guess you're just 3 steps ahead of every1 LOL LOL, thank you. | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
11 Apr 2009
|
#8 | | |
Thank you! Do you have any software to fix the error? | My System Specs | | |
11 Apr 2009
|
#9 | | |
Do you have enough free space on the selected drive to create the VHD on? | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 Virtual Hard Disk - Create and Attach VHD problems? All times are GMT -5. The time now is 04:05 AM. | |