How to unmount a VHD in Windows 7. There is no unmount option
I mounted a VHD file in Windows 7 using the Disk Manager. Once mounted, there is no option to Unmount it. The only thing close to such an option that I can find is if I click the icon in the taskbar notification area that I use to remove USB devices... there's an option to eject the virtual hard disk. However, when I click that, it says that it's in use and cannot be ejected. Even though... it's not in use, I never even browsed the drive. The disk manager is closed... and the only open files handles to the drive (according to disk performance in task manager) is SYSTEM. Ejecting devices cleanly has been a problem since Windows XP, and it sickens me to see it persist into windows 7.
After you attach the vhd, you can remove it by going into disk management and right clicking the left side box of the vhd drive. The left side box is the area that says the Disk name, disk type and size. If you right click white area of the drive, the delete command is grayed out. Let me know if that helps.
In diskmgmt.msc
, towards the bottom, just to the left of the drive layout image, where it lists "Disk #", "Basic", etc.... right-click the VHD and select "Detach VHD".