{"id":567,"date":"2008-03-14T23:06:29","date_gmt":"2008-03-14T15:06:29","guid":{"rendered":"http:\/\/blog.smallken.ink\/2008\/03\/14\/linux\/567.html"},"modified":"2008-03-14T23:07:31","modified_gmt":"2008-03-14T15:07:31","slug":"centos5-linux-%e6%95%91%e6%8f%b4%e5%85%89%e7%a2%9f%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/blog.smallken.site\/?p=567","title":{"rendered":"CentOS5 Linux \u6551\u63f4\u5149\u789f\u5982\u4f55\u4f7f\u7528?"},"content":{"rendered":"<p>Red Hat, Fedora,CentOS &#8230;\u7b49\u5b89\u88dd\u5149\u789f\uff0c\u9664\u4e86\u53ef\u4ee5\u5b89\u88dd\u7cfb\u7d71\uff0c\u5b83\u4e5f\u662f\u53ef\u7528\u4f86\u6551\u7cfb\u7d71\u7684\u5de5\u5177\uff0c\u6211\u9019\u908a\u8209\u500b\u4f8b\u5b50\u4f86\u8aaa\u660e\uff0c\u5047\u8a2d\u6709\u4e00\u5929\u6211\u7684Linux\u4e3b\u6a5f\u958b\u4e0d\u8d77\u4f86\u4e86\uff0c\u505c\u5728\u5982\u4e0b\u756b\u9762:<\/p>\n<p>\u4e00\u53f0\u5e73\u5e38\u90fd\u6b63\u5e38\u7684\u6a5f\u5668\u7a81\u7136\u770b\u5230\u9019\u500b\u756b\u9762\uff0c\u5176\u5be6\u770b\u8d77\u4f86\u662f\u883b\u53ef\u6015\u7684\uff0c\u53e6\u4eba\u64d4\u5fc3<br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/1.png\" alt=\"1\" height=\"277\" style=\"border: 0px\" \/><\/p>\n<p>\u5b83\u53eb\u6211\u5011\u53ef\u4ee5\u8f38\u5165root\u7684\u5bc6\u78bc\uff0c\u7136\u5f8c\u9032\u884c\u624b\u52d5\u4fee\u5fa9\uff0c\u770blog\u597d\u50cf\u662f\u7b2c\u4e8c\u9846\u786c\u789f\u639b\u4e86\uff0c\u6240\u4ee5mount\u4e0d\u5230\u786c\u789f\uff0c\u4f46\u662f\u5176\u5be6\u9032\u53bb\u4e4b\u5f8c\uff0c\u7cfb\u7d71\u90fd\u662fread only \u7684\uff0c\u4f46\u662f\u4ec0\u9ebc\u4e5f\u4e0d\u80fd\u505a<\/p>\n<p>\u9019\u6642\u5019\u6211\u5011\u5c31\u628a\u5b89\u88dd\u5149\u789f(\u6551\u63f4\u5149\u789f)\u653e\u5165\u5149\u789f\u6a5f\uff0c\u91cd\u958b\u6a5f\u5207\u63db\u4ee5\u5149\u789f\u958b\u6a5f\uff0c\u9032\u5230\u5982\u4e0b\u756b\u9762\uff0c\u8f38\u5165 <font color=\"#0000ff\">linux rescue <\/font><font color=\"#000000\">\uff0c\u5982\u679c\u5fd8\u4e86\u5b57\u5982\u4f55\u6253\u53ef\u4ee5\u6309[F5-Rescue]\uff0c\u8df3\u4e0b\u756b\u9762\u5c31\u6703\u6709\u63d0\u793a &#8220;linux rescue&#8221; \u7684\u5b57\u773c\u51fa\u73fe\u3002<br \/>\n<!--nextpage--><br \/>\n<\/font><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/2.png\" alt=\"2\" height=\"375\" style=\"border: 0px\" \/><\/p>\n<p>\u4e4b\u5f8c\u7684\u756b\u9762\u9078\u8a9e\u8a00\uff0c\u9078\u4ec0\u9ebc\u8a9e\u8a00\u5c31\u4e0d\u662f\u90a3\u9ebc\u91cd\u8981\u4e86\uff0c\u6551\u6a5f\u8981\u7dca\uff0c\u9078\u82f1\u6587\u6216\u4e2d\u6587\u90fd\u53ef\u4ee5<br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/3.png\" alt=\"3\" height=\"312\" style=\"border: 0px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/4.png\" alt=\"4\" height=\"312\" style=\"border: 0px\" \/><\/p>\n<p>\u4e0b\u9762\u9019\u500b\u756b\u9762\u662f\u9078\u64c7\u9700\u4e0d\u9700\u8981\u7db2\u8def\uff0c\u5982\u679c\u9078Yes\u5c31\u6703\u9032\u5165\u8a2d\u7db2\u8def\u7684\u756b\u9762\uff0c\u5982\u679c\u9078No\u5c31\u6703\u76f4\u63a5\u8df3\u904e\u7db2\u8def\u8a2d\u5b9a\uff0c\u8996\u60c5\u6cc1\u9700\u4e0d\u9700\u8981\u7db2\u8def\u4f86\u6c7a\u5b9a\uff0c\u4e00\u822c\u6211\u6703\u9078No<br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/5.png\" alt=\"5\" height=\"312\" style=\"border: 0px\" \/><\/p>\n<p>\u63a5\u4e0b\u4f86\u7684\u756b\u9762\u8981\u6ce8\u610f\uff0c\u5982\u679c\u6b64\u6b21\u4f7f\u7528\u6551\u63f4\u5149\u789f\u6703\u4f7f\u7528\u5230 fsck \u4f86\u4fee\u8907\u786c\u789f\uff0c\u90a3\u5efa\u8b70\u9078\u64c7 &#8220;Read-Only&#8221; \u9032\u5165\u7cfb\u7d71\u518d\u9032\u884c fsck \u5c0d\u7cfb\u7d71\u6bd4\u8f03\u5b89\u5168\uff0c\u5982\u679c\u662f\u4e00\u822c\u7684\u60c5\u6cc1\u5c31\u9078&#8221;Continue&#8221;\uff0c\u6b64\u6b21\u6211\u6211\u7de8\u8f2f \/etc\/fstab \u6a94\u6848\uff0c\u6240\u4ee5\u6211\u9078 Continue<br \/>\n<!--nextpage--><br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/6.png\" alt=\"6\" height=\"312\" style=\"border: 0px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/7.png\" alt=\"7\" height=\"312\" style=\"border: 0px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/8.png\" alt=\"8\" height=\"312\" style=\"border: 0px\" \/><\/p>\n<p><strong># df -h<br \/>\n<\/strong>\u6211\u5011\u770b\u5230\u5176\u5be6\u5728\u6551\u63f4\u7684\u7cfb\u7d71\u4e2d\uff0c\u76f8\u95dc\u7684\u76ee\u9304\u67b6\u69cb\u90fd\u88abmount \u5728 \/mnt\/sysimage \u5e95\u4e0b<br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/9.png\" alt=\"9\" height=\"152\" style=\"border: 0px\" \/>\u00a0<br \/>\n\u63a5\u4e0b\u4f86\u6211\u5011\u53ef\u4ee5\u4e0b <strong># chroot \/mnt\/sysimage\/<\/strong>\uff0c\u5207\u63db\u7cfb\u7d71\u76ee\u9304\u7684\u6839<br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/10.png\" alt=\"10\" height=\"89\" style=\"border: 0px\" \/><\/p>\n<p>\u63a5\u8457\u518d\u4e0b\u4e00\u6b21 <strong># df -h<\/strong>\uff0c\u6211\u5011\u770b\u5230\u7684mount point\u597d\u50cf\u6bd4\u8f03\u63a5\u8fd1\u6b63\u5e38\u4e86<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/11.png\" alt=\"11\" height=\"70\" style=\"border: 0px\" \/><\/p>\n<p>\u5176\u5be6\u6b64\u6b21\u6700\u7d42\u76ee\u7684\u5c31\u662f\u8981\u5148\u628a\u58de\u6389\u6216\u8005\u8cc7\u6599\u6bc0\u640d\u90a3\u9846\u786c\u789f\u7684 mount point \u62ff\u6389\uff0c\u6240\u4ee5\u6211\u5011\u8981\u7de8\u8f2f \/etc\/fstab<br \/>\n<strong># vi \/etc\/fstab<\/strong><br \/>\n\u628a\u7591\u4f3c\u58de\u6389\u7684\u90a3\u9846\u786c\u789f\u7684 mount point \u62ff\u6389\uff0c\u5c31\u662f\u628a\u5b83\u8a3b\u89e3\u6389\u958b\u6a5f\u6642\u5c31\u4e0d\u6703\u5617\u8a66\u53bb\u639b\u8f09\u5b83<br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/12.png\" alt=\"12\" height=\"110\" style=\"border: 0px\" \/><\/p>\n<p>\u4fee\u6539\u597d\uff0c\u5b58\u6a94\uff0c\u5c31\u91cd\u958b\u6a5f<br \/>\n<strong># reboot<\/strong><\/p>\n<p>\u9806\u5229\u7684\u8a71\u5c31\u80fd\u6210\u529f\u958b\u6a5f\uff0c\u7576\u7136\u7cfb\u7d71\u72c0\u6cc1\u767e\u767e\u7a2e\u4ec0\u9ebc\u72c0\u6cc1\u90fd\u6709\uff0c\u6211\u4e5f\u53ea\u662f\u8209\u5176\u4e2d\u4e00\u500b\u5e38\u898b\u7684\u4f8b\u5b50\u800c\u5df2\uff0c\u91cd\u9ede\u5c31\u662f\u8b93\u4f60\u4f7f\u7528\u6551\u63f4\u5149\u789f\uff0c\u9032\u5165\u5230\u6551\u63f4\u6a21\u5f0f\u8b93\u4f60\u62ff\u5230\u64cd\u4f5c\u7cfb\u7d71\u7684shell\uff0c\u8b93\u4f60\u6709\u6a5f\u6703\u628a\u7cfb\u7d71\u518d\u4fee\u6b63\u56de\u4f86\uff0c\u81f3\u65bc\u4ec0\u9ebc\u72c0\u6cc1\u8981\u600e\u9ebc\u8655\u7406\uff0c\u9019\u500b\u5c31\u662f\u57fa\u672c\u529f\u8ddf\u7d93\u9a57\u7684\u7d2f\u7a4d\u56c9^^<br \/>\n<img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"500\" src=\"http:\/\/blog.smallken.ink\/wp-content\/uploads\/2008\/03\/13.png\" alt=\"13\" height=\"277\" style=\"border: 0px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Red Hat, Fedora,CentOS &#8230;\u7b49\u5b89\u88dd\u5149\u789f\uff0c\u9664\u4e86\u53ef\u4ee5\u5b89\u88dd\u7cfb\u7d71\uff0c\u5b83\u4e5f\u662f\u53ef\u7528\u4f86\u6551\u7cfb\u7d71\u7684&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-567","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=567"}],"version-history":[{"count":0,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/567\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}