If the boot process does not succeed, you have several options to debug the situation.
Identifying your problem area
-
Remove ''rhgb'' and ''quiet'' from the kernel command line
-
Add ''rd.shell'' to the kernel command line. This will present a shell should dracut be unable to locate your root device
-
Add ''rd.shell rd.debug log_buf_len=1M'' to the kernel command line so that dracut shell commands are printed as they are executed
-
The file /run/initramfs/rdsosreport.txt is generated, which contains all the logs and the output of all significant tools, which are mentioned later.
If you want to save that output, simply mount /boot by
当Linux启动不成功时,可以通过删除'rhgb'和'quiet',添加'rd.shell'或'rd.shell rd.debug log_buf_len=1M'来定位问题。生成的/rdsosreport.txt文件包含所有日志和工具输出,可用于故障排除。报告bug时需提供精确的内核命令行、/etc/fstab信息和dracut调试文件。为进行dracut调试,配置串行控制台输出至关重要,需编辑/boot/grub2/grub.cfg并添加相应参数。
订阅专栏 解锁全文
352

被折叠的 条评论
为什么被折叠?



