Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Virtual Hard Disk - Unattach and Delete VHD



Virtual Hard Disk - Unattach and Delete VHD

How to Unattach and Delete a Virtual Hard Disk in Windows 7
Published by Brink
17 Nov 2008
Published by

How to Unattach and Delete a Virtual Hard Disk in Windows 7


information   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 unattach, or unattach and delete, the VHD that you have already created and attached in Windows 7.
warning   Warning
  • Unattach VHD - This will only remove the VHD from Disk Management and make it unavailable in Computer until the VHD file is attached again. It does not delete the VHD file.
  • Delete VHD - This will remove the VHD from Disk Management and Computer, and also permanently delete the VHD file and all data stored on it.
  • 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.
Name:  Error.jpg
Views: 12274
Size:  29.2 KB

EXAMPLE: Virtual Hard Disk (VHD) in Computer
Virtual Hard Disk - Unattach and Delete VHD-computer.jpg
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, then click on Yes.

4. In the left pane, click on Disk Management. (See screenshot below step 5)

5. In the middle pane, right click on the Disk # of the VHD (left side in middle pane), and click on Detach VHD. (See screenshot below)
Virtual Hard Disk - Unattach and Delete VHD-detach_vhd.jpg
6. To Only Detach the Virtual Hard Disk
A) Uncheck the Delete the virtual hard disk file after removing the disk box. (See screenshot below step 8)

B) Go to step 8.
7. To Detach and Delete the Virtual Hard Disk
A) Check the Delete the virtual hard disk file after removing the disk box. (See screenshot below step 8)
8. Click on OK. (See screenshot below)
Name:  Detach-2.jpg
Views: 13327
Size:  66.9 KB
9. The VHD has been removed from Disk Management and Computer. (See screenshots below)
NOTE: If you did step 7, the VHD file will also now be deleted to.
Virtual Hard Disk - Unattach and Delete VHD-unattached_vhd_disk_mangement.jpg

Virtual Hard Disk - Unattach and Delete VHD-computer-unattached.jpg

That's it,
Shawn





24 Nov 2009   #1
Suranjit

Windows 7 64 bit
 
 

Thanks....

My System SpecsSystem Spec
26 Nov 2009   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're welcome Suranjit.
My System SpecsSystem Spec
28 Dec 2009   #3
maiki

Windows 7
 
 
I cannot detach it!

It is weird. I attached a VHD (a Windows Backup file), in Disk Management, that worked fine. But when I right-click it, there is no option to detach it, I cannot mfind that detach option anywhere.

How do I get that option?
My System SpecsSystem Spec
.


29 Dec 2009   #4
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Maiki, and welcome to Seven Forums.

Be sure that you are right click on the Disk # part on the left side (box in red under step 5), and not on the actual driver letter part with the partition.

Hope this helps,
Shawn
My System SpecsSystem Spec
10 Apr 2010   #5
StreetSpirit

Windows 7 Ultimate
 
 
Excellent advice.

I also couldn't find the Detach option. Thanks for clearing up the fact that the area to click is on the left part which actually has the drive #.

Kudos!
My System SpecsSystem Spec
10 Apr 2010   #6
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're welcome, and thank you StreetSpirit.
My System SpecsSystem Spec
04 Jun 2010   #7
deeprana94

Microsoft Windows 7 Ultimate
 
 
Thanx

Hey mann, It's cool..................
My System SpecsSystem Spec
13 Jun 2010   #8
kennleland

windows 7
 
 
Administrator can n0t detach virual drives

I am using an account which is classified as an Administrator account. I have disabled the administrator account that tMicrosoft incoludes in windows 7. However I am unable to detach virtual drives, as you showed.
My System SpecsSystem Spec
13 Jun 2010   #9
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Kennie, and welcome to Seven Forums.

Could you post some screenshots of what you see instead of what's in the tutorial, and any message it gives you when you try to detach a VHD?
My System SpecsSystem Spec
Comment

 Virtual Hard Disk - Unattach and Delete VHD




Tutorial Tools



Similar help and support threads for2: Virtual Hard Disk - Unattach and Delete VHD
Windows 7 Tutorial Category
Host disk is running out of room, can't shrink virtual hard disk? Virtualization
attach a Virtual Hard Disk to install XP? Virtualization
Windows Virtual PC: "Cannot attach the virtual hard disk ..." error Virtualization
Solved Virtual Hard Disk Virtualization
Virtual Hard Disk error Virtualization
Win Virtual Hard Disk Performance Whitepaper from MS. News
partition vs virtual hard disk - VHD Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:06 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33