How to mount multiple vhd(x) before startup by using bcdedit.(as early as i can)

n21k1a jkjkn767c2ok 0 Reputation points
2024-03-30T01:22:07.2966667+00:00

I need to mount multiple vhd(x) before startup:

Windows11.vhd, ProgramFiles.vhd, Data.vhd

Some solutions**(e.g. : windows Task, windows services)** are not early enough.

I need to mount multiple vhd(x) as early as possible, because some programs(in ProgramFiles.vhd) are also be executed very early on startup.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Can i mount multiple vhd(x) by using BcdEdit commandline?such as:

Windows Boot Loader


identifier {default}

device vhd=[D:]\windows11.vhd

path \Windows\system32\winload.efi

description Windows 11

......

osdevice vhd=[D:]\windows11.vhd

systemroot \Windows

......

otherdevice1 vhd=[D:]\ProgramFiles.vhd

otherdevice2 vhd=[D:]\Data.vhd

otherdevice3 ......


Or are there any other solutions?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,093 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.