linux内核升级写入不了,解决linux内核升级后不能重启系统的故障
1.閑來無事,想升級下centos的內核。升級方法就不多講了。
2.升級完后,重啟系統,發現系統無法啟動,具體原因是系統無法掛載文件系統。
3.在網上找了下資料,原因出在了initrd是舊版本mkinitrd生成的。
所以導致文件系統無法正常掛載
4.解決方法就是加入對舊版sysfs路徑的支持,方法如下:
a.通過make menuconfig選中以下對應的選項
General setup -->
enable deprecated sysfs features to support old userspace tools
5.在這個前面加上* 是系統能支持。
6.然后我對內核文件進行了重新編譯。
7.重啟后成功加載文件系統,并使用了新的內核。
一下是系統報錯內容,有些出入,可以參考:
Volume group "VolGroup00" not found
Unalbe to access resume device (/dev/VolGroup00/LogVol00)
mount: could not find filesystem '/dev/root'
setuproot:moving /dev failed: No such file or directory
setuproot:error mounting /proc: No such file or directory
setuproot:error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing:Attempted to kill init!
總結
以上是生活随笔為你收集整理的linux内核升级写入不了,解决linux内核升级后不能重启系统的故障的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 服务器时间延迟,如何处理从服务器延迟响应
- 下一篇: linux文本运行层次,Linux基础知