QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 742|回复: 1

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

[复制链接]
发表于 2003-8-13 18:09:15 | 显示全部楼层 |阅读模式
我的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" 文件中这句用不用改?
发表于 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 /
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-18 15:25 , Processed in 0.041875 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表