andrew 发表于 2003-8-13 18:09:15

编译内核后怎么修改lilo.conf?

我的lilo.conf文件,我升级2.4.20内核

image=/boot/vmlinuz-2.4.18-14
label=Linux
initrd=/boot/initrd-2.4.18-14.img
read-only
append="root=LABEL=/"

我编译后生成 /usr/src/linux/arch/i386/boot/bzImage 文件!
我用
1. cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20
2. 把lilo.conf修改为:image=/boot/vmlinuz-2.4.20
label=Linux
initrd=/boot/initrd-2.4.18-14.img
read-only
append="root=LABEL=/"
3.lilo

这么做完后,但新内核启动不了,什么问题,是不是lilo.conf文件没修改好
"initrd=/boot/initrd-2.4.18-14.img" 文件中这句用不用改?

Dragonfly 发表于 2003-8-13 21:52:36

1) next time, add an entry to lilo.conf instead of modify old one, then u can boot old kernel if the new one does not work

2) u need to use mkinitrd command to generate a initrd-2.4.20.img for u new kernel. by search initrd in this forum to get more information.

or u can comment that line 'initrd=...' and modify the root=LABEL=/ to root=/dev/hdxy. check u /etc/fstab and replace that hdxy with the partition u mark as /
页: [1]
查看完整版本: 编译内核后怎么修改lilo.conf?