Using Disk Management
Using DiskPart
Using Disk Management:-
- Open DISK MANAGEMENT
- Now go to Action And select Create VHD. A pop-up will open. The pop-up have some option you have to fill.
- Location: – here you have to give the file name and the location where new VHD will be saved when it is created. Like F:\newVHD.vhd
- Virtual hard disk size: – select the size in MB, GB or TB. And give the value. And select dynamically Expanding.
- Here I have selected 320 GB. You can increase as per your requirement.
- Click OK after above steps will be clear. And it’s done. You’ll see your hard disk.
create Virtual Hard Disks in windows - Now you have to make the hard disk active. To initialize the disk.
- Now you can use this disk. To detached the disk before restarting the OS to prevent data corruption – right-click the disk name and then click Detach VHD.
Using DiskPart:-
- Open cmd and type –
- To view the .vhd file type
- To attach the vhd
- see information about the VHD with the following commad
- You can assign the drive letter to N and other.