How To Create, Initialize, Open & Run VHD In Windows 10, 8, 7 and Below Versions?

If you want to know how to open a vhd file in Windows PC and also how to attach VHD permanently in Windows 10 then you are on the right page. In this post, we are going to discuss simple and step by step methods to create, initialize & attach a VHD file in Windows and how one can open & run VHD in Windows 10, 8 or 7. But fist let’s understand what VHD file exactly is.

About VHD file

VHD(Virtual Hard Disk) is a hard disk file format which signifies a virtual hard drive. Like a physical hard drive, it also contains disk partitions, file systems, files, and folders. The Virtual machine generally uses it as a hard disk to store VM data.

You can create the virtual hard disk and save it as the backup of your computer hard disk in Windows Vista and later version software. Though, in Windows XP and its old versions, the NT-Backup tool was used to back up your system data. Now it is taking over by the Backup and Restore tool in Windows Vista and new versions. This tool supports two types of backups file backup and system backup. If you want to take back up of some particular files and folders, then you have to save them into ZIP files as file backup. However, if you want to take back up the whole system, a disk image will be created and saved into a VHD file format. So, let’s have a look at how to create VHD files.

Read here: How to fix unreadable or corrupt VHD file

Create VHD file In Windows 10, 8, 7

Windows Offers a disk management system to create a vhd file for virtual machines. On the other side backup & restore tool is there for taking the backup of the complete system. Here are the few methods to create a vhd file after that we will discuss how to “open & run vhd in Windows”.

Approach 1: Create VHD using Disk Management

  • On your machine right-click on My Computer and Hit Manage Tab.
  • In the windows explorer, the computer management window will open. Click disk management under the storage tab.
  • A list of a separate area of Actions is available on the right-hand side. Hit on More Actions >> option shown below Disk Management. Click on Create VHD.
  • Create and Attach Virtual Hard Disk window open here browse a location to save a new VHD file and enter the name. Also, choose the file size and VHD format. Click OK.
  • After a few seconds, the VHD file will be created on your system.

Approach 2: Create VHD file Using Backup & Restore.

  • In the start menu, type Backup and Restore.
  • Initiate Control Panel >> All Control Panel Items >> Backup and Restore. Then, click on Create a system image under the Control Panel Home.
  • Now In the Create a system image window, select the location to save the backup file.
  •  Then pick the drive(s) which you want to include in the backup. Click on the Next button to continue.
  • Kindly check all the backup settings, before starting the backup process. Finally, click on the Start backup button.

The above methods will help you to create a VHD file without any data and file system. In order to make it usable, you have to initialize and format it. Follow the below-told steps for how to initialize a virtual hard disk.

Initialize VHD file on Windows 10, 8, 7

  • Right-click on freshly created VHD and choose Initialize Disk option in disk management.
  • After that select the disk and check the MBR (Master Boot Record) or GPT (GUID Partition Table) option. (Note: GPT (GUID Partition Table) option is not compatible with all lower versions of Windows OS.) and click the OK button.
  • Right-click on the unassigned space and select New Simple Volume option.
  • Now, determine the partition size and leave this field the same if you want to use the whole open partition space. Click Next.
  • From “Assign the following drive letter” drop-down box, pick a drive letter that you want to attach to your drive and click Next. Keep in mind that the assign drive letter is not in use on the same computer.
  • Select Format this volume with the other settings option and make sure the other options are selected like (file system, Allocation Unit Size, and Volume Label etc). Click Next >> Finish.

Know how to attach VHD permanently Windows 10

While fixing up, Windows 10 automatically attach the VHD to your device but, in unusual cases, it doesn’t work. Plus, if you already have a VHD or you have created that VHD for an external hard drive then, below is how to attach VHD permanently in Windows 10:

  • Open Disk Management, and select Action >> Attach VHD.
  • Click the Browse button and navigate to the location of VHD and choose it. Click Open.
  • At last click ok.

The above methods will help you to create, initialize & attach a VHD file. But many times, VHD files become corrupt due to virus attacks, storage media failure, software malfunction, improper system shutdown, and many other factors. After corruption, you can’t use your VHD file anymore. Due which you can misplace your data. So, in the below section, you will find the solution to successfully access & run VHD in Windows.

How to open and mount VHD file in Windows 10, 8 & 7

Approach 1:

This is the very initial step to open a VHD file. Firstly, run a script on Windows PowerShell which will help you mount the VHD file in the root folder. After that, you can run a CHKDSK on it. Run the commands given below. Kindly change fields accordingly:

Approach 2:

Here in this approach, create a new Virtual Machine and then add the corrupt VHD file to it. Then to make it compact. Follow the below steps:

  • Firstly, Design a new Virtual Server, and add a new hard disk.
  • Select  Settings and choose the hard disk you have created earlier. After that select the VHD  that will not load.
  • Now click on the Virtual Disk Wizard, and select the compact option. Check option Convert it to a fixed-size virtual hard disk.

Note: If the original size of the  VHD is 30 GB in original but it is owned by 10 GB of data, then the new VHD file will only be compacted to 10 GB.

  • Finally, you can save this VHD file as a new one with a different name (optional).

After the compact process, copy the VHD file back to the original server and try it to mount.

Approach 3:

Microsoft also offers a VHD Tool. It has a facility to open the VHD file. You first need to download the executable file, and then run the tool as an administrator on your system with a command as shown below:

VhdTool.exe /repair <BaseVhdFileName> <FirstSnapshotAVhdFileName> [/quiet]

Time to End

How to create, initialize, and attach or run VHD in Windows 10, 8, 7 and below versions is one of the most explored doubts on the Internet today. In method to explain the whole task, we have come up with this technical blog. Here, we have discussed all the steps for how to attach VHD permanently in Windows 10 to make this challenging task easier for both geek and non-geek users. But if somehow your VHD file fails then you may try the VHD File Recovery tool to access the VHD files along with other items. It allows you to open a VHD file created by FAT, FAT16, FAT32, FAT64, NTFS, HFS+ and EXTX file systems.

 

Download Now