无忧启动论坛

标题: 两个BCD文件,只有启动系统项的GUID不同,能互相换吗 [打印本页]

作者: yjqd    时间: 2021-6-28 23:00
标题: 两个BCD文件,只有启动系统项的GUID不同,能互相换吗

两个BCD文件:BCD1和BCD2,只有启动系统项的GUID不同,其它数据都相同(包括BCD记录磁盘签名和分区的偏移位置)
已知BCD1能启动系统,能用BCD2启动同一系统吗
比如:

BCD1:
Windows Boot Manager
--------------------
default                 {6551bc38-78d5-11df-bc90-c80aa9b084b8}

Windows Boot Loader
-------------------
identifier              {6551bc38-78d5-11df-bc90-c80aa9b084b8}

BCD2:

Windows Boot Manager
--------------------
default                 {909b92fa-9161-11df-b7a8-c80aa9dad987}

Windows Boot Loader
-------------------
identifier              {909b92fa-9161-11df-b7a8-c80aa9dad987}





作者: szwp    时间: 2021-6-29 09:07
必须能,俺是建自定义GUID,再建引导的,自定义的GUID方便以后调用。
作者: yjqd    时间: 2021-6-29 10:29
szwp 发表于 2021-6-29 09:07
必须能,俺是建自定义GUID,再建引导的,自定义的GUID方便以后调用。

问一下,怎样自定义GUID呢
作者: caocaofff    时间: 2021-6-29 10:46
yjqd 发表于 2021-6-29 10:29
问一下,怎样自定义GUID呢

BOOTICE小工具就可以吧
作者: wintoflash    时间: 2021-6-29 10:56
我是用 bcdedit 自定义 guid 的,以下命令仅供参考。
  1. set guid={12345678-6666-8888-abcd-000000000000}
  2. set guid1={12345678-6666-8888-abcd-000000000001}
  3. set winload=\Windows\System32\winload.efi
  4. set windir=\Windows
  5. set wincmd=DDISABLE_INTEGRITY_CHECKS
  6. set winresume=\Windows\System32\winresume.efi
  7. set winhibr=\hiberfil.sys

  8. set bcdfile=/store bcd

  9. bcdedit /createstore bcd
  10. bcdedit %bcdfile% /create {bootmgr} /d "NT"
  11. bcdedit %bcdfile% /set {bootmgr} locale en-us
  12. bcdedit %bcdfile% /set {bootmgr} timeout 1
  13. bcdedit %bcdfile% /set {bootmgr} displaybootmenu false
  14. bcdedit %bcdfile% /create {globalsettings}
  15. bcdedit %bcdfile% /set {globalsettings} optionsedit true
  16. bcdedit %bcdfile% /set {globalsettings} advancedoptions true
  17. bcdedit %bcdfile% /create {resumeloadersettings}
  18. bcdedit %bcdfile% /create %guid1% /d "Windows Resume" /application RESUME
  19. bcdedit %bcdfile% /set %guid1% device partition=C:
  20. bcdedit %bcdfile% /set %guid1% path %winresume%
  21. bcdedit %bcdfile% /set %guid1% filedevice partition=C:
  22. bcdedit %bcdfile% /set %guid1% filepath %winhibr%
  23. bcdedit %bcdfile% /set %guid1% inherit {bootloadersettings}
  24. bcdedit %bcdfile% /create %guid% /d "Windows" /application OSLOADER
  25. bcdedit %bcdfile% /set %guid% device partition=C:
  26. bcdedit %bcdfile% /set %guid% path %winload%
  27. bcdedit %bcdfile% /set %guid% osdevice partition=C:
  28. bcdedit %bcdfile% /set %guid% inherit {bootloadersettings}
  29. bcdedit %bcdfile% /set %guid% locale en-us
  30. bcdedit %bcdfile% /set %guid% systemroot %windir%
  31. bcdedit %bcdfile% /set %guid% detecthal true
  32. bcdedit %bcdfile% /set %guid% winpe false
  33. bcdedit %bcdfile% /set %guid% testsigning false
  34. bcdedit %bcdfile% /set %guid% pae default
  35. bcdedit %bcdfile% /set %guid% nx OptIn
  36. bcdedit %bcdfile% /set %guid% nointegritychecks true
  37. bcdedit %bcdfile% /set %guid% loadoptions %wincmd%
  38. bcdedit %bcdfile% /set %guid% resumeobject %guid1%
  39. bcdedit %bcdfile% /displayorder %guid% /addlast
复制代码


作者: lmj9401    时间: 2021-6-29 11:29
自定义,用不作吧
作者: yjqd    时间: 2021-6-29 11:42
wintoflash 发表于 2021-6-29 10:56
我是用 bcdedit 自定义 guid 的,以下命令仅供参考。

谢谢
自定义 guid除了满足guid的格式,它的具体数据遵循什么原则呢,可以随便写么
作者: szwp    时间: 2021-6-29 12:21
yjqd 发表于 2021-6-29 11:42
谢谢
自定义 guid除了满足guid的格式,它的具体数据遵循什么原则呢,可以随便写么

BCD2启动同一系统还没成功?
guid不能相同,出现二条相同的,系统难以判断用哪条。
作者: wintoflash    时间: 2021-6-29 12:30
yjqd 发表于 2021-6-29 11:42
谢谢
自定义 guid除了满足guid的格式,它的具体数据遵循什么原则呢,可以随便写么

随便写,只要不和其他条目重复就行。




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3