全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1488|回复: 3

解决!KVM装了centos6,但是为啥不让换内核呢

[复制链接]
发表于 2018-5-17 19:58:00 | 显示全部楼层 |阅读模式
本帖最后由 zhc670 于 2018-5-17 20:35 编辑

RT
用了南琴浪的魔改 BBR 一键脚本,
然后手动又搞了一下,但是reboot以后还是2.6.32,
有大佬遇到过这个吗?
求指点。


# 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,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=1
timeout=1
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-696.28.1.el6.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.32-696.28.1.el6.x86_64 ro root=UUID=2edd8cb0-8742-4c36-8595-03ab85a4bcce rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYS$
        initrd /boot/initramfs-2.6.32-696.28.1.el6.x86_64.img
title CentOS (4.11.8-1.el6.elrepo.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-4.11.8-1.el6.elrepo.x86_64 ro root=UUID=2edd8cb0-8742-4c36-8595-03ab85a4bcce rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYS$
        initrd /boot/initramfs-4.11.8-1.el6.elrepo.x86_64.img
title CentOS (4.12.10-1.el6.elrepo.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-4.12.10-1.el6.elrepo.x86_64 ro root=UUID=2edd8cb0-8742-4c36-8595-03ab85a4bcce rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SY$
        initrd /boot/initramfs-4.12.10-1.el6.elrepo.x86_64.img
发表于 2018-5-17 20:01:43 | 显示全部楼层
在vnc里面重启,然后一直按上下键,等grub选内核看看????
发表于 2018-5-17 20:04:32 来自手机 | 显示全部楼层
旧内核直接删掉
 楼主| 发表于 2018-5-17 20:39:05 | 显示全部楼层
#  ls -l /boot/grub/grub.conf /etc/grub.conf
-rw-------  1 root root 1597 May 17 20:18 /boot/grub/grub.conf
lrwxrwxrwx. 1 root root   19 Jan 25  2017 /etc/grub.conf -> /boot/grub/menu.lst

不明白这两玩意咋不一致,一直是改/etc/grub.conf
最后发现/boot/grub/grub.conf只有2.6那两段,
/etc/grub.conf 覆盖掉就ok了,
从没遇到过这种问题,怪哉。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-25 12:01 , Processed in 0.057218 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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