|
本帖最后由 lintrainwy 于 2020-2-25 10:26 编辑
{ramdiskoptions} 代表了一个已经固定使用的 guid ,一般没必要另建一个,如果需要,只需要将 {ramdiskoptions} 替换为 一个未被使用的 guid 就行了
- bcdedit /store BCD /create {ramdiskoptions}
- bcdedit /store BCD /set {ramdiskoptions} ramdisksdidevice boot
- bcdedit /store BCD /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
复制代码
- bcdedit /store BCD /create {aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa}
- bcdedit /store BCD /set {aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa} ramdisksdidevice boot
- bcdedit /store BCD /set {aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa} ramdisksdipath \boot\boot.sdi
复制代码
当然添加 wim 时要指定使用哪个
- bcdedit /store BCD /set %id% device ramdisk=[boot]%wim%,{ramdiskoptions}
- bcdedit /store BCD /set %id% osdevice ramdisk=[boot]%wim%,{ramdiskoptions}
复制代码
- bcdedit /store BCD /set %id% device ramdisk=[boot]%wim%,{aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa}
- bcdedit /store BCD /set %id% osdevice ramdisk=[boot]%wim%,{aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa}
复制代码
|
|