技术解析

centos 6.4 不能正常启动怎么解决?
0
2021-07-18 23:56:35
idczone
centos 6.4 不能正常启动怎么解决?百度了好久
原因是这样的 我执行了 yum update -y结果把内核也升级了到6.5,然后每次启动的时候他都不能正常启动,然后接显示器一看,卡在选择内核版本里面 .要按键盘选择内核版本才能进入这好蛋疼~
学习一下grub
/boot/grub/grub.conf

参考下: http://codecloud.net/linux-run-setenforce-1-to-reenable-778.html
也许对你有用

楼主您好,我遇到过跟您类似的情况,我是通过备份怒重要数据然后进行重装一遍系统,
懒得折腾。

刀片机也是这样,不是卡在选择内核版本画面,而是重启了之后没反应。

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,0)
kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
initrd /initrd-[generic-]version.img
/>default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-431.5.1.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-431.5.1.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.5.1.el6.x86_64.img
title CentOS (2.6.32-358.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-358.el6.x86_64.img

看到default是0, 那么5秒 timeout后应该自动启动这个“CentOS (2.6.32-431.5.1.el6.x86_64)”才对,实际上不是么?

实际上不是,是直接reboot就起不来。好像这内核没把信号发射给硬件起来。 因为reboot还先得调用shutdown 不晓得reboot -r参数可以起来吗?现在不敢试了,因为上机柜很麻烦。

在虚拟机是试一下能否重现这个过程,如果重现不了话问题解决的最简单方式就是楼上说的

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服