- 论坛徽章:
- 0
|
我的系统是redhat linux 9
我按照这个帖子来升级我的内核,但是仍不能引导使用新内核(j旧的可用)
http://bbs.chinaunix.net/forum/viewtopic.php?t=342522&highlight=%C4%DA%BA%CB
旧内核是2.4.20-8,下载回来的 是2.6.7
在make 的时候 有些warning, 其他都通过了,也生成了vnlinuz-2.6.7,System.map等,并且都是自动加到/boot里,/boot/grub/grub.conf 也自动加入了代码.这是我的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,10)
- # kernel /vmlinuz-version ro root=/dev/hda12
- # initrd /initrd-version.img
- #boot=/dev/hda
- default=2
- timeout=10
- splashimage=(hd0,10)/grub/splash.xpm.gz
- title bing65 (2.6.7)
- root (hd0,10)
- kernel /vmlinuz-2.6.7 ro root=LABEL=/
- initrd /initrd-2.6.7.img
- title Red Hat Linux (2.4.20-8)
- root (hd0,10)
- kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
- initrd /initrd-2.4.20-8.img
- title window 2003 & xp
- rootnoverify (hd0,0)
- chainloader +1
复制代码
在你的双休日大修爱机记里
- 10.按两下ESC,退出。它会提示你保存内核修改,按yes.
- 11.make dep
- 12.make clean
- 13.make bzImage(注意I为大写,一定要注意,否则你将编译失败)
- 14.make modules
- 15.make modules_install(注意是下划线)
- 16.mkinitrd /boot/linux-2.4.18-lsf linux-2.4-18-lsf(注意这个内核
- 版本号和你修改的Makefile中一致)
- 17.mv System.map /boot/System.map-2.4.18-lsf
- 18.mv arch/i386/boot/bzImage /boot/vmlinuz-2.4.18-lsf
- 19.vi /etc/grub.conf
复制代码
我不明白第16行的意义.
linux-2.4.18-lsf 和我的 linux-2.6.7.img 是同样作用的吗?
使用的新内核的安装步骤不同,我用的是
- #make //编译内核和模块
- #make modules_install //安装模块
- #make install //安装内核和修改grub.conf 文件
复制代码
reboot选择 2.6.7的内核,无法进入系统,显示
no init found, please pass "init=" to kernel
请问 应该怎么解决? |
|