cd /usr/src/linux-2.4
make xconfig
修改内核参数
make dep
make clean
make bzImage
make modules
make modules_install
make install
在/boot里多了这几个文件
initrd-2.4.21-15.ELcustom.img
System.map-2.4.21-15.ELcustom
vmlinuz-2.4.21-15.ELcustom
grub.conf内容如下
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/hda9
# initrd /initrd-version.img
#boot=/dev/hda3
default=1
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
password --md5 $1$r5uje8.b$48mVDk4KQ/IN8z6Ei33bc/
title Red Hat Enterprise Linux AS (2.4.21-15.ELcustom)
root (hd0,2)
kernel /vmlinuz-2.4.21-15.ELcustom ro root=LABEL=/
initrd /initrd-2.4.21-15.ELcustom.img
title Red Hat Enterprise Linux AS (2.4.21-15.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/
initrd /initrd-2.4.21-15.EL.img
title DOS
rootnoverify (hd0,0)
chainloader +1
重新启动系统
重新起动,提示错误,并且capslock 和 scrolllock不停的闪
VFS:cannot open root device "LABEL=/" or 00:00
please append a correct "root=" boot option
kernel panic: VFS: unable to mount root fs on 00:00