{"id":852,"date":"2014-12-23T22:21:43","date_gmt":"2014-12-23T14:21:43","guid":{"rendered":"http:\/\/blog.zbyzbyzby.com\/?p=852"},"modified":"2020-09-04T23:14:07","modified_gmt":"2020-09-04T15:14:07","slug":"%e4%b8%80%e6%ac%a1%e6%9c%8d%e5%8a%a1%e5%99%a8-kernel-panic-%e7%9a%84%e7%bb%8f%e5%8e%86","status":"publish","type":"post","link":"https:\/\/b.xfiu.cn\/?p=852","title":{"rendered":"\u4e00\u6b21\u670d\u52a1\u5668 Kernel Panic \u7684\u7ecf\u5386"},"content":{"rendered":"<p>\u4eca\u5929\u66f4\u65b0\u4e86\u4e00\u4e0b\u670d\u52a1\u5668\u7cfb\u7edf\uff0c\u7136\u540e\u91cd\u542f\u4e86\u4e00\u4e0b\u670d\u52a1\u5668\uff0c\u7ed3\u679c\u53d1\u73b0\u670d\u52a1\u5668\u542f\u52a8\u5931\u8d25\u3002<br \/>\n\u6253\u5f00\u963f\u91cc\u4e91\u63a7\u5236\u7ec8\u7aef\u53d1\u73b0\u662f\u670d\u52a1\u5668 kernel panic \u4e86\uff0c\u663e\u793a\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n<div style=\"overflow:hidden;\"><a href=\"https:\/\/b.xfiu.cn\/wp-content\/uploads\/2014\/12\/zbyzbyzby_kp.png\"><img decoding=\"async\" src=\"https:\/\/blog.zbyzbyzby.com\/wp-content\/uploads\/2014\/12\/zbyzbyzby_kp.png\" alt=\"zbyzbyzby_kp\" \/><\/a><\/div>\n<p>\u5f53\u65f6\u6211\u600e\u4e48\u4e5f\u60f3\u4e0d\u901a\u4e3a\u4f55\u662f\u201cunable to mount root fs\u201d\uff0c\u540e\u6765\u624d\u610f\u8bc6\u5230\uff1a\u662f\u56e0\u4e3a\u51e0\u5929\u524d\u4f7f\u7528 yum update \u5347\u7ea7\u5185\u6838\u65f6\u7531\u4e8e\u5185\u5b58\u4e0d\u8db3\u5bfc\u81f4 initramfs \u521b\u5efa\u65f6\u53d1\u751f\u9519\u8bef\uff0c\u65e2\u7136 initramfs \u90fd\u9519\u4e86\u90a3\u4e48 kernel panic \u4e5f\u662f\u60c5\u7406\u4e4b\u4e2d\u7684\u4e8b\u60c5\u4e86\u3002<\/p>\n<p><strong>\u4e8b\u60c5\u7684\u524d\u56e0\u540e\u679c\u662f\u8fd9\u6837\u7684\uff1a<\/strong><br \/>\n\u7531\u4e8e\u673a\u5668\u5185 apache \u8fdb\u7a0b\u5360\u7528\u4e86\u5927\u91cf\u5185\u5b58\uff0c\u5269\u4f59\u5185\u5b58\u53ea\u6709\u7ea6 150 MB\uff0c\u5728\u6267\u884c yum update \u65f6\uff0cyum \u6ca1\u6709\u56e0\u5185\u5b58\u4e0d\u8db3\u800c\u5d29\u6e83\uff0c\u8f6f\u4ef6\u5305\u811a\u672c\u4e5f\u6ca1\u6709\u56e0\u5185\u5b58\u4e0d\u8db3\u800c\u5d29\u6e83\uff0c\u4f46\u662f\u2014\u2014\u521b\u5efa initramfs \u7684\u65f6\u5019\uff0cdepmod \u56e0\u4e3a\u5185\u5b58\u4e0d\u8db3\u5d29\u6e83\u4e86\uff01\u66f4\u8981\u547d\u7684\u662f\uff0cdepmod \u5d29\u6e83\u65f6 pty \u4e0a\u6ca1\u6709\u4efb\u4f55\u51fa\u9519\u4fe1\u606f\uff08\u9519\u8bef\u4fe1\u606f\u5728\u663e\u793a\u5728 tty \u4e0a pty \u91cc\u770b\u4e0d\u5230\uff09\uff0c\u800c\u4e14 initramfs \u80fd\u591f\u88ab\u521b\u5efa\u51fa\u6765\uff01\u8fd9\u6837\uff0c\u4e00\u4e2a\u5d29\u574f\u7684 initramfs \u5c31\u6b63\u5927\u5149\u660e\u5730\u8fdb\u5165\u4e86 \/boot\uff0c\u7136\u540e\u7684\u4e8b\u60c5\u5927\u5bb6\u5c31\u90fd\u77e5\u9053\u4e86\u3002<\/p>\n<p><strong>p.s. #1<\/strong> \u963f\u91cc\u4e91\u7684\u5ba2\u670d\u6001\u5ea6\u5f88\u597d\uff5e\uff5e\u5e2e\u6211\u628a\u670d\u52a1\u5668\u4ece\u65e7\u7684\u6b63\u5e38\u7684\u5185\u6838\u542f\u52a8\u4e86\uff0c\u8fd8\u544a\u8bc9\u6211\u600e\u4e48\u62fc\u624b\u901f\u8fdb\u5165 GRUB \u754c\u9762\u3002<br \/>\n<strong>p.s. #2<\/strong> \u4e8b\u5b9e\u4e0a yum \u4e5f\u53ef\u80fd\u5d29\u6e83\uff0c\u6b64\u65f6\u8fd8\u9700\u8981 rpm &#8211;rebuilddb \u548c yum-complete-transaction \u6765\u89e3\u51b3\u95ee\u9898\u3002<br \/>\n<strong>p.s. #3<\/strong> \u4fee\u590d\u5b8c\u95ee\u9898\u4e4b\u540e\u6211\u7acb\u9a6c\u638f\u4e86 300 \u5757\u94b1\u628a\u670d\u52a1\u5668\u5347\u7ea7\u5230\u4e86 1GB \u5185\u5b58\uff0c\u539f\u6765\u7684 512MB \u5185\u5b58\u5b9e\u5728\u662f\u592a\u6349\u895f\u89c1\u8098\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u66f4\u65b0\u4e86\u4e00\u4e0b\u670d\u52a1\u5668\u7cfb\u7edf\uff0c\u7136\u540e\u91cd\u542f\u4e86\u4e00\u4e0b\u670d\u52a1\u5668\uff0c\u7ed3\u679c\u53d1\u73b0\u670d\u52a1\u5668\u542f\u52a8\u5931\u8d25\u3002 \u6253\u5f00\u963f &hellip; <a href=\"https:\/\/b.xfiu.cn\/?p=852\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-852","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=852"}],"version-history":[{"count":21,"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=\/wp\/v2\/posts\/852\/revisions"}],"predecessor-version":[{"id":1317,"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=\/wp\/v2\/posts\/852\/revisions\/1317"}],"wp:attachment":[{"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.xfiu.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}