BBS水木清华站∶精华区

发信人: tonywu@cyberhouse.com.tw (Tony C. Wu), 看板: Linux 
标  题: Re: compile kernel之後不能开机...有解吗? 
发信站: The CyberHouse Tech. Ltd., Taiwan (Fri Mar  7 17:41:46 1997) 
转信站: sobee!netnews.ntu!news.mcu!news.cs.nthu!news.cis.nctu!news-peer.nctu!n 
 
 NeilWang (wsw3961@ms4.hinet.net) wrote: 
 jack wrote: 
 >     compile kernel and lilo -v 
 >     reboot it 
 >     it died 
 >     有解吗 ? 
  如果你是用 slakware 可用安装时之 boot disk 及 root disk 开机 
  後再把硬碟中之linux分割mount 上去,修改为旧的kernel开机 
 
有一个小秘诀可以预防这种情况发生: 
 
0. require: 开机 kernel 为 vmlinuz, and 须要有一段时间的开机延迟, say 5 sec. 
 
1. 在 /etc/lilo.conf 中加入另一个与现在 linux 开机设定一模一样的设定, 
   取个不同的名字, 例如 linux.old, 将开机 kernel 设为 vmlinuz.old 
 
2. 之後 compile kernel 时, 用 make zlilo 去 compile 及 install new kernel. 
   Then, it'll copy the new kernel to /vmlinuz and rename the old one to 
   /vmlinuz.old and install lilo. 
 
3. 重新开机时会以新的 kernel 开机, 当新 kernel 有问题时, 可以在开机时按 
   alt, 选用 linux.old 去开旧的 kernel. So you get a chance to fix the 
   new kernel problem. 
 
Hope this helps, 
Tony Wu 

BBS水木清华站∶精华区