{"id":181462,"date":"2020-12-14T23:56:16","date_gmt":"2020-12-14T15:56:16","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=181462"},"modified":"2021-08-27T00:07:48","modified_gmt":"2021-08-26T16:07:48","slug":"basic-learning-06","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/basic-learning-06.html","title":{"rendered":"\u7b2c6\u7ae0 \u5b58\u50a8\u7ed3\u6784\u4e0e\u7ba1\u7406\u786c\u76d8"},"content":{"rendered":"

\u7ae0\u8282\u7b80\u8ff0\uff1a<\/strong><\/span><\/p>\n

Linux\u7cfb\u7edf\u4e2d\u9887\u5177\u7279\u8272\u7684\u6587\u4ef6\u5b58\u50a8\u7ed3\u6784\u5e38\u5e38\u641e\u5f97\u65b0\u624b\u5934\u660f\u8111\u6da8\uff0c\u672c\u7ae0\u5c06\u4eceLinux\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u5b58\u50a8\u7ed3\u6784\u5f00\u59cb\uff0c\u8bb2\u8ff0\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\u6807\u51c6\uff08Filesystem Hierarchy Standard\uff0cFHS\uff09\u3001udev\u786c\u4ef6\u547d\u540d\u89c4\u5219\u4ee5\u53ca\u786c\u76d8\u8bbe\u5907\u7684\u539f\u7406\u3002<\/p>\n

\u4e3a\u4e86\u8ba9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u6587\u4ef6\u7cfb\u7edf\u7684\u4f5c\u7528\uff0c\u5218\u9044\u8001\u5e08\u5c06\u5728\u672c\u7ae0\u8be6\u7ec6\u5730\u5206\u6790Linux\u7cfb\u7edf\u4e2d\u6700\u5e38\u89c1\u7684Ext3\u3001Ext4\u4e0eXFS\u6587\u4ef6\u7cfb\u7edf\u7684\u4e0d\u540c\u4e4b\u5904\uff0c\u5e76\u5e26\u9886\u5404\u4f4d\u8bfb\u8005\u7740\u91cd\u7ec3\u4e60\u786c\u76d8\u8bbe\u5907\u5206\u533a\u3001\u683c\u5f0f\u5316\u4ee5\u53ca\u6302\u8f7d\u7b49\u5e38\u7528\u7684\u786c\u76d8\u7ba1\u7406\u64cd\u4f5c\uff0c\u4ee5\u4fbf\u719f\u7ec3\u638c\u63e1\u6587\u4ef6\u7cfb\u7edf\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n

\u5728\u6253\u4e0b\u575a\u5b9e\u7684\u7406\u8bba\u57fa\u7840\u5e76\u5b8c\u6210\u4e00\u4e9b\u76f8\u5173\u7684\u5b9e\u8df5\u7ec3\u4e60\u540e\uff0c\u6211\u4eec\u5c06\u8fdb\u4e00\u6b65\u5b8c\u6574\u5730\u90e8\u7f72\u4ea4\u6362\uff08SWAP\uff09\u5206\u533a\u3001\u914d\u7f6equota\u78c1\u76d8\u914d\u989d\u670d\u52a1\u3001\u4f7f\u7528VDO\uff08\u865a\u62df\u6570\u636e\u4f18\u5316\uff09\u6280\u672f\uff0c\u4ee5\u53ca\u638c\u63e1ln\u547d\u4ee4\u5e26\u6765\u7684\u8f6f\u786c\u94fe\u63a5\u3002\u76f8\u4fe1\u5404\u4f4d\u8bfb\u8005\u5728\u5b66\u4e60\u5b8c\u672c\u7ae0\u540e\uff0c\u4f1a\u5bf9Linux\u7cfb\u7edf\u4ee5\u53caWindows\u7cfb\u7edf\u4e2d\u7684\u78c1\u76d8\u5b58\u50a8\u4ee5\u53ca\u6587\u4ef6\u7cfb\u7edf\u6709\u6df1\u5165\u7684\u7406\u89e3\u3002<\/p>\n

6.1 \u4e00\u5207\u4ece\u201c\/\u201d\u5f00\u59cb<\/strong><\/span><\/h5>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u76ee\u5f55\u3001\u5b57\u7b26\u8bbe\u5907\u3001\u5957\u63a5\u5b57\u3001\u786c\u76d8\u3001\u5149\u9a71\u3001\u6253\u5370\u673a\u7b49\u90fd\u88ab\u62bd\u8c61\u6210\u6587\u4ef6\u5f62\u5f0f\uff0c\u5373\u5218\u9044\u8001\u5e08\u4e00\u76f4\u5f3a\u8c03\u7684\u201cLinux\u7cfb\u7edf\u4e2d\u4e00\u5207\u90fd\u662f\u6587\u4ef6\u201d\u3002\u65e2\u7136\u5e73\u65f6\u6211\u4eec\u6253\u4ea4\u9053\u7684\u90fd\u662f\u6587\u4ef6\uff0c\u90a3\u4e48\u53c8\u5e94\u8be5\u5982\u4f55\u627e\u5230\u5b83\u4eec\u5462\uff1f\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u60f3\u8981\u627e\u5230\u4e00\u4e2a\u6587\u4ef6\uff0c\u8981\u4f9d\u6b21\u8fdb\u5165\u8be5\u6587\u4ef6\u6240\u5728\u7684\u78c1\u76d8\u5206\u533a\uff08\u4e5f\u53eb\u76d8\u7b26\uff09\uff0c\u7136\u540e\u518d\u8fdb\u5165\u8be5\u5206\u533a\u4e0b\u7684\u5177\u4f53\u76ee\u5f55\uff0c\u6700\u7ec8\u627e\u5230\u8fd9\u4e2a\u6587\u4ef6\u3002\u4f46\u662f\u5728Linux\u7cfb\u7edf\u4e2d\u5e76\u4e0d\u5b58\u5728C\u3001D\u3001E\u3001F\u7b49\u76d8\u7b26\uff0cLinux\u7cfb\u7edf\u4e2d\u7684\u4e00\u5207\u6587\u4ef6\u90fd\u662f\u4ece\u201c\u6839\u201d\u76ee\u5f55\uff08\/\uff09\u5f00\u59cb\u7684\uff0c\u5e76\u6309\u7167\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\u6807\u51c6\uff08FHS\uff09\u91c7\u7528\u5012\u6811\u72b6\u7ed3\u6784\u6765\u5b58\u653e\u6587\u4ef6\uff0c\u4ee5\u53ca\u5b9a\u4e49\u4e86\u5e38\u89c1\u76ee\u5f55\u7684\u7528\u9014\u3002<\/p>\n

\u53e6\u5916\uff0cLinux\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u540d\u79f0\u662f\u4e25\u683c\u533a\u5206\u5927\u5c0f\u5199\u7684\u3002\u4f8b\u5982\uff0croot\u3001rOOt\u3001Root\u3001rooT\u5747\u4ee3\u8868\u4e0d\u540c\u7684\u76ee\u5f55\uff0c\u5e76\u4e14\u6587\u4ef6\u540d\u79f0\u4e2d\u4e0d\u5f97\u5305\u542b\u659c\u6760\uff08\/\uff09\u3002Linux\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u5b58\u50a8\u7ed3\u6784\u5982\u56fe6-1\u6240\u793a\u3002<\/p>\n

\"Linux\u5b58\u50a8\u67b6\u6784\"<\/p>\n

\u56fe6-1\u00a0 Linux\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u5b58\u50a8\u7ed3\u6784<\/p>\n

\u524d\u6587\u63d0\u5230\u7684FHS\u662f\u6839\u636e\u4ee5\u5f80\u65e0\u6570Linux\u7cfb\u7edf\u7528\u6237\u548c\u5f00\u53d1\u8005\u7684\u7ecf\u9a8c\u800c\u603b\u7ed3\u51fa\u6765\u7684\uff0c\u662f\u7528\u6237\u5728Linux\u7cfb\u7edf\u4e2d\u5b58\u50a8\u6587\u4ef6\u65f6\u9700\u8981\u9075\u5b88\u7684\u89c4\u5219\uff0c\u7528\u4e8e\u6307\u5bfc\u7528\u6237\u5e94\u8be5\u628a\u6587\u4ef6\u4fdd\u5b58\u5230\u4ec0\u4e48\u4f4d\u7f6e\uff0c\u4ee5\u53ca\u544a\u8bc9\u7528\u6237\u5e94\u8be5\u5728\u4f55\u5904\u627e\u5230\u6240\u9700\u7684\u6587\u4ef6\u3002\u4f46\u662f\uff0cFHS\u5bf9\u4e8e\u7528\u6237\u6765\u8bb2\u53ea\u80fd\u7b97\u662f\u4e00\u79cd\u9053\u5fb7\u4e0a\u7684\u7ea6\u675f\uff0c\u6709\u4e9b\u7528\u6237\u5c31\u662f\u61d2\u5f97\u9075\u5b88\uff0c\u4f9d\u7136\u4f1a\u628a\u6587\u4ef6\u5230\u5904\u4e71\u653e\uff0c\u6709\u4e9b\u751a\u81f3\u4ece\u6765\u6ca1\u6709\u542c\u8bf4\u8fc7\u5b83\u3002\u8fd9\u91cc\u5e76\u4e0d\u662f\u53f7\u53ec\u5404\u4f4d\u8bfb\u8005\u53bb\u8c34\u8d23\u4ed6\u4eec\uff0c\u800c\u662f\u5efa\u8bae\u5927\u5bb6\u8981\u7075\u6d3b\u8fd0\u7528\u6240\u5b66\u7684\u77e5\u8bc6\uff0c\u5343\u4e07\u4e0d\u8981\u8ba4\u51c6\u8fd9\u4e2aFHS\u534f\u5b9a\u53ea\u8bb2\u6b7b\u9053\u7406\uff0c\u4e0d\u7136\u5403\u4e8f\u7684\u53ef\u5c31\u662f\u81ea\u5df1\u4e86\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6700\u5e38\u89c1\u7684\u76ee\u5f55\u4ee5\u53ca\u6240\u5bf9\u5e94\u7684\u5b58\u653e\u5185\u5bb9\u5982\u88686-1\u6240\u793a\u3002<\/p>\n

\u88686-1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Linux\u7cfb\u7edf\u4e2d\u5e38\u89c1\u7684\u76ee\u5f55\u540d\u79f0\u4ee5\u53ca\u76f8\u5e94\u5185\u5bb9<\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u76ee\u5f55\u540d\u79f0<\/td>\n\u5e94\u653e\u7f6e\u6587\u4ef6\u7684\u5185\u5bb9<\/td>\n<\/tr>\n
\/boot<\/td>\n\u7cfb\u7edf\u542f\u52a8\u6587\u4ef6\uff0c\u5982\u5185\u6838\u548c\u542f\u52a8\u83dc\u5355<\/td>\n<\/tr>\n
\/dev<\/td>\n\u8bbe\u5907\u6587\u4ef6\uff0c\u4ee3\u8868\u7cfb\u7edf\u4e2d\u7684\u786c\u4ef6\u8bbe\u5907<\/td>\n<\/tr>\n
\/etc<\/td>\n\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u548c\u542f\u52a8\u811a\u672c<\/td>\n<\/tr>\n
\/root<\/td>\n\u7ba1\u7406\u5458\u7684\u4e2a\u4eba\u4e3b\u76ee\u5f55<\/td>\n<\/tr>\n
\/home<\/td>\n\u7528\u6237\u7684\u4e2a\u4eba\u4e3b\u76ee\u5f55<\/td>\n<\/tr>\n
\/bin<\/td>\n\u57fa\u672c\u7528\u6237\u547d\u4ee4\uff0c\u53ef\u5728\u5355\u7528\u6237\u6a21\u5f0f\u4e0b\u4f7f\u7528<\/td>\n<\/tr>\n
\/lib<\/td>\n\u7cfb\u7edf\u5171\u4eab\u5e93\uff0c\u4f9b\/bin\u548c\/sbin\u547d\u4ee4\u4f7f\u7528<\/td>\n<\/tr>\n
\/sbin<\/td>\n\u7cfb\u7edf\u7ba1\u7406\u547d\u4ee4\uff0c\u4f9b\u7ba1\u7406\u5458\u4f7f\u7528<\/td>\n<\/tr>\n
\/media<\/td>\n\u6302\u8f7d\u70b9\u76ee\u5f55\uff0c\u7528\u4e8e\u53ef\u79fb\u52a8\u8bbe\u5907<\/td>\n<\/tr>\n
\/opt<\/td>\n\u7b2c\u4e09\u65b9\u5e94\u7528\u8f6f\u4ef6\u5305<\/td>\n<\/tr>\n
\/srv<\/td>\n\u670d\u52a1\u6570\u636e\u76ee\u5f55\uff0c\u5b58\u653e\u7f51\u7edc\u670d\u52a1\u6570\u636e<\/td>\n<\/tr>\n
\/tmp<\/td>\n\u4e34\u65f6\u6587\u4ef6\u76ee\u5f55\uff0c\u6240\u6709\u7528\u6237\u5747\u53ef\u8bbf\u95ee<\/td>\n<\/tr>\n
\/proc<\/td>\n\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u63d0\u4f9b\u8fdb\u7a0b\u548c\u5185\u6838\u4fe1\u606f<\/td>\n<\/tr>\n
\/usr\/local<\/td>\n\u672c\u5730\u5b89\u88c5\u7684\u8f6f\u4ef6\u548c\u5e94\u7528\u7a0b\u5e8f<\/td>\n<\/tr>\n
\/usr\/sbin<\/td>\n\u7cfb\u7edf\u7ba1\u7406\u5458\u4f7f\u7528\u7684\u975e\u57fa\u672c\u7ba1\u7406\u547d\u4ee4<\/td>\n<\/tr>\n
\/usr\/share<\/td>\n\u5171\u4eab\u6570\u636e\uff0c\u5982\u6587\u6863\u548c\u5e2e\u52a9\u6587\u4ef6<\/td>\n<\/tr>\n
\/var<\/td>\n\u52a8\u6001\u6570\u636e\uff0c\u5982\u65e5\u5fd7\u6587\u4ef6\u548c\u4e34\u65f6\u6587\u4ef6<\/td>\n<\/tr>\n
\/lost+found<\/td>\n\u6587\u4ef6\u7cfb\u7edf\u6062\u590d\u533a\uff0c\u5b58\u653e\u4e22\u5931\u7684\u6587\u4ef6\u788e\u7247<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\u53e6\u5916\u8fd8\u6709\u4e00\u4e2a\u91cd\u8981\u7684\u6982\u5ff5\u2014\u8def\u5f84\u3002\u8def\u5f84\u6307\u7684\u662f\u5982\u4f55\u5b9a\u4f4d\u5230\u67d0\u4e2a\u6587\u4ef6\uff0c\u5206\u4e3a\u7edd\u5bf9\u8def\u5f84\u4e0e\u76f8\u5bf9\u8def\u5f84\u3002\u7edd\u5bf9\u8def\u5f84\u6307\u7684\u662f\u4ece\u6839\u76ee\u5f55\uff08\/\uff09\u5f00\u59cb\u5199\u8d77\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u540d\u79f0\uff0c\u800c\u76f8\u5bf9\u8def\u5f84\u5219\u6307\u7684\u662f\u76f8\u5bf9\u4e8e\u5f53\u524d\u8def\u5f84\u7684\u5199\u6cd5\u3002\u6211\u4eec\u6765\u770b\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u4ee5\u5e2e\u52a9\u5927\u5bb6\u7406\u89e3\u3002\u5047\u5982\u6709\u4f4d\u5916\u56fd\u6e38\u5ba2\u6765\u5230\u5317\u4eac\u6f58\u5bb6\u56ed\u65c5\u6e38\uff0c\u5f53\u524d\u5185\u6025\u4f46\u662f\u627e\u4e0d\u5230\u6d17\u624b\u95f4\uff0c\u7279\u610f\u5411\u60a8\u95ee\u8def\uff0c\u90a3\u4e48\u54b1\u4eec\u6709\u4e24\u79cd\u6b63\u786e\u7684\u6307\u8def\u65b9\u6cd5\u3002<\/p>\n

\u7edd\u5bf9\u8def\u5f84\uff08absolute path\uff09<\/strong>\uff1a\u9996\u5148\u5750\u98de\u673a\u6765\u5230\u4e2d\u56fd\uff0c\u5230\u4e86\u5317\u4eac\u540e\u51fa\u9996\u90fd\u673a\u573a\uff0c\u5750\u673a\u573a\u5feb\u8f68\u5230\u4e09\u5143\u6865\uff0c\u7136\u540e\u6362\u4e5810\u53f7\u7ebf\u5230\u6f58\u5bb6\u56ed\u7ad9\uff0c\u51fa\u7ad9\u540e\u575034\u8def\u516c\u4ea4\u8f66\u5230\u519c\u5149\u91cc\uff0c\u4e0b\u8f66\u540e\u8def\u53e3\u5de6\u8f6c\u3002<\/p>\n

\u76f8\u5bf9\u8def\u5f84\uff08relative path\uff09<\/strong>\uff1a\u524d\u9762\u8def\u53e3\u5de6\u8f6c\u3002<\/p><\/blockquote>\n

\u8fd9\u4e24\u79cd\u65b9\u6cd5\u90fd\u6b63\u786e\u3002\u5982\u679c\u60a8\u8bf4\u7684\u662f\u7edd\u5bf9\u8def\u5f84\uff0c\u90a3\u4e48\u4efb\u4f55\u4e00\u4f4d\u5916\u56fd\u6e38\u5ba2\u90fd\u53ef\u4ee5\u6309\u7167\u8fd9\u4e2a\u63d0\u793a\u627e\u5230\u6f58\u5bb6\u56ed\u7684\u6d17\u624b\u95f4\uff0c\u4f46\u662f\u592a\u7e41\u7410\u4e86\u3002\u5982\u679c\u8bf4\u7684\u662f\u76f8\u5bf9\u8def\u5f84\uff0c\u867d\u7136\u8868\u8fbe\u5f88\u7b80\u7ec3\uff0c\u4f46\u662f\u8fd9\u4f4d\u5916\u56fd\u6e38\u5ba2\u53ea\u80fd\u4ece\u5f53\u524d\u4f4d\u7f6e\uff08\u4e0d\u89c1\u5f97\u662f\u6f58\u5bb6\u56ed\uff09\u51fa\u53d1\u627e\u5230\u6d17\u624b\u95f4\uff0c\u56e0\u6b64\u5e76\u4e0d\u80fd\u4fdd\u8bc1\u5728\u524d\u9762\u7684\u8def\u53e3\u5de6\u8f6c\u540e\u53ef\u4ee5\u627e\u5230\u6d17\u624b\u95f4\u3002\u7531\u6b64\u53ef\u89c1\uff0c\u76f8\u5bf9\u8def\u5f84\u4e0d\u5177\u5907\u666e\u9002\u6027\u3002<\/p>\n

\u5982\u679c\u5404\u4f4d\u8bfb\u8005\u73b0\u5728\u8fd8\u662f\u4e0d\u80fd\u7406\u89e3\u76f8\u5bf9\u8def\u5f84\u548c\u7edd\u5bf9\u8def\u5f84\u7684\u533a\u522b\uff0c\u4e5f\u4e0d\u8981\u7740\u6025\uff0c\u4ee5\u540e\u901a\u8fc7\u5b9e\u8df5\u7ec3\u4e60\u80af\u5b9a\u53ef\u4ee5\u5f7b\u5e95\u641e\u660e\u767d\u3002\u5f53\u524d\u5efa\u8bae\u5927\u5bb6\u5148\u8bb0\u4f4fFHS\u4e2d\u89c4\u5b9a\u7684\u76ee\u5f55\u4f5c\u7528\uff0c\u8fd9\u5c06\u5728\u4ee5\u540e\u6d3e\u4e0a\u7528\u573a\u3002<\/p>\n

6.2\u00a0\u7269\u7406\u8bbe\u5907\u7684\u547d\u540d\u89c4\u5219<\/strong><\/span><\/h5>\n

\u5728Linux\u7cfb\u7edf\u4e2d\u4e00\u5207\u90fd\u662f\u6587\u4ef6\uff0c\u786c\u4ef6\u8bbe\u5907\u4e5f\u4e0d\u4f8b\u5916\u3002\u65e2\u7136\u662f\u6587\u4ef6\uff0c\u5c31\u5fc5\u987b\u6709\u6587\u4ef6\u540d\u79f0\u3002\u7cfb\u7edf\u5185\u6838\u4e2d\u7684udev\u8bbe\u5907\u7ba1\u7406\u5668\u4f1a\u81ea\u52a8\u628a\u786c\u4ef6\u540d\u79f0\u89c4\u8303\u8d77\u6765\uff0c\u76ee\u7684\u662f\u8ba9\u7528\u6237\u901a\u8fc7\u8bbe\u5907\u6587\u4ef6\u7684\u540d\u5b57\u53ef\u4ee5\u731c\u51fa\u8bbe\u5907\u5927\u81f4\u7684\u5c5e\u6027\u4ee5\u53ca\u5206\u533a\u4fe1\u606f\u7b49\uff1b\u8fd9\u5bf9\u4e8e\u964c\u751f\u7684\u8bbe\u5907\u6765\u8bf4\u7279\u522b\u65b9\u4fbf\u3002\u53e6\u5916\uff0cudev\u8bbe\u5907\u7ba1\u7406\u5668\u7684\u670d\u52a1\u4f1a\u4e00\u76f4\u4ee5\u5b88\u62a4\u8fdb\u7a0b\u7684\u5f62\u5f0f\u8fd0\u884c\u5e76\u4fa6\u542c\u5185\u6838\u53d1\u51fa\u7684\u4fe1\u53f7\u6765\u7ba1\u7406\/dev\u76ee\u5f55\u4e0b\u7684\u8bbe\u5907\u6587\u4ef6\u3002Linux\u7cfb\u7edf\u4e2d\u5e38\u89c1\u7684\u786c\u4ef6\u8bbe\u5907\u53ca\u5176\u6587\u4ef6\u540d\u79f0\u5982\u88686-2\u6240\u793a\u3002<\/p>\n

\u88686-2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u5e38\u89c1\u7684\u786c\u4ef6\u8bbe\u5907\u53ca\u5176\u6587\u4ef6\u540d\u79f0<\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n
\u786c\u4ef6\u8bbe\u5907<\/td>\n\u6587\u4ef6\u540d\u79f0<\/td>\n<\/tr>\n
IDE\u8bbe\u5907<\/td>\n\/dev\/hd[a-d]<\/td>\n<\/tr>\n
NVMe\u8bbe\u5907<\/td>\n\/dev\/nvme[0-23]<\/td>\n<\/tr>\n
SCSI\/SATA\/U\u76d8<\/td>\n\/dev\/sd[a-z]<\/td>\n<\/tr>\n
virtio\u8bbe\u5907<\/td>\n\/dev\/vd[a-z]<\/td>\n<\/tr>\n
\u8f6f\u9a71<\/td>\n\/dev\/fd[0-1]<\/td>\n<\/tr>\n
\u6253\u5370\u673a<\/td>\n\/dev\/lp[0-15]<\/td>\n<\/tr>\n
\u5149\u9a71<\/td>\n\/dev\/cdrom<\/td>\n<\/tr>\n
\u9f20\u6807<\/td>\n\/dev\/mouse<\/td>\n<\/tr>\n
\u78c1\u5e26\u673a<\/td>\n\/dev\/st0\u6216\/dev\/ht0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

\u7531\u4e8e\u73b0\u5728\u7684IDE\u8bbe\u5907\u5df2\u7ecf\u5f88\u5c11\u89c1\u4e86\uff0c\u6240\u4ee5\u4e00\u822c\u7684\u786c\u76d8\u8bbe\u5907\u90fd\u662f\u4ee5\u201c\/dev\/sd\u201d\u5f00\u5934\u3002\u800c\u4e00\u53f0\u4e3b\u673a\u4e0a\u53ef\u4ee5\u6709\u591a\u5757\u786c\u76d8\uff0c\u56e0\u6b64\u7cfb\u7edf\u91c7\u7528a\uff5ez\u6765\u4ee3\u886826\u5757\u4e0d\u540c\u7684\u786c\u76d8\uff08\u9ed8\u8ba4\u4ecea\u5f00\u59cb\u5206\u914d\uff09\uff0c\u800c\u4e14\u786c\u76d8\u7684\u5206\u533a\u7f16\u53f7\u4e5f\u5f88\u6709\u8bb2\u7a76\uff1a<\/p>\n

\u4e3b\u5206\u533a\u6216\u6269\u5c55\u5206\u533a\u7684\u7f16\u53f7\u4ece1\u5f00\u59cb\uff0c\u52304\u7ed3\u675f\uff1b<\/p>\n

\u903b\u8f91\u5206\u533a\u4ece\u7f16\u53f75\u5f00\u59cb\u3002<\/p><\/blockquote>\n

\u56fd\u5185\u5f88\u591aLinux\u57f9\u8bad\u8bb2\u5e08\u4ee5\u53ca\u5f88\u591a\u77e5\u540dLinux\u56fe\u4e66\u5728\u8bb2\u5230\u8bbe\u5907\u548c\u5206\u533a\u540d\u79f0\u65f6\uff0c\u603b\u4f1a\u8bb2\u9519\u4e24\u4e2a\u77e5\u8bc6\u70b9\u3002\u7b2c\u4e00\u4e2a\u77e5\u8bc6\u70b9\u662f\u8bbe\u5907\u540d\u79f0\u7684\u7406\u89e3\u9519\u8bef\u3002\u5f88\u591a\u57f9\u8bad\u8bb2\u5e08\u548cLinux\u6280\u672f\u56fe\u4e66\u4e2d\u4f1a\u63d0\u5230\uff0c\u6bd4\u5982\/dev\/sda\u8868\u793a\u4e3b\u677f\u4e0a\u7b2c\u4e00\u4e2a\u63d2\u69fd\u4e0a\u7684\u5b58\u50a8\u8bbe\u5907\uff0c\u5b66\u5458\u6216\u8bfb\u8005\u5728\u5b9e\u8df5\u64cd\u4f5c\u7684\u65f6\u5019\u4f1a\u53d1\u73b0\u679c\u7136\u5982\u6b64\uff0c\u56e0\u6b64\u4e5f\u5c31\u5bf9\u8fd9\u6761\u7406\u8bba\u77e5\u8bc6\u66f4\u52a0\u6df1\u4fe1\u4e0d\u7591\u3002\u4f46\u771f\u76f8\u4e0d\u662f\u8fd9\u6837\u7684\uff0c\/dev\u76ee\u5f55\u4e2dsda\u8bbe\u5907\u4e4b\u6240\u4ee5\u662fa\uff0c\u5e76\u4e0d\u662f\u7531\u63d2\u69fd\u51b3\u5b9a\u7684\uff0c\u800c\u662f\u7531\u7cfb\u7edf\u5185\u6838\u7684\u8bc6\u522b\u987a\u5e8f\u6765\u51b3\u5b9a\u7684\uff0c\u800c\u6070\u5de7\u5f88\u591a\u4e3b\u677f\u7684\u63d2\u69fd\u987a\u5e8f\u5c31\u662f\u7cfb\u7edf\u5185\u6838\u7684\u8bc6\u522b\u987a\u5e8f\uff0c\u56e0\u6b64\u624d\u4f1a\u88ab\u547d\u540d\u4e3a\/dev\/sda\u3002\u5927\u5bb6\u4ee5\u540e\u5728\u4f7f\u7528iSCSI\u7f51\u7edc\u5b58\u50a8\u8bbe\u5907\u65f6\u5c31\u4f1a\u53d1\u73b0\uff0c\u660e\u660e\u4e3b\u677f\u4e0a\u7b2c\u4e8c\u4e2a\u63d2\u69fd\u662f\u7a7a\u7740\u7684\uff0c\u4f46\u7cfb\u7edf\u5374\u80fd\u8bc6\u522b\u5230\/dev\/sdb\u8fd9\u4e2a\u8bbe\u5907\u2014\u5c31\u662f\u8fd9\u4e2a\u9053\u7406\u3002<\/p>\n

\u7b2c\u4e8c\u4e2a\u77e5\u8bc6\u70b9\u662f\u5bf9\u5206\u533a\u540d\u79f0\u7684\u7406\u89e3\u9519\u8bef\u3002\u5f88\u591aLinux\u57f9\u8bad\u8bb2\u5e08\u4f1a\u544a\u8bc9\u5b66\u5458\uff0c\u5206\u533a\u7684\u7f16\u53f7\u4ee3\u8868\u5206\u533a\u7684\u4e2a\u6570\u3002\u6bd4\u5982sda3\u8868\u793a\u8fd9\u662f\u8bbe\u5907\u4e0a\u7684\u7b2c3\u4e2a\u5206\u533a\uff0c\u800c\u5b66\u5458\u5728\u505a\u5b9e\u9a8c\u7684\u65f6\u5019\u786e\u5b9e\u4e5f\u4f1a\u5f97\u51fa\u8fd9\u6837\u7684\u7ed3\u679c\u3002\u4f46\u662f\u8fd9\u4e2a\u7406\u8bba\u77e5\u8bc6\u662f\u9519\u8bef\u7684\uff0c\u56e0\u4e3a\u5206\u533a\u7684\u6570\u5b57\u7f16\u7801\u4e0d\u4e00\u5b9a\u662f\u5f3a\u5236\u987a\u5ef6\u4e0b\u6765\u7684\uff0c\u4e5f\u6709\u53ef\u80fd\u662f\u624b\u5de5\u6307\u5b9a\u7684\u3002\u56e0\u6b64sda3\u53ea\u80fd\u8868\u793a\u662f\u7f16\u53f7\u4e3a3\u7684\u5206\u533a\uff0c\u800c\u4e0d\u80fd\u5224\u65adsda\u8bbe\u5907\u4e0a\u5df2\u7ecf\u5b58\u5728\u4e863\u4e2a\u5206\u533a\u3002<\/p>\n

\u5728\u586b\u4e86\u8fd9\u4e24\u4e2a\u201c\u5751\u201d\u4e4b\u540e\uff0c\u518d\u6765\u5206\u6790\u4e00\u4e0b\/dev\/sda5\u8fd9\u4e2a\u8bbe\u5907\u6587\u4ef6\u540d\u79f0\u5305\u542b\u54ea\u4e9b\u4fe1\u606f\uff0c\u5982\u56fe6-2\u6240\u793a\u3002<\/p>\n

\"\u786c\u76d8\u547d\u540d\u89c4\u5219\"<\/p>\n

\u56fe6-2 \u8bbe\u5907\u6587\u4ef6\u540d\u79f0<\/p>\n

\u9996\u5148\uff0c\/dev\/\u76ee\u5f55\u4e2d\u4fdd\u5b58\u7684\u5e94\u5f53\u662f\u786c\u4ef6\u8bbe\u5907\u6587\u4ef6\uff1b\u5176\u6b21\uff0csd\u8868\u793a\u7684\u662f\u5b58\u50a8\u8bbe\u5907\uff1b\u7136\u540e\uff0ca\u8868\u793a\u7cfb\u7edf\u4e2d\u540c\u7c7b\u63a5\u53e3\u4e2d\u7b2c\u4e00\u4e2a\u88ab\u8bc6\u522b\u5230\u7684\u8bbe\u5907\uff1b\u6700\u540e\uff0c5\u8868\u793a\u8fd9\u4e2a\u8bbe\u5907\u662f\u4e00\u4e2a\u903b\u8f91\u5206\u533a\u3002\u4e00\u8a00\u4ee5\u853d\u4e4b\uff0c\u201c\/dev\/sda5\u201d\u8868\u793a\u7684\u5c31\u662f\u201c\u8fd9\u662f\u7cfb\u7edf\u4e2d\u7b2c\u4e00\u5757\u88ab\u8bc6\u522b\u5230\u7684\u786c\u4ef6\u8bbe\u5907\u4e2d\u5206\u533a\u7f16\u53f7\u4e3a5\u7684\u903b\u8f91\u5206\u533a\u7684\u8bbe\u5907\u6587\u4ef6\u201d\u3002\u8003\u8651\u5230\u5f88\u591a\u8bfb\u8005\u5b8c\u5168\u6ca1\u6709Linux\u57fa\u7840\uff0c\u4e0d\u592a\u5bb9\u6613\u7406\u89e3\u524d\u9762\u6240\u8bf4\u7684\u4e3b\u5206\u533a\u3001\u6269\u5c55\u5206\u533a\u548c\u903b\u8f91\u5206\u533a\u7684\u6982\u5ff5\uff0c\u56e0\u6b64\u63a5\u4e0b\u6765\u7b80\u5355\u79d1\u666e\u4e00\u4e0b\u786c\u76d8\u76f8\u5173\u7684\u77e5\u8bc6\u3002<\/p>\n

\u6b63\u662f\u56e0\u4e3a\u8ba1\u7b97\u673a\u6709\u4e86\u786c\u76d8\u8bbe\u5907\uff0c\u6211\u4eec\u624d\u80fd\u591f\u5728\u73a9\u6e38\u620f\u7684\u8fc7\u7a0b\u4e2d\u6216\u6e38\u620f\u901a\u5173\u4e4b\u540e\u968f\u65f6\u5b58\u6863\uff0c\u800c\u4e0d\u7528\u6bcf\u6b21\u91cd\u5934\u5f00\u59cb\u3002\u786c\u76d8\u8bbe\u5907\u662f\u7531\u5927\u91cf\u7684\u6247\u533a\u7ec4\u6210\u7684\uff0c\u6bcf\u4e2a\u6247\u533a\u7684\u5bb9\u91cf\u4e3a512\u5b57\u8282\u3002\u5176\u4e2d\u7b2c\u4e00\u4e2a\u6247\u533a\u6700\u91cd\u8981\uff0c\u5b83\u91cc\u9762\u4fdd\u5b58\u7740\u4e3b\u5f15\u5bfc\u8bb0\u5f55\u4e0e\u5206\u533a\u8868\u4fe1\u606f\u3002\u5c31\u7b2c\u4e00\u4e2a\u6247\u533a\u6765\u8bb2\uff0c\u4e3b\u5f15\u5bfc\u8bb0\u5f55\u9700\u8981\u5360\u7528446\u5b57\u8282\uff0c\u5206\u533a\u8868\u5360\u752864\u5b57\u8282\uff0c\u7ed3\u675f\u7b26\u5360\u75282\u5b57\u8282\uff1b\u5176\u4e2d\u5206\u533a\u8868\u4e2d\u6bcf\u8bb0\u5f55\u4e00\u4e2a\u5206\u533a\u4fe1\u606f\u5c31\u9700\u898116\u5b57\u8282\uff0c\u8fd9\u6837\u4e00\u6765\u6700\u591a\u53ea\u67094\u4e2a\u5206\u533a\u4fe1\u606f\u53ef\u4ee5\u5199\u5230\u7b2c\u4e00\u4e2a\u6247\u533a\u4e2d\uff0c\u8fd94\u4e2a\u5206\u533a\u5c31\u662f4\u4e2a\u4e3b\u5206\u533a\u3002\u7b2c\u4e00\u4e2a\u6247\u533a\u4e2d\u7684\u6570\u636e\u4fe1\u606f\u5982\u56fe6-3\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-3\u00a0 \u7b2c\u4e00\u4e2a\u6247\u533a\u4e2d\u7684\u6570\u636e\u4fe1\u606f<\/p>\n

\u73b0\u5728\uff0c\u95ee\u9898\u6765\u4e86\u2014\u6bcf\u5757\u786c\u76d8\u6700\u591a\u53ea\u80fd\u521b\u5efa\u51fa4\u4e2a\u5206\u533a\uff1f\u8fd9\u660e\u663e\u4e0d\u5408\u60c5\u7406\u4e5f\u4e0d\u591f\u7528\u3002<\/p>\n

\u4e8e\u662f\u4e3a\u4e86\u89e3\u51b3\u5206\u533a\u4e2a\u6570\u4e0d\u591f\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u5c06\u7b2c\u4e00\u4e2a\u6247\u533a\u7684\u5206\u533a\u8868\u4e2d16\u5b57\u8282\uff08\u539f\u672c\u8981\u5199\u5165\u4e3b\u5206\u533a\u4fe1\u606f\uff09\u7684\u7a7a\u95f4\uff08\u79f0\u4e4b\u4e3a\u6269\u5c55\u5206\u533a\uff09\u62ff\u51fa\u6765\u6307\u5411\u53e6\u5916\u4e00\u4e2a\u5206\u533a\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u6269\u5c55\u5206\u533a\u5176\u5b9e\u5e76\u4e0d\u662f\u4e00\u4e2a\u771f\u6b63\u7684\u5206\u533a\uff0c\u800c\u66f4\u50cf\u662f\u4e00\u4e2a\u5360\u752816\u5b57\u8282\u5206\u533a\u8868\u7a7a\u95f4\u7684\u6307\u9488\u2014\u4e00\u4e2a\u6307\u5411\u53e6\u5916\u4e00\u4e2a\u5206\u533a\u7684\u6307\u9488\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u7528\u6237\u4e00\u822c\u4f1a\u9009\u62e9\u4f7f\u75283\u4e2a\u4e3b\u5206\u533a\u52a01\u4e2a\u6269\u5c55\u5206\u533a\u7684\u65b9\u6cd5\uff0c\u7136\u540e\u5728\u6269\u5c55\u5206\u533a\u4e2d\u521b\u5efa\u51fa\u6570\u4e2a\u903b\u8f91\u5206\u533a\uff0c\u4ece\u800c\u6765\u6ee1\u8db3\u591a\u5206\u533a\uff08\u5927\u4e8e4\u4e2a\uff09\u7684\u9700\u6c42\u3002\u5f53\u7136\uff0c\u5c31\u76ee\u524d\u6765\u8bb2\u5927\u5bb6\u53ea\u8981\u660e\u767d\u4e3a\u4ec0\u4e48\u4e3b\u5206\u533a\u4e0d\u80fd\u8d85\u8fc74\u4e2a\u5c31\u8db3\u591f\u4e86\u3002\u4e3b\u5206\u533a\u3001\u6269\u5c55\u5206\u533a\u3001\u903b\u8f91\u5206\u533a\u53ef\u4ee5\u50cf\u56fe6-4\u90a3\u6837\u6765\u89c4\u5212\u3002<\/p>\n

\n
\n

Tips<\/strong><\/h3>\n<\/div>\n
\n

\u6240\u8c13\u6269\u5c55\u5206\u533a\uff0c\u4e25\u683c\u5730\u8bb2\u5b83\u4e0d\u662f\u4e00\u4e2a\u5b9e\u9645\u610f\u4e49\u7684\u5206\u533a\uff0c\u800c\u4ec5\u4ec5\u662f\u4e00\u4e2a\u6307\u5411\u5176\u4ed6\u5206\u533a\u7684\u6307\u9488\uff0c\u8fd9\u79cd\u6307\u9488\u7ed3\u6784\u5c06\u5f62\u6210\u4e00\u4e2a\u5355\u5411\u94fe\u8868\u3002\u56e0\u6b64\u6269\u5c55\u5206\u533a\u81ea\u8eab\u4e0d\u80fd\u5b58\u50a8\u6570\u636e\uff0c\u7528\u6237\u9700\u8981\u5728\u5176\u6307\u5411\u7684\u5bf9\u5e94\u5206\u533a\uff08\u79f0\u4e4b\u4e3a\u903b\u8f91\u5206\u533a\uff09\u4e0a\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<\/div>\n<\/div>\n

\"\u903b\u8f91\u5206\u533a\"<\/p>\n

\u56fe6-4 \u786c\u76d8\u5206\u533a\u7684\u89c4\u5212<\/p>\n

\u5927\u5bb6\u53ef\u4ee5\u8bd5\u7740\u89e3\u8bfb\u4e00\u4e0b\/dev\/hdc8\u4ee3\u8868\u7740\u4ec0\u4e48\uff1f<\/strong> \uff08\u7b54\u6848\u6a21\u5f0f<\/span><\/strong>\uff09<\/p>\n

\u7b54\u6848\uff1a<\/strong><\/span>\u8fd9\u662f\u7b2c3\u5757IDE\u8bbe\u5907\uff08\u73b0\u5728\u6bd4\u8f83\u5c11\u89c1\uff09\u4e2d\u7f16\u53f7\u4e3a8\u7684\u903b\u8f91\u5206\u533a\u3002<\/span><\/p>\n

\u5bf9\u4e86\uff01\u5982\u679c\u5927\u5bb6\u53c2\u52a0\u7ea2\u5e3d<\/a>RHCE\u8003\u8bd5\u6216\u8005\u8d2d\u4e70\u4e86\u4e00\u53f0\u4e91\u4e3b\u673a\uff0c\u8fd8\u4f1a\u770b\u5230\u7c7b\u4f3c\u4e8e\/dev\/vda\u3001\/dev\/vdb\u8fd9\u6837\u7684\u8bbe\u5907\u3002\u8fd9\u79cd\u4ee5vd\u5f00\u5934\u7684\u8bbe\u5907\u53eb\u4f5cVirtio\u8bbe\u5907\uff0c\u7b80\u5355\u6765\u8bf4\u5c31\u662f\u4e00\u79cd\u865a\u62df\u5316\u8bbe\u5907\u3002\u50cfKVM\u3001Xen\u8fd9\u79cd\u865a\u62df\u673a\u76d1\u63a7\u5668\uff08Hypervisor\uff09\u9ed8\u8ba4\u5c31\u90fd\u662f\u8fd9\u79cd\u8bbe\u5907\uff0c\u7b49\u5927\u5bb6\u6b65\u5165\u5de5\u4f5c\u5c97\u4f4d\u540e\u53ef\u80fd\u4f1a\u89c1\u5230\u66f4\u591a\u3002<\/p>\n

6.3 \u6587\u4ef6\u7cfb\u7edf\u4e0e\u6570\u636e\u8d44\u6599<\/strong><\/span><\/h5>\n

\u540c\u5b66\u4eec\u53ef\u4ee5\u62ff\u51fa\u4e00\u5f20A4\u7eb8\uff0c\u7136\u540e\u6a2a\u8fc7\u6765\u5728\u4e0a\u9762\u968f\u4fbf\u5199\u4e0a\u51e0\u884c\u5b57\uff0c\u5728\u4e66\u5199\u8fc7\u7a0b\u4e2d\u6162\u6162\u5c31\u4f1a\u53d1\u73b0\u5b57\u5199\u5f97\u8d8a\u6765\u8d8a\u6b6a\uff0c\u6700\u7ec8\u6574\u884c\u6587\u5b57\u90fd\u4f1a\u5411\u4e0a\u6216\u5411\u4e0b\u503e\u659c\u3002\u4e3a\u4e86\u80fd\u8ba9\u5b57\u5199\u5f97\u66f4\u5de5\u6574\uff0c\u9605\u8bfb\u5f97\u66f4\u8212\u670d\u4e00\u4e9b\uff0c\u6587\u5177\u5e97\u91cc\u63d0\u4f9b\u4e86\u5404\u79cd\u4e0d\u540c\u7684\u672c\u672c\u2014\u5355\u7ebf\u672c\u3001\u53cc\u7ebf\u672c\u3001\u7530\u683c\u672c\u3001\u4e94\u7ebf\u8c31\u672c\u7b49\u3002\u8fd9\u4e5f\u8bf4\u660e\uff0c\u79bb\u5f00\u4e86\u683c\u5f0f\u7ea6\u675f\u4e4b\u540e\u7684\u5185\u5bb9\uff0c\u5b8c\u5168\u4e0d\u53d7\u6211\u4eec\u7684\u4e3b\u89c2\u63a7\u5236\u3002\u800c\u7528\u6237\u5728\u786c\u4ef6\u5b58\u50a8\u8bbe\u5907\u4e2d\u6267\u884c\u7684\u6587\u4ef6\u5efa\u7acb\u3001\u5199\u5165\u3001\u8bfb\u53d6\u3001\u4fee\u6539\u3001\u8f6c\u5b58\u4e0e\u63a7\u5236\u7b49\u64cd\u4f5c\u90fd\u662f\u4f9d\u9760\u6587\u4ef6\u7cfb\u7edf\u6765\u5b8c\u6210\u7684\u3002\u6587\u4ef6\u7cfb\u7edf\u7684\u4f5c\u7528\u662f\u5408\u7406\u89c4\u5212\u786c\u76d8\uff0c\u4ee5\u4fdd\u8bc1\u7528\u6237\u6b63\u5e38\u7684\u4f7f\u7528\u9700\u6c42\u3002<\/p>\n

Linux\u7cfb\u7edf\u652f\u6301\u6570\u5341\u79cd\u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u6700\u5e38\u89c1\u7684\u6587\u4ef6\u7cfb\u7edf\u5982\u4e0b\u6240\u793a\u3002<\/p>\n

Ext2<\/strong>\uff1a\u6700\u65e9\u53ef\u8ffd\u6eaf\u52301993\u5e74\uff0c\u662fLinux\u7cfb\u7edf\u7684\u7b2c\u4e00\u4e2a\u5546\u4e1a\u7ea7\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u57fa\u672c\u6cbf\u88ad\u4e86UNIX\u6587\u4ef6\u7cfb\u7edf\u7684\u8bbe\u8ba1\u6807\u51c6\u3002\u4f46\u7531\u4e8e\u4e0d\u5305\u542b\u65e5\u5fd7\u8bfb\u5199\u529f\u80fd\uff0c\u6570\u636e\u4e22\u5931\u7684\u53ef\u80fd\u6027\u5f88\u5927\uff0c\u56e0\u6b64\u5927\u5bb6\u80fd\u4e0d\u7528\u5c31\u4e0d\u7528\uff0c\u6216\u8005\u9876\u591a\u5efa\u8bae\u7528\u4e8eSD\u5b58\u50a8\u5361\u6216U\u76d8\u3002<\/p>\n

Ext3<\/strong>\uff1a\u662f\u4e00\u6b3e\u65e5\u5fd7\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u4f1a\u628a\u6574\u4e2a\u786c\u76d8\u7684\u6bcf\u4e2a\u5199\u5165\u52a8\u4f5c\u7684\u7ec6\u8282\u90fd\u9884\u5148\u8bb0\u5f55\u4e0b\u6765\uff0c\u7136\u540e\u518d\u8fdb\u884c\u5b9e\u9645\u64cd\u4f5c\uff0c\u4ee5\u4fbf\u5728\u53d1\u751f\u5f02\u5e38\u5b95\u673a\u540e\u80fd\u56de\u6eaf\u8ffd\u8e2a\u5230\u88ab\u4e2d\u65ad\u7684\u90e8\u5206\u3002Ext3\u80fd\u591f\u5728\u7cfb\u7edf\u5f02\u5e38\u5b95\u673a\u65f6\u907f\u514d\u6587\u4ef6\u7cfb\u7edf\u8d44\u6599\u4e22\u5931\uff0c\u5e76\u80fd\u81ea\u52a8\u4fee\u590d\u6570\u636e\u7684\u4e0d\u4e00\u81f4\u4e0e\u9519\u8bef\u3002\u7136\u800c\uff0c\u5f53\u786c\u76d8\u5bb9\u91cf\u8f83\u5927\u65f6\uff0c\u6240\u9700\u7684\u4fee\u590d\u65f6\u95f4\u4e5f\u4f1a\u5f88\u957f\uff0c\u800c\u4e14\u4e5f\u4e0d\u80fd100%\u5730\u4fdd\u8bc1\u8d44\u6599\u4e0d\u4f1a\u4e22\u5931\u3002<\/p>\n

Ext4<\/strong>\uff1aExt3\u7684\u6539\u8fdb\u7248\u672c\uff0c\u4f5c\u4e3aRHEL 6\u7cfb\u7edf\u4e2d\u9ed8\u8ba4\u7684\u6587\u4ef6\u7ba1\u7406\u7cfb\u7edf\uff0c\u5b83\u652f\u6301\u7684\u5b58\u50a8\u5bb9\u91cf\u9ad8\u8fbe1EB\uff081EB=1,073,741,824GB\uff09\uff0c\u4e14\u80fd\u591f\u6709\u65e0\u9650\u591a\u7684\u5b50\u76ee\u5f55\u3002\u53e6\u5916\uff0cExt4\u6587\u4ef6\u7cfb\u7edf\u80fd\u591f\u6279\u91cf\u5206\u914dblock\uff08\u5757\uff09\uff0c\u4ece\u800c\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u8bfb\u5199\u6548\u7387\u3002\u73b0\u5728\u5f88\u591a\u4e3b\u6d41\u670d\u52a1\u5668\u4e5f\u4f1a\u4f7f\u7528Ext4\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n

XFS<\/strong>\uff1a\u662f\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u65e5\u5fd7\u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u4e14\u662fRHEL 7\/8\u4e2d\u9ed8\u8ba4\u7684\u6587\u4ef6\u7ba1\u7406\u7cfb\u7edf\u3002\u5b83\u7684\u4f18\u52bf\u5728\u53d1\u751f\u610f\u5916\u5b95\u673a\u540e\u5c24\u5176\u660e\u663e\uff0c\u5373\u53ef\u4ee5\u5feb\u901f\u5730\u6062\u590d\u53ef\u80fd\u88ab\u7834\u574f\u7684\u6587\u4ef6\uff0c\u800c\u4e14\u5f3a\u5927\u7684\u65e5\u5fd7\u529f\u80fd\u53ea\u9700\u82b1\u8d39\u6781\u4f4e\u7684\u8ba1\u7b97\u548c\u5b58\u50a8\u6027\u80fd\u3002\u5b83\u652f\u6301\u7684\u6700\u5927\u5b58\u50a8\u5bb9\u91cf\u4e3a18EB\uff0c\u8fd9\u51e0\u4e4e\u6ee1\u8db3\u4e86\u6240\u6709\u9700\u6c42\u3002<\/p>\n

RHEL 7\/8\u7cfb\u7edf\u4e2d\u4e00\u4e2a\u6bd4\u8f83\u5927\u7684\u53d8\u5316\u5c31\u662f\u4f7f\u7528\u4e86XFS\u4f5c\u4e3a\u6587\u4ef6\u7cfb\u7edf\uff0c\u8fd9\u4e0d\u540c\u4e8eRHEL 6\u4f7f\u7528\u7684Ext4\u3002\u4ece\u7ea2\u5e3d\u516c\u53f8\u5b98\u65b9\u53d1\u5e03\u7684\u8bf4\u660e\u6765\u770b\uff0c\u8fd9\u786e\u5b9e\u662f\u4e00\u4e2a\u4e0d\u5c0f\u7684\u8fdb\u6b65\uff0c\u4f46\u662f\u5218\u9044\u8001\u5e08\u5728\u5b9e\u6d4b\u4e2d\u53d1\u73b0\u5e76\u4e0d\u5b8c\u5168\u5c5e\u5b9e\u3002\u56e0\u4e3a\u5355\u7eaf\u5c31\u6d4b\u8bd5\u4e00\u6b3e\u6587\u4ef6\u7cfb\u7edf\u7684\u201c\u8bfb\u53d6\u201d\u6027\u80fd\u6765\u8bf4\uff0c\u5230\u5e95\u8981\u8bfb\u53d6\u591a\u5c11\u4e2a\u6587\u4ef6\uff0c\u6bcf\u4e2a\u6587\u4ef6\u7684\u5927\u5c0f\u662f\u591a\u5c11\uff0c\u8bfb\u53d6\u6587\u4ef6\u65f6\u7684CPU\u3001\u5185\u5b58\u7b49\u7cfb\u7edf\u8d44\u6e90\u7684\u5360\u7528\u7387\u5982\u4f55\uff0c\u4ee5\u53ca\u4e0d\u540c\u7684\u786c\u4ef6\u914d\u7f6e\u662f\u5426\u4f1a\u6709\u4e0d\u540c\u7684\u5f71\u54cd\uff0c\u8fd9\u4e9b\u56e0\u7d20\u90fd\u662f\u4e0d\u786e\u5b9a\u7684\uff0c\u56e0\u6b64\u5b9e\u5728\u4e0d\u6562\u76f4\u63a5\u7167\u6284\u7ea2\u5e3d\u5b98\u65b9\u7684\u4ecb\u7ecd\u3002\u6211\u4e2a\u4eba\u8ba4\u4e3aXFS\u867d\u7136\u5728\u6027\u80fd\u65b9\u9762\u6bd4Ext4\u6709\u6240\u63d0\u5347\uff0c\u4f46\u7edd\u4e0d\u662f\u538b\u5012\u6027\u7684\uff0c\u56e0\u6b64XFS\u6587\u4ef6\u7cfb\u7edf\u6700\u5353\u8d8a\u7684\u4eae\u70b9\u5e94\u8be5\u5f53\u5c5e\u53ef\u652f\u6301\u9ad8\u8fbe18EB\u7684\u5b58\u50a8\u5bb9\u91cf\u5427\u3002<\/p>\n

18EB\u7b49\u4e8e18,874,368TB\u3002\u5047\u8bbe\u6bcf\u5757\u786c\u76d8\u7684\u5bb9\u91cf\u662f100TB\uff0c\u90a3\u4e48\u5927\u6982\u9700\u898119\u4e07\u5757\u786c\u76d8\u624d\u80fd\u628a18EB\u7684\u6570\u636e\u90fd\u88c5\u4e0b\u3002\u603b\u4e4b\uff0c\u5f53\u7528\u4e86XFS\u4e4b\u540e\uff0c\u6587\u4ef6\u7684\u5b58\u50a8\u4e0a\u9650\u5c31\u4e0d\u518d\u53d6\u51b3\u4e8e\u6280\u672f\u5c42\u9762\uff0c\u800c\u662f\u94b1\u5305\u4e86\u3002\u8fc7\u53bb\u5e38\u5e38\u8ddf\u540c\u5b66\u4eec\u5f00\u73a9\u7b11\uff0c\u201c\u5982\u679c\u670918EB\u7684\u6570\u636e\u5728\u4e0a\u6d77\u673a\u623f\uff0c\u60f3\u4ee5\u6700\u5feb\u7684\u65b9\u5f0f\u4f20\u9001\u5230\u5317\u4eac\uff0c\u6211\u4eec\u6709\u4ec0\u4e48\u597d\u529e\u6cd5\u5462\uff1f\u201d\u7b54\u6848\u662f\u201c\u4e58\u5750\u4eac\u6caa\u9ad8\u94c1\u201d\u3002<\/p>\n

\u5728\u62ff\u5230\u4e00\u5757\u65b0\u7684\u786c\u76d8\u5b58\u50a8\u8bbe\u5907\u540e\uff0c\u5148\u9700\u8981\u5206\u533a\uff0c\u7136\u540e\u518d\u683c\u5f0f\u5316\u6587\u4ef6\u7cfb\u7edf\uff0c\u6700\u540e\u624d\u80fd\u6302\u8f7d\u5e76\u6b63\u5e38\u4f7f\u7528\u3002\u786c\u76d8\u7684\u5206\u533a\u64cd\u4f5c\u53d6\u51b3\u4e8e\u60a8\u7684\u9700\u6c42\u548c\u786c\u76d8\u5927\u5c0f\uff1b\u4e5f\u53ef\u4ee5\u9009\u62e9\u4e0d\u8fdb\u884c\u5206\u533a\uff0c\u4f46\u662f\u5fc5\u987b\u5bf9\u786c\u76d8\u8fdb\u884c\u683c\u5f0f\u5316\u5904\u7406\u3002<\/p>\n

\n
\n<\/div>\n
\n
\n

Tips<\/strong><\/h3>\n<\/div>\n
\n

\u5c31\u50cf\u62ff\u5230\u4e86\u4e00\u5f20\u672a\u88c1\u5207\u7684\u5b8c\u6574\u7eb8\u5f20\u90a3\u6837\uff0c\u9996\u5148\u8981\u8fdb\u884c\u88c1\u5207\u4ee5\u65b9\u4fbf\u4f7f\u7528\uff08\u5206\u533a<\/strong>\uff09\uff0c\u63a5\u4e0b\u6765\u5728\u88c1\u5207\u540e\u7684\u7eb8\u5f20\u4e0a\u753b\u683c\u4ee5\u4fbf\u80fd\u4e66\u5199\u5de5\u6574\uff08\u683c\u5f0f\u5316<\/strong>\uff09\uff0c\u6700\u540e\u662f\u6b63\u5f0f\u7684\u4f7f\u7528\uff08\u6302\u8f7d<\/strong>\uff09\u3002<\/p>\n<\/div>\n<\/div>\n

\u63a5\u4e0b\u6765\u5411\u5927\u5bb6\u7b80\u5355\u5730\u79d1\u666e\u4e00\u4e0b\u786c\u76d8\u5728\u683c\u5f0f\u5316\u540e\u53d1\u751f\u7684\u4e8b\u60c5\u3002\u518d\u6b21\u5f3a\u8c03\uff0c\u5927\u5bb6\u4e0d\u7528\u523b\u610f\u53bb\u8bb0\u4f4f\uff0c\u53ea\u8981\u80fd\u770b\u61c2\u5c31\u884c\u4e86\u3002<\/p>\n

\u65e5\u5e38\u9700\u8981\u4fdd\u5b58\u5728\u786c\u76d8\u4e2d\u7684\u6570\u636e\u5b9e\u5728\u592a\u591a\u4e86\uff0c\u56e0\u6b64Linux\u7cfb\u7edf\u4e2d\u6709\u4e00\u4e2a\u540d\u4e3asuper block\u7684\u201c\u786c\u76d8\u5730\u56fe\u201d\u3002Linux\u5e76\u4e0d\u662f\u628a\u6587\u4ef6\u5185\u5bb9\u76f4\u63a5\u5199\u5165\u5230\u8fd9\u4e2a\u201c\u786c\u76d8\u5730\u56fe\u201d\u91cc\u9762\uff0c\u800c\u662f\u5728\u91cc\u9762\u8bb0\u5f55\u7740\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u7684\u4fe1\u606f\u3002\u56e0\u4e3a\u5982\u679c\u628a\u6240\u6709\u7684\u6587\u4ef6\u5185\u5bb9\u90fd\u5199\u5165\u5230\u8fd9\u91cc\u9762\uff0c\u5b83\u7684\u4f53\u79ef\u5c06\u53d8\u5f97\u975e\u5e38\u5927\uff0c\u800c\u4e14\u6587\u4ef6\u5185\u5bb9\u7684\u67e5\u8be2\u4e0e\u5199\u5165\u901f\u5ea6\u4e5f\u4f1a\u53d8\u5f97\u5f88\u6162\u3002Linux\u53ea\u662f\u628a\u6bcf\u4e2a\u6587\u4ef6\u7684\u6743\u9650\u4e0e\u5c5e\u6027\u8bb0\u5f55\u5728inode\u4e2d\uff0c\u800c\u4e14\u6bcf\u4e2a\u6587\u4ef6\u5360\u7528\u4e00\u4e2a\u72ec\u7acb\u7684inode\u8868\u683c\uff0c\u8be5\u8868\u683c\u7684\u5927\u5c0f\u9ed8\u8ba4\u4e3a128\u5b57\u8282\uff0c\u91cc\u9762\u8bb0\u5f55\u7740\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n

\u8be5\u6587\u4ef6\u7684\u8bbf\u95ee\u6743\u9650\uff08read\u3001write\u3001execute\uff09\uff1b<\/p>\n

\u8be5\u6587\u4ef6\u7684\u6240\u6709\u8005\u4e0e\u6240\u5c5e\u7ec4\uff08owner\u3001group\uff09\uff1b<\/p>\n

\u8be5\u6587\u4ef6\u7684\u5927\u5c0f\uff08size\uff09\uff1b<\/p>\n

\u8be5\u6587\u4ef6\u7684\u521b\u5efa\u6216\u5185\u5bb9\u4fee\u6539\u65f6\u95f4\uff08Ctime\uff09\uff1b<\/p>\n

\u8be5\u6587\u4ef6\u7684\u6700\u540e\u4e00\u6b21\u8bbf\u95ee\u65f6\u95f4\uff08Atime\uff09\uff1b<\/p>\n

\u8be5\u6587\u4ef6\u7684\u4fee\u6539\u65f6\u95f4\uff08Mtime\uff09\uff1b<\/p>\n

\u6587\u4ef6\u7684\u7279\u6b8a\u6743\u9650\uff08SUID\u3001SGID\u3001SBIT\uff09\uff1b<\/p>\n

\u8be5\u6587\u4ef6\u7684\u771f\u5b9e\u6570\u636e\u5730\u5740\uff08point\uff09\u3002<\/p><\/blockquote>\n

\u800c\u6587\u4ef6\u7684\u5b9e\u9645\u5185\u5bb9\u5219\u4fdd\u5b58\u5728block\u5757\u4e2d\uff08\u5927\u5c0f\u4e00\u822c\u662f1KB\u30012KB\u62164KB\uff09\uff0c\u4e00\u4e2ainode\u7684\u9ed8\u8ba4\u5927\u5c0f\u4ec5\u4e3a128\u5b57\u8282\uff0c\u8bb0\u5f55\u4e00\u4e2ablock\u5219\u6d88\u80174\u5b57\u8282\u3002\u5f53\u6587\u4ef6\u7684inode\u88ab\u5199\u6ee1\u540e\uff0cLinux\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5206\u914d\u51fa\u4e00\u4e2ablock\uff0c\u4e13\u95e8\u7528\u4e8e\u50cfinode\u90a3\u6837\u8bb0\u5f55\u5176\u4ed6block\u5757\u7684\u4fe1\u606f\uff0c\u8fd9\u6837\u628a\u5404\u4e2ablock\u5757\u7684\u5185\u5bb9\u4e32\u5230\u4e00\u8d77\uff0c\u5c31\u80fd\u591f\u8ba9\u7528\u6237\u8bfb\u5230\u5b8c\u6574\u7684\u6587\u4ef6\u5185\u5bb9\u4e86\u3002\u5bf9\u4e8e\u5b58\u50a8\u6587\u4ef6\u5185\u5bb9\u7684block\u5757\uff0c\u6709\u4e0b\u9762\u4e24\u79cd\u5e38\u89c1\u7684\u60c5\u51b5\uff08\u4ee54KB\u5927\u5c0f\u7684block\u4e3a\u4f8b\u8fdb\u884c\u8bf4\u660e\uff09\u3002<\/p>\n

\u60c5\u51b51\uff1a\u6587\u4ef6\u5f88\u5c0f\uff081KB\uff09\uff0c\u4f46\u4f9d\u7136\u4f1a\u5360\u7528\u4e00\u4e2ablock\uff0c\u56e0\u6b64\u4f1a\u6f5c\u5728\u5730\u6d6a\u8d393KB\u3002<\/p>\n

\u60c5\u51b52\uff1a\u6587\u4ef6\u5f88\u5927\uff085KB\uff09\uff0c\u90a3\u4e48\u4f1a\u5360\u7528\u4e24\u4e2ablock\uff085KB\u22124KB\u540e\u5269\u4e0b\u76841KB\u4e5f\u8981\u5360\u7528\u4e00\u4e2ablock\uff09\u3002<\/p><\/blockquote>\n

\u5927\u5bb6\u770b\u5230\u8fd9\u91cc\uff0c\u662f\u4e0d\u662f\u89c9\u5f97Linux\u7cfb\u7edf\u597d\u6d6a\u8d39\u554a\uff1f\u4e3a\u4ec0\u4e48\u6700\u540e\u4e00\u4e2ablock\u5757\u5bb9\u91cf\u603b\u4e0d\u80fd\u88ab\u5b8c\u5168\u4f7f\u7528\u5462\uff1f\u5176\u5b9e\u6bcf\u4e2a\u7cfb\u7edf\u90fd\u662f\u4e00\u6837\u7684\uff0c\u53ea\u4e0d\u8fc7\u5927\u5bb6\u6b64\u524d\u6ca1\u6709\u7559\u610f\u8fc7\u7f62\u4e86\u3002\u540c\u5b66\u4eec\u53ef\u4ee5\u968f\u624b\u67e5\u770b\u4e00\u4e2a\u7535\u8111\u4e2d\u5df2\u6709\u7684\u6587\u4ef6\uff0c\u770b\u770b\u6587\u4ef6\u7684\u5b9e\u9645\u5927\u5c0f\u4e0e\u5360\u7528\u7a7a\u95f4\u662f\u5426\u4e00\u81f4\uff0c\u5982\u56fe6-5\u6240\u793a\u3002<\/p>\n

\u8ba1\u7b97\u673a\u7cfb\u7edf\u5728\u53d1\u5c55\u8fc7\u7a0b\u4e2d\u4ea7\u751f\u4e86\u4f17\u591a\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u4e3a\u4e86\u4f7f\u7528\u6237\u5728\u8bfb\u53d6\u6216\u5199\u5165\u6587\u4ef6\u65f6\u4e0d\u7528\u5173\u5fc3\u5e95\u5c42\u7684\u786c\u76d8\u7ed3\u6784\uff0cLinux\u5185\u6838\u4e2d\u7684\u8f6f\u4ef6\u5c42\u4e3a\u7528\u6237\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff08Virtual File System\uff0cVFS\uff09\u63a5\u53e3\uff0c\u8fd9\u6837\u7528\u6237\u5b9e\u9645\u4e0a\u5728\u64cd\u4f5c\u6587\u4ef6\u65f6\u5c31\u662f\u7edf\u4e00\u5bf9\u8fd9\u4e2a\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\u8fdb\u884c\u64cd\u4f5c\u4e86\u3002\u56fe6-6\u6240\u793a\u4e3aVFS\u7684\u67b6\u6784\u793a\u610f\u56fe\u3002\u4ece\u4e2d\u53ef\u89c1\uff0c\u5b9e\u9645\u6587\u4ef6\u7cfb\u7edf\u5728VFS\u4e0b\u9690\u85cf\u4e86\u81ea\u5df1\u7684\u7279\u6027\u548c\u7ec6\u8282\uff0c\u8fd9\u6837\u7528\u6237\u5728\u65e5\u5e38\u4f7f\u7528\u65f6\u4f1a\u89c9\u5f97\u201c\u6587\u4ef6\u7cfb\u7edf\u90fd\u662f\u4e00\u6837\u7684\u201d\uff0c\u4e5f\u5c31\u53ef\u4ee5\u968f\u610f\u4f7f\u7528\u5404\u79cd\u547d\u4ee4\u5728\u4efb\u4f55\u6587\u4ef6\u7cfb\u7edf\u4e2d\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c\u4e86\uff08\u6bd4\u5982\u4f7f\u7528cp\u547d\u4ee4\u6765\u590d\u5236\u6587\u4ef6\uff09\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-5 \u6587\u4ef6\u7684\u5b9e\u9645\u5927\u5c0f\u4e0e\u5360\u7528\u7a7a\u95f4\"\"<\/p>\n

\u56fe6-6\u00a0 VFS\u7684\u67b6\u6784\u793a\u610f\u56fe<\/p>\n

VFS\u4e5f\u6709\u70b9\u50cf\u4e00\u4e2a\u7ffb\u8bd1\u5b98\u3002\u6211\u4eec\u4e0d\u9700\u8981\u77e5\u9053\u5bf9\u65b9\u7684\u60c5\u51b5\uff0c\u53ea\u8981\u544a\u8bc9VFS\u60f3\u8fdb\u884c\u7684\u64cd\u4f5c\u662f\u4ec0\u4e48\uff0c\u5b83\u5c31\u4f1a\u81ea\u52a8\u5224\u65ad\u5bf9\u65b9\u80fd\u591f\u542c\u5f97\u61c2\u4ec0\u4e48\u6307\u4ee4\uff0c\u7136\u540e\u7ffb\u8bd1\u5e76\u4ea4\u4ee3\u4e0b\u53bb\u3002\u8fd9\u53ef\u4ee5\u8ba9\u7528\u6237\u4e0d\u7528\u64cd\u5fc3\u8fd9\u4e9b\u201c\u5c0f\u4e8b\u60c5\u201d\uff0c\u4e13\u6ce8\u4e8e\u81ea\u5df1\u7684\u64cd\u4f5c\u3002<\/p>\n

\n
\n

Tips<\/strong><\/h3>\n<\/div>\n
\n

\u5728\u533b\u5b66\u5708\u91cc\u6709\u53e5\u8fd9\u6837\u4e00\u53e5\u8bdd\uff0c\u201c\u5f53\u60a8\u5f00\u59cb\u5173\u6ce8\u8eab\u4f53\u67d0\u4e2a\u5668\u5b98\u7684\u65f6\u5019\uff0c\u5927\u6982\u7387\u662f\u5b83\u6700\u8fd1\u4e0d\u8212\u670d\u4e86\u201d\u3002\u7531\u4e8eVFS\u771f\u7684\u592a\u597d\u7528\u4e86\uff0c\u800c\u4e14\u51e0\u4e4e\u4e0d\u4f1a\u51fa\u73b0\u4efb\u4f55\u95ee\u9898\uff0c\u6240\u4ee5\u5982\u679c\u4e0d\u5728\u8fd9\u91cc\u8bb2\u4e00\u4e0b\u5b83\u7684\u7406\u8bba\uff0c\u76f8\u4fe1\u5f88\u591a\u540c\u5b66\u5f88\u53ef\u80fd\u5728\u591a\u5e74\u540e\u90fd\u4e0d\u77e5\u9053\u81ea\u5df1\u7528\u8fc7\u5b83\u3002<\/p>\n<\/div>\n<\/div>\n

6.4\u00a0\u6302\u8f7d\u786c\u4ef6\u8bbe\u5907<\/strong><\/span><\/h5>\n

\u6211\u4eec\u5728\u7528\u60ef\u4e86Windows\u7cfb\u7edf\u540e\u603b\u89c9\u5f97\u4e00\u5207\u90fd\u662f\u7406\u6240\u5f53\u7136\u7684\uff0c\u5e73\u65f6\u628aU\u76d8\u63d2\u5165\u5230\u7535\u8111\u540e\u4e5f\u4ece\u6765\u6ca1\u6709\u8003\u8651\u8fc7Windows\u7cfb\u7edf\u505a\u4e86\u54ea\u4e9b\u4e8b\u60c5\uff0c\u624d\u4f7f\u5f97\u6211\u4eec\u53ef\u4ee5\u8bbf\u95ee\u8fd9\u4e2aU\u76d8\u7684\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u4f1a\u9010\u4e00\u5b66\u4e60\u5728Linux\u7cfb\u7edf\u4e2d\u6302\u8f7d\u548c\u5378\u8f7d\u5b58\u50a8\u8bbe\u5907\u7684\u65b9\u6cd5\uff0c\u4ee5\u4fbf\u5927\u5bb6\u66f4\u597d\u5730\u4e86\u89e3Linux\u7cfb\u7edf\u6dfb\u52a0\u786c\u4ef6\u8bbe\u5907\u7684\u5de5\u4f5c\u539f\u7406\u548c\u6d41\u7a0b\u3002\u524d\u9762\u8bb2\u5230\uff0c\u5728\u62ff\u5230\u4e00\u5757\u5168\u65b0\u7684\u786c\u76d8\u5b58\u50a8\u8bbe\u5907\u540e\u8981\u5148\u5206\u533a\uff0c\u7136\u540e\u683c\u5f0f\u5316\uff0c\u6700\u540e\u624d\u80fd\u6302\u8f7d\u5e76\u6b63\u5e38\u4f7f\u7528\u3002\u201c\u5206\u533a\u201d\u548c\u201c\u683c\u5f0f\u5316\u201d\u5927\u5bb6\u4ee5\u524d\u7ecf\u5e38\u542c\u5230\uff0c\u4f46\u201c\u6302\u8f7d\u201d\u53c8\u662f\u4ec0\u4e48\u5462\uff1f<\/p>\n

\u5218\u9044\u8001\u5e08\u5728\u8fd9\u91cc\u7ed9\u60a8\u4e00\u4e2a\u6700\u7b80\u5355\u3001\u6700\u8d34\u5207\u7684\u89e3\u91ca\u2014\u5f53\u7528\u6237\u9700\u8981\u4f7f\u7528\u786c\u76d8\u8bbe\u5907\u6216\u5206\u533a\u4e2d\u7684\u6570\u636e\u65f6\uff0c\u9700\u8981\u5148\u5c06\u5176\u4e0e\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u76ee\u5f55\u6587\u4ef6\u8fdb\u884c\u5173\u8054\uff0c\u800c\u8fd9\u4e2a\u5173\u8054\u52a8\u4f5c\u5c31\u662f\u201c\u6302\u8f7d\u201d\u3002\u4e0b\u6587\u5c06\u5411\u8bfb\u8005\u9010\u6b65\u8bb2\u89e3\u5982\u4f55\u4f7f\u7528\u786c\u76d8\u8bbe\u5907\uff0c\u4f46\u662f\u9274\u4e8e\u4e0e\u6302\u8f7d\u76f8\u5173\u7684\u7406\u8bba\u77e5\u8bc6\u6bd4\u8f83\u590d\u6742\uff0c\u800c\u4e14\u5f88\u91cd\u8981\uff0c\u56e0\u6b64\u51b3\u5b9a\u518d\u62ff\u51fa\u4e00\u4e2a\u5c0f\u8282\u5355\u72ec\u8bb2\u89e3\uff0c\u8fd9\u6b21\u5e0c\u671b\u5927\u5bb6\u4e0d\u4ec5\u8981\u770b\u61c2\uff0c\u800c\u4e14\u8fd8\u8981\u8bb0\u4f4f\u3002<\/p>\n

mount\u547d\u4ee4\u7528\u4e8e\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\uff0c\u683c\u5f0f\u4e3a\u201cmount\u6587\u4ef6\u7cfb\u7edf \u6302\u8f7d\u76ee\u5f55\u201d\u3002mount\u547d\u4ee4\u4e2d\u53ef\u7528\u7684\u53c2\u6570\u53ca\u4f5c\u7528\u5982\u88686-3\u6240\u793a\u3002\u6302\u8f7d\u662f\u5728\u4f7f\u7528\u786c\u4ef6\u8bbe\u5907\u524d\u6240\u6267\u884c\u7684\u6700\u540e\u4e00\u6b65\u64cd\u4f5c\u3002\u53ea\u9700\u4f7f\u7528mount\u547d\u4ee4\u628a\u786c\u76d8\u8bbe\u5907\u6216\u5206\u533a\u4e0e\u4e00\u4e2a\u76ee\u5f55\u6587\u4ef6\u8fdb\u884c\u5173\u8054\uff0c\u7136\u540e\u5c31\u80fd\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e2d\u770b\u5230\u786c\u4ef6\u8bbe\u5907\u4e2d\u7684\u6570\u636e\u4e86\u3002\u5bf9\u4e8e\u6bd4\u8f83\u65b0\u7684Linux\u7cfb\u7edf\u6765\u8bb2\uff0c\u4e00\u822c\u4e0d\u9700\u8981\u4f7f\u7528-t\u53c2\u6570\u6765\u6307\u5b9a\u6587\u4ef6\u7cfb\u7edf\u7684\u7c7b\u578b\uff0cLinux\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8fdb\u884c\u5224\u65ad\u3002\u800cmount\u4e2d\u7684-a\u53c2\u6570\u5219\u5389\u5bb3\u4e86\uff0c\u5b83\u4f1a\u5728\u6267\u884c\u540e\u81ea\u52a8\u68c0\u67e5\/etc\/fstab\u6587\u4ef6\u4e2d\u6709\u65e0\u88ab\u758f\u6f0f\u6302\u8f7d\u7684\u8bbe\u5907\u6587\u4ef6\uff0c\u5982\u679c\u6709\uff0c\u5219\u8fdb\u884c\u81ea\u52a8\u6302\u8f7d\u64cd\u4f5c\u3002<\/p>\n

\u88686-3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 mount\u547d\u4ee4\u4e2d\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528<\/p>\n\n\n\n\n\n
\u53c2\u6570<\/td>\n\u4f5c\u7528<\/td>\n<\/tr>\n
-a<\/td>\n\u6302\u8f7d\u6240\u6709\u5728\/etc\/fstab\u4e2d\u5b9a\u4e49\u7684\u6587\u4ef6\u7cfb\u7edf<\/td>\n<\/tr>\n
-t<\/td>\n\u6307\u5b9a\u6587\u4ef6\u7cfb\u7edf\u7684\u7c7b\u578b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

\u4f8b\u5982\uff0c\u8981\u628a\u8bbe\u5907\/dev\/sdb2\u6302\u8f7d\u5230\/backup\u76ee\u5f55\uff0c\u53ea\u9700\u8981\u5728mount\u547d\u4ee4\u4e2d\u586b\u5199\u8bbe\u5907\u4e0e\u6302\u8f7d\u76ee\u5f55\u53c2\u6570\u5c31\u884c\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5224\u65ad\u8981\u6302\u8f7d\u6587\u4ef6\u7684\u7c7b\u578b\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

[root@linuxprobe\u00a0~]#\u00a0mount\u00a0\/dev\/sdb2\u00a0\/backup<\/pre>\n

\u5982\u679c\u5728\u5de5\u4f5c\u4e2d\u8981\u6302\u8f7d\u4e00\u5757\u7f51\u7edc\u5b58\u50a8\u8bbe\u5907\uff0c\u8be5\u8bbe\u5907\u7684\u540d\u5b57\u53ef\u80fd\u4f1a\u53d8\u6765\u53d8\u53bb\uff0c\u8fd9\u6837\u518d\u5199\u4e3asdb\u5c31\u4e0d\u592a\u5408\u9002\u4e86\u3002\u8fd9\u65f6\u63a8\u8350\u7528UUID\uff08Universally Unique Identifier\uff0c\u901a\u7528\u552f\u4e00\u8bc6\u522b\u7801\uff09\u8fdb\u884c\u6302\u8f7d\u64cd\u4f5c\u3002UUID\u662f\u4e00\u4e32\u7528\u4e8e\u6807\u8bc6\u6bcf\u5757\u72ec\u7acb\u786c\u76d8\u7684\u5b57\u7b26\u4e32\uff0c\u5177\u6709\u552f\u4e00\u6027\u53ca\u7a33\u5b9a\u6027\uff0c\u7279\u522b\u9002\u5408\u7528\u6765\u6302\u8f7d\u7f51\u7edc\u8bbe\u5907\u3002\u90a3\u4e48\uff0c\u600e\u4e48\u624d\u80fd\u5f97\u77e5\u72ec\u7acb\u786c\u76d8\u7684UUID\u5462\uff1f\u7b54\u6848\u662f\u4f7f\u7528blkid\u547d\u4ee4\u3002<\/p>\n

blkid\u547d\u4ee4\u7528\u4e8e\u663e\u793a\u8bbe\u5907\u7684\u5c5e\u6027\u4fe1\u606f\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201cblock id\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cblkid [\u8bbe\u5907\u540d]\u201d\u3002\u4f7f\u7528blkid\u547d\u4ee4\u6765\u67e5\u8be2\u8bbe\u5907UUID\u7684\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n

[root@linuxprobe ~]# blkid\r\n\/dev\/sdb1: UUID=\"2db66eb4-d9c1-4522-8fab-ac074cd3ea0b\" TYPE=\"xfs\" PARTUUID=\"eb23857a-01\"\r\n\/dev\/sdb2: UUID=\"478fRb-1pOc-oPXv-fJOS-tTvH-KyBz-VaKwZG<\/strong>\" TYPE=\"ext4\" PARTUUID=\"eb23857a-02\"<\/pre>\n

\u6709\u4e86\u8bbe\u5907\u7684UUID\u503c\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u7528\u5b83\u6302\u8f7d\u7f51\u7edc\u8bbe\u5907\u4e86\uff1a<\/p>\n

[root@linuxprobe ~]# mount UUID=478fRb-1pOc-oPXv-fJOS-tTvH-KyBz-VaKwZG \/backup<\/code><\/pre>\n

\u867d\u7136\u6309\u7167\u4e0a\u9762\u7684\u65b9\u6cd5\u6267\u884cmount\u547d\u4ee4\u540e\u5c31\u80fd\u7acb\u5373\u4f7f\u7528\u6587\u4ef6\u7cfb\u7edf\u4e86\uff0c\u4f46\u7cfb\u7edf\u5728\u91cd\u542f\u540e\u6302\u8f7d\u5c31\u4f1a\u5931\u6548\uff0c\u4e5f\u5c31\u662f\u8bf4\u9700\u8981\u6bcf\u6b21\u5f00\u673a\u540e\u90fd\u624b\u52a8\u6302\u8f7d\u4e00\u4e0b\u3002\u8fd9\u80af\u5b9a\u4e0d\u662f\u6211\u4eec\u60f3\u8981\u7684\u6548\u679c\uff0c\u5982\u679c\u60f3\u8ba9\u786c\u4ef6\u8bbe\u5907\u548c\u76ee\u5f55\u6c38\u4e45\u5730\u8fdb\u884c\u81ea\u52a8\u5173\u8054\uff0c\u5c31\u5fc5\u987b\u628a\u6302\u8f7d\u4fe1\u606f\u6309\u7167\u6307\u5b9a\u7684\u586b\u5199\u683c\u5f0f\u201c\u8bbe\u5907\u6587\u4ef6 \u6302\u8f7d\u76ee\u5f55 \u683c\u5f0f\u7c7b\u578b \u6743\u9650\u9009\u9879 \u662f\u5426\u5907\u4efd \u662f\u5426\u81ea\u68c0\u201d\uff08\u5404\u5b57\u6bb5\u7684\u610f\u4e49\u89c1\u88686-4\uff09\u5199\u5165\u5230\/etc\/fstab\u6587\u4ef6\u4e2d\u3002\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u5305\u542b\u7740\u6302\u8f7d\u6240\u9700\u7684\u8bf8\u591a\u4fe1\u606f\u9879\u76ee\uff0c\u4e00\u65e6\u914d\u7f6e\u597d\u4e4b\u540e\u5c31\u80fd\u4e00\u52b3\u6c38\u9038\u4e86\u3002<\/p>\n

\u88686-4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u7528\u4e8e\u6302\u8f7d\u4fe1\u606f\u7684\u6307\u5b9a\u586b\u5199\u683c\u5f0f\u4e2d\uff0c\u5404\u5b57\u6bb5\u6240\u8868\u793a\u7684\u610f\u4e49<\/p>\n\n\n\n\n\n\n\n\n\n
\u5b57\u6bb5<\/td>\n\u610f\u4e49<\/td>\n<\/tr>\n
\u8bbe\u5907\u6587\u4ef6<\/td>\n\u4e00\u822c\u4e3a\u8bbe\u5907\u7684\u8def\u5f84+\u8bbe\u5907\u540d\u79f0\uff0c\u4e5f\u53ef\u4ee5\u5199\u552f\u4e00\u8bc6\u522b\u7801\uff08UUID\uff0cUniversally Unique Identifier\uff09<\/td>\n<\/tr>\n
\u6302\u8f7d\u76ee\u5f55<\/td>\n\u6307\u5b9a\u8981\u6302\u8f7d\u5230\u7684\u76ee\u5f55\uff0c\u9700\u5728\u6302\u8f7d\u524d\u521b\u5efa\u597d<\/td>\n<\/tr>\n
\u683c\u5f0f\u7c7b\u578b<\/td>\n\u6307\u5b9a\u6587\u4ef6\u7cfb\u7edf\u7684\u683c\u5f0f\uff0c\u6bd4\u5982Ext3\u3001Ext4\u3001XFS\u3001SWAP\u3001iso9660\uff08\u6b64\u4e3a\u5149\u76d8\u8bbe\u5907\uff09\u7b49<\/td>\n<\/tr>\n
\u6743\u9650\u9009\u9879<\/td>\n\u82e5\u8bbe\u7f6e\u4e3adefaults\uff0c\u5219\u9ed8\u8ba4\u6743\u9650\u4e3a\uff1arw, suid, dev, exec, auto, nouser, async<\/td>\n<\/tr>\n
\u662f\u5426\u5907\u4efd<\/td>\n\u82e5\u4e3a1\u5219\u5f00\u673a\u540e\u4f7f\u7528dump\u8fdb\u884c\u78c1\u76d8\u5907\u4efd\uff0c\u4e3a0\u5219\u4e0d\u5907\u4efd<\/td>\n<\/tr>\n
\u662f\u5426\u81ea\u68c0<\/td>\n\u82e5\u4e3a1\u5219\u5f00\u673a\u540e\u81ea\u52a8\u8fdb\u884c\u78c1\u76d8\u81ea\u68c0\uff0c\u4e3a0\u5219\u4e0d\u81ea\u68c0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

\u5982\u679c\u60f3\u5c06\u6587\u4ef6\u7cfb\u7edf\u4e3aExt4\u7684\u786c\u4ef6\u8bbe\u5907\/dev\/sdb2\u5728\u5f00\u673a\u540e\u81ea\u52a8\u6302\u8f7d\u5230\/backup\u76ee\u5f55\u4e0a\uff0c\u5e76\u4fdd\u6301\u9ed8\u8ba4\u6743\u9650\u4e14\u65e0\u987b\u5f00\u673a\u81ea\u68c0\uff0c\u5c31\u9700\u8981\u5728\/etc\/fstab\u6587\u4ef6\u4e2d\u5199\u5165\u4e0b\u9762\u7684\u4fe1\u606f\uff0c\u8fd9\u6837\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u4e5f\u4f1a\u6210\u529f\u6302\u8f7d\u3002<\/p>\n

[root@linuxprobe ~]# vim \/etc\/fstab\r\n#\r\n# \/etc\/fstab\r\n# Created by anaconda on Tue Jul 21 05:03:40 2020\r\n#\r\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk\/'.\r\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info.\r\n#\r\n# After editing this file, run 'systemctl daemon-reload' to update systemd\r\n# units generated from this file.\r\n#\r\n\/dev\/mapper\/rhel-root                     \/        xfs     defaults    0 0\r\nUUID=812b1f7c-8b5b-43da-8c06-b9999e0fe48b \/boot    xfs     defaults    0 0\r\n\/dev\/mapper\/rhel-swap                     swap     swap    defaults    0 0\r\n\/dev\/sdb2                                 \/backup  ext4    defaults    0 0<\/strong><\/pre>\n

\u7531\u4e8e\u540e\u9762\u9700\u8981\u4f7f\u7528\u7cfb\u7edf\u955c\u50cf\u5236\u4f5cYum\/DNF\u8f6f\u4ef6\u4ed3\u5e93\uff0c\u6211\u4eec\u63d0\u524d\u628a\u5149\u76d8\u8bbe\u5907\u6302\u8f7d\u5230\/media\/cdrom\u76ee\u5f55\u4e2d\u3002\u5149\u76d8\u8bbe\u5907\u7684\u6587\u4ef6\u7cfb\u7edf\u683c\u5f0f\u662fiso9660\uff1a<\/p>\n

[root@linuxprobe ~]# vim \/etc\/fstab\r\n#\r\n# \/etc\/fstab\r\n# Created by anaconda on Tue Jul 21 05:03:40 2020\r\n#\r\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk\/'.\r\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info.\r\n#\r\n# After editing this file, run 'systemctl daemon-reload' to update systemd\r\n# units generated from this file.\r\n#\r\n\/dev\/mapper\/rhel-root                     \/              xfs        defaults       0 0\r\nUUID=812b1f7c-8b5b-43da-8c06-b9999e0fe48b \/boot          xfs        defaults       0 0\r\n\/dev\/mapper\/rhel-swap                     swap           swap       defaults       0 0\r\n\/dev\/sdb2                                 \/backup        ext4       defaults       0 0\r\n\/dev\/cdrom                                \/media\/cdrom   iso9660    defaults       0 0<\/strong><\/pre>\n

\u5199\u5165\u5230\/etc\/fstab\u6587\u4ef6\u4e2d\u7684\u8bbe\u5907\u4fe1\u606f\u5e76\u4e0d\u4f1a\u7acb\u5373\u751f\u6548\uff0c\u9700\u8981\u4f7f\u7528mount -a\u53c2\u6570\u8fdb\u884c\u81ea\u52a8\u6302\u8f7d\uff1a<\/p>\n

[root@linuxprobe ~]# mount -a<\/pre>\n

df\u547d\u4ee4\u7528\u4e8e\u67e5\u770b\u5df2\u6302\u8f7d\u7684\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201cdisk free\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cdf -h\u201d\u3002<\/p>\n

\u5982\u679c\u60f3\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u8bbe\u5907\u7684\u6302\u8f7d\u60c5\u51b5\uff0c\u975e\u5e38\u63a8\u8350\u5927\u5bb6\u8bd5\u8bd5df\u547d\u4ee4\u3002\u5b83\u4e0d\u4ec5\u80fd\u591f\u5217\u51fa\u7cfb\u7edf\u4e2d\u6b63\u5728\u4f7f\u7528\u7684\u8bbe\u5907\u6709\u54ea\u4e9b\uff0c\u8fd8\u53ef\u4ee5\u7528-h\u53c2\u6570\u4fbf\u6377\u5730\u5bf9\u5b58\u50a8\u5bb9\u91cf\u8fdb\u884c\u201c\u8fdb\u4f4d\u201d\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u5728\u9047\u523010240K\u7684\u65f6\u5019\u4f1a\u81ea\u52a8\u8fdb\u4f4d\u5199\u621010M\uff0c\u975e\u5e38\u65b9\u4fbf\u6211\u4eec\u7684\u9605\u8bfb\u3002<\/p>\n

[root@linuxprobe~]# df -h\r\nFilesystem             Size  Used Avail Use% Mounted on\r\ndevtmpfs               969M     0  969M   0% \/dev\r\ntmpfs                  984M     0  984M   0% \/dev\/shm\r\ntmpfs                  984M   18M  966M   2% \/run\r\ntmpfs                  984M     0  984M   0% \/sys\/fs\/cgroup\r\n\/dev\/mapper\/rhel-root   17G  3.9G   14G  23% \/\r\n\/dev\/sda1             1014M  152M  863M  15% \/boot\r\n\/dev\/sdb2              480M   20M  460M   4% \/backup<\/strong>\r\ntmpfs                  197M   16K  197M   1% \/run\/user\/42\r\ntmpfs                  197M  3.5M  194M   2% \/run\/user\/0\r\n\/dev\/sr0               6.7G  6.7G     0 100% \/media\/cdrom<\/strong><\/pre>\n

\u5bf9\u4e86\uff01\u8bf4\u5230\u7f51\u7edc\u5b58\u50a8\u8bbe\u5907\uff0c\u5efa\u8bae\u60a8\u5728fstab\u6587\u4ef6\u6302\u8f7d\u4fe1\u606f\u4e2d\u52a0\u4e0a_netdev\u53c2\u6570\u3002\u52a0\u4e0a\u540e\u7cfb\u7edf\u4f1a\u7b49\u8054\u7f51\u6210\u529f\u540e\u518d\u5c1d\u8bd5\u6302\u8f7d\u8fd9\u5757\u7f51\u7edc\u5b58\u50a8\u8bbe\u5907\uff0c\u4ece\u800c\u907f\u514d\u4e86\u5f00\u673a\u65f6\u95f4\u8fc7\u957f\u6216\u5931\u8d25\u7684\u60c5\u51b5\uff08\u7b2c17\u7ae0\u5b66\u4e60iSCSI\u6280\u672f\u65f6\u53ef\u4ee5\u7528\u4e0a\uff09\u3002<\/p>\n

[root@linuxprobe ~]# vim \/etc\/fstab\r\n#\r\n# \/etc\/fstab\r\n# Created by anaconda on Tue Jul 21 05:03:40 2020\r\n#\r\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk\/'.\r\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info.\r\n#\r\n# After editing this file, run 'systemctl daemon-reload' to update systemd\r\n# units generated from this file.\r\n#\r\n\/dev\/mapper\/rhel-root                       \/              xfs       defaults            0 0\r\nUUID=812b1f7c-8b5b-43da-8c06-b9999e0fe48b   \/boot          xfs       defaults            0 0\r\n\/dev\/mapper\/rhel-swap                       swap           swap      defaults            0 0\r\n\/dev\/sdb2                                   \/backup        ext4      defaults,_netdev   <\/strong> 0 0\r\n\/dev\/cdrom                                  \/media\/cdrom   iso9660   defaults            0 0\r\n<\/pre>\n

\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u4f7f\u7528\u786c\u4ef6\u8d44\u6e90\uff0c\u800c\u5378\u8f7d\u6587\u4ef6\u7cfb\u7edf\u5219\u610f\u5473\u4e0d\u518d\u4f7f\u7528\u786c\u4ef6\u7684\u8bbe\u5907\u8d44\u6e90\u3002\u65e2\u7136\u6302\u8f7d\u64cd\u4f5c\u5c31\u662f\u628a\u786c\u4ef6\u8bbe\u5907\u4e0e\u76ee\u5f55\u4e24\u8005\u8fdb\u884c\u5173\u8054\u7684\u52a8\u4f5c\uff0c\u90a3\u4e48\u5378\u8f7d\u64cd\u4f5c\u53ea\u9700\u8981\u8bf4\u660e\u60f3\u8981\u53d6\u6d88\u5173\u8054\u7684\u8bbe\u5907\u6587\u4ef6\u6216\u6302\u8f7d\u76ee\u5f55\u7684\u5176\u4e2d\u4e00\u9879\u5373\u53ef\uff0c\u4e00\u822c\u4e0d\u9700\u8981\u52a0\u5176\u4ed6\u989d\u5916\u7684\u53c2\u6570\u3002<\/p>\n

umount\u547d\u4ee4\u7528\u4e8e\u5378\u8f7d\u8bbe\u5907\u6216\u6587\u4ef6\u7cfb\u7edf\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201cun mount\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cumount [\u8bbe\u5907\u6587\u4ef6\/\u6302\u8f7d\u76ee\u5f55]\u201d\u3002<\/p>\n

[root@linuxprobe ~]# umount \/dev\/sdb2<\/pre>\n

\u5982\u679c\u6211\u4eec\u5f53\u524d\u5c31\u5904\u4e8e\u8bbe\u5907\u6240\u6302\u8f7d\u7684\u76ee\u5f55\uff0c\u7cfb\u7edf\u4f1a\u63d0\u793a\u8be5\u8bbe\u5907\u7e41\u5fd9\uff0c\u6b64\u65f6\u53ea\u9700\u8981\u9000\u51fa\u5230\u5176\u4ed6\u76ee\u5f55\u540e\u518d\u5c1d\u8bd5\u4e00\u6b21\u5c31\u884c\u4e86\u3002\u8f7b\u677e\u641e\u5b9a\u3002<\/p>\n

[root@linuxprobe ~]# cd \/media\/cdrom\/\r\n[root@linuxprobe cdrom]# umount \/dev\/cdrom\r\numount: \/media\/cdrom: target is busy.\r\n[root@linuxprobe  cdrom]# cd ~\r\n[root@linuxprobe ~]# umount \/dev\/cdrom\r\n[root@linuxprobe ~]#<\/pre>\n
\n
\n

Tips<\/strong><\/h3>\n<\/div>\n
\n

\u6302\u8f7d\u64cd\u4f5c\u5c31\u50cf\u4e24\u4eba\u7ed3\u4e3a\u592b\u59bb\uff0c\u53cc\u65b9\u9700\u8981\u540c\u65f6\u5230\u573a\uff0c\u4fe1\u606f\u4e00\u65e6\u88ab\u767b\u8bb0\u5230\u6c11\u653f\u5c40\u7684\u7cfb\u7edf\u4e2d\uff0c\u518d\u60f3\u91cd\u5a5a\uff08\u91cd\u590d\u6302\u8f7d\u67d0\u8bbe\u5907\uff09\u53ef\u5c31\u4e0d\u884c\u55bd\u3002<\/p>\n<\/div>\n<\/div>\n

\u6700\u540e\u518d\u6559\u7ed9\u540c\u5b66\u4eec\u4e00\u4e2a\u5c0f\u6280\u5de7\u3002\u5982\u679c\u7cfb\u7edf\u4e2d\u786c\u76d8\u7279\u522b\u591a\uff0c\u5206\u533a\u7279\u522b\u591a\uff0c\u6211\u4eec\u90fd\u4e0d\u77e5\u9053\u5b83\u4eec\u662f\u5426\u6709\u88ab\u4f7f\u7528\uff0c\u53c8\u6216\u8005\u662f\u505a\u4e86\u4e9b\u4ec0\u4e48\u3002\u6b64\u65f6\uff0c\u5c31\u53ef\u4ee5\u7528lsblk\u547d\u4ee4\u4ee5\u6811\u72b6\u56fe\u7684\u5f62\u5f0f\u5217\u4e3e\u4e00\u4e0b\u4e86\u3002<\/p>\n

lsblk\u547d\u4ee4\u7528\u4e8e\u67e5\u770b\u5df2\u6302\u8f7d\u7684\u78c1\u76d8\u7684\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201clist block id\u201d\uff0c\u8f93\u5165\u8be5\u547d\u4ee4\u540e\u6309\u56de\u8f66\u952e\u6267\u884c\u5373\u53ef\u3002<\/p>\n

[root@linuxprobe ~]# lsblk \r\nNAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\r\nsda             8:0    0   20G  0 disk \r\n\u251c\u2500sda1          8:1    0    1G  0 part \/boot\r\n\u2514\u2500sda2          8:2    0   19G  0 part \r\n  \u251c\u2500rhel-root 253:0    0   17G  0 lvm  \/\r\n  \u2514\u2500rhel-swap 253:1    0    2G  0 lvm  [SWAP]\r\nsr0            11:0    1  6.6G  0 rom  \/media\/cdrom\r\n<\/pre>\n
6.5 \u6dfb\u52a0\u786c\u76d8\u8bbe\u5907<\/strong><\/span><\/h5>\n

\u6839\u636e\u524d\u6587\u8bb2\u89e3\u7684\u4e0e\u7ba1\u7406\u786c\u4ef6\u8bbe\u5907\u76f8\u5173\u7684\u7406\u8bba\u77e5\u8bc6\uff0c\u6211\u4eec\u5148\u6765\u7406\u6e05\u4e00\u4e0b\u6dfb\u52a0\u786c\u76d8\u8bbe\u5907\u7684\u64cd\u4f5c\u601d\u8def\uff1a\u9996\u5148\u9700\u8981\u5728\u865a\u62df\u673a\u4e2d\u6a21\u62df\u6dfb\u52a0\u5165\u4e00\u5757\u65b0\u7684\u786c\u76d8\u5b58\u50a8\u8bbe\u5907\uff0c\u7136\u540e\u518d\u8fdb\u884c\u5206\u533a\u3001\u683c\u5f0f\u5316\u3001\u6302\u8f7d\u7b49\u64cd\u4f5c\uff0c\u6700\u540e\u901a\u8fc7\u68c0\u67e5\u7cfb\u7edf\u7684\u6302\u8f7d\u72b6\u6001\u5e76\u771f\u5b9e\u5730\u4f7f\u7528\u786c\u76d8\u6765\u9a8c\u8bc1\u786c\u76d8\u8bbe\u5907\u662f\u5426\u6210\u529f\u6dfb\u52a0\u3002<\/p>\n

\u9274\u4e8e\u6211\u4eec\u4e0d\u9700\u8981\u4e3a\u4e86\u505a\u8fd9\u4e2a\u5b9e\u9a8c\u800c\u7279\u610f\u4e70\u4e00\u5757\u771f\u5b9e\u7684\u786c\u76d8\uff0c\u800c\u662f\u901a\u8fc7\u865a\u62df\u673a\u8f6f\u4ef6\u8fdb\u884c\u786c\u4ef6\u6a21\u62df\uff0c\u56e0\u6b64\u8fd9\u518d\u6b21\u4f53\u73b0\u51fa\u4e86\u4f7f\u7528\u865a\u62df\u673a\u8f6f\u4ef6\u7684\u597d\u5904\u3002\u5177\u4f53\u7684\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\u3002<\/p>\n

\u9996\u5148\u628a\u865a\u62df\u673a\u7cfb\u7edf\u5173\u673a\uff0c\u7a0d\u7b49\u51e0\u5206\u949f\u4f1a\u81ea\u52a8\u8fd4\u56de\u5230\u865a\u62df\u673a\u7ba1\u7406\u4e3b\u754c\u9762\uff0c\u7136\u540e\u5355\u51fb\u201c\u7f16\u8f91\u865a\u62df\u673a\u8bbe\u7f6e\u201d\u9009\u9879\uff0c\u5728\u5f39\u51fa\u7684\u754c\u9762\u4e2d\u5355\u51fb\u201c\u6dfb\u52a0\u201d\u6309\u94ae\uff0c\u65b0\u589e\u4e00\u5757\u786c\u4ef6\u8bbe\u5907\uff0c\u5982\u56fe6-7\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-7\u00a0 \u5728\u865a\u62df\u673a\u7cfb\u7edf\u4e2d\u6dfb\u52a0\u786c\u4ef6\u8bbe\u5907<\/p>\n

\u9009\u62e9\u60f3\u8981\u6dfb\u52a0\u7684\u786c\u4ef6\u7c7b\u578b\u4e3a\u201c\u786c\u76d8\u201d\uff0c\u7136\u540e\u5355\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\u5c31\u53ef\u4ee5\u4e86\uff0c\u5982\u56fe6-8\u6240\u793a\u3002\u8fd9\u786e\u5b9e\u6ca1\u6709\u4ec0\u4e48\u9700\u8981\u8fdb\u4e00\u6b65\u89e3\u91ca\u7684\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-8\u00a0 \u9009\u62e9\u6dfb\u52a0\u786c\u4ef6\u7c7b\u578b<\/p>\n

\u9009\u62e9\u865a\u62df\u786c\u76d8\u7684\u7c7b\u578b\u4e3aSATA\uff0c\u5e76\u5355\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\uff0c\u5982\u56fe6-9\u6240\u793a\u3002\u8fd9\u6837\u865a\u62df\u673a\u4e2d\u7684\u8bbe\u5907\u540d\u79f0\u8fc7\u4e00\u4f1a\u513f\u540e\u5e94\u8be5\u4e3a\/dev\/sdb\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-9\u00a0 \u9009\u62e9\u786c\u76d8\u8bbe\u5907\u7c7b\u578b<\/p>\n

\u9009\u4e2d\u201c\u521b\u5efa\u65b0\u865a\u62df\u78c1\u76d8\u201d\u5355\u9009\u6309\u94ae\uff08\u800c\u4e0d\u662f\u5176\u4ed6\u9009\u9879\uff09\uff0c\u518d\u6b21\u5355\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\uff0c\u5982\u56fe6-10\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-10\u00a0 \u9009\u62e9\u201c\u521b\u5efa\u65b0\u865a\u62df\u78c1\u76d8\u201d\u9009\u9879<\/p>\n

\u5c06\u201c\u6700\u5927\u78c1\u76d8\u5927\u5c0f\u201d\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u768420GB\u3002\u8fd9\u4e2a\u6570\u503c\u662f\u9650\u5236\u8fd9\u53f0\u865a\u62df\u673a\u6240\u4f7f\u7528\u7684\u6700\u5927\u786c\u76d8\u7a7a\u95f4\uff0c\u800c\u4e0d\u662f\u7acb\u5373\u5c06\u5176\u586b\u6ee1\uff0c\u56e0\u6b64\u9ed8\u8ba420GB\u5c31\u5f88\u5408\u9002\u4e86\u3002\u5355\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\u6309\u94ae\uff0c\u5982\u56fe6-11\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-11\u00a0 \u8bbe\u7f6e\u786c\u76d8\u7684\u6700\u5927\u4f7f\u7528\u7a7a\u95f4<\/p>\n

\u8bbe\u7f6e\u78c1\u76d8\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u548c\u4fdd\u5b58\u4f4d\u7f6e\uff08\u8fd9\u91cc\u91c7\u7528\u9ed8\u8ba4\u8bbe\u7f6e\u5373\u53ef\uff0c\u65e0\u987b\u4fee\u6539\uff09\uff0c\u76f4\u63a5\u5355\u51fb\u201c\u5b8c\u6210\u201d\u6309\u94ae\uff0c\u5982\u56fe6-12\u6240\u793a\u3002<\/p>\n

\n

\"\"<\/p>\n<\/div>\n

\u56fe6-12\u00a0 \u8bbe\u7f6e\u78c1\u76d8\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u548c\u4fdd\u5b58\u4f4d\u7f6e<\/p>\n

\u5c06\u65b0\u786c\u76d8\u6dfb\u52a0\u597d\u540e\u5c31\u53ef\u4ee5\u770b\u5230\u8bbe\u5907\u4fe1\u606f\u4e86\u3002\u8fd9\u91cc\u4e0d\u9700\u8981\u505a\u4efb\u4f55\u4fee\u6539\uff0c\u76f4\u63a5\u5355\u51fb\u201c\u786e\u5b9a\u201d\u6309\u94ae\u540e\u5c31\u53ef\u4ee5\u542f\u865a\u62df\u673a\u4e86\uff0c\u5982\u56fe6-13\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-13\u00a0 \u67e5\u770b\u865a\u62df\u673a\u786c\u4ef6\u8bbe\u7f6e\u4fe1\u606f<\/p>\n

\u5728\u865a\u62df\u673a\u4e2d\u6a21\u62df\u6dfb\u52a0\u4e86\u786c\u76d8\u8bbe\u5907\u540e\u5c31\u5e94\u8be5\u80fd\u770b\u5230\u62bd\u8c61\u540e\u7684\u786c\u76d8\u8bbe\u5907\u6587\u4ef6\u4e86\u3002\u6309\u7167\u524d\u6587\u8bb2\u89e3\u7684udev\u670d\u52a1\u547d\u540d\u89c4\u5219\uff0c\u7b2c\u4e8c\u4e2a\u88ab\u8bc6\u522b\u7684SATA\u8bbe\u5907\u5e94\u8be5\u4f1a\u88ab\u4fdd\u5b58\u4e3a\/dev\/sdb\uff0c\u8fd9\u4e2a\u5c31\u662f\u786c\u76d8\u8bbe\u5907\u6587\u4ef6\u4e86\u3002\u4f46\u5728\u5f00\u59cb\u4f7f\u7528\u8be5\u786c\u76d8\u4e4b\u524d\u8fd8\u9700\u8981\u8fdb\u884c\u5206\u533a\u64cd\u4f5c\uff0c\u4f8b\u5982\u4ece\u4e2d\u53d6\u51fa\u4e00\u4e2a2GB\u7684\u5206\u533a\u8bbe\u5907\u4ee5\u4f9b\u540e\u9762\u7684\u64cd\u4f5c\u4f7f\u7528\u3002<\/p>\n

fdisk\u547d\u4ee4\u7528\u4e8e\u65b0\u5efa\u3001\u4fee\u6539\u53ca\u5220\u9664\u78c1\u76d8\u7684\u5206\u533a\u8868\u4fe1\u606f\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201cformat disk\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cfdisk\u78c1\u76d8\u540d\u79f0\u201d\u3002<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u7ba1\u7406\u786c\u76d8\u8bbe\u5907\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u5c31\u5f53\u5c5efdisk\u547d\u4ee4\u4e86\u3002\u5b83\u63d0\u4f9b\u4e86\u96c6\u6dfb\u52a0\u3001\u5220\u9664\u3001\u8f6c\u6362\u5206\u533a\u7b49\u529f\u80fd\u4e8e\u4e00\u8eab\u7684\u201c\u4e00\u7ad9\u5f0f\u5206\u533a\u670d\u52a1\u201d\u3002\u4e0d\u8fc7\u4e0e\u524d\u9762\u8bb2\u89e3\u7684\u76f4\u63a5\u5199\u5230\u547d\u4ee4\u540e\u9762\u7684\u53c2\u6570\u4e0d\u540c\uff0c\u8fd9\u6761\u547d\u4ee4\u7684\u53c2\u6570\uff08\u89c1\u88686-5\uff09\u662f\u4ea4\u4e92\u5f0f\u7684\u4e00\u95ee\u4e00\u7b54\u7684\u5f62\u5f0f\uff0c\u56e0\u6b64\u5728\u7ba1\u7406\u786c\u76d8\u8bbe\u5907\u65f6\u7279\u522b\u65b9\u4fbf\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u52a8\u6001\u8c03\u6574\u3002<\/p>\n

\u88686-5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fdisk\u547d\u4ee4\u4e2d\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528<\/p>\n\n\n\n\n\n\n\n\n\n\n\n
\u53c2\u6570<\/td>\n\u4f5c\u7528<\/td>\n<\/tr>\n
m<\/td>\n\u67e5\u770b\u5168\u90e8\u53ef\u7528\u7684\u53c2\u6570<\/td>\n<\/tr>\n
n<\/td>\n\u6dfb\u52a0\u65b0\u7684\u5206\u533a<\/td>\n<\/tr>\n
d<\/td>\n\u5220\u9664\u67d0\u4e2a\u5206\u533a\u4fe1\u606f<\/td>\n<\/tr>\n
l<\/td>\n\u5217\u51fa\u6240\u6709\u53ef\u7528\u7684\u5206\u533a\u7c7b\u578b<\/td>\n<\/tr>\n
t<\/td>\n\u6539\u53d8\u67d0\u4e2a\u5206\u533a\u7684\u7c7b\u578b<\/td>\n<\/tr>\n
p<\/td>\n\u67e5\u770b\u5206\u533a\u8868\u4fe1\u606f<\/td>\n<\/tr>\n
w<\/td>\n\u4fdd\u5b58\u5e76\u9000\u51fa<\/td>\n<\/tr>\n
q<\/td>\n\u4e0d\u4fdd\u5b58\u76f4\u63a5\u9000\u51fa<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

\u9996\u5148\u4f7f\u7528fdisk\u547d\u4ee4\u6765\u5c1d\u8bd5\u7ba1\u7406\/dev\/sdb\u786c\u76d8\u8bbe\u5907\u3002\u5728\u770b\u5230\u63d0\u793a\u4fe1\u606f\u540e\u8f93\u5165\u53c2\u6570p\u6765\u67e5\u770b\u786c\u76d8\u8bbe\u5907\u5185\u5df2\u6709\u7684\u5206\u533a\u4fe1\u606f\uff0c\u5176\u4e2d\u5305\u62ec\u4e86\u786c\u76d8\u7684\u5bb9\u91cf\u5927\u5c0f\u3001\u6247\u533a\u4e2a\u6570\u7b49\u4fe1\u606f\uff1a<\/p>\n

[root@linuxprobe ~]# fdisk \/dev\/sdb\r\n\r\nWelcome to fdisk (util-linux 2.32.1).\r\nChanges will remain in memory only, until you decide to write them.\r\nBe careful before using the write command.\r\n\r\nDevice does not contain a recognized partition table.\r\nCreated a new DOS disklabel with disk identifier 0x88b2c2b0.\r\n\r\nCommand (m for help): p<\/strong>\r\nDisk \/dev\/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0x88b2c2b0\r\n<\/pre>\n

\u8f93\u5165\u53c2\u6570n\u5c1d\u8bd5\u6dfb\u52a0\u65b0\u7684\u5206\u533a\u3002\u7cfb\u7edf\u4f1a\u8981\u6c42\u7528\u6237\u662f\u9009\u62e9\u7ee7\u7eed\u8f93\u5165\u53c2\u6570p\u6765\u521b\u5efa\u4e3b\u5206\u533a\uff0c\u8fd8\u662f\u8f93\u5165\u53c2\u6570e\u6765\u521b\u5efa\u6269\u5c55\u5206\u533a\u3002\u8fd9\u91cc\u8f93\u5165\u53c2\u6570p\u6765\u521b\u5efa\u4e00\u4e2a\u4e3b\u5206\u533a\uff1a<\/p>\n

Command (m for help): n<\/strong>\r\nPartition type\r\n   p   primary (0 primary, 0 extended, 4 free)\r\n   e   extended (container for logical partitions)\r\nSelect (default p): p<\/strong>\r\n<\/pre>\n

\u5728\u786e\u8ba4\u521b\u5efa\u4e00\u4e2a\u4e3b\u5206\u533a\u540e\uff0c\u7cfb\u7edf\u8981\u6c42\u7528\u6237\u5148\u8f93\u5165\u4e3b\u5206\u533a\u7684\u7f16\u53f7\u3002\u5728\u524d\u6587\u5f97\u77e5\uff0c\u4e3b\u5206\u533a\u7684\u7f16\u53f7\u8303\u56f4\u662f1\uff5e4\uff0c\u56e0\u6b64\u8fd9\u91cc\u8f93\u5165\u9ed8\u8ba4\u76841\u5c31\u53ef\u4ee5\u4e86\u3002\u63a5\u4e0b\u6765\u7cfb\u7edf\u4f1a\u63d0\u793a\u5b9a\u4e49\u8d77\u59cb\u7684\u6247\u533a\u4f4d\u7f6e\uff0c\u8fd9\u4e0d\u9700\u8981\u6539\u52a8\uff0c\u6572\u51fb\u56de\u8f66\u952e\u4fdd\u7559\u9ed8\u8ba4\u8bbe\u7f6e\u5373\u53ef\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8ba1\u7b97\u51fa\u6700\u9760\u524d\u7684\u7a7a\u95f2\u6247\u533a\u7684\u4f4d\u7f6e\u3002\u6700\u540e\uff0c\u7cfb\u7edf\u4f1a\u8981\u6c42\u5b9a\u4e49\u5206\u533a\u7684\u7ed3\u675f\u6247\u533a\u4f4d\u7f6e\uff0c\u8fd9\u5176\u5b9e\u5c31\u662f\u8981\u53bb\u5b9a\u4e49\u6574\u4e2a\u5206\u533a\u7684\u5927\u5c0f\u662f\u591a\u5c11\u3002\u6211\u4eec\u4e0d\u7528\u53bb\u8ba1\u7b97\u6247\u533a\u7684\u4e2a\u6570\uff0c\u53ea\u9700\u8981\u8f93\u5165+2G\u5373\u53ef\u521b\u5efa\u51fa\u4e00\u4e2a\u5bb9\u91cf\u4e3a2GB\u7684\u786c\u76d8\u5206\u533a\u3002<\/p>\n

Partition number (1-4, default 1): 1<\/strong>\r\nFirst sector (2048-41943039, default 2048): \u6b64\u5904\u6572\u51fb\u56de\u8f66\u5373\u53ef<\/strong>\r\nLast sector, +sectors or +size{K,M,G,T,P} (2048-41943039, default 41943039): +2G<\/strong>\r\n\r\nCreated a new partition 1 of type 'Linux' and of size 2 GiB.<\/pre>\n

\u518d\u6b21\u4f7f\u7528\u53c2\u6570p\u6765\u67e5\u770b\u786c\u76d8\u8bbe\u5907\u4e2d\u7684\u5206\u533a\u4fe1\u606f\u3002\u679c\u7136\u5c31\u80fd\u770b\u5230\u4e00\u4e2a\u540d\u79f0\u4e3a\/dev\/sdb1\u3001\u8d77\u59cb\u6247\u533a\u4f4d\u7f6e\u4e3a2048\u3001\u7ed3\u675f\u6247\u533a\u4f4d\u7f6e\u4e3a4196351\u7684\u4e3b\u5206\u533a\u4e86\u3002\u8fd9\u65f6\u5343\u4e07\u4e0d\u8981\u76f4\u63a5\u5173\u95ed\u7a97\u53e3\uff0c\u800c\u5e94\u8be5\u6572\u51fb\u53c2\u6570w\u540e\u6309\u56de\u8f66\u952e\uff0c\u8fd9\u6837\u5206\u533a\u4fe1\u606f\u624d\u662f\u771f\u6b63\u5730\u5199\u5165\u6210\u529f\u5566\u3002<\/p>\n

Command (m for help): p<\/strong>\r\nDisk \/dev\/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0x88b2c2b0\r\n\r\nDevice     Boot Start     End Sectors Size Id Type\r\n\/dev\/sdb1        2048 4196351 4194304   2G 83 Linux\r\n\r\nCommand (m for help): w<\/strong>\r\nThe partition table has been altered.\r\nCalling ioctl() to re-read partition table.\r\nSyncing disks.\r\n<\/pre>\n

\u5206\u533a\u4fe1\u606f\u4e2d\u7b2c6\u4e2a\u5b57\u6bb5\u7684Id\u503c\u662f\u4e00\u4e2a\u7f16\u7801\uff0c\u7528\u4e8e\u6807\u8bc6\u8be5\u5206\u533a\u7684\u4f5c\u7528\uff0c\u53ef\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u4e86\u89e3\u8be5\u5206\u533a\u7684\u4f5c\u7528\uff0c\u4e00\u822c\u6ca1\u5fc5\u8981\u4fee\u6539\u3002\u4f7f\u7528l\u53c2\u6570\u67e5\u770b\u4e00\u4e0b\u78c1\u76d8\u7f16\u7801\u90fd\u6709\u54ea\u4e9b\uff0c\u7136\u540e\u57286.6\u8282\u8fdb\u884cSWAP\u64cd\u4f5c\u65f6\u518d\u4fee\u6539\u5427\uff1a<\/p>\n

Command (m for help): l  <\/strong>\r\n\r\n 0  Empty           24  NEC DOS         81  Minix \/ old Lin bf  Solaris        \r\n 1  FAT12           27  Hidden NTFS Win 82  Linux swap \/ So c1  DRDOS\/sec (FAT-\r\n 2  XENIX root      39  Plan 9          83  Linux           c4  DRDOS\/sec (FAT-\r\n 3  XENIX usr       3c  PartitionMagic  84  OS\/2 hidden or  c6  DRDOS\/sec (FAT-\r\n 4  FAT16 <32M      40  Venix 80286     85  Linux extended  c7  Syrinx         \r\n 5  Extended        41  PPC PReP Boot   86  NTFS volume set da  Non-FS data    \r\n 6  FAT16           42  SFS             87  NTFS volume set db  CP\/M \/ CTOS \/ .\r\n 7  HPFS\/NTFS\/exFAT 4d  QNX4.x          88  Linux plaintext de  Dell Utility   \r\n 8  AIX             4e  QNX4.x 2nd part 8e  Linux LVM       df  BootIt         \r\n 9  AIX bootable    4f  QNX4.x 3rd part 93  Amoeba          e1  DOS access     \r\n a  OS\/2 Boot Manag 50  OnTrack DM      94  Amoeba BBT      e3  DOS R\/O        \r\n b  W95 FAT32       51  OnTrack DM6 Aux 9f  BSD\/OS          e4  SpeedStor      \r\n c  W95 FAT32 (LBA) 52  CP\/M            a0  IBM Thinkpad hi ea  Rufus alignment\r\n e  W95 FAT16 (LBA) 53  OnTrack DM6 Aux a5  FreeBSD         eb  BeOS fs        \r\n f  W95 Ext'd (LBA) 54  OnTrackDM6      a6  OpenBSD         ee  GPT            \r\n10  OPUS            55  EZ-Drive        a7  NeXTSTEP        ef  EFI (FAT-12\/16\/\r\n11  Hidden FAT12    56  Golden Bow      a8  Darwin UFS      f0  Linux\/PA-RISC b\r\n12  Compaq diagnost 5c  Priam Edisk     a9  NetBSD          f1  SpeedStor      \r\n14  Hidden FAT16 <3 61  SpeedStor       ab  Darwin boot     f4  SpeedStor      \r\n16  Hidden FAT16    63  GNU HURD or Sys af  HFS \/ HFS+      f2  DOS secondary  \r\n17  Hidden HPFS\/NTF 64  Novell Netware  b7  BSDI fs         fb  VMware VMFS    \r\n18  AST SmartSleep  65  Novell Netware  b8  BSDI swap       fc  VMware VMKCORE \r\n1b  Hidden W95 FAT3 70  DiskSecure Mult bb  Boot Wizard hid fd  Linux raid auto\r\n1c  Hidden W95 FAT3 75  PC\/IX           bc  Acronis FAT32 L fe  LANstep        \r\n1e  Hidden W95 FAT1 80  Old Minix       be  Solaris boot    ff  BBT   \r\n<\/pre>\n

\u5728\u4e0a\u8ff0\u6b65\u9aa4\u6267\u884c\u5b8c\u6bd5\u4e4b\u540e\uff0cLinux\u7cfb\u7edf\u4f1a\u81ea\u52a8\u628a\u8fd9\u4e2a\u786c\u76d8\u4e3b\u5206\u533a\u62bd\u8c61\u6210\/dev\/sdb1\u8bbe\u5907\u6587\u4ef6\u3002\u53ef\u4ee5\u4f7f\u7528file\u547d\u4ee4\u67e5\u770b\u8be5\u6587\u4ef6\u7684\u5c5e\u6027\uff0c\u4f46\u6211\u5728\u8bb2\u8bfe\u548c\u5de5\u4f5c\u4e2d\u53d1\u73b0\uff0c\u6709\u4e9b\u65f6\u5019\u7cfb\u7edf\u5e76\u6ca1\u6709\u81ea\u52a8\u628a\u5206\u533a\u4fe1\u606f\u540c\u6b65\u7ed9Linux\u5185\u6838\uff0c\u800c\u4e14\u8fd9\u79cd\u60c5\u51b5\u4f3c\u4e4e\u8fd8\u6bd4\u8f83\u5e38\u89c1\uff08\u4f46\u4e0d\u80fd\u7b97\u4f5c\u4e25\u91cd\u7684bug\uff09\u3002\u53ef\u4ee5\u8f93\u5165partprobe\u547d\u4ee4\u624b\u52a8\u5c06\u5206\u533a\u4fe1\u606f\u540c\u6b65\u5230\u5185\u6838\uff0c\u800c\u4e14\u4e00\u822c\u63a8\u8350\u8fde\u7eed\u4e24\u6b21\u6267\u884c\u8be5\u547d\u4ee4\uff0c\u6548\u679c\u4f1a\u66f4\u597d\u3002\u5982\u679c\u4f7f\u7528\u8fd9\u4e2a\u547d\u4ee4\u90fd\u65e0\u6cd5\u89e3\u51b3\u95ee\u9898\uff0c\u90a3\u4e48\u5c31\u91cd\u542f\u8ba1\u7b97\u673a\u5427\uff0c\u8fd9\u4e2a\u201c\u6740\u624b\u950f\u201d\u767e\u8bd5\u767e\u7075\uff0c\u4e00\u5b9a\u4f1a\u6709\u7528\u7684\u3002<\/p>\n

[root@linuxprobe ]# file \/dev\/sdb1\r\n\/dev\/sdb1: cannot open `\/dev\/sdb1' (No such file or directory)\r\n[root@linuxprobe ]# partprobe\r\n[root@linuxprobe ]# partprobe\r\n[root@linuxprobe\u00a0]# file \/dev\/sdb1\r\n\/dev\/sdb1: block special<\/pre>\n

\u5982\u679c\u786c\u4ef6\u5b58\u50a8\u8bbe\u5907\u6ca1\u6709\u8fdb\u884c\u683c\u5f0f\u5316\uff0c\u5219Linux\u7cfb\u7edf\u65e0\u6cd5\u5f97\u77e5\u600e\u4e48\u5728\u5176\u4e0a\u5199\u5165\u6570\u636e\u3002\u56e0\u6b64\uff0c\u5728\u5bf9\u5b58\u50a8\u8bbe\u5907\u8fdb\u884c\u5206\u533a\u540e\u8fd8\u9700\u8981\u8fdb\u884c\u683c\u5f0f\u5316\u64cd\u4f5c\u3002\u5728Linux\u7cfb\u7edf\u4e2d\u7528\u4e8e\u683c\u5f0f\u5316\u64cd\u4f5c\u7684\u547d\u4ee4\u662fmkfs\u3002\u8fd9\u6761\u547d\u4ee4\u5f88\u6709\u610f\u601d\uff0c\u56e0\u4e3a\u5728Shell\u7ec8\u7aef\u4e2d\u8f93\u5165mkfs\u540d\u540e\u518d\u6572\u51fb\u4e24\u4e0b\u7528\u4e8e\u8865\u9f50\u547d\u4ee4\u7684Tab\u952e\uff0c\u4f1a\u6709\u5982\u4e0b\u6240\u793a\u7684\u6548\u679c\uff1a<\/p>\n

[root@linuxprobe ~]# mkfs\r\nmkfs         mkfs.ext2    mkfs.ext4    mkfs.minix   mkfs.vfat    \r\nmkfs.cramfs  mkfs.ext3    mkfs.fat     mkfs.msdos   mkfs.xfs     \r\n<\/pre>\n

\u5bf9\uff01\u8fd9\u4e2amkfs\u547d\u4ee4\u5f88\u8d34\u5fc3\u5730\u628a\u5e38\u7528\u7684\u6587\u4ef6\u7cfb\u7edf\u540d\u79f0\u7528\u540e\u7f00\u7684\u65b9\u5f0f\u4fdd\u5b58\u6210\u4e86\u591a\u4e2a\u547d\u4ee4\u6587\u4ef6\uff0c\u7528\u8d77\u6765\u4e5f\u975e\u5e38\u7b80\u5355\u2014mkfs.\u6587\u4ef6\u7c7b\u578b\u540d\u79f0\u3002\u4f8b\u5982\u8981\u5c06\u5206\u533a\u4e3aXFS\u7684\u6587\u4ef6\u7cfb\u7edf\u8fdb\u884c\u683c\u5f0f\u5316\uff0c\u5219\u547d\u4ee4\u5e94\u4e3amkfs.xfs \/dev\/sdb1\u3002<\/p>\n

[root@linuxprobe ~]# mkfs.xfs \/dev\/sdb1\r\nmeta-data=\/dev\/sdb1              isize=512    agcount=4, agsize=131072 blks\r\n         =                       sectsz=512   attr=2, projid32bit=1\r\n         =                       crc=1        finobt=1, sparse=1, rmapbt=0\r\n         =                       reflink=1\r\ndata     =                       bsize=4096   blocks=524288, imaxpct=25\r\n         =                       sunit=0      swidth=0 blks\r\nnaming   =version 2              bsize=4096   ascii-ci=0, ftype=1\r\nlog      =internal log           bsize=4096   blocks=2560, version=2\r\n         =                       sectsz=512   sunit=0 blks, lazy-count=1\r\nrealtime =none                   extsz=4096   blocks=0, rtextents=0\r\n<\/pre>\n

\u7ec8\u4e8e\u5b8c\u6210\u4e86\u5b58\u50a8\u8bbe\u5907\u7684\u5206\u533a\u548c\u683c\u5f0f\u5316\u64cd\u4f5c\uff0c\u63a5\u4e0b\u6765\u5c31\u662f\u8981\u6765\u6302\u8f7d\u5e76\u4f7f\u7528\u5b58\u50a8\u8bbe\u5907\u4e86\u3002\u4e0e\u4e4b\u76f8\u5173\u7684\u6b65\u9aa4\u4e5f\u975e\u5e38\u7b80\u5355\uff1a\u9996\u5148\u662f\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u6302\u8f7d\u8bbe\u5907\u7684\u6302\u8f7d\u70b9\u76ee\u5f55\uff1b\u7136\u540e\u4f7f\u7528mount\u547d\u4ee4\u5c06\u5b58\u50a8\u8bbe\u5907\u4e0e\u6302\u8f7d\u70b9\u8fdb\u884c\u5173\u8054\uff1b\u6700\u540e\u4f7f\u7528df -h\u547d\u4ee4\u6765\u67e5\u770b\u6302\u8f7d\u72b6\u6001\u548c\u786c\u76d8\u4f7f\u7528\u91cf\u4fe1\u606f\u3002<\/p>\n

[root@linuxprobe ~]# mkdir \/newFS\r\n[root@linuxprobe ~]# mount \/dev\/sdb1 \/newFS\r\n[root@linuxprobe ~]# df -h\r\nFilesystem             Size  Used Avail Use% Mounted on\r\ndevtmpfs               969M     0  969M   0% \/dev\r\ntmpfs                  984M     0  984M   0% \/dev\/shm\r\ntmpfs                  984M  9.6M  974M   1% \/run\r\ntmpfs                  984M     0  984M   0% \/sys\/fs\/cgroup\r\n\/dev\/mapper\/rhel-root   17G  3.9G   14G  23% \/\r\n\/dev\/sr0               6.7G  6.7G     0 100% \/media\/cdrom\r\n\/dev\/sda1             1014M  152M  863M  15% \/boot\r\ntmpfs                  197M   16K  197M   1% \/run\/user\/42\r\ntmpfs                  197M  3.5M  194M   2% \/run\/user\/0\r\n\/dev\/sdb1              2.0G   47M  2.0G   3% \/newFS<\/strong>\r\n<\/pre>\n

du\u547d\u4ee4\u7528\u67e5\u770b\u5206\u533a\u6216\u76ee\u5f55\u6240\u5360\u7528\u7684\u78c1\u76d8\u5bb9\u91cf\u5927\u5c0f\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201cdisk usage\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cdu -sh\u76ee\u5f55\u540d\u79f0\u201d\u3002<\/p>\n

\u65e2\u7136\u5b58\u50a8\u8bbe\u5907\u5df2\u7ecf\u987a\u5229\u6302\u8f7d\uff0c\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u5c1d\u8bd5\u901a\u8fc7\u6302\u8f7d\u70b9\u76ee\u5f55\u5411\u5b58\u50a8\u8bbe\u5907\u4e2d\u5199\u5165\u6587\u4ef6\u4e86\u3002\u5728\u5199\u5165\u6587\u4ef6\u4e4b\u524d\uff0c\u5148\u6765\u770b\u4e00\u4e2a\u7528\u4e8e\u67e5\u770b\u6587\u4ef6\u6570\u636e\u5360\u7528\u91cf\u7684du\u547d\u4ee4\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u8be5\u547d\u4ee4\u5c31\u662f\u7528\u6765\u67e5\u770b\u4e00\u4e2a\u6216\u591a\u4e2a\u6587\u4ef6\u5360\u7528\u4e86\u591a\u5927\u7684\u786c\u76d8\u7a7a\u95f4\u3002<\/p>\n

\u5728\u4f7f\u7528Window\u7cfb\u7edf\u65f6\uff0c\u6211\u4eec\u603b\u4f1a\u9047\u5230\u201cC\u76d8\u5bb9\u91cf\u4e0d\u8db3\uff0c\u6e05\u7406\u5783\u573e\u540e\u53c8\u5f88\u5feb\u88ab\u5360\u6ee1\u201d\u7684\u60c5\u51b5\u3002\u5728Linux\u7cfb\u7edf\u4e2d\u53ef\u4ee5\u4f7f\u7528du -sh \/*\u547d\u4ee4\u6765\u67e5\u770b\u5728Linux\u7cfb\u7edf\u6839\u76ee\u5f55\u4e0b\u6240\u6709\u4e00\u7ea7\u76ee\u5f55\u5206\u522b\u5360\u7528\u7684\u7a7a\u95f4\u5927\u5c0f\uff0c\u57281s\u4e4b\u5185\u5c31\u80fd\u627e\u5230\u54ea\u4e2a\u76ee\u5f55\u5360\u7528\u7684\u7a7a\u95f4\u6700\u591a\uff1a<\/p>\n

[root@linuxprobe ~]# du -sh \/*\r\n0\t\/bin\r\n113M\t\/boot\r\n0\t\/dev\r\n29M\t\/etc\r\n12K\t\/home\r\n0\t\/lib\r\n0\t\/lib64\r\n6.7G\t\/media\r\n0\t\/mnt\r\n0\t\/newFS\r\n0\t\/opt\r\n0\t\/proc\r\n8.6M\t\/root\r\n9.6M\t\/run\r\n0\t\/sbin\r\n0\t\/srv\r\n0\t\/sys\r\n12K\t\/tmp\r\n3.5G\t\/usr\r\n155M\t\/var\r\n<\/pre>\n

\u5148\u4ece\u67d0\u4e9b\u76ee\u5f55\u4e2d\u590d\u5236\u8fc7\u6765\u4e00\u6279\u6587\u4ef6\uff0c\u7136\u540e\u67e5\u770b\u8fd9\u4e9b\u6587\u4ef6\u603b\u5171\u5360\u7528\u4e86\u591a\u5927\u7684\u5bb9\u91cf\uff1a<\/p>\n

[root@linuxprobe ~]# cp -rf \/etc\/* \/newFS\r\n[root@linuxprobe ~]# ls \/newFS\r\nadjtime                     hostname                  profile.d\r\naliases                     hosts                     protocols\r\nalsa                        hosts.allow               pulse\r\nalternatives                hosts.deny                qemu-ga\r\nanacrontab                  hp                        qemu-kvm\r\nasound.conf                 idmapd.conf               radvd.conf\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u5165\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n[root@linuxprobe ~]# du -sh \/newFS\r\n39M \/newFS\/\r\n<\/pre>\n

\u7ec6\u5fc3\u7684\u8bfb\u8005\u4e00\u5b9a\u8fd8\u8bb0\u5f97\uff0c\u524d\u9762\u5728\u8bb2\u89e3mount\u547d\u4ee4\u65f6\u63d0\u5230\uff0c\u4f7f\u7528mount\u547d\u4ee4\u6302\u8f7d\u7684\u8bbe\u5907\u6587\u4ef6\u4f1a\u5728\u7cfb\u7edf\u4e0b\u4e00\u6b21\u91cd\u542f\u7684\u65f6\u5019\u5931\u6548\u3002\u5982\u679c\u60f3\u8ba9\u8fd9\u4e2a\u8bbe\u5907\u6587\u4ef6\u7684\u6302\u8f7d\u6c38\u4e45\u6709\u6548\uff0c\u5219\u9700\u8981\u628a\u6302\u8f7d\u7684\u4fe1\u606f\u5199\u5165\u914d\u7f6e\u6587\u4ef6\u4e2d\uff1a<\/p>\n

[root@linuxprobe ~]# vim \/etc\/fstab\r\n#\r\n# \/etc\/fstab\r\n# Created by anaconda on Tue Jul 21 05:03:40 2020\r\n#\r\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk\/'.\r\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info.\r\n#\r\n# After editing this file, run 'systemctl daemon-reload' to update systemd\r\n# units generated from this file.\r\n#\r\n\/dev\/mapper\/rhel-root                     \/                      xfs      defaults        0 0\r\nUUID=812b1f7c-8b5b-43da-8c06-b9999e0fe48b \/boot                  xfs      defaults        0 0\r\n\/dev\/mapper\/rhel-swap                     swap                   swap     defaults        0 0\r\n\/dev\/cdrom                                \/media\/cdrom           iso9660  defaults        0 0 \r\n\/dev\/sdb1                                 \/newFS                 xfs      defaults        0 0 <\/strong>\r\n<\/pre>\n

\u51fa\u73b0\u95ee\u9898?\u5927\u80c6\u63d0\u95ee!<\/strong><\/span><\/p>\n

\u56e0\u8bfb\u8005\u4eec\u786c\u4ef6\u4e0d\u540c\u6216\u64cd\u4f5c\u9519\u8bef\u90fd\u53ef\u80fd\u5bfc\u81f4\u5b9e\u9a8c\u914d\u7f6e\u51fa\u9519\uff0c\u8bf7\u8010\u5fc3\u518d\u4ed4\u7ec6\u770b\u770b\u64cd\u4f5c\u6b65\u9aa4\u5427\uff0c\u4e0d\u8981\u6c14\u9981~<\/p>\n

Linux\u6280\u672f\u4ea4\u6d41\u5b66\u4e60\u8bf7\u52a0\u8bfb\u8005\u7fa4\uff08\u63a8\u8350<\/span><\/strong>\uff09\uff1ahttps:\/\/lrxjmw.cn\/club<\/a><\/p>\n

*\u672c\u7fa4\u7279\u8272\uff1a\u786e\u4fdd\u6bcf\u4e00\u4f4d\u7fa4\u53cb\u90fd\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7684\u8bfb\u8005\uff0c\u7b54\u7591\u66f4\u6709\u9488\u5bf9\u6027\uff0c\u4e0d\u5b9a\u671f\u9886\u53d6\u5b9a\u5236\u793c\u54c1\u3002<\/p><\/blockquote>\n

6.6 \u6dfb\u52a0\u4ea4\u6362\u5206\u533a<\/strong><\/span><\/h5>\n

\u4ea4\u6362\uff08SWAP\uff09\u5206\u533a\u662f\u4e00\u79cd\u901a\u8fc7\u5728\u786c\u76d8\u4e2d\u9884\u5148\u5212\u5206\u4e00\u5b9a\u7684\u7a7a\u95f4\uff0c\u7136\u540e\u628a\u5185\u5b58\u4e2d\u6682\u65f6\u4e0d\u5e38\u7528\u7684\u6570\u636e\u4e34\u65f6\u5b58\u653e\u5230\u786c\u76d8\u4e2d\uff0c\u4ee5\u4fbf\u817e\u51fa\u7269\u7406\u5185\u5b58\u7a7a\u95f4\u8ba9\u66f4\u6d3b\u8dc3\u7684\u7a0b\u5e8f\u670d\u52a1\u6765\u4f7f\u7528\u7684\u6280\u672f\uff0c\u5176\u8bbe\u8ba1\u76ee\u7684\u662f\u4e3a\u4e86\u89e3\u51b3\u771f\u5b9e\u7269\u7406\u5185\u5b58\u4e0d\u8db3\u7684\u95ee\u9898\u3002\u901a\u4fd7\u6765\u8bb2\u5c31\u662f\u8ba9\u786c\u76d8\u5e2e\u5185\u5b58\u5206\u62c5\u538b\u529b\u3002\u4f46\u7531\u4e8e\u4ea4\u6362\u5206\u533a\u6bd5\u7adf\u662f\u901a\u8fc7\u786c\u76d8\u8bbe\u5907\u8bfb\u5199\u6570\u636e\u7684\uff0c\u901f\u5ea6\u80af\u5b9a\u8981\u6bd4\u7269\u7406\u5185\u5b58\u6162\uff0c\u6240\u4ee5\u53ea\u6709\u5f53\u771f\u5b9e\u7684\u7269\u7406\u5185\u5b58\u8017\u5c3d\u540e\u624d\u4f1a\u8c03\u7528\u4ea4\u6362\u5206\u533a\u7684\u8d44\u6e90\u3002<\/p>\n

\u4ea4\u6362\u5206\u533a\u7684\u521b\u5efa\u8fc7\u7a0b\u4e0e\u524d\u6587\u8bb2\u5230\u7684\u6302\u8f7d\u5e76\u4f7f\u7528\u5b58\u50a8\u8bbe\u5907\u7684\u8fc7\u7a0b\u975e\u5e38\u76f8\u4f3c\u3002\u5728\u5bf9\/dev\/sdb\u5b58\u50a8\u8bbe\u5907\u8fdb\u884c\u5206\u533a\u64cd\u4f5c\u524d\uff0c\u6709\u5fc5\u8981\u5148\u8bf4\u4e00\u4e0b\u4ea4\u6362\u5206\u533a\u7684\u5212\u5206\u5efa\u8bae\uff1a\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u4ea4\u6362\u5206\u533a\u7684\u5927\u5c0f\u4e00\u822c\u4e3a\u771f\u5b9e\u7269\u7406\u5185\u5b58\u76841.5\uff5e2\u500d\u3002\u4e3a\u4e86\u8ba9\u5927\u5bb6\u66f4\u660e\u663e\u5730\u611f\u53d7\u4ea4\u6362\u5206\u533a\u7a7a\u95f4\u7684\u53d8\u5316\uff0c\u8fd9\u91cc\u53d6\u51fa\u4e00\u4e2a\u5927\u5c0f\u4e3a5GB\u7684\u4e3b\u5206\u533a\u4f5c\u4e3a\u4ea4\u6362\u5206\u533a\u8d44\u6e90\uff1a<\/p>\n

[root@linuxprobe ~]# fdisk \/dev\/sdb\r\nWelcome to fdisk (util-linux 2.32.1).\r\nChanges will remain in memory only, until you decide to write them.\r\nBe careful before using the write command.\r\n\r\nCommand (m for help): n<\/strong>\r\nPartition type\r\n   p   primary (1 primary, 0 extended, 3 free)\r\n   e   extended (container for logical partitions)\r\nSelect (default p): p<\/strong>\r\nPartition number (2-4, default 2): \u6572\u51fb\u56de\u8f66\u5373\u53ef<\/strong>\r\nFirst sector (4196352-41943039, default 4196352): \u6572\u51fb\u56de\u8f66\u5373\u53ef<\/strong>\r\nLast sector, +sectors or +size{K,M,G,T,P} (4196352-41943039, default 41943039): +5G<\/strong>\r\n\r\nCreated a new partition 2 of type 'Linux' and of size 5 GiB.\r\n<\/pre>\n

\u5728\u4e0a\u9762\u7684\u64cd\u4f5c\u7ed3\u675f\u540e\uff0c\u6211\u4eec\u5c31\u5f97\u5230\u4e86\u4e00\u4e2a\u5bb9\u91cf\u4e3a5GB\u7684\u65b0\u5206\u533a\u3002\u7136\u540e\u5c1d\u8bd5\u4fee\u6539\u786c\u76d8\u7684\u6807\u8bc6\u7801\uff0c\u8fd9\u91cc\u5c06\u5176\u6539\u621082\uff08Linux swap\uff09\u4ee5\u65b9\u4fbf\u4ee5\u540e\u77e5\u9053\u5b83\u7684\u4f5c\u7528\uff1a<\/p>\n

Command (m for help): t<\/strong>\r\nPartition number (1,2, default 2): 2<\/strong>\r\nHex code (type L to list all codes): 82<\/strong>\r\n\r\nChanged type of partition 'Linux' to 'Linux swap \/ Solaris'.\r\n\r\nCommand (m for help): p <\/strong>\r\nDisk \/dev\/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0x88b2c2b0\r\n\r\nDevice     Boot   Start      End  Sectors Size Id Type\r\n\/dev\/sdb1          2048  4196351  4194304   2G 83 Linux\r\n\/dev\/sdb2       4196352 14682111 10485760   5G 82 Linux swap \/ Solaris<\/strong>\r\n<\/pre>\n

\u641e\u5b9a\uff01\u6572\u51fbw\u53c2\u6570\u9000\u51fa\u5206\u533a\u8868\u7f16\u8f91\u5de5\u5177\uff1a<\/p>\n

Command (m for help): w\r\nThe partition table has been altered.\r\nCalling ioctl() to re-read partition table.\r\nSyncing disks.\r\n<\/pre>\n

\u4e0b\u9762\u6765\u770b\u4e00\u4e0b\u4e24\u4e2a\u4e0e\u4ea4\u6362\u5206\u533a\u76f8\u5173\u7684\u7b80\u5355\u547d\u4ee4\u3002<\/p>\n

mkswap\u547d\u4ee4\u7528\u4e8e\u5bf9\u65b0\u8bbe\u5907\u8fdb\u884c\u4ea4\u6362\u5206\u533a\u683c\u5f0f\u5316\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201cmake swap\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cmkswap\u8bbe\u5907\u540d\u79f0\u201d\u3002<\/p>\n

[root@linuxprobe ~]# mkswap \/dev\/sdb2\r\nSetting up swapspace version 1, size = 5 GiB (5368705024 bytes)\r\nno label, UUID=45a4047c-49bf-4c88-9b99-f6ac93908485\r\n<\/pre>\n

swapon\u547d\u4ee4\u7528\u4e8e\u6fc0\u6d3b\u65b0\u7684\u4ea4\u6362\u5206\u533a\u8bbe\u5907\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201cswap on\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cswapon\u8bbe\u5907\u540d\u79f0\u201d\u3002<\/p>\n

\u4f7f\u7528swapon\u547d\u4ee4\u628a\u51c6\u5907\u597d\u7684SWAP\u786c\u76d8\u8bbe\u5907\u6b63\u5f0f\u6302\u8f7d\u5230\u7cfb\u7edf\u4e2d\u3002\u53ef\u4ee5\u4f7f\u7528free -m\u547d\u4ee4\u67e5\u770b\u4ea4\u6362\u5206\u533a\u7684\u5927\u5c0f\u53d8\u5316\uff08\u75312047MB\u589e\u52a0\u52307167MB\uff09\uff1a<\/p>\n

[root@linuxprobe ~]# free -m\r\n              total        used        free      shared  buff\/cache   available\r\nMem:           1966        1391         105          12         469         384\r\nSwap:          2047           9        2038<\/strong>\r\n[root@linuxprobe ~]# swapon \/dev\/sdb2\r\n[root@linuxprobe ~]# free -m\r\n              total        used        free      shared  buff\/cache   available\r\nMem:           1966        1395         101          12         469         380\r\nSwap:          7167           9        7158<\/strong>\r\n<\/pre>\n

\u4e3a\u4e86\u80fd\u591f\u8ba9\u65b0\u7684\u4ea4\u6362\u5206\u533a\u8bbe\u5907\u5728\u91cd\u542f\u540e\u4f9d\u7136\u751f\u6548\uff0c\u9700\u8981\u6309\u7167\u4e0b\u9762\u7684\u683c\u5f0f\u5c06\u76f8\u5173\u4fe1\u606f\u5199\u5165\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u5e76\u8bb0\u5f97\u4fdd\u5b58\uff1a<\/p>\n

[root@linuxprobe ~]# vim \/etc\/fstab\r\n#\r\n# \/etc\/fstab\r\n# Created by anaconda on Tue Jul 21 05:03:40 2020\r\n#\r\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk\/'.\r\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info.\r\n#\r\n# After editing this file, run 'systemctl daemon-reload' to update systemd\r\n# units generated from this file.\r\n#\r\n\/dev\/mapper\/rhel-root                        \/               xfs        defaults    1 1\r\nUUID=812b1f7c-8b5b-43da-8c06-b9999e0fe48b    \/boot           xfs        defaults    1 2\r\n\/dev\/mapper\/rhel-swap                        swap            swap       defaults    0 0\r\n\/dev\/cdrom                                   \/media\/cdrom    iso9660    defaults    0 0 \r\n\/dev\/sdb1                                    \/newFS          xfs        defaults    0 0 \r\n\/dev\/sdb2                                    swap            swap       defaults    0 0<\/strong> \r\n<\/pre>\n
6.7 \u78c1\u76d8\u5bb9\u91cf\u914d\u989d<\/strong><\/span><\/h5>\n

\u672c\u4e66\u5728\u524d\u9762\u66fe\u7ecf\u8bb2\u5230\uff0cLinux\u7cfb\u7edf\u7684\u8bbe\u8ba1\u521d\u8877\u5c31\u662f\u8ba9\u8bb8\u591a\u4eba\u4e00\u8d77\u4f7f\u7528\u5e76\u6267\u884c\u5404\u81ea\u7684\u4efb\u52a1\uff0c\u4ece\u800c\u6210\u4e3a\u591a\u7528\u6237\u3001\u591a\u4efb\u52a1\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u4f46\u662f\uff0c\u786c\u4ef6\u8d44\u6e90\u662f\u56fa\u5b9a\u4e14\u6709\u9650\u7684\uff0c\u5982\u679c\u67d0\u4e9b\u7528\u6237\u4e0d\u65ad\u5730\u5728Linux\u7cfb\u7edf\u4e0a\u521b\u5efa\u6587\u4ef6\u6216\u8005\u5b58\u653e\u7535\u5f71\uff0c\u786c\u76d8\u7a7a\u95f4\u603b\u6709\u4e00\u5929\u4f1a\u88ab\u5360\u6ee1\u3002\u9488\u5bf9\u8fd9\u79cd\u60c5\u51b5\uff0croot\u7ba1\u7406\u5458\u5c31\u9700\u8981\u4f7f\u7528\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\u670d\u52a1\u6765\u9650\u5236\u67d0\u4f4d\u7528\u6237\u6216\u67d0\u4e2a\u7528\u6237\u7ec4\u9488\u5bf9\u7279\u5b9a\u6587\u4ef6\u5939\u53ef\u4ee5\u4f7f\u7528\u7684\u6700\u5927\u786c\u76d8\u7a7a\u95f4\u6216\u6700\u5927\u6587\u4ef6\u4e2a\u6570\uff0c\u4e00\u65e6\u8fbe\u5230\u8fd9\u4e2a\u6700\u5927\u503c\u5c31\u4e0d\u518d\u5141\u8bb8\u7ee7\u7eed\u4f7f\u7528\u3002\u53ef\u4ee5\u4f7f\u7528quota\u6280\u672f\u8fdb\u884c\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\u7ba1\u7406\uff0c\u4ece\u800c\u9650\u5236\u7528\u6237\u7684\u786c\u76d8\u53ef\u7528\u5bb9\u91cf\u6216\u6240\u80fd\u521b\u5efa\u7684\u6700\u5927\u6587\u4ef6\u4e2a\u6570\u3002quota\u6280\u672f\u8fd8\u6709\u8f6f\u9650\u5236\u548c\u786c\u9650\u5236\u7684\u529f\u80fd\u3002<\/p>\n

\u8f6f\u9650\u5236<\/strong>\uff1a\u5f53\u8fbe\u5230\u8f6f\u9650\u5236\u65f6\u4f1a\u63d0\u793a\u7528\u6237\uff0c\u4f46\u4ecd\u5141\u8bb8\u7528\u6237\u5728\u9650\u5b9a\u7684\u989d\u5ea6\u5185\u7ee7\u7eed\u4f7f\u7528\u3002<\/p>\n

\u786c\u9650\u5236<\/strong>\uff1a\u5f53\u8fbe\u5230\u786c\u9650\u5236\u65f6\u4f1a\u63d0\u793a\u7528\u6237\uff0c\u4e14\u5f3a\u5236\u7ec8\u6b62\u7528\u6237\u7684\u64cd\u4f5c\u3002<\/p><\/blockquote>\n

RHEL 8\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u5b89\u88c5\u4e86quota\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\u670d\u52a1\u7a0b\u5e8f\u5305\uff0c\u4f46\u5b58\u50a8\u8bbe\u5907\u5374\u9ed8\u8ba4\u6ca1\u6709\u5f00\u542f\u5bf9quota\u6280\u672f\u7684\u652f\u6301\uff0c\u6b64\u65f6\u9700\u8981\u624b\u52a8\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\u5e76\u91cd\u542f\u4e00\u6b21\u7cfb\u7edf\uff0c\u8ba9\u7cfb\u7edf\u4e2d\u7684\u542f\u52a8\u76ee\u5f55\uff08\/boot\uff09\u80fd\u591f\u652f\u6301quota\u78c1\u76d8\u914d\u989d\u6280\u672f\u3002<\/p>\n

[root@linuxprobe ~]# vim \/etc\/fstab\r\n#\r\n# \/etc\/fstab\r\n# Created by anaconda on Tue Jul 21 05:03:40 2020\r\n#\r\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk\/'.\r\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info.\r\n#\r\n# After editing this file, run 'systemctl daemon-reload' to update systemd\r\n# units generated from this file.\r\n#\r\n\/dev\/mapper\/rhel-root                        \/             xfs        defaults         1 1\r\nUUID=812b1f7c-8b5b-43da-8c06-b9999e0fe48b    \/boot         xfs        defaults,uquota<\/strong>  1 2\r\n\/dev\/mapper\/rhel-swap                        swap          swap       defaults         0 0\r\n\/dev\/cdrom                                   \/media\/cdrom  iso9660    defaults         0 0 \r\n\/dev\/sdb1                                    \/newFS        xfs        defaults         0 0 \r\n\/dev\/sdb2                                    swap          swap       defaults         0 0 \r\n[root@linuxprobe ~]# reboot<\/pre>\n

\u53e6\u5916\uff0c\u5bf9\u4e8e\u5b66\u4e60\u8fc7\u65e9\u671f\u7684Linux\u7cfb\u7edf\uff0c\u6216\u8005\u5177\u6709RHEL 5\/6\u7cfb\u7edf\u4f7f\u7528\u7ecf\u9a8c\u7684\u8bfb\u8005\u6765\u8bf4\uff0c\u8fd9\u91cc\u9700\u8981\u7279\u522b\u6ce8\u610f\u3002\u65e9\u671f\u7684Linux\u7cfb\u7edf\u8981\u60f3\u8ba9\u786c\u76d8\u8bbe\u5907\u652f\u6301quota\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\u670d\u52a1\uff0c\u4f7f\u7528\u7684\u662fusrquota\u53c2\u6570\uff0c\u800cRHEL 7\/8\u7cfb\u7edf\u4f7f\u7528\u7684\u5219\u662fuquota\u53c2\u6570\u3002\u5728\u91cd\u542f\u7cfb\u7edf\u540e\u4f7f\u7528mount\u547d\u4ee4\u67e5\u770b\uff0c\u5373\u53ef\u53d1\u73b0\/boot\u76ee\u5f55\u5df2\u7ecf\u652f\u6301quota\u78c1\u76d8\u914d\u989d\u6280\u672f\u4e86\uff1a<\/p>\n

[root@linuxprobe ~]# mount | grep boot\r\n\/dev\/sda1 on \/boot type xfs (rw,relatime,seclabel,attr2,inode64,usrquota<\/strong>)<\/pre>\n

\u63a5\u4e0b\u6765\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u68c0\u67e5quota\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\u6548\u679c\u7684\u7528\u6237tom\uff0c\u5e76\u9488\u5bf9\/boot\u76ee\u5f55\u589e\u52a0\u5176\u4ed6\u4eba\u7684\u5199\u6743\u9650\uff0c\u4fdd\u8bc1\u7528\u6237\u80fd\u591f\u6b63\u5e38\u5199\u5165\u6570\u636e\uff1a<\/p>\n

[root@linuxprobe ~]# useradd tom\r\n[root@linuxprobe ~]# chmod -R o+w \/boot<\/span><\/pre>\n

xfs_quota\u547d\u4ee4\u7528\u4e8e\u7ba1\u7406\u8bbe\u5907\u7684\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cxfs_quota [\u53c2\u6570]\u00a0\u914d\u989d \u6587\u4ef6\u7cfb\u7edf\u201d\u3002<\/p>\n

\u8fd9\u662f\u4e00\u4e2a\u4e13\u95e8\u9488\u5bf9XFS\u6587\u4ef6\u7cfb\u7edf\u6765\u7ba1\u7406quota\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\u670d\u52a1\u800c\u8bbe\u8ba1\u7684\u547d\u4ee4\u3002\u5176\u4e2d\uff0c-c\u53c2\u6570\u7528\u4e8e\u4ee5\u53c2\u6570\u7684\u5f62\u5f0f\u8bbe\u7f6e\u8981\u6267\u884c\u7684\u547d\u4ee4\uff1b-x\u53c2\u6570\u662f\u4e13\u5bb6\u6a21\u5f0f\uff0c\u8ba9\u8fd0\u7ef4\u4eba\u5458\u80fd\u591f\u5bf9quota\u670d\u52a1\u8fdb\u884c\u66f4\u591a\u590d\u6742\u7684\u914d\u7f6e\u3002\u63a5\u4e0b\u6765\u4f7f\u7528xfs_quota\u547d\u4ee4\u6765\u8bbe\u7f6e\u7528\u6237tom\u5bf9\/boot\u76ee\u5f55\u7684quota\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\u3002\u5177\u4f53\u7684\u9650\u989d\u63a7\u5236\u5305\u62ec\uff1a\u786c\u76d8\u4f7f\u7528\u91cf\u7684\u8f6f\u9650\u5236\u548c\u786c\u9650\u5236\u5206\u522b\u4e3a3MB\u548c6MB\uff1b\u521b\u5efa\u6587\u4ef6\u6570\u91cf\u7684\u8f6f\u9650\u5236\u548c\u786c\u9650\u5236\u5206\u522b\u4e3a3\u4e2a\u548c6\u4e2a\u3002<\/p>\n

[root@linuxprobe ~]# xfs_quota -x -c 'limit bsoft=3m bhard=6m isoft=3 ihard=6 tom' \/boot\r\n[root@linuxprobe ~]# xfs_quota -x -c report \/boot\r\nUser quota on \/boot (\/dev\/sda1)\r\n                               Blocks                     \r\nUser ID          Used       Soft       Hard    Warn\/Grace     \r\n---------- -------------------------------------------------- \r\nroot           114964          0          0     00 [--------]\r\ntom                 0       3072       6144     00 [--------]<\/pre>\n

\u4e0a\u9762\u6240\u4f7f\u7528\u7684\u53c2\u6570\u5206\u4e3a\u4e24\u7ec4\uff0c\u5206\u522b\u662fisoft\/ihard\u4e0ebsoft\/bhard\uff0c\u4e0b\u9762\u6df1\u5165\u8bb2\u89e3\u4e00\u4e0b\u3002\u57286.3\u8282\u4e2d\u66fe\u7ecf\u8bb2\u8fc7\uff0c\u5728Linux\u7cfb\u7edf\u4e2d\u6bcf\u4e2a\u6587\u4ef6\u90fd\u4f1a\u4f7f\u7528\u4e00\u4e2a\u72ec\u7acb\u7684inode\u4fe1\u606f\u5757\u6765\u4fdd\u5b58\u5c5e\u6027\u4fe1\u606f\uff0c\u4e00\u4e2a\u6587\u4ef6\u5bf9\u5e94\u4e00\u4e2ainode\u4fe1\u606f\u5757\uff0c\u6240\u4ee5isoft\u548cihard\u5c31\u662f\u901a\u8fc7\u9650\u5236\u7cfb\u7edf\u6700\u5927\u4f7f\u7528\u7684inode\u4e2a\u6570\u6765\u9650\u5236\u4e86\u6587\u4ef6\u6570\u91cf\u3002bsoft\u548cbhard\u5219\u662f\u4ee3\u8868\u6587\u4ef6\u6240\u5360\u7528\u7684block\u5927\u5c0f\uff0c\u4e5f\u5c31\u662f\u6587\u4ef6\u5360\u7528\u7684\u6700\u5927\u5bb9\u91cf\u7684\u603b\u7edf\u8ba1\u3002<\/p>\n

soft\u662f\u8f6f\u9650\u5236\uff0c\u8d85\u8fc7\u8be5\u9650\u5236\u540e\u4e5f\u53ea\u662f\u5c06\u64cd\u4f5c\u8bb0\u5f55\u5199\u5230\u65e5\u5fd7\u4e2d\uff0c\u4e0d\u5bf9\u7528\u6237\u884c\u4e3a\u8fdb\u884c\u9650\u5236\u3002\u800chard\u662f\u786c\u9650\u5236\uff0c\u4e00\u65e6\u8d85\u8fc7\u7cfb\u7edf\u5c31\u4f1a\u9a6c\u4e0a\u7981\u6b62\uff0c\u7528\u6237\u518d\u4e5f\u4e0d\u80fd\u521b\u5efa\u6216\u65b0\u5360\u4efb\u4f55\u7684\u786c\u76d8\u5bb9\u91cf\u3002<\/p>\n

\u5f53\u914d\u7f6e\u597d\u4e0a\u8ff0\u5404\u79cd\u8f6f\u786c\u9650\u5236\u540e\uff0c\u5c1d\u8bd5\u5207\u6362\u5230\u4e00\u4e2a\u666e\u901a\u7528\u6237\uff0c\u7136\u540e\u5206\u522b\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u4f53\u79ef\u4e3a5MB\u548c8MB\u7684\u6587\u4ef6\u3002\u53ef\u4ee5\u53d1\u73b0\uff0c\u5728\u521b\u5efa8MB\u7684\u6587\u4ef6\u65f6\u53d7\u5230\u4e86\u7cfb\u7edf\u9650\u5236\uff1a<\/p>\n

[root@linuxprobe ~]# su - tom\r\n[tom@linuxprobe ~]$ cd \/boot\r\n[tom@linuxprobe boot]$ dd if=\/dev\/zero of=\/boot\/tom bs=5M count=1\r\n1+0 records in\r\n1+0 records out\r\n5242880 bytes (5.2 MB, 5.0 MiB) copied, 0.00298178 s, 1.8 GB\/s\r\n[tom@linuxprobe boot]$ dd if=\/dev\/zero of=\/boot\/tom bs=8M count=1\r\ndd: error writing '\/boot\/tom': Disk quota exceeded<\/span>\r\n1+0 records in\r\n0+0 records out\r\n4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.00398607 s, 1.1 GB\/s<\/pre>\n

edquota\u547d\u4ee4\u7528\u4e8e\u7ba1\u7406\u7cfb\u7edf\u7684\u78c1\u76d8\u914d\u989d\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201cedit quota\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cedquota [\u53c2\u6570]\u00a0\u7528\u6237\u540d\u201d\u3002<\/p>\n

\u5728\u4e3a\u7528\u6237\u8bbe\u7f6e\u4e86quota\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\u9650\u5236\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528edquota\u547d\u4ee4\u6309\u9700\u4fee\u6539\u9650\u989d\u7684\u6570\u503c\u3002\u5176\u4e2d\uff0c-u\u53c2\u6570\u8868\u793a\u8981\u9488\u5bf9\u54ea\u4e2a\u7528\u6237\u8fdb\u884c\u8bbe\u7f6e\uff1b-g\u53c2\u6570\u8868\u793a\u8981\u9488\u5bf9\u54ea\u4e2a\u7528\u6237\u7ec4\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5982\u88686-6\u6240\u793a\u3002<\/p>\n

\u88686-6\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0edquota\u547d\u4ee4\u4e2d\u53ef\u7528\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528<\/p>\n\n\n\n\n\n\n\n
\u53c2\u6570<\/td>\n\u4f5c\u7528<\/td>\n<\/tr>\n
-u<\/td>\n\u5bf9\u67d0\u4e2a\u7528\u6237\u8fdb\u884c\u8bbe\u7f6e<\/td>\n<\/tr>\n
-g<\/td>\n\u5bf9\u67d0\u4e2a\u7528\u6237\u7ec4\u8fdb\u884c\u8bbe\u7f6e<\/td>\n<\/tr>\n
-p<\/td>\n\u590d\u5236\u539f\u6709\u7684\u89c4\u5219\u5230\u65b0\u7684\u7528\u6237\/\u7ec4<\/td>\n<\/tr>\n
-t<\/td>\n\u9650\u5236\u5bbd\u9650\u671f\u9650<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

edquota\u547d\u4ee4\u4f1a\u8c03\u7528Vi\u6216Vim\u7f16\u8f91\u5668\u6765\u8ba9root\u7ba1\u7406\u5458\u4fee\u6539\u8981\u9650\u5236\u7684\u5177\u4f53\u7ec6\u8282\uff0c\u8bb0\u5f97\u7528wq\u4fdd\u5b58\u9000\u51fa\u3002\u4e0b\u9762\u628a\u7528\u6237tom\u7684\u786c\u76d8\u4f7f\u7528\u91cf\u7684\u786c\u9650\u989d\u4ece5MB\u63d0\u5347\u52308MB\uff1a<\/p>\n

[tom@linuxprobe ~]$ exit\r\n[root@linuxprobe ~]# edquota -u tom\r\nDisk quotas for user tom (uid 1001):\r\n  Filesystem                   blocks       soft       hard     inodes     soft     hard\r\n  \/dev\/sda1                      4096       3072       8192  <\/strong>        1        3        6\r\n[root@linuxprobe ~]# su - tom\r\n[tom@linuxprobe ~]$ cd \/boot\r\n[tom@linuxprobe boot]$ dd if=\/dev\/zero of=\/boot\/tom bs=8M count=1\r\n1+0 records in\r\n1+0 records out\r\n8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.0185476 s, 452 MB\/s<\/pre>\n
6.8 VDO\u865a\u62df\u6570\u636e\u4f18\u5316<\/strong><\/span><\/h5>\n

VDO\uff08Virtual Data Optimize\uff0c\u865a\u62df\u6570\u636e\u4f18\u5316\uff09\u662f\u4e00\u79cd\u901a\u8fc7\u538b\u7f29\u6216\u5220\u9664\u5b58\u50a8\u8bbe\u5907\u4e0a\u7684\u6570\u636e\u6765\u4f18\u5316\u5b58\u50a8\u7a7a\u95f4\u7684\u6280\u672f\u3002VDO\u662f\u7ea2\u5e3d\u516c\u53f8\u6536\u8d2d\u4e86Permabit\u516c\u53f8\u540e\u83b7\u53d6\u7684\u65b0\u6280\u672f\uff0c\u5e76\u4e0e2019-2020\u5e74\u524d\u540e\uff0c\u591a\u6b21\u5728RHEL 7.5\/7.6\/7.7\u4e0a\u8fdb\u884c\u6d4b\u8bd5\uff0c\u6700\u7ec8\u968fRHEL 8\u7cfb\u7edf\u6b63\u5f0f\u516c\u5e03\u3002VDO\u6280\u672f\u7684\u5173\u952e\u5c31\u662f\u5bf9\u786c\u76d8\u5185\u539f\u6709\u7684\u6570\u636e\u8fdb\u884c\u5220\u91cd\u64cd\u4f5c\uff0c\u5b83\u6709\u70b9\u7c7b\u4f3c\u4e8e\u6211\u4eec\u5e73\u65f6\u4f7f\u7528\u7684\u7f51\u76d8\u670d\u52a1\uff0c\u5728\u7b2c\u4e00\u6b21\u6b63\u5e38\u4e0a\u4f20\u6587\u4ef6\u65f6\u901f\u5ea6\u7279\u522b\u6162\uff0c\u5728\u7b2c\u4e8c\u6b21\u4e0a\u4f20\u76f8\u540c\u7684\u6587\u4ef6\u65f6\u4ec5\u4f5c\u4e3a\u4e00\u4e2a\u6570\u636e\u6307\u9488\uff0c\u51e0\u4e4e\u53ef\u4ee5\u8fbe\u5230\u201c\u79d2\u4f20\u201d\u7684\u6548\u679c\uff0c\u65e0\u987b\u518d\u591a\u5360\u7528\u4e00\u4efd\u7a7a\u95f4\uff0c\u4e5f\u4e0d\u7528\u518d\u6f2b\u957f\u7b49\u5f85\u3002\u9664\u4e86\u5220\u91cd\u64cd\u4f5c\uff0cVDO\u6280\u672f\u8fd8\u53ef\u4ee5\u5bf9\u65e5\u5fd7\u548c\u6570\u636e\u5e93\u8fdb\u884c\u81ea\u52a8\u538b\u7f29\uff0c\u8fdb\u4e00\u6b65\u51cf\u5c11\u5b58\u50a8\u6d6a\u8d39\u7684\u60c5\u51b5\u3002VDO\u9488\u5bf9\u5404\u79cd\u7c7b\u578b\u6587\u4ef6\u7684\u538b\u7f29\u6548\u679c\u5982\u88686-7\u6240\u793a\u3002<\/p>\n

\u88686-7\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5bf9\u5404\u79cd\u7c7b\u578b\u6587\u4ef6\u538b\u7f29\u6548\u679c\u6c47\u603b\u8868<\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u6587\u4ef6\u540d<\/td>\n\u63cf\u8ff0<\/td>\n\u7c7b\u578b<\/td>\n\u539f\u59cb\u5927\u5c0f\uff08KB\uff09<\/td>\n\u5b9e\u9645\u5360\u7528\u7a7a\u95f4\uff08KB\uff09<\/td>\n<\/tr>\n
dickens<\/td>\n\u72c4\u66f4\u65af\u6587\u96c6<\/td>\n\u82f1\u6587\u539f\u6587<\/td>\n9953<\/td>\n9948<\/td>\n<\/tr>\n
mozilla<\/td>\nMozilla\u76841.0\u53ef\u6267\u884c\u6587\u4ef6<\/td>\n\u6267\u884c\u7a0b\u5e8f<\/td>\n50020<\/td>\n33228<\/td>\n<\/tr>\n
mr<\/td>\n\u533b\u7528resonanse\u56fe\u50cf\t<\/td>\n\u56fe\u7247<\/td>\n9736<\/td>\n9272<\/td>\n<\/tr>\n
nci<\/td>\n\u7ed3\u6784\u5316\u7684\u5316\u5b66\u6570\u636e\u5e93<\/td>\n\u6570\u636e\u5e93<\/td>\n32767<\/td>\n10168<\/td>\n<\/tr>\n
ooffice<\/td>\nOpen Office.org 1.01 DLL<\/td>\n\u53ef\u6267\u884c\u7a0b\u5e8f<\/td>\n6008<\/td>\n5640<\/td>\n<\/tr>\n
osdb<\/td>\n\u57fa\u51c6\u6d4b\u8bd5\u7528\u7684MySQL\u683c\u5f0f\u793a\u4f8b\u6570\u636e\u5e93\t<\/td>\n\u6570\u636e\u5e93<\/td>\n9849<\/td>\n9824<\/td>\n<\/tr>\n
reymont<\/td>\n\u74e6\u8fea\u65af\u74e6\u592b\u00b7\u96f7\u8499\u7279\u7684\u4e66<\/td>\nPDF<\/td>\n6471<\/td>\n6312<\/td>\n<\/tr>\n
samba<\/td>\nsamba\u6e90\u4ee3\u7801<\/td>\nsrc\u6e90\u7801<\/td>\n21100<\/td>\n11768<\/td>\n<\/tr>\n
sao<\/td>\n\u661f\u7a7a\u6570\u636e<\/td>\n\u5929\u6587\u683c\u5f0f\u7684bin\u6587\u4ef6<\/td>\n7081<\/td>\n7036<\/td>\n<\/tr>\n
webster<\/td>\n\u8f9e\u6d77<\/td>\nHTML<\/td>\n40487<\/td>\n40144<\/td>\n<\/tr>\n
xml<\/td>\nXML\u6587\u4ef6<\/td>\nHTML<\/td>\n5220<\/td>\n2180<\/td>\n<\/tr>\n
x-ray<\/td>\n\u900f\u89c6\u533b\u5b66\u56fe\u7247<\/td>\n\u533b\u9662\u6570\u636e<\/td>\n8275<\/td>\n8260<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

VDO\u6280\u672f\u652f\u6301\u672c\u5730\u5b58\u50a8\u548c\u8fdc\u7a0b\u5b58\u50a8\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\u3001iSCSI\u6216Ceph\u5b58\u50a8\u4e0b\u7684\u9644\u52a0\u5b58\u50a8\u5c42\u4f7f\u7528\u3002\u7ea2\u5e3d\u516c\u53f8\u5728VDO\u4ecb\u7ecd\u9875\u9762\u4e2d\u63d0\u5230\uff0c\u5728\u90e8\u7f72\u865a\u62df\u673a\u6216\u5bb9\u5668\u65f6\uff0c\u5efa\u8bae\u91c7\u7528\u903b\u8f91\u5b58\u50a8\u4e0e\u7269\u7406\u5b58\u50a8\u4e3a10\u22361\u7684\u6bd4\u4f8b\u8fdb\u884c\u914d\u7f6e\uff0c\u53731TB\u7269\u7406\u5b58\u50a8\u5bf9\u5e9410TB\u903b\u8f91\u5b58\u50a8\uff1b\u800c\u90e8\u7f72\u5bf9\u8c61\u5b58\u50a8\u65f6\u00a0\uff08\u4f8b\u5982\u4f7f\u7528Ceph\uff09\u5219\u91c7\u7528\u903b\u8f91\u5b58\u50a8\u4e0e\u7269\u7406\u5b58\u50a8\u4e3a3\u22361\u7684\u6bd4\u4f8b\u8fdb\u884c\u914d\u7f6e\uff0c\u5373\u4f7f\u75281TB\u7269\u7406\u5b58\u50a8\u5bf9\u5e943TB\u903b\u8f91\u5b58\u50a8\u3002<\/p>\n

\u7b80\u800c\u8a00\u4e4b\uff0cVDO\u6280\u672f\u80fd\u7701\u7a7a\u95f4\uff01<\/p>\n

\u6709\u4e24\u79cd\u7279\u6b8a\u60c5\u51b5\u9700\u8981\u63d0\u524d\u8bb2\u4e00\u4e0b\u3002\u5176\u4e00\uff0c\u516c\u53f8\u670d\u52a1\u5668\u4e0a\u5df2\u6709\u7684dm-crypt\u4e4b\u7c7b\u7684\u6280\u672f\u662f\u53ef\u4ee5\u4e0eVDO\u6280\u672f\u517c\u5bb9\u7684\uff0c\u4f46\u8bb0\u5f97\u8981\u5148\u5bf9\u5377\u8fdb\u884c\u52a0\u5bc6\u518d\u4f7f\u7528VDO\u3002\u56e0\u4e3a\u52a0\u5bc6\u4f1a\u4f7f\u91cd\u590d\u7684\u6570\u636e\u53d8\u5f97\u6709\u6240\u4e0d\u540c\uff0c\u56e0\u6b64\u5220\u91cd\u64cd\u4f5c\u65e0\u6cd5\u5b9e\u73b0\u3002\u8981\u59cb\u7ec8\u8bb0\u5f97\u628a\u52a0\u5bc6\u5c42\u653e\u5230VDO\u4e4b\u4e0b\uff0c\u5982\u56fe6-14\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-14 VDO\u6280\u672f\u62d3\u6251\u56fe<\/p>\n

\u5176\u4e8c\uff0cVDO\u6280\u672f\u4e0d\u53ef\u53e0\u52a0\u4f7f\u7528\uff0c1TB\u7684\u7269\u7406\u5b58\u50a8\u63d0\u5347\u621010TB\u7684\u903b\u8f91\u5b58\u50a8\u6ca1\u95ee\u9898\uff0c\u4f46\u662f\u518d\u752810TB\u7ffb\u6210100TB\u5c31\u4e0d\u884c\u4e86\u3002\u5de6\u811a\u8e29\u53f3\u811a\uff0c\u771f\u7684\u6ca1\u6cd5\u98de\u8d77\u6765\u3002<\/p>\n

\u901a\u8fc76.5\u8282\u7684\u5b66\u4e60\uff0c\u76f8\u4fe1\u540c\u5b66\u4eec\u5df2\u7ecf\u628a\u5bf9\u786c\u76d8\u8fdb\u884c\u5206\u533a\u3001\u683c\u5f0f\u5316\u3001\u6302\u8f7d\u64cd\u4f5c\u7684\u65b9\u6cd5\u62ff\u634f\u5f97\u6b7b\u6b7b\u7684\u4e86\u3002\u6211\u4eec\u628a\u865a\u62df\u673a\u5173\u95ed\uff0c\u6dfb\u52a0\u4e00\u5757\u5bb9\u91cf\u4e3a20GB\u7684\u65b0SATA\u786c\u76d8\u8fdb\u6765\uff0c\u5f00\u673a\u540e\u5c31\u80fd\u770b\u5230\u8fd9\u5757\u540d\u79f0\u4e3a\/dev\/sdc\u7684\u65b0\u786c\u76d8\u4e86\uff1a<\/p>\n

[root@linuxprobe ~]# ls -l \/dev\/sdc\r\nbrw-rw----. 1 root disk 8, 32 Jan 6 22:26 \/dev\/sdc<\/pre>\n

RHEL\/CentOS 8\u7cfb\u7edf\u4e2d\u9ed8\u8ba4\u5df2\u7ecf\u542f\u7528\u4e86VDO\u6280\u672f\u3002VDO\u6280\u672f\u73b0\u5728\u662f\u7ea2\u5e3d\u516c\u53f8\u81ea\u5df1\u7684\u6280\u672f\uff0c\u517c\u5bb9\u6027\u81ea\u7136\u6ca1\u5f97\u8bf4\u3002\u5982\u679c\u60a8\u6240\u7528\u7684\u7cfb\u7edf\u6ca1\u6709\u5b89\u88c5VDO\u7684\u8bdd\u4e5f\u4e0d\u8981\u7740\u6025\uff0c\u7528dnf\u547d\u4ee4\u5373\u53ef\u5b8c\u6210\u5b89\u88c5\uff1a<\/p>\n

[root@linuxprobe ~]# dnf install kmod-kvdo vdo\r\nUpdating Subscription Management repositories.\r\nUnable to read consumer identity\r\nThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.\r\nLast metadata expiration check: 0:01:56 ago on Wed 06 Jan 2021 10:37:19 PM CST.\r\nPackage kmod-kvdo-6.2.0.293-50.el8.x86_64 is already installed.\r\nPackage vdo-6.2.0.293-10.el8.x86_64 is already installed.\r\nDependencies resolved.\r\nNothing to do.\r\nComplete!<\/pre>\n

\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u5168\u65b0\u7684VDO\u5377\u3002<\/p>\n

\u65b0\u6dfb\u52a0\u8fdb\u6765\u7684\u7269\u7406\u8bbe\u5907\u5c31\u662f\u4f7f\u7528vdo\u547d\u4ee4\u6765\u7ba1\u7406\u7684\uff0c\u5176\u4e2dname\u53c2\u6570\u4ee3\u8868\u65b0\u7684\u8bbe\u5907\u5377\u7684\u540d\u79f0\uff1bdevice\u53c2\u6570\u4ee3\u8868\u7531\u54ea\u5757\u78c1\u76d8\u8fdb\u884c\u5236\u4f5c\uff1bvdoLogicalSize\u53c2\u6570\u4ee3\u8868\u5236\u4f5c\u540e\u7684\u8bbe\u5907\u5927\u5c0f\u3002\u4f9d\u636e\u7ea2\u5e3d\u516c\u53f8\u63a8\u8350\u7684\u539f\u5219\uff0c20GB\u786c\u76d8\u5c06\u7ffb\u6210200GB\u7684\u903b\u8f91\u5b58\u50a8\uff1a<\/p>\n

[root@linuxprobe ~]# vdo create --name=storage --device=\/dev\/sdc --vdoLogicalSize=200G\r\nCreating VDO storage\r\nStarting VDO storage\r\nStarting compression on VDO storage\r\nVDO instance 0 volume is ready at \/dev\/mapper\/storage<\/pre>\n
\n
\n

Tips<\/strong><\/h3>\n<\/div>\n
\n

Linux\u547d\u4ee4\u884c\u4e25\u683c\u533a\u522b\u5927\u5c0f\u5199\uff0cvdoLogicalSize\u53c2\u6570\u4e2d\u7684L\u4e0eS\u5b57\u6bcd\u5fc5\u987b\u5927\u5199\u3002<\/p>\n<\/div>\n<\/div>\n

\u5728\u521b\u5efa\u6210\u529f\u540e\uff0c\u4f7f\u7528status\u53c2\u6570\u67e5\u770b\u65b0\u5efa\u5377\u7684\u6982\u8ff0\u4fe1\u606f\uff1a<\/p>\n

[root@linuxprobe ~]# vdo status --name=storage\r\nVDO status:\r\n  Date: '2021-01-06 22:51:33+08:00'\r\n  Node: lrxjmw.cn\r\nKernel module:\r\n  Loaded: true\r\n  Name: kvdo\r\n  Version information:\r\n    kvdo version: 6.2.0.293\r\nConfiguration:\r\n  File: \/etc\/vdoconf.yml\r\n  Last modified: '2021-01-06 22:49:33'\r\nVDOs:\r\n  storage:\r\n    Acknowledgement threads: 1\r\n    Activate: enabled\r\n    Bio rotation interval: 64\r\n    Bio submission threads: 4\r\n    Block map cache size: 128M\r\n    Block map period: 16380\r\n    Block size: 4096\r\n    CPU-work threads: 2\r\n    Compression: enabled\r\n    Configured write policy: auto\r\n    Deduplication: enabled\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n

\u6709\u4e0a\u53ef\u89c1\uff0c\u5728\u8f93\u51fa\u4fe1\u606f\u4e2d\u5305\u542b\u4e86VDO\u5377\u521b\u5efa\u7684\u65f6\u95f4\u3001\u4e3b\u673a\u540d\u3001\u7248\u672c\u3001\u662f\u5426\u538b\u7f29\uff08Compression\uff09\u53ca\u662f\u5426\u5220\u91cd\uff08Deduplication\uff09\u7b49\u5173\u952e\u4fe1\u606f\u3002<\/p>\n

\u63a5\u4e0b\u6765\uff0c\u5bf9\u65b0\u5efa\u5377\u8fdb\u884c\u683c\u5f0f\u5316\u64cd\u4f5c\u5e76\u6302\u8f7d\u4f7f\u7528\u3002<\/p>\n

\u65b0\u5efa\u7684VDO\u5377\u8bbe\u5907\u4f1a\u88ab\u4e56\u4e56\u5730\u5b58\u653e\u5728\/dev\/mapper\u76ee\u5f55\u4e0b\uff0c\u5e76\u4ee5\u8bbe\u5907\u540d\u79f0\u547d\u540d\uff0c\u5bf9\u5b83\u64cd\u4f5c\u5c31\u884c\u3002\u53e6\u5916\uff0c\u6302\u8f7d\u524d\u53ef\u4ee5\u7528udevadm settle\u547d\u4ee4\u5bf9\u8bbe\u5907\u8fdb\u884c\u4e00\u6b21\u5237\u65b0\u64cd\u4f5c\uff0c\u907f\u514d\u521a\u624d\u7684\u914d\u7f6e\u6ca1\u6709\u751f\u6548\uff1a<\/p>\n

[root@linuxprobe ~]# mkfs.xfs \/dev\/mapper\/storage \r\nmeta-data=\/dev\/mapper\/storage    isize=512    agcount=4, agsize=13107200 blks\r\n         =                       sectsz=4096  attr=2, projid32bit=1\r\n         =                       crc=1        finobt=1, sparse=1, rmapbt=0\r\n         =                       reflink=1\r\ndata     =                       bsize=4096   blocks=52428800, imaxpct=25\r\n         =                       sunit=0      swidth=0 blks\r\nnaming   =version 2              bsize=4096   ascii-ci=0, ftype=1\r\nlog      =internal log           bsize=4096   blocks=25600, version=2\r\n         =                       sectsz=4096  sunit=1 blks, lazy-count=1\r\nrealtime =none                   extsz=4096   blocks=0, rtextents=0\r\n[root@linuxprobe ~]# udevadm settle\r\n[root@linuxprobe ~]# mkdir \/storage\r\n[root@linuxprobe ~]# mount \/dev\/mapper\/storage \/storage\r\n<\/pre>\n

\u5982\u679c\u60f3\u67e5\u770b\u8bbe\u5907\u7684\u5b9e\u9645\u4f7f\u7528\u60c5\u51b5\uff0c\u4f7f\u7528vdostats\u547d\u4ee4\u5373\u53ef\u3002human-readable\u53c2\u6570\u7684\u4f5c\u7528\u662f\u5c06\u5b58\u50a8\u5bb9\u91cf\u81ea\u52a8\u8fdb\u4f4d\uff0c\u4ee5\u4eba\u4eec\u66f4\u6613\u8bfb\u7684\u65b9\u5f0f\u8f93\u51fa\uff08\u6bd4\u5982\uff0c\u663e\u793a20G\u800c\u4e0d\u662f20971520K\uff09\uff1a<\/p>\n

[root@linuxprobe ~]# vdostats --human-readable\r\nDevice                    Size      Used Available Use% Space saving%\r\n\/dev\/mapper\/storage      20.0G      4.0G     16.0G  20%           99%<\/pre>\n

\u8fd9\u91cc\u663e\u793a\u7684Size\u662f\u5b9e\u9645\u7269\u7406\u5b58\u50a8\u7684\u7a7a\u95f4\u5927\u5c0f\uff08\u537320.0GB\u662f\u786c\u76d8\u7684\u5927\u5c0f\uff09\uff0c\u5982\u679c\u60f3\u770b\u903b\u8f91\u5b58\u50a8\u7a7a\u95f4\uff0c\u53ef\u4ee5\u4f7f\u7528df\u547d\u4ee4\u8fdb\u884c\u67e5\u770b\uff1a<\/p>\n

[root@linuxprobe ~]# df -h\r\nFilesystem             Size  Used Avail Use% Mounted on\r\ndevtmpfs               969M     0  969M   0% \/dev\r\ntmpfs                  984M     0  984M   0% \/dev\/shm\r\ntmpfs                  984M  9.6M  974M   1% \/run\r\ntmpfs                  984M     0  984M   0% \/sys\/fs\/cgroup\r\n\/dev\/mapper\/rhel-root   17G  3.9G   14G  23% \/\r\n\/dev\/sr0               6.7G  6.7G     0 100% \/media\/cdrom\r\n\/dev\/sda1             1014M  152M  863M  15% \/boot\r\ntmpfs                  197M   16K  197M   1% \/run\/user\/42\r\ntmpfs                  197M  3.5M  194M   2% \/run\/user\/0\r\n\/dev\/sdb1              2.0G   47M  2.0G   3% \/newFS\r\n\/dev\/mapper\/storage    200G  2.4G  198G   2% \/storage<\/strong>\r\n<\/pre>\n

\u968f\u4fbf\u590d\u5236\u4e00\u4e2a\u5927\u6587\u4ef6\u8fc7\u6765\uff0c\u770b\u770b\u5360\u7528\u4e86\u591a\u5c11\u5bb9\u91cf\uff0c\u4ee5\u53ca\u7a7a\u95f4\u8282\u7701\u7387\uff08Space saving\uff09\u662f\u591a\u5c11\uff1a<\/p>\n

[root@linuxprobe ~]# ls -lh \/media\/cdrom\/images\/install.img \r\n-r--r--r--. 1 root root 448M Apr 4 2019 \/media\/cdrom\/images\/install.img\r\n[root@linuxprobe ~]# cp \/media\/cdrom\/images\/install.img \/storage\/\r\n[root@linuxprobe ~]# ls -lh \/storage\/install.img \r\n-r--r--r--. 1 root root 448M Jan  6 23:06 \/storage\/install.img\r\n[root@linuxprobe ~]# vdostats --human-readable\r\nDevice                    Size      Used Available Use% Space saving%\r\n\/dev\/mapper\/storage      20.0G      4.4G     15.6G  22%           18%<\/pre>\n

\u6548\u679c\u4e0d\u660e\u663e\uff0c\u518d\u590d\u5236\u4e00\u4efd\u76f8\u540c\u7684\u6587\u4ef6\u8fc7\u6765\uff0c\u770b\u770b\u8fd9\u6b21\u5360\u7528\u4e86\u591a\u5c11\u7a7a\u95f4\uff1a<\/p>\n

[root@linuxprobe ~]# cp \/media\/cdrom\/images\/install.img \/storage\/rhel.img\r\n[root@linuxprobe ~]# vdostats --human-readable\r\nDevice                    Size      Used Available Use% Space saving%\r\n\/dev\/mapper\/storage      20.0G      4.5G     15.5G  22%           55%<\/pre>\n

\u662f\u4e0d\u662f\u611f\u89c9\u5f88\u68d2\uff1f\uff01\u539f\u5148448MB\u7684\u6587\u4ef6\u8fd9\u6b21\u53ea\u5360\u7528\u4e86\u4e0d\u5230100MB\u7684\u5bb9\u91cf\uff0c\u7a7a\u95f4\u8282\u7701\u7387\u4e5f\u4ece18%\u63d0\u5347\u5230\u4e8655%\u3002\u5f53\u7136\u8fd9\u8fd8\u4ec5\u4ec5\u662f\u4e24\u6b21\u64cd\u4f5c\u800c\u5df2\uff0c\u597d\u5904\u5c31\u5df2\u7ecf\u5982\u6b64\u660e\u663e\u4e86\u3002<\/p>\n

\u6700\u540e\uff0c\u5c06\u8bbe\u5907\u8bbe\u7f6e\u6210\u6c38\u4e45\u6302\u8f7d\u751f\u6548\uff0c\u4e00\u76f4\u63d0\u4f9b\u670d\u52a1\u3002<\/p>\n

VDO\u8bbe\u5907\u5377\u5728\u521b\u5efa\u540e\u4f1a\u4e00\u76f4\u5b58\u5728\uff0c\u4f46\u9700\u8981\u624b\u52a8\u7f16\u8f91\/etc\/fstab\u6587\u4ef6\u540e\u624d\u80fd\u5728\u4e0b\u4e00\u6b21\u91cd\u542f\u540e\u81ea\u52a8\u6302\u8f7d\u751f\u6548\uff0c\u4e3a\u6211\u4eec\u6240\u7528\u3002\u5bf9\u4e8e\u8fd9\u79cd\u903b\u8f91\u5b58\u50a8\u8bbe\u5907\uff0c\u5176\u5b9e\u4e0d\u592a\u5efa\u8bae\u4f7f\u7528\/dev\/mapper\/storage\u4f5c\u4e3a\u8bbe\u5907\u540d\u8fdb\u884c\u6302\u8f7d\u3002\u4e0d\u5982\u8bd5\u8bd5\u524d\u9762\u6240\u8bf4\u7684UUID\u5427\uff1a<\/p>\n

[root@linuxprobe ~]# blkid \/dev\/mapper\/storage \r\n\/dev\/mapper\/storage: UUID=\"cd4e9f12-e16a-415c-ae76-8de069076713\" TYPE=\"xfs\"<\/pre>\n

\u6253\u5f00\/etc\/fstab\u6587\u4ef6\uff0c\u628a\u5bf9\u5e94\u7684\u5b57\u6bb5\u586b\u5199\u5b8c\u6574\u3002\u5efa\u8bae\u518d\u52a0\u4e0a_netdev\u53c2\u6570\uff0c\u8868\u793a\u7b49\u7cfb\u7edf\u53ca\u7f51\u7edc\u90fd\u542f\u52a8\u540e\u518d\u6302\u8f7dVDO\u8bbe\u5907\u5377\uff0c\u4ee5\u4fdd\u8bc1\u4e07\u65e0\u4e00\u5931\u3002<\/p>\n

[root@linuxprobe ~]# vim \/etc\/fstab\r\n#\r\n# \/etc\/fstab\r\n# Created by anaconda on Tue Jul 21 05:03:40 2020\r\n#\r\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk\/'.\r\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info.\r\n#\r\n# After editing this file, run 'systemctl daemon-reload' to update systemd\r\n# units generated from this file.\r\n#\r\n\/dev\/mapper\/rhel-root                        \/             xfs        defaults           1 1\r\nUUID=812b1f7c-8b5b-43da-8c06-b9999e0fe48b    \/boot         xfs        defaults,uquota    1 2\r\n\/dev\/mapper\/rhel-swap                        swap          swap       defaults           0 0\r\n\/dev\/cdrom                                   \/media\/cdrom  iso9660    defaults           0 0 \r\n\/dev\/sdb1                                    \/newFS        xfs        defaults           0 0 \r\n\/dev\/sdb2                                    swap          swap       defaults           0 0 \r\nUUID=cd4e9f12-e16a-415c-ae76-8de069076713    \/storage      xfs        defaults,_netdev   0 0<\/strong> \r\n<\/pre>\n
6.9 \u8f6f\u786c\u65b9\u5f0f\u94fe\u63a5<\/strong><\/span><\/h5>\n

\u5728\u5f15\u9886\u5927\u5bb6\u5b66\u4e60\u5b8c\u672c\u7ae0\u6240\u6709\u7684\u786c\u76d8\u7ba1\u7406\u77e5\u8bc6\u4e4b\u540e\uff0c\u5218\u9044\u8001\u5e08\u7ec8\u4e8e\u53ef\u4ee5\u653e\u5fc3\u5927\u80c6\u5730\u8bb2\u89e3Linux\u7cfb\u7edf\u4e2d\u7684\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u4e86\u3002\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u5feb\u6377\u65b9\u5f0f\u5c31\u662f\u6307\u5411\u539f\u59cb\u6587\u4ef6\u7684\u4e00\u4e2a\u94fe\u63a5\u6587\u4ef6\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u4ece\u4e0d\u540c\u7684\u4f4d\u7f6e\u6765\u8bbf\u95ee\u539f\u59cb\u7684\u6587\u4ef6\uff1b\u539f\u6587\u4ef6\u4e00\u65e6\u88ab\u5220\u9664\u6216\u526a\u5207\u5230\u5176\u4ed6\u5730\u65b9\uff0c\u4f1a\u5bfc\u81f4\u94fe\u63a5\u6587\u4ef6\u5931\u6548\u3002\u4f46\u662f\uff0c\u8fd9\u4e2a\u770b\u4f3c\u7b80\u5355\u7684\u4e1c\u897f\u5728Linux\u7cfb\u7edf\u4e2d\u53ef\u4e0d\u592a\u4e00\u6837\u3002<\/p>\n

Linux\u7cfb\u7edf\u4e2d\u5b58\u5728\u8f6f\u94fe\u63a5\u548c\u786c\u94fe\u63a5\u4e24\u79cd\u4e0d\u540c\u7684\u7c7b\u578b\u3002<\/p>\n

\u8f6f\u94fe\u63a5\uff08soft link\uff09\uff1a<\/strong>\u4e5f\u53eb\u7b26\u53f7\u94fe\u63a5\uff08symbolic link\uff09\uff0c\u4ec5\u4ec5\u5305\u542b\u6240\u94fe\u63a5\u6587\u4ef6\u7684\u540d\u79f0\u548c\u8def\u5f84\uff0c\u5f88\u50cf\u4e00\u4e2a\u8bb0\u5f55\u5730\u5740\u7684\u6807\u7b7e\u3002\u5f53\u539f\u59cb\u6587\u4ef6\u88ab\u5220\u9664\u6216\u79fb\u52a8\u540e\uff0c\u65b0\u7684\u94fe\u63a5\u6587\u4ef6\u4e5f\u4f1a\u968f\u4e4b\u5931\u6548\uff0c\u4e0d\u80fd\u88ab\u8bbf\u95ee\u3002\u53ef\u4ee5\u9488\u5bf9\u6587\u4ef6\u3001\u76ee\u5f55\u8bbe\u7f6e\u8f6f\u94fe\u63a5\uff0c\u8de8\u6587\u4ef6\u7cfb\u7edf\u8fdb\u884c\u94fe\u63a5\u4e5f\u4e0d\u662f\u95ee\u9898\u3002\u4ece\u8fd9\u4e00\u70b9\u6765\u770b\uff0c\u5b83\u4e0eWindows\u7cfb\u7edf\u7684\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u5177\u6709\u4e00\u6837\u7684\u6027\u8d28\u3002\u7528\u6237\u8bbf\u95ee\u8f6f\u94fe\u63a5\u7684\u6548\u679c\u5982\u56fe6-15\u6240\u793a\u3002<\/p>\n

\u786c\u94fe\u63a5\uff08hard link\uff09\uff1a<\/strong>\u53ef\u4ee5\u5c06\u5b83\u7406\u89e3\u4e3a\u4e00\u4e2a\u201c\u6307\u5411\u539f\u59cb\u6587\u4ef6block\u7684\u6307\u9488\u201d\uff0c\u7cfb\u7edf\u4f1a\u521b\u5efa\u51fa\u4e00\u4e2a\u4e0e\u539f\u6765\u4e00\u6a21\u4e00\u6837\u7684inode\u4fe1\u606f\u5757\u3002\u6240\u4ee5\uff0c\u786c\u94fe\u63a5\u6587\u4ef6\u4e0e\u539f\u59cb\u6587\u4ef6\u5176\u5b9e\u662f\u4e00\u6a21\u4e00\u6837\u7684\uff0c\u53ea\u662f\u540d\u5b57\u4e0d\u540c\u3002\u6bcf\u6dfb\u52a0\u4e00\u4e2a\u786c\u94fe\u63a5\uff0c\u8be5\u6587\u4ef6\u7684inode\u4e2a\u6570\u5c31\u4f1a\u589e\u52a01\uff1b\u800c\u4e14\u53ea\u6709\u5f53\u8be5\u6587\u4ef6\u7684inode\u4e2a\u6570\u4e3a0\u65f6\uff0c\u624d\u7b97\u5f7b\u5e95\u5c06\u5b83\u5220\u9664\u3002\u6362\u8a00\u4e4b\uff0c\u7531\u4e8e\u786c\u94fe\u63a5\u5b9e\u9645\u4e0a\u662f\u6307\u5411\u539f\u6587\u4ef6block\u7684\u6307\u9488\uff0c\u56e0\u6b64\u5373\u4fbf\u539f\u59cb\u6587\u4ef6\u88ab\u5220\u9664\uff0c\u4f9d\u7136\u53ef\u4ee5\u901a\u8fc7\u786c\u94fe\u63a5\u6587\u4ef6\u6765\u8bbf\u95ee\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7531\u4e8e\u6280\u672f\u7684\u5c40\u9650\u6027\uff0c\u4e0d\u80fd\u8de8\u5206\u533a\u5bf9\u76ee\u5f55\u6587\u4ef6\u8fdb\u884c\u786c\u94fe\u63a5\u3002\u7528\u6237\u8bbf\u95ee\u786c\u94fe\u63a5\u7684\u6548\u679c\u5982\u56fe6-16\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe6-15 \u8f6f\u94fe\u63a5\u539f\u7406\u793a\u610f\u56fe<\/p>\n

\"\"<\/p>\n

\u56fe6-16 \u786c\u94fe\u63a5\u539f\u7406\u793a\u610f\u56fe<\/p>\n

\n
\n

Tips<\/strong><\/h3>\n<\/div>\n
\n

\u5927\u5bb6\u7ffb\u5f00\u624b\u5934\u8fd9\u672c\u4e66\u7684\u76ee\u5f55\u9875\uff0c\u770b\u4e00\u4e0b\u76ee\u5f55\u6807\u9898\u548c\u5bf9\u5e94\u7684\u9875\u7801\u5c31\u5e94\u8be5\u80fd\u591f\u7406\u89e3\u4e86\u3002\u94fe\u63a5\u6587\u4ef6\u5c31\u662f\u6307\u5411\u5b9e\u9645\u5185\u5bb9\u6240\u5728\u4f4d\u7f6e\u7684\u4e00\u4e2a\u6807\u7b7e\uff0c\u901a\u8fc7\u8fd9\u4e2a\u6807\u7b7e\uff0c\u53ef\u4ee5\u627e\u5230\u5bf9\u5e94\u7684\u6570\u636e\u3002<\/p>\n<\/div>\n<\/div>\n

ln\u547d\u4ee4\u7528\u4e8e\u521b\u5efa\u6587\u4ef6\u7684\u8f6f\u786c\u94fe\u63a5\uff0c\u82f1\u6587\u5168\u79f0\u4e3a\u201clink\u201d\uff0c\u8bed\u6cd5\u683c\u5f0f\u4e3a\u201cln [\u53c2\u6570]\u539f\u59cb\u6587\u4ef6\u540d \u94fe\u63a5\u6587\u4ef6\u540d\u201d\u3002<\/p>\n

ln\u547d\u4ee4\u7684\u53ef\u7528\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528\u5982\u88686-8\u6240\u793a\u3002\u5728\u4f7f\u7528ln\u547d\u4ee4\u65f6\uff0c\u662f\u5426\u6dfb\u52a0-s\u53c2\u6570\uff0c\u5c06\u521b\u5efa\u51fa\u6027\u8d28\u4e0d\u540c\u7684\u4e24\u79cd\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u3002\u56e0\u6b64\u5982\u679c\u6ca1\u6709\u624e\u5b9e\u7684\u7406\u8bba\u77e5\u8bc6\u548c\u5b9e\u8df5\u7ecf\u9a8c\u505a\u94fa\u57ab\uff0c\u5c3d\u7ba1\u80fd\u591f\u6210\u529f\u5b8c\u6210\u5b9e\u9a8c\uff0c\u4f46\u6c38\u8fdc\u4e0d\u4f1a\u660e\u767d\u4e3a\u4ec0\u4e48\u4f1a\u6210\u529f\u3002<\/p>\n

\u88686-8\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0ln\u547d\u4ee4\u4e2d\u53ef\u7528\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528<\/p>\n\n\n\n\n\n\n\n
\u53c2\u6570<\/td>\n\u4f5c\u7528<\/td>\n<\/tr>\n
-s<\/td>\n\u521b\u5efa\u201c\u7b26\u53f7\u94fe\u63a5\u201d\uff08\u5982\u679c\u4e0d\u5e26-s\u53c2\u6570\uff0c\u5219\u9ed8\u8ba4\u521b\u5efa\u786c\u94fe\u63a5\uff09<\/td>\n<\/tr>\n
-f<\/td>\n\u5f3a\u5236\u521b\u5efa\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u94fe\u63a5<\/td>\n<\/tr>\n
-i<\/td>\n\u8986\u76d6\u524d\u5148\u8be2\u95ee<\/td>\n<\/tr>\n
-v<\/td>\n\u663e\u793a\u521b\u5efa\u94fe\u63a5\u7684\u8fc7\u7a0b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u8f6f\u94fe\u63a5\u3001\u786c\u94fe\u63a5\u7684\u4e0d\u540c\u6027\u8d28\uff0c\u6211\u4eec\u5148\u521b\u5efa\u51fa\u4e00\u4e2a\u6587\u4ef6\uff0c\u4e3a\u5176\u521b\u5efa\u4e00\u4e2a\u8f6f\u94fe\u63a5\uff1a<\/p>\n

[root@linuxprobe ~]# echo \"Welcome to lrxjmw.cn\" > old.txt\r\n[root@linuxprobe ~]# ln -s old.txt new.txt\r\n[root@linuxprobe ~]# cat old.txt \r\nWelcome to lrxjmw.cn\r\n[root@linuxprobe ~]# cat new.txt \r\nWelcome to lrxjmw.cn\r\n[root@linuxprobe ~]# ls -l old.txt \r\n-rw-r--r-- 1 root root 26 Jan 11 00:08 old.txt<\/pre>\n

\u539f\u59cb\u6587\u4ef6\u540d\u4e3aold\uff0c\u65b0\u7684\u8f6f\u94fe\u63a5\u6587\u4ef6\u540d\u4e3anew\u3002\u5220\u6389\u539f\u59cb\u6587\u4ef6\u540e\uff0c\u8f6f\u94fe\u63a5\u6587\u4ef6\u7acb\u523b\u5c31\u65e0\u6cd5\u8bfb\u53d6\u4e86\uff1a<\/p>\n

[root@linuxprobe ~]# rm -f old.txt \r\n[root@linuxprobe ~]# cat new.txt \r\ncat: readit.txt: No such file or directory<\/pre>\n

\u63a5\u4e0b\u6765\u9488\u5bf9\u539f\u59cb\u6587\u4ef6old\u521b\u5efa\u4e00\u4e2a\u786c\u94fe\u63a5\uff0c\u5373\u76f8\u5f53\u4e8e\u9488\u5bf9\u539f\u59cb\u6587\u4ef6\u7684\u786c\u76d8\u5b58\u50a8\u4f4d\u7f6e\u521b\u5efa\u4e86\u4e00\u4e2a\u6307\u9488\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u65b0\u521b\u5efa\u7684\u8fd9\u4e2a\u786c\u94fe\u63a5\u5c31\u4e0d\u518d\u4f9d\u8d56\u4e8e\u539f\u59cb\u6587\u4ef6\u7684\u540d\u79f0\u7b49\u4fe1\u606f\uff0c\u4e5f\u4e0d\u4f1a\u56e0\u4e3a\u539f\u59cb\u6587\u4ef6\u7684\u5220\u9664\u800c\u5bfc\u81f4\u65e0\u6cd5\u8bfb\u53d6\u4e86\u3002\u540c\u65f6\u53ef\u4ee5\u770b\u5230\u521b\u5efa\u786c\u94fe\u63a5\u540e\uff0c\u539f\u59cb\u6587\u4ef6\u7684\u786c\u76d8\u94fe\u63a5\u6570\u91cf\u589e\u52a0\u5230\u4e862\u3002<\/p>\n

[root@linuxprobe ~]# echo \"Welcome to lrxjmw.cn\" > old.txt\r\n[root@linuxprobe ~]# ln old.txt new.txt\r\n[root@linuxprobe ~]# cat old.txt \r\nWelcome to lrxjmw.cn\r\n[root@linuxprobe ~]# cat new.txt \r\nWelcome to lrxjmw.cn\r\n[root@linuxprobe ~]# ls -l old.txt \r\n-rw-r--r-- 2<\/strong> root root 26 Jan 11 00:13 old.txt<\/pre>\n

\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u6709\u610f\u601d\u7684\u73b0\u8c61\u3002\u521b\u5efa\u7684\u786c\u94fe\u63a5\u6587\u4ef6\u7adf\u7136\u4f1a\u8ba9\u6587\u4ef6\u5c5e\u6027\u7b2c\u4e8c\u5217\u7684\u6570\u5b57\u53d8\u6210\u4e862\uff0c\u8fd9\u4e2a\u6570\u5b57\u8868\u793a\u7684\u662f\u6587\u4ef6\u7684inode\u4fe1\u606f\u5757\u7684\u6570\u91cf\u3002\u76f8\u4fe1\u540c\u5b66\u4eec\u5df2\u7ecf\u975e\u5e38\u80af\u5b9a\u5730\u77e5\u9053\uff0c\u5373\u4fbf\u5220\u9664\u4e86\u539f\u59cb\u6587\u4ef6\uff0c\u65b0\u7684\u6587\u4ef6\u4e5f\u4f1a\u4e00\u5982\u65e2\u5f80\u5730\u53ef\u4ee5\u8bfb\u53d6\uff0c\u56e0\u4e3a\u53ea\u6709\u5f53\u6587\u4ef6inode\u6570\u91cf\u88ab\u201c\u6e05\u96f6\u201d\u65f6\uff0c\u624d\u771f\u6b63\u4ee3\u8868\u8fd9\u4e2a\u6587\u4ef6\u88ab\u5220\u9664\u4e86\u3002<\/p>\n

[root@linuxprobe ~]# rm -f old.txt \r\n[root@linuxprobe ~]# cat new.txt \r\nWelcome to lrxjmw.cn<\/pre>\n

\u51fa\u73b0\u95ee\u9898?\u5927\u80c6\u63d0\u95ee!<\/strong><\/span><\/p>\n

\u56e0\u8bfb\u8005\u4eec\u786c\u4ef6\u4e0d\u540c\u6216\u64cd\u4f5c\u9519\u8bef\u90fd\u53ef\u80fd\u5bfc\u81f4\u5b9e\u9a8c\u914d\u7f6e\u51fa\u9519\uff0c\u8bf7\u8010\u5fc3\u518d\u4ed4\u7ec6\u770b\u770b\u64cd\u4f5c\u6b65\u9aa4\u5427\uff0c\u4e0d\u8981\u6c14\u9981~<\/p>\n

Linux\u6280\u672f\u4ea4\u6d41\u5b66\u4e60\u8bf7\u52a0\u8bfb\u8005\u7fa4\uff08\u63a8\u8350<\/span><\/strong>\uff09\uff1ahttps:\/\/lrxjmw.cn\/club<\/a><\/p>\n

*\u672c\u7fa4\u7279\u8272\uff1a\u786e\u4fdd\u6bcf\u4e00\u4f4d\u7fa4\u53cb\u90fd\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7684\u8bfb\u8005\uff0c\u7b54\u7591\u66f4\u6709\u9488\u5bf9\u6027\uff0c\u4e0d\u5b9a\u671f\u9886\u53d6\u5b9a\u5236\u793c\u54c1\u3002<\/p><\/blockquote>\n

\u672c\u7ae0\u8282\u7684\u590d\u4e60\u4f5c\u4e1a<\/span>(\u7b54\u6848\u5c31\u5728\u95ee\u9898\u7684\u4e0b\u4e00\u884c\u54e6\uff0c\u7528\u9f20\u6807\u9009\u4e2d\u5373\u53ef\u770b\u5230\u7684~)<\/strong><\/span><\/p>\n

1\uff0e\/home\u76ee\u5f55\u4e0e\/root\u76ee\u5f55\u5185\u5b58\u653e\u7684\u6587\u4ef6\u6709\u4f55\u76f8\u540c\u70b9\u4ee5\u53ca\u4e0d\u540c\u70b9\uff1f<\/p>\n

\u7b54\uff1a<\/strong>\u8fd9\u4e24\u4e2a\u76ee\u5f55\u90fd\u662f\u7528\u6765\u5b58\u653e\u7528\u6237\u5bb6\u76ee\u5f55\u6570\u636e\u7684\uff0c\u4f46\u662f\uff0c\/root\u76ee\u5f55\u5b58\u653e\u7684\u662froot\u7ba1\u7406\u5458\u7684\u5bb6\u76ee\u5f55\u6570\u636e\u3002<\/span><\/p>\n

2\uff0e\u5047\u5982\u4e00\u4e2a\u8bbe\u5907\u7684\u6587\u4ef6\u540d\u79f0\u4e3a\/dev\/sdb\uff0c\u53ef\u4ee5\u786e\u8ba4\u5b83\u662f\u4e3b\u677f\u7b2c\u4e8c\u4e2a\u63d2\u69fd\u4e0a\u7684\u8bbe\u5907\u5417\uff1f<\/p>\n

\u7b54\uff1a<\/strong>\u4e0d\u4e00\u5b9a\uff0c\u56e0\u4e3a\u8bbe\u5907\u7684\u6587\u4ef6\u540d\u79f0\u662f\u7531\u7cfb\u7edf\u7684\u8bc6\u522b\u987a\u5e8f\u6765\u51b3\u5b9a\u7684\u3002<\/span><\/p>\n

3\uff0e\u5982\u679c\u786c\u76d8\u4e2d\u9700\u89815\u4e2a\u5206\u533a\uff0c\u5219\u81f3\u5c11\u9700\u8981\u51e0\u4e2a\u903b\u8f91\u5206\u533a\uff1f<\/p>\n

\u7b54\uff1a<\/strong>\u53ef\u4ee5\u9009\u7528\u521b\u5efa3\u4e2a\u4e3b\u5206\u533a+1\u4e2a\u6269\u5c55\u5206\u533a\u7684\u65b9\u6cd5\uff0c\u7136\u540e\u628a\u6269\u5c55\u5206\u533a\u518d\u5206\u62102\u4e2a\u903b\u8f91\u5206\u533a\uff0c\u5373\u6709\u4e865\u4e2a\u5206\u533a\u3002<\/span><\/p>\n

4\uff0e\/dev\/sda5\u662f\u4e3b\u5206\u533a\u8fd8\u662f\u903b\u8f91\u5206\u533a\uff1f<\/p>\n

\u7b54\uff1a<\/strong>\u903b\u8f91\u5206\u533a\u3002<\/span><\/p>\n

5\uff0e\u54ea\u4e2a\u670d\u52a1\u51b3\u5b9a\u4e86\u8bbe\u5907\u5728\/dev\u76ee\u5f55\u4e2d\u7684\u540d\u79f0\uff1f<\/p>\n

\u7b54\uff1a<\/strong>udev\u8bbe\u5907\u7ba1\u7406\u5668\u670d\u52a1\u3002<\/span><\/p>\n

6\uff0e\u7528\u4e00\u53e5\u8bdd\u6765\u63cf\u8ff0\u6302\u8f7d\u64cd\u4f5c\u3002<\/p>\n

\u7b54\uff1a<\/strong>\u5f53\u7528\u6237\u9700\u8981\u4f7f\u7528\u786c\u76d8\u8bbe\u5907\u6216\u5206\u533a\u4e2d\u7684\u6570\u636e\u65f6\uff0c\u9700\u8981\u5148\u5c06\u5176\u4e0e\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u76ee\u5f55\u6587\u4ef6\u8fdb\u884c\u5173\u8054\uff0c\u800c\u8fd9\u4e2a\u5173\u8054\u52a8\u4f5c\u5c31\u662f\u201c\u6302\u8f7d\u201d\u3002<\/span><\/p>\n

7\uff0e\u5728\u914d\u7f6equota\u78c1\u76d8\u5bb9\u91cf\u914d\u989d\u670d\u52a1\u65f6\uff0c\u8f6f\u9650\u5236\u6570\u503c\u5fc5\u987b\u5c0f\u4e8e\u786c\u9650\u5236\u6570\u503c\u4e48\uff1f<\/p>\n

\u7b54\uff1a<\/strong>\u4e0d\u4e00\u5b9a\uff0c\u8f6f\u9650\u5236\u6570\u503c\u53ef\u4ee5\u5c0f\u4e8e\u7b49\u4e8e\u786c\u9650\u5236\u6570\u503c\u3002<\/span><\/p>\n

8\uff0eVDO\u6280\u672f\u80fd\u591f\u63d0\u5347\u786c\u76d8\u7684\u7269\u7406\u5b58\u50a8\u7a7a\u95f4\u4e48\uff1f<\/p>\n

\u7b54\uff1a<\/strong>\u4e0d\u53ef\u4ee5\uff0cVDO\u662f\u901a\u8fc7\u538b\u7f29\u6216\u5220\u91cd\u64cd\u4f5c\u6765\u63d0\u9ad8\u786c\u76d8\u7684\u903b\u8f91\u7a7a\u95f4\u5927\u5c0f\u3002<\/span><\/p>\n

9\uff0e\u82e5\u539f\u59cb\u6587\u4ef6\u88ab\u6539\u540d\uff0c\u90a3\u4e48\u4e4b\u524d\u521b\u5efa\u7684\u786c\u94fe\u63a5\u8fd8\u80fd\u8bbf\u95ee\u5230\u8fd9\u4e2a\u539f\u59cb\u6587\u4ef6\u4e48\uff1f<\/p>\n

\u7b54\uff1a<\/strong>\u53ef\u4ee5\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

\u7ae0\u8282\u7b80\u8ff0\uff1a Linux\u7cfb\u7edf\u4e2d\u9887\u5177\u7279\u8272\u7684\u6587\u4ef6\u5b58\u50a8\u7ed3\u6784\u5e38\u5e38\u641e\u5f97\u65b0\u624b\u5934\u660f\u8111\u6da8\uff0c\u672c\u7ae0\u5c06\u4eceLinux\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u5b58\u50a8\u7ed3\u6784 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[559],"tags":[],"class_list":["post-181462","post","type-post","status-publish","format-standard","hentry","category-rhel8"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/181462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=181462"}],"version-history":[{"count":115,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/181462\/revisions"}],"predecessor-version":[{"id":225551,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/181462\/revisions\/225551"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=181462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=181462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=181462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}