作者:Alan L. Wendt | 中譯:黃耀民 | v1.0(1996/1998)
DOS 與 Windows 95 若安裝在不同主分割區並同時設為可開機,會因兩者都要求位於第一個 FAT 主分割區(C:)而衝突。DOS 開機後會將自身分割區顯示為 C:,導致系統異常。解決方法是使用開機管理程式,隱藏非啟動系統的分割區。本文採用 Linux LILO。
用 Linux fdisk 建立三個主分割區:
若硬碟僅有一主分割區,可用 FIPS 免費工具無損重分割(需技巧)。
從 Linux FTP 站下載 lilo.17.tar.gz 或更新版(具備開機時更新 active flag 能力)。1996 年後發行版通常內建,可略過。
/etc/lilo.confboot = /dev/hda compact delay = 5 vga = normal ramdisk = 0 root = current image = /vmlinuz.1.3.97 append = "aha1542=0x230 ro" label = linux other = /dev/hda1 table = /dev/hda rewrite-table label = dos other = /dev/hda2 table = /dev/hda rewrite-table label = w95
/sbin/lilo
LILO 提示出現時按 Tab,輸入標籤名:w95 啟動 Windows 95,dos 啟動 DOS,linux 啟動 Linux。LILO 會自動處理分割區隱藏/顯示,解決衝突。
若需更詳細資訊,請參閱 The Linux LILO mini-HOWTO。