iT邦幫忙

0

freebsd 8.2在升級Kernel失敗, 導致重新開機時lost Kernel

請問這種情況該怎麼解?
用FreeBSD的光碟開機
進到 Fix 可是後面不知道該下什麼指令
才能重建Kernel

本來是想如果 /home 裡的檔案能copy出來的話
系統救不救也無妨
可是光碟開機沒有 /home 這個資料夾
變成非得先把系統先救回來
用硬碟開機進去後
才能Copy檔案?

2 個回答

4
cmwang
iT邦高手 1 級 ‧ 2013-10-08 09:14:25
最佳解答

請參考FreeBSD Handbook,第9章第7節是這麼寫的....

The kernel does not boot:
If the new kernel does not boot, or fails to recognize devices, do not panic! Fortunately, FreeBSD has an
excellent mechanism for recovering from incompatible kernels. Simply choose the kernel to boot from at the
FreeBSD boot loader. This can be accessed when the system boot menu appears by selecting the “Escape to a
loader prompt” option. At the prompt, type boot kernel.old, or the name of any other kernel that will boot
properly.When reconfiguring a kernel, it is always a good idea to keep a kernel that is known to work on hand.
After booting with a good kernel, check over the configuration file and try to build it again. One helpful
resource is /var/log/messages which records the kernel messages from every successful boot. Also,
dmesg(8) will print the kernel messages from the current boot.

update kernel後沒辦法boot要做的第一件事應該是先用舊kernel讓系統開起來,而不是跑fix mode吧(因為有可能越修越糟OrzOrz)....

2
ganymede
iT邦好手 1 級 ‧ 2013-10-08 09:02:18

先找顆新硬碟安裝 OS, 再試著把舊硬碟 mount 進來看看可否還可讀取.

我要發表回答

立即登入回答