• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

VHD - Auto-mount at Startup in Windows 8


DavidY

Active Member
VIP Member
Pro User
Posts
955
#61
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 Computer

System One

  • OS
    Windows 8.1, 10

Durk

New Member
Posts
5
#62
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 a moderator:

My Computer

System One

  • OS
    Windows 10 home
    Computer type
    Tablet
    System Manufacturer/Model Number
    winbook tw700
    Memory
    16gb
    Browser
    microsoft edge

Durk

New Member
Posts
5
#63
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 Computer

System One

  • OS
    Windows 10 home
    Computer type
    Tablet
    System Manufacturer/Model Number
    winbook tw700
    Memory
    16gb
    Browser
    microsoft edge

Brink

Administrator
Administrator
mvp
Posts
23,641
#64
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 Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Brink

Administrator
Administrator
mvp
Posts
23,641
#66
Copy and paste will make it easy.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

KYHI

Well-Known Member
Pro User
Posts
2,747
#67
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 Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB

Durk

New Member
Posts
5
#68
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 Computer

System One

  • OS
    Windows 10 home
    Computer type
    Tablet
    System Manufacturer/Model Number
    winbook tw700
    Memory
    16gb
    Browser
    microsoft edge

Durk

New Member
Posts
5
#69
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 Computer

System One

  • OS
    Windows 10 home
    Computer type
    Tablet
    System Manufacturer/Model Number
    winbook tw700
    Memory
    16gb
    Browser
    microsoft edge

Users Who Are Viewing This Thread (Users: 0, Guests: 1)