更新:根据我在这里的经验,没有人回应。 如果我没有从TechNet论坛成员那里得到回复,我会在这里发布一个奖励,如果它有所作为。
整个星期来看,我的头撞墙了。 我将解释我的简单程序,以及没有任何东西似乎没有任何后续工作,尽pipe没有替代scheme, 互联网上的每个人都告诉我们这是怎么做的 。
REM Select the disk targeted for deployment. REM REM NOTE: Usually disk 0, but drive failure can make it external USB REM media. This will erase the drive regardless! select disk 0 REM Remove previous formatting. clean REM Create System Reserved partition bootloader and files. create partition primary size=100 REM Format the volume format fs=ntfs label="System Reserved" quick override noerr REM Assign the System Reserved partition the D: mount for now assign letter=C REM The main system partition, size not specified to occupy whole drive. create partition primary REM Format the volume format fs=ntfs quick override noerr REM Assign the OS partition the D: mount for now assign letter=D REM Make this the active/bootable partition. sel disk 0 sel partition 1 active REM Close out the diskpart session. exit
现在,我认为这是疯狂的,但事实certificate,系统保留的分区和标准的“系统分区”( C : ,通常既可以findWindows目录和bootmgr / ntldr硬件文件的启动和系统卷,这是Windows 7分歧 )挂载在Windows PE会话中,我运行这些命令并不重要。 在这里看到参考。 由于这需要BitLocker就绪,请input这个蹩脚的系统保留分区,这是独立的100MB的真棒,在常规启动卷之前。 我这样做,然后我继续下一步。
REM C is still the "System Reserved Partition", and the image is just like it sounds. imagex /apply G:\images\systemreserved.wim 1 C: REM D is now what will be the C: system partition on reboot, supposedly. imagex /apply G:\images\testimage.wim 1 D:
现在,我刚刚拍摄的图像应该看起来不错。 这甚至没有sysprepped,但重新应用相同的fscking图像我几个小时前在同一个参考工作站准备。 问题是我得到0xc000000e could not detect the accessible boot device \Windows\system32\winload.exe或不同types的废话围绕着能够find与所有正确的文件启动卷。 我尝试了不同的东西,现在他们都不工作。 我尝试用bcdboot进行修复,使用新鲜的System Reserved分区,或者不使用bootrec ,并用bcdedit手动编辑该死的BCD存储区。 我尝试使用和不使用bootsect /nt60 C: /force完成上述过程。 我需要包装和自动化这个过程。 我做错了什么事情,不会使图像开心,但真的只是悲惨。
我完全同情你的痛苦。 这让我疯狂了好几个星期。 最烦人的是bcdboot不在我的Windows Server 2008的任何一个盒子上,尽pipe每个指南都在网上说它应该是。
我的情况是,我们无法运行PXE服务器(长话短说),所以必须用WinPE手动应用Windows映像。 图像似乎应用确定,但重新启动时,我得到错误“BOOTMGR失踪”。
我尝试启动到WinPE,并使用引导configuration数据存储编辑器替换我的引导configuration,方法是运行以下命令:
bcdedit / import X:\ Windows \ System32 \ config \ BCD-Template
但是这不起作用。
不过,我很高兴地说,我现在已经解决了这个问题!
这并不容易, 您将需要一台运行您正在尝试安装的操作系统(Windows 7或Server 2008)的工作机器,以及一个远程服务器来复制启动扇区信息。
首先用winpe磁盘启动进入工作机器。
跑
净使用Z:\ REMOTEMACHINE \ Share
然后
XCOPY C:Z:\ BOOTMGRBACKUP \ / H / S
现在使用winpe磁盘login到您要创build的机器。
然后运行上面出色的脚本来创build一个100Mb的活动分区和占用磁盘剩余空间的另一个分区。
根据安装映像的方式,您将映射驱动器或访问CD,然后将映像应用于IMAGEX(我不打算在此处详细介绍,因为它在其他地方已被广泛地讨论过)将映像应用于D :。
我们现在需要将BOOTMGR分区放到100Mb的分区上。
跑
净使用Z:\ REMOTEMACHINE \ Share
XCOPY Z:\ BOTMGRBACKUP \ c:/ H / S / Y
这将复制BOOTMGR信息,但会有一些信息丢失(不知道这是为什么)。
现在运行
bcdedit / set {bootmgr}设备分区= C:
运行bcdedit / set {default}设备分区= D:
运行bcdedit / set {default} osdevice partition = D:
重新启动盒子,你应该在Windows!
按照该diskpart脚本将系统保留分区挂载为“C:”,将操作系统分区diskpart为“D:”。 我会抓取一个bcdboot.exe的副本,然后运行bcdboot d:\windows /SC:应用图像后,看看它是什么。
如果您擦除磁盘,则必须使用sysprep。
Vista和7都将自己绑定到卷序列号,在清理或删除卷时,将重新创buildAFAIK。
Sysprepping应该可以解决你遇到的问题。