新款預裝 Win8 電腦採 UEFI + GPT 磁碟。品牌廠商的開機前診斷工具常置於隱藏 OEM 分區。若重灌系統誤刪,如何恢復 OEM 隱藏屬性?
Diskpart 中對分區執行 create partition primary id=xx(如 id=DE 為 Dell),即可宣告 OEM 分區。help create par pri 可查廠商代碼。


新版 Diskpart 提供 gpt attributes 指令。建立主分區後(create partition primary size=xxx),執行:
gpt attributes=0x0000000000000001
即將該分區設為 OEM 分區(Windows 會自動隱藏)。屬性代碼意義可用 help gpt 查詢:


移除屬性只需在屬性 ID 前加減號(如 gpt attributes=-0x0000000000000001)。未來 Windows 版本可能新增更多 GPT 分區屬性。