用 GRUB 引導 PE 選單出現亂碼?主因是選單檔 (menu.lst) 編碼非 UTF-8,且內建選單扇區數不足導致選項截斷。
(bd)/BOOT/USB_ACC.0PE --version=5.0.11 --time-out-enable=2 --time-out-disable=1 timeout 10 default 0 gfxmenu (bd)/BOOT/MESSAGE || find --set-root /BOOT/MESSAGE && gfxmenu (bd)/BOOT/MESSAGE configfile (md)4+8
configfile (md)4+8 將內建選單扇區從 3 增至 8 (最大 8 扇區/4KB),解決選單項目過多顯示不全問題。範例選單項目:
title 【01】 WinPE 2003 map --mem (bd)/BOOT/WINPE.ISO (0xff) || find --set-root /BOOT/WINPE.ISO (0xff) && map --mem (bd)/BOOT/WINPE.ISO (0xff) map --hook chainloader (0xff)
修正後重新建構 ISO,GRUB 選單即可正常顯示中文且項目完整。