- 论坛徽章:
- 0
|
你只是编译了内核而己呢
mkinitrd /boot/xxx.img xxx
cp /usr/src/kernel/System.map /boot/System.map-xxxx
cp /arch/x86/boot/bzImage /boot/vmlinuz-xxx
vi /etc/grub.conf
以我的为例
default=2
timeout=2
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-53.el5)
root (hd0,1)
kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/
initrd /initrd-2.6.18-53.el5.img
title windows xp
rootnoverify (hd0,0)
chainloader +1
title 2.6.25.4
root(hd0,1)
kernel /vmlinuz-2.6.25.4 ro root=LABEL=/
initrd /initrd-2.6.25.4.img |
|