|
|
http://www.mistyrebootfiles.alte ... s/device_locate.htm
这个网站上有解释。可以在自己用的启动菜单增加这个选项,要用windows8.1以上版本的bcdedit才能编辑
locate=custom:12000002 该装置 元件具有值定位=定制:12000002。这将扫描驱动器,直到找到元素 12000002(路径条目)- \ Windows \ system32 \ winload.exe中设置的数据。
locate=custom:22000002 osdevice的 元件具有值定位=定制:22000002。这将扫描驱动器,直到找到元素 22000002(systemroot 元素)- \ Windows中的数据集
上例中包含数据的BCD存储区取自sysprepped系统-使用Windows 7上的Sysprep工具会自动将设备设置为使用locate。不幸的是,我没有找到任何使用Windows 7附带的bcdedit工具来复制它的方法。使用Windows 8.1版本的bcdedit,可以通过使用以下命令语法将设备 元素设置为使用locate -
bcdedit / set {guid }设备LOCATE = custom:0x12000002
在多引导环境中,定位 设备可能未加载所需的操作系统,因为一旦找到第一个path \ file,扫描过程就会停止-例如,如果分区1和2的同一磁盘上有两个Windows版本,则分区1上的操作系统将被引导,因为它首先被扫描。
reg.exe method
First step is to mount the BCD store -
reg.exe load HKLM\bcd C:\BCD_backup\BCD [enter]
Next change the device element data to locate=custom:12000002 -
reg.exe ADD "HKLM\bcd\Objects\{069317d9-50d7-11df-9241-001d925a73cf}\Elements\11000001" /v Element /t REG_BINARY /d 0000000000000000000000000000000008000000000000001e000000000000000000000002000012000000000000 /f[enter]
Next change the osdevice element data to locate=custom:22000002 -
reg.exe ADD "HKLM\bcd\Objects\{069317d9-50d7-11df-9241-001d925a73cf}\Elements\21000001" /v Element /t REG_BINARY /d 0000000000000000000000000000000008000000000000001e000000000000000000000002000022000000000000 /f [enter]
Unload the BCD store -
reg.exe unload HKLM\bcd[enter] |
|