Windows 8 and 8.1 Forums


VHD - Auto-mount at Startup in Windows 8

  1. #10


    Posts : 10
    Win 8.1


    I would have saved the script to my C: drive but for some odd reason it won't let me write to the C: drive. I've checked the properties of the C: drive - it is shared and every class of user has full control, including me, the "trusted installer". What's up with that?

      My System SpecsSystem Spec

  2. #11


    Posts : 959
    Windows 8.1, 10


    Quote Originally Posted by bbrescia View Post
    I would have saved the script to my C: drive but for some odd reason it won't let me write to the C: drive. I've checked the properties of the C: drive - it is shared and every class of user has full control, including me, the "trusted installer". What's up with that?
    Windows doesn't like you placing files in the root directory of the C: drive. It's much happier if you create a folder and put your files there, so I'd give that a try. I don't think there's any real advantage in putting them in the C:\ root directory.

    I don't see why that should extend to the E:\ drive, but it might be worth trying creating a folder E:\MyVHDs or whatever, and putting the VHDX and the startup scripts there, to see if that makes a difference.

    Quote Originally Posted by bbrescia View Post
    When I run my script from a DOS prompt, it reports successful completion but also says, "There is no volume specified. Please select a volume and try again."
    Yes I get that too. It doesn't seem to be a problem when I've run it though; I get that message but it appears in Explorer with no problems.

    I have to go to work now but will try and investigate more tonight.
      My System SpecsSystem Spec

  3. #12


    Posts : 959
    Windows 8.1, 10


    Quote Originally Posted by bbrescia View Post
    ALso - after the script runs, I can see that in DM, the virtual drive is mounted with the letter F: It also appears in Explorer. It just doesn't get to the final step of appearing in Explorer if the script runs at startup. Here is my script:

    select vdisk file="E:\HGST4TB.vhdx"
    attach vdisk
    assign letter=F
    I just had another thought...

    What happens if you go back into Disk Management, and assign the virtual drive to another drive letter, say M:? Then change the script to assign letter=M as well and try it.

    My theory is this - I'm wondering if there might be some hardware on your computer (for example a memory card reader) that has previously been mounted as F: . If there's no memory card inserted, it doesn't show in Windows Explorer, but I suspect Explorer still knows about it and has it in mind, which is why it doesn't like to show your VHD.

    If so, then you need to find a drive letter that's far enough through the alphabet that Explorer doesn't have another use for it.
      My System SpecsSystem Spec

  4. #13


    Posts : 10
    Win 8.1


    I have tried assigning other drive letters to no avail.
      My System SpecsSystem Spec

  5. #14


    Posts : 959
    Windows 8.1, 10


    Hi bbrescia,

    Thanks for that. I don't know what the problem is. Could you post a screenshot of your Disk Management screen please?

    Perhaps something in there will give us a clue.
      My System SpecsSystem Spec

  6. #15


    Posts : 10
    Win 8.1


    Click image for larger versionClick image for larger versionClick image for larger versionClick image for larger version

    My script (file is named AttachMyVHDX.txt and is located in E:\VHDs:

    select vdisk file="E:\VHDs\HGST4TB.vhdx"
    attach vdisk
    assign letter=F

    In Task Scheduler, the "action" is: diskpart /s with parameter of E:\VHDs\AttachMyVHDX.txt

    Thank you so much for sticking with this and I'm sure it will wind up to be some little fairly obvious thing that I've missed!

    Bob
      My System SpecsSystem Spec

  7. #16


    Posts : 10
    Win 8.1


    Oh - the pix are in order:

    DM Screenshot just after startup
    File Explorer shot just after startup
    DM Screenshot after double-clicking the vhdx file
    File Explorer screenshot just after double-clicking the vhdx file
      My System SpecsSystem Spec

  8. #17


    Posts : 959
    Windows 8.1, 10


    Quote Originally Posted by bbrescia View Post
    select vdisk file="E:\VHDs\HGST4TB.vhdx"
    Hello Bob,

    I think in this part of the script, you're saying the path to the VHDX is:
    E:\VHDs\HGST4TB.vhdx

    But from the screenshot, it's actually in:
    E:\HGST4TB.vhdx

    So you would either need to unmount the VHDX , and relocate it to the subfolder (which is what I would do, because I like putting stuff in subfolders!), or change the script.

    Hope this helps!
      My System SpecsSystem Spec

  9. #18


    Posts : 10
    Win 8.1


    David - eureka, mark this as solved! I am so sorry to have taken so much of your valuable time for such an oversight - but I do thank you very much for the solution.

    Now I can add the other 2 HGST 4TB drives that arrived today in a RAID 5 configuration...
      My System SpecsSystem Spec

  10. #19


    Posts : 959
    Windows 8.1, 10


    Hi there Bob,

    No problem - glad you got it going!
      My System SpecsSystem Spec

Page 2 of 7 FirstFirst 1234 ... LastLast
VHD - Auto-mount at Startup in Windows 8
Related Threads
BSOD Error On Startup - Auto Restarts in BSOD Crashes and Debugging
Hello, My little brothers desktop PC that is running Windows 8.1 keeps going to the BSOD on every startup i do, once it restarts and goes back to desktop it seems to run fine and doesnt BSOD which is quite frustrating. I've zipped up the files needed for you guys to have a view (following the...
Hello, i'm running Windows 8 Home Premium. I'd like to increase my startup speeds, I already disabled as much as I can in Task Manager, msconfig, etc. In the Task Scheduler, it shows Metro Apps are taking CPU time at startup though. After much searching on the topic, I find very little about how...
As the title said. Someone my programs that has yellow-blue shield like this 41798 fail to autostart at log-on or windows startup. I tried many ways: registry, put their shortcuts in startup folder, changed gpedit.msc so that they start on log-on... none of them works. Is there anyway to fix this,...
I'd like to change the order in which certain programs in my startup folder load. I don't need to know how to add or remove programs from the startup folder, and I'm not talking about security or system programs. I'm talking about some programs I've added to my computer, which I use all the time in...
System Specs Intel i5 2400 3.10 Ghz8Gb of Ram1TB SATA HDDAMD Radeon HD 6670motherboard Z77M-D3H rev 1.0Windows 8 Pro X64 Problem: for the past few weeks this problem begun and i dont know how but it just happenedfirst i was wondering why so i checked event viewer and logs involving the...
I apologise if this is the wrong section, this isnt strictly a BSOD crash. Yesterday when shutting down my laptop (which has been upgraded to windows 8 Pro Previously, without issue) windows 8 installed an update. Since then, when trying to boot, windows hangs on the loading scree (spinning...
Hello All, I have a problem in windows 8 32 bit to auto lunch my application at boot up/start up. Actually I already created registry in: and while I am also created registry in:
Eight Forums Android App Eight Forums IOS App Follow us on Facebook