re-install FreeBSD boot manager (boot0)
FreeBSD 6.2-RELEASE の install CD から PC 起動。
sysinstall が起動するので Country とか Console Keymap は自分の環境にあわせたものを選択する。Main Menu に Fixit というのがあるのでそれを CDROM から起動する。僕は
Country Selection 110 Japan Select Console Keymap USA ISO FreeBSD/i386 6.2-RELEASE - sysinstall Main Menu Fixit 2 CDROM/DVD
と順に選択していった。
fixit 起動
+---------------------------------------------------------------+ | You are now running from FreeBSD "fixit" media. | | ------------------------------------------------------------- | | When you're finished with this shell, please type exit. | | The fixit media is mounted as /mnt2. | | | | You might want to symlink /mnt/etc/*pwd.db and /mnt/etc/group | | to /etc after mounting a root filesystem from your disk. | | tar(1) will not restore all permissions correctly otherwise! | | | | Note: you can use the arrow keys to browse through the | | command history of this shell. | +---------------------------------------------------------------+ Good Luck! #
と言われて shell が使えるようになる。IDE か SATA でディスクが一本しか刺さっていない環境ならディスクのデバイスは /dev/ad0 かと思われる。まあ事前に調べておこう。
boot0cfg で MBR に boot0 を install
# boot0cfg -B /dev/ad0
shell を終了させると sysinstall 画面に戻るので sysinstall も終了させて reboot すれば終了。boot0 が起動するようになる。