QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1796|回复: 2

关于kernel and grub的问题

[复制链接]
发表于 2005-4-5 11:00:16 | 显示全部楼层 |阅读模式
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,2)
#          kernel /boot/vmlinuz-version ro root=/dev/hda3
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
password --md5 $1$TXQ6Qq1T$AOeloWdshErHUa5NIgj3e1
title Red Hat Linux (2.4.20-31.9smp)
        root (hd0,2)
        kernel /boot/vmlinuz-2.4.20-31.9smp ro root=LABEL=/
        initrd /boot/initrd-2.4.20-31.9smp.img
title Red Hat Linux (2.4.20-31.9)
        root (hd0,2)
        kernel /boot/vmlinuz-2.4.20-31.9 ro root=LABEL=/
        initrd /boot/initrd-2.4.20-31.9.img
title Red Hat Linux (2.4.20-8smp)
        root (hd0,2)
        kernel /boot/vmlinuz-2.4.20-8smp ro root=LABEL=/
        initrd /boot/initrd-2.4.20-8smp.img
title Red Hat Linux-up (2.4.20-
        root (hd0,2)
        kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /boot/initrd-2.4.20-8.img
title Win2k Server for bluek
        rootnoverify (hd0,0)
        chainloader +1

这个是我的grub,我晕死了,跑出来四个,以前是两个,后来我把rh9自动update一下,就变成了现在的这个样子了,我知道可能是保存的以前的内核,我想问的是为什么会出现:2.4.20-8smp and 2.4.20-i 这两个有什么区别?用哪一个比较好?

还有,如果我想升到2.6.x又该怎么做?我想把以前的内核全部rm掉,但是目前我只想去掉几个内核,当然不是把grub.conf改一下就可以了。我想从linux系统里面删掉一些东东在释放一些空间。谁能告诉我怎么做?
具体点儿啊。
发表于 2005-4-5 14:14:26 | 显示全部楼层
后面加smp是支持多处理器的.

如果你是deb包,你可以dpkg --purge kernel-image-*****
rpm包的, 可能是rpm -e   ***  具体得你可以看看man rpm
回复

使用道具 举报

发表于 2005-4-16 23:39:21 | 显示全部楼层
用rpm -e *卸掉内核,但要保留一个,组好是原来地那个,然后用rpm -Uvh *升级到新内核,原来地那个内核就没有了。
一定注意安全呦
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-29 07:18 , Processed in 0.059737 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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