Windows 10: Windows Virtual Hard Disks keep on detaching randomly

Discus and support Windows Virtual Hard Disks keep on detaching randomly in Windows 10 Drivers and Hardware to solve the problem; So I'm trying to download a large file 94GB on a Virtual Hard Disk since my computer doesn't have enough space. But for some reason, All of my virtual... Discussion in 'Windows 10 Drivers and Hardware' started by SovietYakko, May 15, 2020.

  1. Windows Virtual Hard Disks keep on detaching randomly


    So I'm trying to download a large file 94GB on a Virtual Hard Disk since my computer doesn't have enough space. But for some reason, All of my virtual disks just detach and whenever I mount them again, I have to Download my file all the way from the beginning. Does anyone have a solution to this?

    :)
     
    SovietYakko, May 15, 2020
    #1
  2. Aaron_Sum Win User

    Can't remove Hyper-V Virtual Hard Drive partition

    Hi Robert,

    Thank you for writing to Microsoft Community Forums.

    I understand that you are facing an issue when you are trying to remove the Hyper-V Virtual Hard Drive partition. This partition is just a virtual partition that is created by using the space within your physical hard disk, so that
    it can be used within Hyper-V. Since you are no longer using Hyper-V and you wish to remove the Virtual Hard Drive partition, I would suggest you to follow the steps below and check if it is helpful to you.

    Steps to remove the Virtual Hard Drive partition using Disk Management:

    1. Press the Windows key and
      R key, this will open the Run dialogue box for you.
    2. Type diskmgmt.msc and press
      Enter, this will open the Disk Management Window for you.
    3. Your Virtual Hard Drive will be indicated by a ‘blue’ drive beside the
      Disk n (n is the disk number to which the VHD is associated), select the allocated
      Volume, right-click and select Delete Volume. You can check the picture below for your reference.

      Windows Virtual Hard Disks keep on detaching randomly a9bbe536-f604-4912-9a6e-fdb56b275e03?upload=true.png

    4. You will receive a prompt, click on
      Yes. This will delete the volume allocated to the Virtual Hard Drive and the space allocated will now be turned into an
      Unallocated space.
    5. To detach the Virtual Hard Drive completely,
      right-click on the Disk and select Detach VHD.
    6. You will receive a prompt, you may click on the check box to
      Delete the virtual hard disk after removing the disk. Click on
      OK
      .

    This will remove the Hyper-V Virtual Hard Drive partition from your system.

    If the issue still persists, I would suggest you to post your query in IT Pro

    TechNet
    forums, where we have support professionals who are well equipped with the knowledge on the issues with Hyper-V and Virtual Hard Drive to assist you with your query.

    Regards,

    Aaron Summith

    Microsoft Community - Moderator
     
    Aaron_Sum, May 15, 2020
    #2
  3. Kari Win User
    Compacting virtual hard disks

    We must have totally different working methods Windows Virtual Hard Disks keep on detaching randomly :)

    Let's see what I told to be my workflow, and check how that works in reality. Example W10 x64 VM is one I have used for ESDtoISO and UUPtoISO testing, a clean installed build 15048 with no additional software installed, upgraded several times to builds 15055, 15058, 15060 and 15061, always restored back to clean 15048. This has of course caused the VHD size to grow to multiple times what really is needed.

    After the above, checking file sizes. Macrium image was made when the original 64 GB dynamically expanding VHD was 34.5 GB:


    Windows Virtual Hard Disks keep on detaching randomly [​IMG]

    Macrium image size just under 5 GB:


    Windows Virtual Hard Disks keep on detaching randomly [​IMG]

    After restoring Macrium image to a new dynamically expanding VHD, file size is 9.3 GB. Over two thirds smaller than original one:


    Windows Virtual Hard Disks keep on detaching randomly [​IMG]

    The same as seen by File Explorer, yellow highlight is the original VHD, start situation, and green highlight the new VHD where Macrium image from old VHD was restored. Old VHD can now be deleted, net storage save savings over 25 GB in this example case:


    Windows Virtual Hard Disks keep on detaching randomly [​IMG]

    (Notice that VHD has already grown over 0.5 GB since the previous screenshot a few minutes earlier. This is because in previous screenshot VM was not started yet after restoring the image.)
    This of course is all logical, happens every time.
     
  4. newu873 Win User

    Windows Virtual Hard Disks keep on detaching randomly

    Virtual drive on Hard Disk disappears after rebooting…….

    Thanks for replying.

    So if a virtual drive gets detached each boot and I want to use it as a drive for virtual machine, will I require to re-attach it after each boot before I start the system installed on that drive ??

    Secondly: I don't see also the VHDx file under the folder I have placed it. Is it OK ??
     
    newu873, May 15, 2020
    #4
Thema:

Windows Virtual Hard Disks keep on detaching randomly

Loading...
  1. Windows Virtual Hard Disks keep on detaching randomly - Similar Threads - Virtual Hard Disks

  2. Stuck in Creating a Virtual Hard Disk Window Hyper-V.

    in Windows 10 BSOD Crashes and Debugging
    Stuck in Creating a Virtual Hard Disk Window Hyper-V.: I have an external hard disk. I am trying to create shared virtual hard disk in it with Hyper-V. Whenever I select the VHDSet option; the bar is stuck at %100. This situation is not different in Powershell too....
  3. Stuck in Creating a Virtual Hard Disk Window Hyper-V.

    in Windows 10 Gaming
    Stuck in Creating a Virtual Hard Disk Window Hyper-V.: I have an external hard disk. I am trying to create shared virtual hard disk in it with Hyper-V. Whenever I select the VHDSet option; the bar is stuck at %100. This situation is not different in Powershell too....
  4. Stuck in Creating a Virtual Hard Disk Window Hyper-V.

    in Windows 10 Software and Apps
    Stuck in Creating a Virtual Hard Disk Window Hyper-V.: I have an external hard disk. I am trying to create shared virtual hard disk in it with Hyper-V. Whenever I select the VHDSet option; the bar is stuck at %100. This situation is not different in Powershell too....
  5. Does Virtual Hard Disks increase the Windows perfomance?

    in Windows 10 BSOD Crashes and Debugging
    Does Virtual Hard Disks increase the Windows perfomance?: I heard about a lot of videos on YouTube saying thatVirtual Hard Disks increase the performance of Windows. I opened this discussion because, in my opinion, Virtual Hard Disks are used only in Virtual Machines which used for testing Beta programs or Operating Systems. So, I...
  6. Creating Virtual Hard Disks - VHD

    in Windows 10 Network and Sharing
    Creating Virtual Hard Disks - VHD: I have a TB to choose from and I Made it 1,000,000,000,000,000TB to see if it was a 1,000YB which I went online to see how much it was and it said 1000 that is 1,000 YB but on my computer, after it was formatting it said 1024.98 GB and then I thought to my self boy that...
  7. Windows Virtual Disk Drive keeps detaching from main partition randomly

    in Windows 10 Drivers and Hardware
    Windows Virtual Disk Drive keeps detaching from main partition randomly: So I am downloading a large file 94GB on a Virtual Hard Disk since my PC doesn't have much physical space anymore and everytime I download the file, The Virtual Hard Drive as well as my other VHDs just detach and whenever I attach them again, I have to restart the download...
  8. VHD virtual hard disk keeps closing for no reason

    in Windows 10 Network and Sharing
    VHD virtual hard disk keeps closing for no reason: Hey community, i've recently recovered Virtual hard disk that I forgot I had. Given the fact I am dangerously low on storage, I am now planning on using this for games and other personal files. I am now currently running the installer for a game and the VHD keeps closing...
  9. Compacting virtual hard disks

    in Windows 10 Virtualization
    Compacting virtual hard disks: Compressing a vhdx file in Hyper-V Well I have had fun today trying to compress some vhdx files used in Hyper-V. My VHDXs only had around 15GB of files (10 pro Insider 15061) including hidden files after disk cleanup when in Hyper-V but the vhdx files were around 40 GB/...
  10. Virtual hard disk can't be mounted ...

    in Windows 10 Virtualization
    Virtual hard disk can't be mounted ...: Hello everybody, recently I've installed Windows 8,1 Pro version on my laptop and today I'm trying to install Microsoft Office 2007 Enterprise. I've have it on CD but when I'm trying to run it there's a message that says : "Virtual hard disk files can't be mounted from...

Users found this page by searching for:

  1. vhd keeps detaching