|
发表于 2006-11-26 22:07:35
|
显示全部楼层
Post by radish
作者 moslinux@linuxfans.org
slackware 10 默认安装的是 内核是 2.4.26 ,不过它的整个系统已经是 2.6 readly 。前几天为了安装 dropline gnome 2.8 需要升级到 2.6 版本的内核。下面就简单说一个自己升级安装经过。
......
a、使你的系统支持 reiserfs 文件系统
mkinitrd -c -k 2.6.8.1 -m reiserfs
b、使系统支持 ext3 文件系统
mkinitrd -c -k 2.6.8.1 -m jbd:ext3 -f ext3 -r /dev/hdb3
更多的可以参看 man mkinitrd 。
运行这个脚本将在 /boot 下创建一个目录 /boot/inird-tree 和一个文件/boot/inird.gz 。其中 initrd.gz 就是我们需要的 initrd 。
.....
4、重新启动计算机,选择 新的内核。OK ,新的内核已经运行在你的系统上了。 请看下面代码(来自slackware11包中extra/README.initrd):- Now you'll want to run "mkinitrd". I'm using reiserfs for my root
- filesystem, and since it's an IDE system the reiserfs module will be
- the only one I need to load:
- mkinitrd -c -k 2.6.17.13 -m reiserfs
- Here's another example: Build an initrd image using Linux 2.6.17.13
- kernel modules for a system with an ext3 root partition on /dev/hdb3.
- Note that you need both the jbd and ext3 modules to use ext3:
- mkinitrd -c -k 2.6.17.13 -m jbd:ext3 -f ext3 -r /dev/hdb3
复制代码 [size=+1]命令 #mkinitrd -c -k 2.6.17.13 -m reiserfs
应是当/root分区为reiserfs的IDE时使用吧?
#mkinitrd -c -k 2.6.17.13 -m jbd:ext3 -f ext3 -r /dev/hdb3
应是当/root为ext3且在/dev/hdb3分区时使用吧?
望指点一二. |
|