无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 2588|回复: 8
打印 上一主题 下一主题

两个BCD文件,只有启动系统项的GUID不同,能互相换吗

[复制链接]
跳转到指定楼层
1#
发表于 2021-6-28 23:00:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

两个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}




2#
发表于 2021-6-29 09:07:42 | 只看该作者
必须能,俺是建自定义GUID,再建引导的,自定义的GUID方便以后调用。

点评

问一下,怎样自定义GUID呢  详情 回复 发表于 2021-6-29 10:29
回复

使用道具 举报

3#
 楼主| 发表于 2021-6-29 10:29:49 | 只看该作者
szwp 发表于 2021-6-29 09:07
必须能,俺是建自定义GUID,再建引导的,自定义的GUID方便以后调用。

问一下,怎样自定义GUID呢

点评

BOOTICE小工具就可以吧  详情 回复 发表于 2021-6-29 10:47
BOOTICE小工具就可以吧  详情 回复 发表于 2021-6-29 10:46
回复

使用道具 举报

4#
发表于 2021-6-29 10:46:51 | 只看该作者
yjqd 发表于 2021-6-29 10:29
问一下,怎样自定义GUID呢

BOOTICE小工具就可以吧
回复

使用道具 举报

5#
发表于 2021-6-29 10:56:00 | 只看该作者
我是用 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
复制代码

点评

谢谢 自定义 guid除了满足guid的格式,它的具体数据遵循什么原则呢,可以随便写么  详情 回复 发表于 2021-6-29 11:42
回复

使用道具 举报

6#
发表于 2021-6-29 11:29:56 来自手机 | 只看该作者
自定义,用不作吧
回复

使用道具 举报

7#
 楼主| 发表于 2021-6-29 11:42:28 | 只看该作者
wintoflash 发表于 2021-6-29 10:56
我是用 bcdedit 自定义 guid 的,以下命令仅供参考。

谢谢
自定义 guid除了满足guid的格式,它的具体数据遵循什么原则呢,可以随便写么

点评

随便写,只要不和其他条目重复就行。  详情 回复 发表于 2021-6-29 12:30
BCD2启动同一系统还没成功? guid不能相同,出现二条相同的,系统难以判断用哪条。  详情 回复 发表于 2021-6-29 12:21
回复

使用道具 举报

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

BCD2启动同一系统还没成功?
guid不能相同,出现二条相同的,系统难以判断用哪条。
回复

使用道具 举报

9#
发表于 2021-6-29 12:30:36 | 只看该作者
yjqd 发表于 2021-6-29 11:42
谢谢
自定义 guid除了满足guid的格式,它的具体数据遵循什么原则呢,可以随便写么

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

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-12-24 02:09

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表