Virtual drive on Hard Disk disappears after rebooting……. Solved


  1. Posts : 19
    Windows 10 Pro, 1709
       3 Weeks Ago #1

    Virtual drive on Hard Disk disappears after rebooting…….


    …even after doing “Attach VHD” in Disk Management (before rebooting). After rebooting, each time I have to repeat to process of “Attach VHD” to see the drive in Explorer. And also, when I see it, I can see it only under “This PC” in the Explorer and not in the folder I placed it. Any ideas why all this happens ??

    I have Windows 10 Pro 1709 on a new desktop.
      My ComputerSystem Spec

  2. Kari's Avatar
    Posts : 15,535
    Windows 10 Pro
       3 Weeks Ago #2

    First, attached virtual hard disks will always be detached when computer will be shut down (or restarted), and need to be re-attached after every boot. That's the default behaviour and there's nothing you can do for it.

    A workaround is to create a DISKPART script to be run every time you sign in to Windows to attach the VHD and assign a drive letter for it.

    Second, as the name say, a virtual hard disk is like a disk, behaving like HDD when attached to host machine. It will be shown as hard disk in File Explorer. If you mount / attach a VHD file E:\Data\MyVHD.vhdx on host as drive X:, the VHD file itself remains in E:\Data\MyVHD.vhdx but the virtual hard disk it contains will only be shown in File Explorer as hard disk X:.

    Kari
      My ComputerSystem Spec


  3. Posts : 19
    Windows 10 Pro, 1709
    Thread Starter
       3 Weeks Ago #3

    Kari said: View Post
    First, attached virtual hard disks will always be detached when computer will be shut down (or restarted), and need to be re-attached after every boot. That's the default behaviour and there's nothing you can do for it.

    A workaround is to create a DISKPART script to be run every time you sign in to Windows to attach the VHD and assign a drive letter for it.

    Second, as the name say, a virtual hard disk is like a disk, behaving like HDD when attached to host machine. It will be shown as hard disk in File Explorer. If you mount / attach a VHD file E:\Data\MyVHD.vhdx on host as drive X:, the VHD file itself remains in E:\Data\MyVHD.vhdx but the virtual hard disk it contains will only be shown in File Explorer as hard disk X:.

    Kari
    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 ??
      My ComputerSystem Spec

  4. Kari's Avatar
    Posts : 15,535
    Windows 10 Pro
       3 Weeks Ago #4

    newu873 said: View Post
    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 ??
    If you have Windows installed on that VHD file, then it's another story. You just need to add it to Windows boot menu.

    Please tell do you want to boot to that VHD to run Windows?


    newu873 said: View Post
    I don't see also the VHDx file under the folder I have placed it. Is it OK ??
    I am not sure I understand what you mean? The VHD file is not in folder where you created it?

    Kari
      My ComputerSystem Spec


  5. Posts : 19
    Windows 10 Pro, 1709
    Thread Starter
       3 Weeks Ago #5

    Kari said: View Post
    If you have Windows installed on that VHD file, then it's another story. You just need to add it to Windows boot menu.

    Question: After adding it to the boot menu, will I be able to start the virtual window without booting the PC ?? If I got it right after reading elsewhere, that's what the VM system does -- meaning, starts within the host system without requiring to reboot the PC.

    Please tell do you want to boot to that VHD to run Windows?

    Answer: Yes. But I want to run it directly from the host Windows without requiring to reboot the PC. I haven't installed there anything yet.

    I am not sure I understand what you mean? The VHD file is not in folder where you created it?

    Answer: I can't see the VHD file in the folder under Explorer. I can see it only when I do the “Attach VHD”. Then I can see it in the window which opens for choosing the file for doing the “Attach VHD”.

    Question: Is it mandatory to place the VHD file only under the C (main) drive ?? I have placed it under other drive.

    newu873


    Kari
    My Answers & Questions are within the quote above. Thanks
      My ComputerSystem Spec

  6. jimbo45's Avatar
    Posts : 6,576
    Windows / Linux : Centos, Ubuntu, OpenSuse
       3 Weeks Ago #6

    Hi there
    another option is to install and enable VIBOOT from Macrium Reflect.

    This will boot a virtual image. However you will need W10 PRO (not Home) though.

    Macrium Software | Macrium viBoot

    Kari also has an excellent tutorial on this as well

    @Kari

    great stuff

    Macrium viBoot - Create Virtual Machine using Macrium Image | Tutorials

    Cheers
    jimbo
      My ComputerSystem Spec

  7. Kari's Avatar
    Posts : 15,535
    Windows 10 Pro
       3 Weeks Ago #7

    newu873 said: View Post
    My Answers & Questions are within the quote above. Thanks
    You seem to mix two totally different things, running Windows from a VHD in so called native boot, and running Windows on a virtual machine.

    If you want to run Windows on a virtual machine, you need virtualization software to do that. My favorite virtualization platform is Hyper-V (tutorial).

    Running virtual machines does not require host machine to be rebooted.

    If you want to run Windows on VHD without any virtualization software, here's how to do it:



    Video is from TenForums video thread, see the video and full instructions in this post.

    Running Windows on native boot VHD requires a reboot. You select from boot menu if you want to boot to your host Windows, or to Windows on VHD.

    Kari
      My ComputerSystem Spec


  8. Posts : 19
    Windows 10 Pro, 1709
    Thread Starter
       3 Weeks Ago #8

    Kari said: View Post
    You seem to mix two totally different things, running Windows from a VHD in so called native boot, and running Windows on a virtual machine.

    If you want to run Windows on a virtual machine, you need virtualization software to do that. My favorite virtualization platform is Hyper-V (tutorial).

    Running virtual machines does not require host machine to be rebooted.

    If you want to run Windows on VHD without any virtualization software, here's how to do it:



    Video is from TenForums video thread, see the video and full instructions in this post.

    Running Windows on native boot VHD requires a reboot. You select from boot menu if you want to boot to your host Windows, or to Windows on VHD.

    Kari
    Thanks for the explanations. I was thinking it's mandatory to create first a virtual drive for VM. I saw your extensive and elaborated tutorial, both textually & visually, about Hyper-V virtualization. Is there a way in the Hyper-V virtualization process to use a saved system image (suppose Windows 7) and restore it directly as an VM system which can run, without requiring to install the Windows 7 from scratch as VM ??

    Anyway, I have to decide whether do it myself following your tutorial or let the Macrium Reflect doing it.
      My ComputerSystem Spec


  9. Posts : 19
    Windows 10 Pro, 1709
    Thread Starter
       3 Weeks Ago #9

    jimbo45 said: View Post
    Hi there
    another option is to install and enable VIBOOT from Macrium Reflect.

    This will boot a virtual image. However you will need W10 PRO (not Home) though.

    Macrium Software | Macrium viBoot

    Kari also has an excellent tutorial on this as well

    @Kari

    great stuff

    Macrium viBoot - Create Virtual Machine using Macrium Image | Tutorials

    Cheers
    jimbo
    Hi,
    Thanks for the advise.

    I have Windows Pro. Does Macrium Reflect makes the job and gives a good working VM ?? Have you tried it ??
      My ComputerSystem Spec


 

Related Threads
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...
How to Add or Remove a Physical Hard Disk for Hyper-V Virtual Machine Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical...
Hi There I am using windows 10 Pro, and had a virtual machine installed using Hyper-V with two virtual HDD in that VM. Recently I had some problem with my Windows 10 OS and had to reset my windows with keeping all the files and settings, and...
I have a new Aspire V Nitro Series laptop that was running Windows 8. These are the original hard disk specs: C: 256GB SSD D: 1TB SATA After I upgraded to Win10, I am left with only this: C: 128GB

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:18.
Find Us