lansek 发表于 2005-4-5 11:00:16

关于kernel and grub的问题

# 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-8)
        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系统里面删掉一些东东在释放一些空间。谁能告诉我怎么做?
具体点儿啊。

maover 发表于 2005-4-5 14:14:26

后面加smp是支持多处理器的.

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

zhangzhaoao 发表于 2005-4-16 23:39:21

用rpm -e *卸掉内核,但要保留一个,组好是原来地那个,然后用rpm -Uvh *升级到新内核,原来地那个内核就没有了。
一定注意安全呦 :cry:
页: [1]
查看完整版本: 关于kernel and grub的问题