linux内核启动的问题,提示Kernel panic - not syncing: No init found.。。。。。

linux内核启动的问题,提示Kernel panic - not syncing: No init found.。。。。。,第1张

修改/boot/grub/grubconf 里面有个default=0 0表示第一个,1表示第二个,一次类推。例如我的文件是这样的。
# grubconf 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/VolGroup00/LogVol00
# initrd /initrd-versionimg
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splashxpmgz
hiddenmenu
title CentOS (2625linux1610-26)
root (hd0,0)
kernel /vmlinuz-2625linux1610-26 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2625linux1610-26img
title CentOS (2618-92el5)
root (hd0,0)
kernel /vmlinuz-2618-92el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2618-92el5img
我的default=0,那么我就是默认启动下面这个我最新编译的了。
title CentOS (2625linux1610-26)
root (hd0,0)
kernel /vmlinuz-2625linux1610-26 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2625linux1610-26img
请参考

都panic了,也就是系统都死机了,那怎么还能读写硬盘呢,这些是系统正常的情况才能进行的 *** 作, 串口就是用来定位这些问题的,就是因为串口一直能打印在控制台,其实是暂时 放在内存的,不能保存在硬盘上。例如一些服务器,就有软件管理软件,用工具模拟串口,然后把打印的信息重定向到某台电脑上,如果你是用自己的电脑安装的虚拟机,那么就只能靠截图了, 我工作就是专门研究这些问题,别人都是发截图给我的。如果是服务器就直接连接虚拟串口或者物理串口,看报错信息。像panic就是很严重的报错了,基本上是没得救了


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/13507520.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-08-21
下一篇 2023-08-21

发表评论

登录后才能评论

评论列表(0条)

保存