CentOS 7 启动出现如下错误
not syncing:VFS: Unable to mount root fs on unkNown,详见下面附图。
原因
初步考虑是是更新了内核3.10.0-514.6.1.el7后出现的问题。
处理
- 开机启动时选择旧版本的内核启动
- 成功进入系统后改变开机默认选择的内核
- 查看可选内核
[root[[@lab](https://my.oschina.net/u/166936)]grub2]# cat /boot/grub2/grub.cfg | grep 3.10.0-327.28.3 menuentry 'CentOS Linux (3.10.0-327.28.3.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-123.el7.x86_64-advanced-193aab79-d53d-4f9a-b122-23fde7f637d3' { linux16 /vmlinuz-3.10.0-327.28.3.el7.x86_64 root=/dev/mapper/centos_nic-root ro rd.lvm.lv=centos_nic/root crashkernel=auto vconsole.font=latarcyrheb-sun16 vconsole.keymap=us rd.lvm.lv=centos_nic/swap rhgb quiet LANG=en_US.UTF-8 initrd16 /initramfs-3.10.0-327.28.3.el7.x86_64.img
- 设置默认启动内核
[root@lab grub2]# grub2-set-default 'CentOS Linux (3.10.0-327.28.3.el7.x86_64) 7 (Core)'
[root[@lab](https://my.oschina.net/u/166936) grub2]# grub2-editenv list saved_entry=CentOS Linux (3.10.0-327.28.3.el7.x86_64) 7 (Core)
end
来源:http://aba.qzu.cn/archives/1184.html
原文地址:https://www.jb51.cc/centos/378026.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。