ส่วนที่ยากที่สุดเมื่อทำ Dual boot หรือ Multiple boot คือ บางครั้ง Boot Manager ไม่จดจำระบบปฏิบัติการเก่า อาจเพราะ OS เก่าใช้ Boot loader แบบต่างกัน เช่น ก่อน Windows Vista หรือเพราะ Windows ไม่ได้กำหนดชื่อไดรฟ์สำหรับ OS ที่หายไป
Boot Configuration Data (BCD) Editor
The Bcdedit.exe command-line tool modifies the boot configuration data store. The boot configuration data store contains boot configuration parameters and controls how the operating system is booted. These parameters were previously in the Boot.ini file (in BIOS-based operating systems) or in the nonvolatile RAM entries (in Extensible Firmware Interface-based operating systems). You can use Bcdedit.exe to add, delete, edit, and append entries in the boot configuration data store.
บทความนี้เน้นที่ Boot Configuration Data Editor และพยายามตอบว่ามันช่วยแก้ไขข้อผิดพลาดอย่างไร เช่น Operating System Not Found, ไม่สามารถตรวจจับ Secondary และ Tertiary OS ในกรณี Multiple boot และข้อผิดพลาดคล้ายๆ กัน
ทำไมต้องเปลี่ยนจาก Boot.ini เป็น BCD
BCD ถูกสร้างขึ้นเพื่อให้กลไกที่ดีขึ้นสำหรับการอธิบาย Boot configuration data ด้วยการพัฒนา Firmware models ใหม่ จำเป็นต้องมี Interface ที่ขยายได้และทำงานร่วมกันได้ เพื่อสรุป Firmware ที่อยู่ด้านล่าง การออกแบบใหม่นี้เป็นพื้นฐานสำหรับฟีเจอร์ใหม่หลายอย่างใน Windows Vista, Windows 7, Windows 8, Windows 10 และ Windows 11 เช่น Startup Repair tool และ Multi-User Install shortcuts
BCD Editor ทำอะไรได้บ้าง
BCD Editor ถูกจัดให้เป็น GUI ใน Windows มีตัวเลือกไม่มาก แต่คุณสามารถแก้ไข Boot Manager และซ่อมแซม Master Boot Record ด้วย GUI
GUI ยังช่วยแก้ไขปัญหาที่ Bootmgr หายไปในบางกรณี
ตำแหน่ง BCD Registry
Boot Configuration Datastore มีพารามิเตอร์การตั้งค่า Boot และควบคุมการเริ่มต้นของ OS
BCD Registry ตั้งอยู่ในโฟลเดอร์ \boot\bcd ของ Active Partition
สำหรับระบบ EFI-based ตำแหน่งเริ่มต้นของ BCD Registry อยู่บน EFI Partition
อ่าน: How to Backup & Restore BCD file in Windows
Command line version ของ BCD Editor
Command line version ของ BCD Editor มีพลังมากกว่า และใช้ทำฟังก์ชันหลากหลาย:
- สร้าง BCD store
- เพิ่ม Entries เข้า BCD store ที่มีอยู่
- แก้ไข Entries ที่มีอยู่ใน BCD store
- ลบ Entries จาก BCD store
- Export Entries ไปยัง BCD store
- Import Entries จาก BCD store
- แสดงการตั้งค่าที่ Active อยู่
- Query Entries ประเภทเฉพาะ และ
- Apply การเปลี่ยนแปลงทั่วไป
เพื่อดูว่าสามารถทำอะไรได้อีกกับ BCDEdit.exe ให้พิมพ์ bcdedit.exe /? ที่ Command Prompt จะแสดงตัวเลือกและ Operation ทั้งหมดที่ทำได้กับ BCD Editor ผ่าน Command Prompt

Multiple Boot Environments
หากตั้งใจใช้ 2 OS ขึ้นไป ให้จำสิ่งต่อไปนี้:
- ติดตั้ง Windows Vista หรือใหม่กว่าบน Partition ต่างกัน กฎคือ แต่ละ OS ควรมี Partition ของตัวเอง ไม่งั้นโฟลเดอร์ร่วม เช่น Windows, Program Files จะทำให้เกิด Conflict และอาจ Crash เครื่อง ถึงอย่างไรก็ตาม หากตั้งใจใช้ OS เก่า ให้ติดตั้ง OS ก่อน Vista ก่อน เพื่อให้ยังใช้ Boot.ini ได้ แล้วค่อยติดตั้ง Vista หรือใหม่กว่า เพื่อไม่ให้เกิด Conflict กับ Bootcfg
- คุณต้องแน่ใจว่า OS เก่ากว่า Vista ใช้ Boot.ini และ OS ตั้งแต่ Vista ขึ้นไปใช้ BCD สามารถทำได้ด้วย BCD Command line และ MSCONFIG command
- อย่า Disable BCD แม้จะอยากรัน OS เก่าเช่น Windows XP พร้อม Vista หรือสูงกว่า BCD ช่วยหา Boot.ini ซึ่งช่วยโหลด OS เก่า หาก Disable BCD คอมพิวเตอร์อาจไม่จดจำ OS เก่า
เปลี่ยน Default Operating System ด้วย BCD
วิธีง่ายและเร็วที่สุดคือใช้ Command line version ของ BCD.exe ใช้คำสั่งต่อไปนี้ที่ Command Prompt:
BCDEDIT /DEFAULT {ID}
เพื่อหา ID สำหรับแต่ละ OS ใช้คำสั่ง:
BCDEDIT /ENUM ALL
จากรายการ IDs คัดลอก ID ที่อยู่ถัดจาก OS ที่ต้องการตั้งเป็น Default และวางแทนที่ {ID} ในคำสั่งแรก
Boot Configuration Data Editor has stopped working
หากได้ข้อผิดพลาดนี้ คุณต้องรัน Startup Repair ลิงก์เหล่านี้อาจช่วย:
- Run Startup Repair in Windows 7
- Run Automatic Repair in Windows 8
- Run Automatic Startup Repair in Windows 11 or Windows 10 จะได้ Settings ภายใต้ Advanced Startup Options
สำหรับอ่านรายละเอียด โปรดเยี่ยมชม TechNet
EasyBCD, Visual BCD Editor และ Dual Boot Repair Tool เป็น Freeware 3 ตัวที่ให้คุณแก้ไขและซ่อมแซม Windows Boot Configuration Data ได้ง่าย
