How to Create and Mount a Virtual Hard Disk in Windows
In Windows 7, Microsoft introduced a new way to backup your computer called Backup and Restore. Basically, it let you backup all your data to another location and gave you the option to create a system image also.
If you chose to create the system image file, you would end up with a large VHD file. This file could then be used to restore your entire system at a later point. This tool was so popular that they kept it in Windows 8 and Windows 10. If you go to the Control Panel, you’ll see one applet there calledBackup and Restore (Windows 7).
The nice thing about backing up your computer using this method, other than being able to restore it fully later on, is that you can attach this VHD file to any Windows 7, 8, or 10 computer and access the data just like a normal hard disk.
So if you just need to copy some files over from your backup, it’s makes much more sense to just attach the VHD file to your PC rather than restoring the backup, which will wipe your machine clean first.
In this article, I’m going to talk about how you can attach this VHD file to your computer and access the data. I’m also going to talk about how you can create your own VHD file and backup whatever data you like. Lastly, you can read my previous post onhow to convert your current PC into a VHD file.
Mount VHD File
To mount a VHD in Windows, you have to openComputer Managementby clicking on Start and typing inComputer Managementin the search box. You can also go to Control Panel, thenSystem and Security, then click onAdministrative Toolsand then click on Computer Management. If you’re in icon view, just click on Administrative Tools.
Now click onDisk Managementin the left hand menu and wait for the list of drives and partitions to show up. Next, right-click on Disk Management and chooseAttach VHD.
In the dialog box, go ahead and clickBrowse,navigate to the location of the VHD file that you want to mount and then click OK. Note that unless you check theRead-onlybox, you can add, modify or delete files/folders from the virtual hard drive. This is really useful because you can attach your VHD file, add some more data that you want backed up and then simply detach it.
Once it has finished mounting, you will see it display as anotherBasic diskthat is colored a light blue. Windows should automatically give it a drive letter, but if not, you can right-click on the part at the bottom where it saysHealthy (Primary Partition)and chooseChange Drive Letter and Paths.
Once your VHD is attached, go to Explorer and you’ll be able to browse the disk, copy data back and forth, etc.
To detach the VHD, right-click on the grey area that has the disk name (Disk 2 in my case), volume type (Basic), size, etc. You’ll see the optionDetach VHDat the bottom.
Create VHD File
As I already mentioned, you canconvert your current Windows machine into a VHD fileusing a free tool from Microsoft or you can create an empty one from within Windows. Again, go toComputer Management, click onDisk Managementand then right-click onDisk Management.
Instead of choosingAttach VHD, click onCreate VHD. This will bring up a window where you can specify the size of the VHD file, the format and the location.
I recommend choosing theVHDXfile format since it is less prone to corruption and can support larger disk sizes. If you choose VHD file format, it will recommendFixed size. If you go with VHDX, it will recommendDynamically expanding. I would leave those settings with the recommended options. Make sure to type in a value for the size of your virtual disk. You can change it to GB or TB if you like using the drop down.
Now in Disk Management, you will see another disk (Disk 2 in my case) that saysNot InitializedandUnallocated. In the grey section for the new virtual disk, right-click and chooseInitialize Disk.
Next, you’ll have to pick whether you want to useMBRorGPT. For a full explanation of each partition format, check outthis post by HTG. For compatibility with versions of Windows older than Vista, choose MBR. For newer features and bigger hard disks, use GPT.
Now right-click in the white area that saysUnallocatedand chooseNew Simple Volume. This will bring up the new volume wizard. First, you have to choose the size of the new volume. It doesn’t have to be the full size of the unallocated space. You can create multiple partitions if your VHD is larger.
Click Next and choose a drive letter to assign to the partition.
Lastly, choose how you want to format the drive. By default, it is set toNTFS, but you can also choose FAT32 if you like. I recommend sticking with NTFS if you are using the virtual hard drive to backup files from your computer.
Click Next and Finish and you’re done. Now the drive should show up as healthy in Disk Management.
Now you can simply copy data to the drive normally and then detach the VHD when you are done. It’s not the only way or necessarily the best way to backup your computer, but it works well and it doesn’t require any third-party tools. If you have any questions, feel free to comment. Enjoy!
Founder of Help Desk Geek and managing editor. He began blogging in 2007 and quit his job in 2010 to blog full-time. He has over 15 years of industry experience in IT and holds several technical certifications.Read Aseem’s Full Bio
Welcome to Help Desk Geek- a blog full of tech tips from trusted tech experts. We have thousands of articles and guides to help you troubleshoot any issue. Our articles have been read over 150 million times since we launched in 2008.
HomeAbout UsEditorial StandardsContact UsTerms of Use
Copyright © 2008-2024 Help Desk Geek.com, LLC All Rights Reserved