Windows 8 and 8.1 Forums


VHD - Auto-mount at Startup in Windows 8

  1. #60


    Posts : 959
    Windows 8.1, 10


    Hi kremster,

    I'm not an expert on the issues / benefits of mounting the SD card as C:\SDCard?

    But since you're mapping the VHDX to a new drive letter anyway, what happens if you don't mount the SD card into C:\SDCard, and try to mount the VHDX from the SD card's original drive letter?

    Even if it isn't what you want to do in the long term, it may help find a path to the solution.

    So if your SD card was drive F:, for example, then instead of
    Code:
    select vdisk file="C:\SDCard\MyStuff.vhdx"
    you'd have
    Code:
    select vdisk file="F:\MyStuff.vhdx"
    Incidentally I had a tablet which wouldn't upgrade to Windows 10 build 1511 unless I removed the SD card.

      My System SpecsSystem Spec

  2. #61


    Posts : 5
    Windows 10 home


    Hi,

    I am using windows 10 home on a winbook TW700 16gb version.

    The problem I have is windows 10 wants to install a new update but needs an additional 2.3 gb's on my C drive which I do not have. So one remedy users had for this was to create a VHD drive.

    Now I am able to manually mount the VHD and install updates to it but of course that is useless as it doesn't auto mount on reboot which causes issues with the update process.

    So I tried these steps using my own directory.

    I made a text file at C:\Users\R\Documents\attachVHD.txt

    The text file states this -

    select vdisk file="D:Attach VHD.vhd"
    attach vdisk

    I saved that file to the location above.

    Then I went into the task scheduler of windows 10.

    I do not have screen shots but this is what I did

    General tab

    name - Mount VHD
    location \
    Author DESKTOP-TM3VC23\R
    description auto mount VHD

    Checked Run wether or not user is logged in and run with highest priviledges

    Configure for windows 10


    Triggers tab is at startup with nothing else checked or setup

    Actions tab
    Action start a program
    program/script is diskpart
    arguments is /s C:\Users\R\Documents\attachVHD.txt

    Conditions tab has nothing checked

    so I hit OK and enter my admin password and reboot
    But then the VHD drive which is listed as E: VHD when manually mounted is not present.

    What am I missing? I can manually mount but it is not auto mounting in windows 10.
    Last edited by Brink; 14 Dec 2016 at 17:13. Reason: removed quote of entire tutorial
      My System SpecsSystem Spec

  3. #62


    Posts : 5
    Windows 10 home


    It keeps asking me to insert my external media or sd card on reboot before getting to the log in screen with options to press OK or cancel.

    BUT

    now the VHD is auto mounting.

    So how can I fix that error I get on startup boot? It is asking for my media to be inserted.
      My System SpecsSystem Spec

  4. #63


    Posts : 22,346
    64-bit Windows 10


    Hello Durk, and welcome to Eight Forums.

    It would be best to post this issue at our sister site www.tenforums.com instead since it's for Windows 10.
      My System SpecsSystem Spec

  5. #64


    Posts : 5
    Windows 10 home


    Quote Originally Posted by Brink View Post
    Hello Durk, and welcome to Eight Forums.

    It would be best to post this issue at our sister site www.tenforums.com instead since it's for Windows 10.
    If I post there I have to post all over this sucks.
      My System SpecsSystem Spec

  6. #65


    Posts : 22,346
    64-bit Windows 10


    Copy and paste will make it easy.
      My System SpecsSystem Spec

  7. #66


    Posts : 2,675
    Windows 3.1 > Windows 10


    You need to create a .cmd file that will mount the VHD upon startup...

    The AttachVHD.CMD file states this -
    @ echo off
    DISKPART /s "C:\Users\R\Documents\attachVHD.txt"
    Exit
    the attachVHD.txt states this -

    select vdisk file="D:Attach VHD.vhd"
    attach vdisk
    assign letter=X
    exit
    NOTE: the VHD (as listed above) is on the root of Drive / partition D > You can also pre-assign a mounted drive letter by replacing X

    Triggers tab is at startup with nothing else checked or setup
    Actions tab
    Action start a program CMD
    arguments is > C:\Users\R\Documents\attachVHD.CMD


    I would move the CMD file to the same root drive (D) > so you will have the VHD File, TXT file and the CMD file to mount it, on the same partition..
      My System SpecsSystem Spec

  8. #67


    Posts : 5
    Windows 10 home


    So are you saying to make another text file for the .CMD? And then move both text files onto my CD card which is the D drive? I have 3 drives C is my main, D is my SD card and E is the VHD when it auto mounts. It is mounting but its not finding it when I have updates install to it to complete the update installations.
      My System SpecsSystem Spec

  9. #68


    Posts : 5
    Windows 10 home


    Quote Originally Posted by KYHI View Post
    You need to create a .cmd file that will mount the VHD upon startup...

    The AttachVHD.CMD file states this -
    @ echo off
    DISKPART /s "C:\Users\R\Documents\attachVHD.txt"
    Exit
    the attachVHD.txt states this -

    select vdisk file="D:Attach VHD.vhd"
    attach vdisk
    assign letter=X
    exit
    NOTE: the VHD (as listed above) is on the root of Drive / partition D > You can also pre-assign a mounted drive letter by replacing X

    Triggers tab is at startup with nothing else checked or setup
    Actions tab
    Action start a program CMD
    arguments is > C:\Users\R\Documents\attachVHD.CMD


    I would move the CMD file to the same root drive (D) > so you will have the VHD File, TXT file and the CMD file to mount it, on the same partition..
    Currently my text file for the automount is located in documents of my C drive.
      My System SpecsSystem Spec

Page 7 of 7 FirstFirst ... 567
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