{"id":442,"date":"2021-12-21T13:45:45","date_gmt":"2021-12-21T05:45:45","guid":{"rendered":"http:\/\/139.9.1.231\/?p=442"},"modified":"2021-12-21T13:45:47","modified_gmt":"2021-12-21T05:45:47","slug":"linux6","status":"publish","type":"post","link":"http:\/\/139.9.1.231\/index.php\/2021\/12\/21\/linux6\/","title":{"rendered":"Linux\u6587\u4ef6\u5206\u533a\u548c\u6302\u8f7d\u76f8\u5173\u77e5\u8bc6"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p class=\"has-text-align-left\">       \u4e4b\u524d\u53ea\u662f\u5728\u5b9e\u9a8c\u5ba4\u7684\u670d\u52a1\u5668\u4e0a\u8dd1\u4ee3\u7801\uff0c\u4f46\u56e0\u4e3a\u5c06anaconda\u6587\u4ef6\u5939\u653e\u7f6e\u5728\u4e86\u7cfb\u7edf\u76d8110G\uff0c\u6240\u4ee5\u7cfb\u7edf\u7206\u6ee1\uff0c\u60f3\u8981\u89e3\u51b3\uff0c\u5374\u65e0\u4ece\u4e0b\u624b\uff0c\u56e0\u6b64\u5c06linux\u4e2d\u6d89\u53ca\u6587\u4ef6\u6302\u8f7d\u5206\u533a\u7684\u77e5\u8bc6\u8fdb\u884c\u6574\u7406\u603b\u7ed3\uff0c\u4ee5\u5907\u4e0d\u65f6\u4e4b\u9700\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img src=\"https:\/\/cdn.pixabay.com\/photo\/2021\/12\/12\/17\/40\/mountains-6865680_1280.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<h2>\u78c1\u76d8\u5206\u533a\uff1a<\/h2>\n\n\n\n<p>Linux \u7269\u7406\u78c1\u76d8\u7ba1\u7406\u5e38\u7528\u4e09\u4e2a\u547d\u4ee4\u4e3a&nbsp;<strong>df<\/strong>\u3001<strong>du<\/strong>&nbsp;\u548c&nbsp;<strong>fdisk<\/strong>\u3002<\/p>\n\n\n\n<ul><li><strong>df<\/strong>\uff08\u82f1\u6587\u5168\u79f0\uff1adisk full\uff09\uff1a\u5217\u51fa\u6587\u4ef6\u7cfb\u7edf\u7684\u6574\u4f53\u78c1\u76d8\u4f7f\u7528\u91cf<\/li><li><strong>du<\/strong>\uff08\u82f1\u6587\u5168\u79f0\uff1adisk used\uff09\uff1a\u68c0\u67e5\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u91cf<\/li><li><strong>fdisk<\/strong>\uff1a\u7528\u4e8e\u78c1\u76d8\u5206\u533a<\/li><\/ul>\n\n\n\n<h2>\u6bcf\u6b21\u5b89\u88c5\u7cfb\u7edf\u7684\u65f6\u5019\u6211\u4eec\u90fd\u4f1a\u8fdb\u884c\u5206\u533a\uff0cLinux\u4e0b\u78c1\u76d8\u5206\u533a\u548c\u76ee\u5f55\u7684\u5173\u7cfb\u5982\u4e0b\uff1a<\/h2>\n\n\n\n<ul><li><strong>\u4efb\u4f55\u4e00\u4e2a\u5206\u533a\u90fd\u5fc5\u987b\u6302\u8f7d\u5230\u67d0\u4e2a\u76ee\u5f55\u4e0a\u3002<\/strong><\/li><li><strong>\u76ee\u5f55\u662f\u903b\u8f91\u4e0a\u7684\u533a\u5206\u3002\u5206\u533a\u662f\u7269\u7406\u4e0a\u7684\u533a\u5206\uff08\u6bd4\u5982\u6709\u4e2a\u4e001T\u7684\u786c\u76d8\uff0c\u6211\u4eec\u5148\u901a\u8fc7fdisk\u8fdb\u884c\u78c1\u76d8\u5206\u533a<\/strong>\uff0c\u5e76\u4f7f\u7528\u5b57\u6bcd\u548c\u6570\u5b57\u7684\u7ec4\u5408\u6765\u6307\u4ee3\u78c1\u76d8\u5206\u533a\uff0c\u6bd4\u5982\/dev\/xxyN<strong>\uff09\u3002<\/strong><\/li><li><strong>\u78c1\u76d8Linux\u5206\u533a\u90fd\u5fc5\u987b\u6302\u8f7d\u5230\u76ee\u5f55\u6811\u4e2d\u7684\u67d0\u4e2a\u5177\u4f53\u7684\u76ee\u5f55\u4e0a\u624d\u80fd\u8fdb\u884c\u8bfb\u5199\u64cd\u4f5c\u3002<\/strong><\/li><li><strong>\u6839\u76ee\u5f55\u662f\u6240\u6709Linux\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u6240\u5728\u7684\u5730\u65b9\uff0c\u9700\u8981\u6302\u8f7d\u4e0a\u4e00\u4e2a\u78c1\u76d8\u5206\u533a<\/strong><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"367\" height=\"385\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2021\/12\/20160816100056425.jpg\" alt=\"\" class=\"wp-image-445\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2021\/12\/20160816100056425.jpg 367w, http:\/\/139.9.1.231\/wp-content\/uploads\/2021\/12\/20160816100056425-286x300.jpg 286w\" sizes=\"(max-width: 367px) 100vw, 367px\" \/><\/figure><\/div>\n\n\n\n<h2>mount\u6302\u8f7d<\/h2>\n\n\n\n<p><br>\u6302\u8f7d\u7684\u6982\u5ff5<br>\u5f53\u8981\u4f7f\u7528\u67d0\u4e2a\u8bbe\u5907\u65f6\uff0c\u4f8b\u5982\u8981\u8bfb\u53d6\u786c\u76d8\u4e2d\u7684\u4e00\u4e2a\u683c\u5f0f\u5316\u597d\u7684\u5206\u533a\u3001\u5149\u76d8\u6216\u8f6f\u4ef6\u7b49\u8bbe\u5907\u65f6\uff0c\u5fc5\u987b\u5148\u628a\u8fd9\u4e9b\u8bbe\u5907\u5bf9\u5e94\u5230\u67d0\u4e2a\u76ee\u5f55\uff08\u8fd9\u4e2a\u76ee\u5f55\u53ef\u4ee5\u4e0d\u4e3a\u7a7a\uff0c\u4f46\u6302\u8f7d\u540e\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u4ee5\u524d\u7684\u5185\u5bb9\u5c06\u4e0d\u53ef\u7528\uff09\uff0c\u800c\u8fd9\u4e2a\u76ee\u5f55\u5c31\u79f0\u4e3a\u201c\u6302\u8f7d\u70b9\uff08mount point\uff09\u201d\uff0c\u8fd9\u6837\u624d\u53ef\u4ee5\u8bfb\u53d6\u8fd9\u4e9b\u8bbe\u5907\uff0c\u800c\u8fd9\u4e9b\u5bf9\u5e94\u7684\u52a8\u4f5c\u5c31\u662f\u201c\u6302\u8f7d\u201d\u3002<br>\u9700\u8981\u7406\u89e3\u7684\u662f\uff1a<br>linux\u64cd\u4f5c\u7cfb\u7edf\u5c06\u6240\u6709\u7684\u8bbe\u5907\u90fd\u770b\u4f5c\u6587\u4ef6\uff0c<br>\u5b83\u5c06\u6574\u4e2a\u8ba1\u7b97\u673a\u7684\u8d44\u6e90\u90fd\u6574\u5408\u6210\u4e00\u4e2a\u5927\u7684\u6587\u4ef6\u76ee\u5f55\u3002<br>\u6211\u4eec\u8981\u8bbf\u95ee\u5b58\u50a8\u8bbe\u5907\u4e2d\u7684\u6587\u4ef6\uff0c\u5fc5\u987b\u5c06\u6587\u4ef6\u6240\u5728\u7684\u5206\u533a\u6302\u8f7d\u5230\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u76ee\u5f55\u4e0a\uff0c<br>\u7136\u540e\u901a\u8fc7\u8bbf\u95ee\u8fd9\u4e2a\u76ee\u5f55\u6765\u8bbf\u95ee\u5b58\u50a8\u8bbe\u5907<\/p>\n\n\n\n<p>\u6302\u8f7d\u5206\u533a\uff1a\u6302\u8f7d\u7684\u76ee\u5f55\u5fc5\u987b\u4e3a\u7a7a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/d1\nmkdir \/d2\nmount \/dev\/sdc1 \/d1\nmount \/dev\/sdc2 \/d2<\/code><\/pre>\n\n\n\n<p>\u67e5\u770b\u6587\u4ef6\uff08\u5939\uff09\u6240\u5728\u5206\u533a\uff08\u6302\u8f7d\u70b9\uff09\uff1a<\/p>\n\n\n\n<p>1\u3001\u6700\u7b80\u5355\u7684\uff0c\u76f4\u63a5 df&nbsp; &lt;\u6587\u4ef6(\u5939)\u8def\u5f84&gt;<\/p>\n\n\n\n<p>2\u3001\u7528df \u6216 fdisk -l\u67e5\u770b\u5206\u533a\u6302\u8f7d\u60c5\u51b5\uff0c\u76f4\u63a5\u8f93\u5165mount\u6216\u8005\u4e5f\u53ef\u4ee5\u7528cat \/etc\/mtab\uff0c\u7136\u540epwd\u627e\u6700\u63a5\u8fd1\u7684\u6302\u8f7d\u70b9\u4fe1\u606f<\/p>\n\n\n\n<h1><a href=\"https:\/\/www.cnblogs.com\/starfish29\/p\/10573622.html\">Linux\u4fee\u6539\u78c1\u76d8\u6302\u8f7d\u76ee\u5f55<\/a><\/h1>\n\n\n\n<h4>\u3000\u3000\u6bd4\u5982\u60f3\u628a\u5df2\u7ecf\u6302\u8f7d\u5728home\u76ee\u5f55\u4e0a\u7684\u786c\u76d8\u6302\u8f7d\u5230data\u76ee\u5f55\u4e0a\uff0c \u5982\u4e0b\u64cd\u4f5c<\/h4>\n\n\n\n<p>\u3000\u3000#df -h\uff08\u67e5\u770b\u5206\u533a\u60c5\u51b5\u53ca\u6570\u636e\u76d8\u540d\u79f0\uff09<\/p>\n\n\n\n<p>\u3000\u3000# mkdir \/data\uff08\u5982\u679c\u6ca1\u6709data\u76ee\u5f55\u5c31\u521b\u5efa\uff0c\u5426\u5219\u6b64\u6b65\u8df3\u8fc7\uff09<\/p>\n\n\n\n<p>\u3000\u3000# umount \/home\uff08\u5378\u8f7d\u786c\u76d8\u5df2\u6302\u8f7d\u7684home\u76ee\u5f55\uff09<\/p>\n\n\n\n<p>\u3000\u3000# mount \/dev\/sdb3 \/data \uff08\u6302\u8f7d\u5230data\u76ee\u5f55\uff09<\/p>\n\n\n\n<p>\u3000\u3000# vi \/etc\/fstab \uff08\u7f16\u8f91fstab\u6587\u4ef6\u4fee\u6539\u6216\u6dfb\u52a0\uff0c\u4f7f\u91cd\u542f\u540e\u53ef\u4ee5\u81ea\u52a8\u6302\u8f7d\uff09<\/p>\n\n\n\n<p>\u3000\u3000\/dev\/sdb3 \/data ext3 auto 0 0<\/p>\n\n\n\n<p>\u3000\u3000\u6570\u636e\u76d8 \u65b0\u6302\u8f7d\u76ee\u5f55<\/p>\n\n\n\n<p>\u3000\u3000\u7f16\u8f91\/etc\/fstab\u91cc\u9762\u7684\/home\u4e3a\/data\uff0c \u6216\u521b\u5efa\u8ba9\u7cfb\u7edf\u542f\u52a8\u7684\u65f6\u5019\u81ea\u52a8\u6302\u8f7d\u5230\/data<\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u53ea\u662f\u5728\u5b9e\u9a8c\u5ba4\u7684\u670d\u52a1\u5668\u4e0a\u8dd1\u4ee3\u7801\uff0c\u4f46\u56e0\u4e3a\u5c06anaconda\u6587\u4ef6\u5939\u653e\u7f6e\u5728\u4e86\u7cfb\u7edf\u76d8110G\uff0c\u6240\u4ee5\u7cfb\u7edf\u7206\u6ee1\uff0c\u60f3\u8981\u89e3\u51b3 &hellip; <a href=\"http:\/\/139.9.1.231\/index.php\/2021\/12\/21\/linux6\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Linux\u6587\u4ef6\u5206\u533a\u548c\u6302\u8f7d\u76f8\u5173\u77e5\u8bc6<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/442"}],"collection":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/comments?post=442"}],"version-history":[{"count":9,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/442\/revisions"}],"predecessor-version":[{"id":461,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/442\/revisions\/461"}],"wp:attachment":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/media?parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/categories?post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/tags?post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}