BOOTMGR 丢失 - 按 Ctrl+Alt+Del 重新启动

BOOTMGR 丢失 - 按 Ctrl+Alt+Del 重新启动

我有一个 Windows 7 USB 启动盘,我用它将 wim 映像写入标准英特尔 PC(一台新 PC)。

批处理文件applyimage.bat 运行以下命令:

DISKPART /s WipeDisk.txt
ImageX /apply imagefile.wim 1 c:\
bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
bcdedit /set {bootmgr} device partition=c:

文本文件 WipeDisk.txt 包含:

SELECT DISK 0
CLEAN
CREATE PARTITION PRIMARY
FORMAT QUICK FS=NTFS LABEL="Windows"
ACTIVE
ASSIGN LETTER="C"

当我运行批处理文件时,我得到以下输出:

E:\>applyimage.bat

E:\>DISKPART /s WipeDisk.txt

Microsoft DiskPart version 6.1.7600
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: MININT-135E5ES

Disk 0 is now the selected disk.

DiskPart succeeded in cleaning the disk.

DiskPart succeeded in creating the specified partition.

  100 percent completed

DiskPart successfully formatted the volume.

DiskPart marked the current partition as active.

DiskPart successfully assigned the drive letter or mount point.

E:\>ImageX /apply imagefile.wim 1 c:\

ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
Version: 6.1.7600.16385


[ 100% ] Applying progress

Successfully applied image.

Total elapsed time: 8 min 22 sec




E:\>bcdedit /set {default} device partition=c:
The boot configuration data store could not be opened.
The system cannot find the file specified.

E:\>bcdedit /set {default} osdevice partition=c:
The boot configuration data store could not be opened.
The system cannot find the file specified.

E:\>bcdedit /set {bootmgr} device partition=c:
The boot configuration data store could not be opened.
The system cannot find the file specified.

E:\>

当我重新启动电脑时出现此错误:

BOOTMGR is missing
Press Ctrl+Alt+Del to restart

我怎样才能解决这个问题?

我该如何修复applyimage.bat文件中的初始错误?

更新:如果我删除 3 个 bcdedit 行并替换为:

bcdboot C:\Windows

它似乎确实有效。

但我担心的是,我不明白进行这种改变意味着什么。为什么我突然需要一台新电脑——而这台电脑只是旧电脑的升级版。

bcdedit 行在 Advantech UNO-2184G(大概有 4-5 年了)上可以工作,但在新的 Advantech UNO-2484G 上不行。

相关内容