{"id":275,"date":"2022-07-04T10:18:48","date_gmt":"2022-07-04T02:18:48","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=275"},"modified":"2022-07-04T21:28:37","modified_gmt":"2022-07-04T13:28:37","slug":"chapter-06","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/chapter-06.html","title":{"rendered":"\u7b2c6\u7ae0 \u5b58\u50a8\u7ed3\u6784\u4e0e\u78c1\u76d8\u5212\u5206\u3002"},"content":{"rendered":"

👇\u672c\u7ae0\u8282\u5185\u5bb9\u5df2\u66f4\u65b0\uff0c\u8bf7\u5728\u7ebf\u9605\u8bfb\u6700\u65b0RHEL 8\u7248\u672c\u4e66\u7c4d 👇<\/span><\/strong><\/span><\/p>\n

https:\/\/lrxjmw.cn\/basic-learning-06.html<\/span><\/strong><\/span><\/b><\/p>\n

\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\u6655\u8111\u80c0\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\u5316\u6807\u51c6\uff08FHS\uff0cFilesystem Hierarchy Standard\uff09\u3001udev\u786c\u4ef6\u547d\u540d\u89c4\u5219\u4ee5\u53ca\u786c\u76d8\u5206\u533a\u7684\u89c4\u5212\u65b9\u6cd5\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\u4e2d\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\u4e0e\u5b8c\u6210\u4e00\u4e9b\u76f8\u5173\u7684\u5b9e\u8df5\u7ec3\u4e60\u540e\uff0c\u6211\u4eec\u5c06\u8fdb\u4e00\u6b65\u5b8c\u6574\u5730\u90e8\u7f72SWAP\u4ea4\u6362\u5206\u533a\u3001\u914d\u7f6equota\u78c1\u76d8\u914d\u989d\u670d\u52a1\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\u5757\u8bbe\u5907\u3001\u5957\u63a5\u5b57\u3001\u6253\u5370\u673a\u7b49\u90fd\u88ab\u62bd\u8c61\u6210\u4e86\u6587\u4ef6\uff0c\u5373\u5218\u9044\u8001\u5e08\u6240\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\u6211\u4eec\u8981\u4f9d\u6b21\u8fdb\u5165\u8be5\u6587\u4ef6\u6240\u5728\u7684\u78c1\u76d8\u5206\u533a\uff08\u5047\u8bbe\u8fd9\u91cc\u662fD\u76d8\uff09\uff0c\u7136\u540e\u5728\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\/D\/E\/F\u7b49\u76d8\u7b26\uff0cLinux\u7cfb\u7edf\u4e2d\u7684\u4e00\u5207\u6587\u4ef6\u90fd\u662f\u4ece\u201c\u6839\uff08\/\uff09\u201d\u76ee\u5f55\u5f00\u59cb\u7684\uff0c\u5e76\u6309\u7167\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\u5316\u6807\u51c6\uff08FHS\uff09\u91c7\u7528\u6811\u5f62\u7ed3\u6784\u6765\u5b58\u653e\u6587\u4ef6\uff0c\u4ee5\u53ca\u5b9a\u4e49\u4e86\u5e38\u89c1\u76ee\u5f55\u7684\u7528\u9014\u3002\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\u6211\u4eec\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\u4e2d\u56fd\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\u60a8\u6709\u4e24\u79cd\u6b63\u786e\u7684\u6307\u8def\u65b9\u6cd5\u3002<\/p>\n

\u7edd\u5bf9\u8def\u5f84\uff08absolute path\uff09:<\/strong>\u9996\u5148\u5750\u98de\u673a\u6765\u5230\u4e2d\u56fd\uff0c\u5230\u4e86\u5317\u4eac\u51fa\u9996\u90fd\u673a\u573a\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>\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\u60a8\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\uff0c\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\u8303\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\u7684\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\u4f1a\u662f\u4ee5\u201c\/dev\/sd\u201d\u5f00\u5934\u7684\u3002\u800c\u4e00\u53f0\u4e3b\u673a\u4e0a\u53ef\u4ee5\u6709\u591a\u5757\u786c\u76d8\uff0c\u56e0\u6b64\u7cfb\u7edf\u91c7\u7528a\uff5ep\u6765\u4ee3\u886816\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\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\u7b2c\u4e09\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\uff0c\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\u5218\u9044\u8001\u5e08\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\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\uff0c\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\u6211\u4eec\u7684\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\u53ef\u4ee5\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\u4e3a64\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

\"\u786c\u76d8\u7684\u6247\u533a\"<\/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\u7b2c\u4e00\u4e2a\u6247\u533a\u6700\u591a\u53ea\u80fd\u521b\u5efa\u51fa4\u4e2a\u5206\u533a\uff1f\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

\u6240\u8c13\u6269\u5c55\u5206\u533a\uff0c\u4e25\u683c\u5730\u8bb2\u5b83\u4e0d\u662f\u4e00\u4e2a\u5b9e\u9645\u610f\u4e49\u7684\u5206\u533a\uff0c\u5b83\u4ec5\u4ec5\u662f\u4e00\u4e2a\u6307\u5411\u4e0b\u4e00\u4e2a\u5206\u533a\u7684\u6307\u9488\uff0c\u8fd9\u79cd\u6307\u9488\u7ed3\u6784\u5c06\u5f62\u6210\u4e00\u4e2a\u5355\u5411\u94fe\u8868\u3002<\/p>\n<\/blockquote>\n

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

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

\u8bfb\u8005\u4eec\u6765\u8bd5\u7740\u89e3\u8bfb\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\u7b2c\u4e09\u5757IDE\u8bbe\u5907\uff08\u6bd4\u8f83\u5c11\u89c1\u4e86\uff09\u4e2d\u7684\u7f16\u53f7\u4e3a8\u7684\u903b\u8f91\u5206\u533a\u3002<\/span><\/p>\n

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

\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\u3002Linux\u7cfb\u7edf\u652f\u6301\u6570\u5341\u79cd\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u6700\u5e38\u89c1\u7684\u6587\u4ef6\u7cfb\u7edf\u5982\u4e0b\u6240\u793a\u3002<\/p>\n

Ext3<\/strong>\uff1a\u662f\u4e00\u6b3e\u65e5\u5fd7\u6587\u4ef6\u7cfb\u7edf\uff0c\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\u80fd\u767e\u5206\u4e4b\u767e\u5730\u4fdd\u8bc1\u8d44\u6599\u4e0d\u4f1a\u4e22\u5931\u3002\u5b83\u4f1a\u628a\u6574\u4e2a\u78c1\u76d8\u7684\u6bcf\u4e2a\u5199\u5165\u52a8\u4f5c\u7684\u7ec6\u8282\u90fd\u9884\u5148\u8bb0\u5f55\u4e0b\u6765\uff0c\u4ee5\u4fbf\u5728\u53d1\u751f\u5f02\u5e38\u5b95\u673a\u540e\u80fd\u56de\u6eaf\u8ffd\u8e2a\u5230\u88ab\u4e2d\u65ad\u7684\u90e8\u5206\uff0c\u7136\u540e\u5c1d\u8bd5\u8fdb\u884c\u4fee\u590d\u3002<\/p>\n

Ext4<\/strong>\uff1aExt3\u7684\u6539\u8fdb\u7248\u672c\uff0c\u4f5c\u4e3aRHEL 6\u7cfb\u7edf\u4e2d\u7684\u9ed8\u8ba4\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\u5757\uff0c\u4ece\u800c\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u8bfb\u5199\u6548\u7387\u3002<\/p>\n

XFS<\/strong>\uff1a\u662f\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u65e5\u5fd7\u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u4e14\u662fRHEL 7\u4e2d\u9ed8\u8ba4\u7684\u6587\u4ef6\u7ba1\u7406\u7cfb\u7edf\uff0c\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\u7528\u82b1\u8d39\u6781\u4f4e\u7684\u8ba1\u7b97\u548c\u5b58\u50a8\u6027\u80fd\u3002\u5e76\u4e14\u5b83\u6700\u5927\u53ef\u652f\u6301\u7684\u5b58\u50a8\u5bb9\u91cf\u4e3a18EB\uff0c\u8fd9\u51e0\u4e4e\u6ee1\u8db3\u4e86\u6240\u6709\u9700\u6c42\u3002<\/p>\n

RHEL 7\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<\/a>\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\u56e0\u6b64\u5728\u5145\u5206\u8003\u8651\u5230\u8fd9\u4e9b\u4e0d\u786e\u5b9a\u56e0\u7d20\u540e\uff0c\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

\u5c31\u50cf\u62ff\u5230\u4e86\u4e00\u5f20\u672a\u88c1\u5207\u7684\u5b8c\u6574\u7eb8\u5f20\u90a3\u6837\uff0c\u6211\u4eec\u9996\u5148\u8981\u8fdb\u884c\u88c1\u5207\u4ee5\u65b9\u4fbf\u4f7f\u7528\uff0c\u7136\u540e\u5728\u88c1\u5207\u540e\u7684\u7eb8\u5f20\u4e0a\u753b\u683c\u4ee5\u4fbf\u80fd\u4e66\u5199\u5de5\u6574\u3002\u5728\u62ff\u5230\u4e86\u4e00\u5757\u65b0\u7684\u786c\u76d8\u5b58\u50a8\u8bbe\u5907\u540e\uff0c\u4e5f\u9700\u8981\u5148\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\u60a8\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\u63a5\u4e0b\u6765\u5218\u9044\u8001\u5e08\u518d\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\u4e0d\u7528\u523b\u610f\u53bb\u8bb0\u4f4f\uff0c\u53ea\u8981\u80fd\u770b\u61c2\u5c31\u884c\u4e86\u3002<\/p>\n

\u65e5\u5e38\u5728\u786c\u76d8\u9700\u8981\u4fdd\u5b58\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\u53ef\u4ee5\u662f1KB\u30012KB\u62164KB\uff09\uff0c\u4e00\u4e2ainode\u7684\u9ed8\u8ba4\u5927\u5c0f\u4ec5\u4e3a128B\uff08Ext3\uff09\uff0c\u8bb0\u5f55\u4e00\u4e2ablock\u5219\u6d88\u80174B\u3002\u5f53\u6587\u4ef6\u7684inode\u88ab\u5199\u6ee1\u540e\uff0cLinux\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5206\u914d\u51fa\u4e00\u4e2ablock\u5757\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\u60c5\u51b5\uff08\u4ee54KB\u7684block\u5927\u5c0f\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-4KB\u540e\u5269\u4e0b\u76841KB\u4e5f\u8981\u5360\u7528\u4e00\u4e2ablock\uff09\u3002<\/p><\/blockquote>\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\u4e2aVFS\uff08Virtual File System\uff0c\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\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-5\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

\"\u865a\u62df\u6587\u4ef6\u7cfb\u7edfVFS\"<\/p>\n

\u56fe6-5\u00a0 VFS\u7684\u67b6\u6784\u793a\u610f\u56fe<\/p>\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\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\u758f\u6f0f\u88ab\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\u53bb\u5224\u65ad\u8981\u6302\u8f7d\u6587\u4ef6\u7684\u7c7b\u578b\uff0c\u56e0\u6b64\u53ea\u9700\u8981\u6267\u884c\u4e0b\u8ff0\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

[root@linuxprobe\u00a0~]#\u00a0mount\u00a0\/dev\/sdb2\u00a0\/backup<\/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\u6211\u4eec\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\u9700\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 Wed May 4 19:26:23 2017\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\/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\/sdb2 \/backup ext4 defaults 0 0<\/strong><\/pre>\n

umount\u547d\u4ee4\u7528\u4e8e\u64a4\u9500\u5df2\u7ecf\u6302\u8f7d\u7684\u8bbe\u5907\u6587\u4ef6\uff0c\u683c\u5f0f\u4e3a\u201cumount [\u6302\u8f7d\u70b9\/\u8bbe\u5907\u6587\u4ef6]\u201d\u3002\u6211\u4eec\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\u5c31\u610f\u5473\u4e0d\u518d\u4f7f\u7528\u786c\u4ef6\u7684\u8bbe\u5907\u8d44\u6e90\uff1b\u76f8\u5bf9\u5e94\u5730\uff0c\u6302\u8f7d\u64cd\u4f5c\u5c31\u662f\u628a\u786c\u4ef6\u8bbe\u5907\u4e0e\u76ee\u5f55\u8fdb\u884c\u5173\u8054\u7684\u52a8\u4f5c\uff0c\u56e0\u6b64\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\u6211\u4eec\u6765\u5c1d\u8bd5\u624b\u52a8\u5378\u8f7d\u6389\/dev\/sdb2\u8bbe\u5907\u6587\u4ef6\uff1a<\/p>\n

[root@linuxprobe ~]# umount \/dev\/sdb2\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\u8bf7\u52a0A\u7fa4\uff1a560843(\u6ee1<\/span><\/strong>)\uff0cB\u7fa4\uff1a340829(\u63a8\u8350<\/span><\/strong>)\uff0cC\u7fa4\uff1a463590\uff08\u63a8\u8350<\/span><\/strong>\uff09\uff0c\u70b9\u6b64\u67e5\u770b\u5168\u56fd\u7fa4<\/a>\u3002<\/p>\n

*\u672c\u7fa4\u7279\u8272\uff1a\u901a\u8fc7\u53e3\u4ee4\u9a8c\u8bc1\u786e\u4fdd\u6bcf\u4e00\u4e2a\u7fa4\u5458\u90fd\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7684\u8bfb\u8005\uff0c\u7b54\u7591\u66f4\u6709\u9488\u5bf9\u6027\uff0c\u4e0d\u5b9a\u671f\u514d\u8d39\u9886\u53d6\u5b9a\u5236\u793c\u54c1\u3002<\/p><\/blockquote>\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

\u7b2c1\u6b65\uff1a\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-6\u6240\u793a\u3002<\/p>\n

\"\u5728\u865a\u62df\u673a\u4e2d\u6dfb\u52a0\u786c\u76d8\"<\/div>\n

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

\u7b2c2\u6b65\uff1a\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\u8fd9\u786e\u5b9e\u6ca1\u6709\u4ec0\u4e48\u9700\u8981\u8fdb\u4e00\u6b65\u89e3\u91ca\u7684\uff0c\u5982\u56fe6-7\u6240\u793a\u3002<\/p>\n

\n

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

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

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

\n

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

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

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

\n

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

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

\u7b2c5\u6b65\uff1a\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-10\u6240\u793a\u3002<\/p>\n

\n

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

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

\u7b2c6\u6b65\uff1a\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\u9700\u4fee\u6539\uff09\uff0c\u76f4\u63a5\u5355\u51fb\u201c\u5b8c\u6210\u201d\u6309\u94ae\uff0c\u5982\u56fe6-11\u6240\u793a\u3002<\/p>\n

\n

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

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

\u7b2c7\u6b65\uff1a\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\u8ba4\u201d\u6309\u94ae\u540e\u5c31\u53ef\u4ee5\u5f00\u542f\u865a\u62df\u673a\u4e86\uff0c\u5982\u56fe6-12\u6240\u793a\u3002<\/p>\n

\n

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

\u56fe6-12\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\u6210\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\u7684SCSI\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

1. \u00a0fdisk\u547d\u4ee4<\/strong><\/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\u3002fdisk\u547d\u4ee4\u7528\u4e8e\u7ba1\u7406\u78c1\u76d8\u5206\u533a\uff0c\u683c\u5f0f\u4e3a\u201cfdisk\u00a0 [\u78c1\u76d8\u540d\u79f0]\u201d\uff0c\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\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

\u7b2c1\u6b65\uff1a\u6211\u4eec\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\nWelcome to fdisk (util-linux 2.23.2).\r\nChanges will remain in memory only, until you decide to write them.\r\nBe careful before using the write command.\r\nDevice does not contain a recognized partition table\r\nBuilding a new DOS disklabel with disk identifier 0x47d24a34.\r\nCommand (m for help): p<\/strong>\r\nDisk \/dev\/sdb: 21.5 GB, 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\nDisk label type: dos\r\nDisk identifier: 0x47d24a34\r\nDevice Boot Start End Blocks Id System\r\n<\/pre>\n

\u7b2c2\u6b65\uff1a\u8f93\u5165\u53c2\u6570n\u5c1d\u8bd5\u6dfb\u52a0\u65b0\u7684\u5206\u533a\u3002\u7cfb\u7edf\u4f1a\u8981\u6c42\u60a8\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\np primary (0 primary, 0 extended, 4 free)\r\ne extended\r\nSelect (default p): p\r\n<\/strong><\/pre>\n

\u7b2c3\u6b65\uff1a\u5728\u786e\u8ba4\u521b\u5efa\u4e00\u4e2a\u4e3b\u5206\u533a\u540e\uff0c\u7cfb\u7edf\u8981\u6c42\u60a8\u5148\u8f93\u5165\u4e3b\u5206\u533a\u7684\u7f16\u53f7\u3002\u6211\u4eec\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\u6211\u4eec\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<\/strong>\r\nUsing default value 2048\r\nLast sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039): +2G<\/strong>\r\nPartition 1 of type Linux and of size 2 GiB is set\r\n<\/pre>\n

\u7b2c4\u6b65\uff1a\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\u5019\u5343\u4e07\u4e0d\u8981\u76f4\u63a5\u5173\u95ed\u7a97\u53e3\uff0c\u800c\u5e94\u8be5\u6572\u51fb\u53c2\u6570w\u540e\u56de\u8f66\uff0c\u8fd9\u6837\u5206\u533a\u4fe1\u606f\u624d\u662f\u771f\u6b63\u7684\u5199\u5165\u6210\u529f\u5566\u3002<\/p>\n

Command (m for help): p<\/strong>\r\nDisk \/dev\/sdb: 21.5 GB, 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\nDisk label type: dos\r\nDisk identifier: 0x47d24a34\r\nDevice Boot Start End Blocks Id System\r\n\/dev\/sdb1 2048 4196351 2097152 83 Linux<\/strong>\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

\u7b2c5\u6b65\uff1a\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\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528file\u547d\u4ee4\u67e5\u770b\u8be5\u6587\u4ef6\u7684\u5c5e\u6027\uff0c\u4f46\u662f\u5218\u9044\u8001\u5e08\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\u662f\u4e25\u91cd\u7684bug\uff09\u3002\u6211\u4eec\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\u6740\u624b\u950f\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 (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.cramfs mkfs.ext3 mkfs.fat mkfs.msdos mkfs.xfs\r\nmkfs.btrfs mkfs.ext2 mkfs.ext4 mkfs.minix mkfs.vfat<\/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\u683c\u5f0f\u5206\u533a\u4e3aXFS\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u5219\u547d\u4ee4\u5e94\u4e3amkfs.xfs \/dev\/sdb1\u3002<\/p>\n

[root@linuxprobe ~]# mkfs.xfs \/dev\/sdb1\r\nmeta-data=\/dev\/sdb1 isize=256 agcount=4, agsize=131072 blks\r\n = sectsz=512 attr=2, projid32bit=1\r\n = crc=0\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=0\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\n\/dev\/mapper\/rhel-root 18G 3.5G 15G 20% \/\r\ndevtmpfs 905M 0 905M 0% \/dev\r\ntmpfs 914M 140K 914M 1% \/dev\/shm\r\ntmpfs 914M 8.8M 905M 1% \/run\r\ntmpfs 914M 0 914M 0% \/sys\/fs\/cgroup\r\n\/dev\/sr0 3.5G 3.5G 0 100% \/media\/cdrom\r\n\/dev\/sda1 497M 119M 379M 24% \/boot\r\n\/dev\/sdb1 2.0G 33M 2.0G 2% \/newFS\r\n<\/strong><\/pre>\n

2. \u00a0du\u547d\u4ee4<\/strong><\/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\u4ecb\u7ecd\u4e00\u4e2a\u7528\u4e8e\u67e5\u770b\u6587\u4ef6\u6570\u636e\u5360\u7528\u91cf\u7684du\u547d\u4ee4\uff0c\u5176\u683c\u5f0f\u4e3a\u201cdu [\u9009\u9879] [\u6587\u4ef6]\u201d\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\u6211\u4eec\u8fd8\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\u3002\u4e0b\u9762\uff0c\u6211\u4eec\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\nabrt hosts pulse\r\nadjtime hosts.allow purple\r\naliases hosts.deny qemu-ga\r\naliases.db hp qemu-kvm\r\nalsa idmapd.conf radvd.conf\r\nalternatives init.d rc0.d\r\nanacrontab inittab rc1.d\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\n33M \/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\u5230\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 Wed May 4 19:26:23 2017\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\/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<\/strong><\/pre>\n
6.6 \u6dfb\u52a0\u4ea4\u6362\u5206\u533a<\/strong><\/span><\/h5>\n

SWAP\uff08\u4ea4\u6362\uff09\u5206\u533a\u662f\u4e00\u79cd\u901a\u8fc7\u5728\u786c\u76d8\u4e2d\u9884\u5148\u5212\u5206\u4e00\u5b9a\u7684\u7a7a\u95f4\uff0c\u7136\u540e\u5c06\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\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\uff0c\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\u3002\u5728\u5206\u533a\u521b\u5efa\u5b8c\u6bd5\u540e\u4fdd\u5b58\u5e76\u9000\u51fa\u5373\u53ef\uff1a<\/p>\n

\n
[root@linuxprobe ~]# fdisk \/dev\/sdb<\/strong>\r\nWelcome to fdisk (util-linux 2.23.2).\r\nChanges will remain in memory only, until you decide to write them.\r\nBe careful before using the write command.\r\nDevice does not contain a recognized partition table\r\nBuilding a new DOS disklabel with disk identifier 0xb3d27ce1.\r\nCommand (m for help): n<\/strong>\r\nPartition type:\r\np primary (1 primary, 0 extended, 3 free)\r\ne extendedSelect (default p): p<\/strong>\r\nPartition number (2-4, default 2): \r\nFirst sector (4196352-41943039, default 4196352): \u6b64\u5904\u6572\u51fb\u56de\u8f66<\/strong>\r\nUsing default value 4196352\r\nLast sector, +sectors or +size{K,M,G} (4196352-41943039, default 41943039): +5G<\/strong>\r\nPartition 2 of type Linux and of size 5 GiB is set\r\nCommand (m for help): p<\/strong>\r\nDisk \/dev\/sdb: 21.5 GB, 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\nDisk label type: dos\r\nDisk identifier: 0xb0ced57f\r\n Device Boot Start End Blocks Id System\r\n\/dev\/sdb1 2048 4196351 2097152 83 Linux\r\n\/dev\/sdb2 4196352 14682111 5242880 83 Linux<\/strong>\r\nCommand (m for help): w<\/strong>\r\nThe partition table has been altered!\r\nCalling ioctl() to re-read partition table.\r\nWARNING: Re-reading the partition table failed with error 16: Device or resource busy.\r\nThe kernel still uses the old table. The new table will be used at\r\nthe next reboot or after you run partprobe(8) or kpartx(8)\r\nSyncing disks.<\/pre>\n<\/div>\n

\u4f7f\u7528SWAP\u5206\u533a\u4e13\u7528\u7684\u683c\u5f0f\u5316\u547d\u4ee4mkswap\uff0c\u5bf9\u65b0\u5efa\u7684\u4e3b\u5206\u533a\u8fdb\u884c\u683c\u5f0f\u5316\u64cd\u4f5c\uff1a<\/p>\n

[root@linuxprobe ~]# mkswap \/dev\/sdb2\r\nSetting up swapspace version 1, size = 5242876 KiB\r\nno label, UUID=2972f9cb-17f0-4113-84c6-c64b97c40c75\r\n<\/pre>\n

\u4f7f\u7528swapon\u547d\u4ee4\u628a\u51c6\u5907\u597d\u7684SWAP\u5206\u533a\u8bbe\u5907\u6b63\u5f0f\u6302\u8f7d\u5230\u7cfb\u7edf\u4e2d\u3002\u6211\u4eec\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\ntotal used free shared buffers cached\r\nMem: 1483 782 701 9 0 254\r\n-\/+ buffers\/cache: 526 957\r\nSwap: 2047 0 2047<\/strong>\r\n[root@linuxprobe ~]# swapon \/dev\/sdb2\r\n[root@linuxprobe ~]# free -m\r\ntotal used free shared buffers cached\r\nMem: 1483 785 697 9 0 254\r\n-\/+ buffers\/cache: 530 953\r\nSwap: 7167 0 7167\r\n<\/strong><\/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\u5230\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 Wed May 4 19:26:23 2017\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\/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\u547d\u4ee4\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\u547d\u4ee4\u8fd8\u6709\u8f6f\u9650\u5236\u548c\u786c\u9650\u5236\u7684\u529f\u80fd\u3002<\/p>\n

\u8f6f\u9650\u5236\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\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 7\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\u7684\u652f\u6301\uff0c\u6b64\u65f6\u9700\u8981\u624b\u52a8\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\uff0c\u8ba9RHEL 7\u7cfb\u7edf\u4e2d\u7684\/boot\u76ee\u5f55\u80fd\u591f\u652f\u6301quota\u78c1\u76d8\u914d\u989d\u6280\u672f\u3002\u53e6\u5916\uff0c\u5bf9\u4e8e\u5b66\u4e60\u8fc7\u65e9\u671f\u7684Linux\u7cfb\u7edf\uff0c\u6216\u8005\u5177\u6709RHEL 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\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 ~]# vim \/etc\/fstab\r\n#\r\n# \/etc\/fstab\r\n# Created by anaconda on Wed May 4 19:26:23 2017\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\/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\r\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 -Rf o+w \/boot\r\n<\/pre>\n

1. \u00a0xfs_quota\u547d\u4ee4<\/strong><\/p>\n

xfs_quota\u547d\u4ee4\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\uff0c\u683c\u5f0f\u4e3a\u201cxfs_quota [\u53c2\u6570] \u914d\u989d \u6587\u4ef6\u7cfb\u7edf\u201d\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\u6211\u4eec\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) \u00a0\u00a0Blocks\r\nUser ID Used Soft Hard Warn\/Grace\r\n---------- --------------------------------------------------\r\nroot 95084 0 0 00 [--------]\r\ntom 0 3072 6144 00 [--------]\r\n<\/strong><\/pre>\n

\u5f53\u914d\u7f6e\u597d\u4e0a\u8ff0\u7684\u5404\u79cd\u8f6f\u786c\u9650\u5236\u540e\uff0c\u5c1d\u8bd5\u5207\u6362\u5230\u8fd9\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 ~]$ 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) copied, 0.123966 s, 42.3 MB\/s\r\n[tom@linuxprobe ~]$ dd if=\/dev\/zero of=\/boot\/tom bs=8M count=1\r\ndd: error writing \u2018\/boot\/tom\u2019: Disk quota exceeded<\/span>\r\n1+0 records in\r\n0+0 records out\r\n6291456 bytes (6.3 MB) copied, 0.0201593 s, 312 MB\/s\r\n<\/pre>\n

2. \u00a0edquota\u547d\u4ee4<\/strong><\/p>\n

edquota\u547d\u4ee4\u7528\u4e8e\u7f16\u8f91\u7528\u6237\u7684quota\u914d\u989d\u9650\u5236\uff0c\u683c\u5f0f\u4e3a\u201cedquota [\u53c2\u6570] [\u7528\u6237] \u201d\u3002\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\u3002edquota\u547d\u4ee4\u4f1a\u8c03\u7528Vi\u6216Vim\u7f16\u8f91\u5668\u6765\u8ba9root\u7ba1\u7406\u5458\u4fee\u6539\u8981\u9650\u5236\u7684\u5177\u4f53\u7ec6\u8282\u3002\u4e0b\u9762\u628a\u7528\u6237tom\u7684\u786c\u76d8\u4f7f\u7528\u91cf\u7684\u786c\u9650\u989d\u4ece5MB\u63d0\u5347\u52308MB\uff1a<\/p>\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 6144 3072 8192<\/strong> 1 3 6\r\n[root@linuxprobe ~]# su - tom\r\nLast login: Mon Sep 7 16:43:12 CST 2017 on pts\/0\r\n[tom@linuxprobe ~]$ 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) copied, 0.0268044 s, 313 MB\/s\r\n[tom@linuxprobe ~]$ dd if=\/dev\/zero of=\/boot\/tom bs=10M count=1\r\ndd: error writing \u2018\/boot\/tom\u2019: Disk quota exceeded\r\n1+0 records in\r\n0+0 records out\r\n8388608 bytes (8.4 MB) copied, 0.167529 s, 50.1 MB\/s<\/pre>\n
6.8\u00a0\u8f6f\u786c\u65b9\u5f0f\u94fe\u63a5<\/strong><\/span><\/h5>\n

\u5f53\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\u540e\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

\u5728Linux\u7cfb\u7edf\u4e2d\u5b58\u5728\u786c\u94fe\u63a5\u548c\u8f6f\u8fde\u63a5\u4e24\u79cd\u6587\u4ef6\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\u4ef6inode\u7684\u6307\u9488\u201d\uff0c\u7cfb\u7edf\u4e0d\u4e3a\u5b83\u5206\u914d\u72ec\u7acb\u7684inode\u548c\u6587\u4ef6\u3002\u6240\u4ee5\uff0c\u786c\u94fe\u63a5\u6587\u4ef6\u4e0e\u539f\u59cb\u6587\u4ef6\u5176\u5b9e\u662f\u540c\u4e00\u4e2a\u6587\u4ef6\uff0c\u53ea\u662f\u540d\u5b57\u4e0d\u540c\u3002\u6211\u4eec\u6bcf\u6dfb\u52a0\u4e00\u4e2a\u786c\u94fe\u63a5\uff0c\u8be5\u6587\u4ef6\u7684inode\u8fde\u63a5\u6570\u5c31\u4f1a\u589e\u52a01\uff1b\u800c\u4e14\u53ea\u6709\u5f53\u8be5\u6587\u4ef6\u7684inode\u8fde\u63a5\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\u4ef6inode\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\u6211\u4eec\u4e0d\u80fd\u8de8\u5206\u533a\u5bf9\u76ee\u5f55\u6587\u4ef6\u8fdb\u884c\u94fe\u63a5\u3002<\/p>\n

\u8f6f\u94fe\u63a5\uff08\u4e5f\u79f0\u4e3a\u7b26\u53f7\u94fe\u63a5[symbolic link]\uff09\uff1a<\/strong>\u4ec5\u4ec5\u5305\u542b\u6240\u94fe\u63a5\u6587\u4ef6\u7684\u8def\u5f84\u540d\uff0c\u56e0\u6b64\u80fd\u94fe\u63a5\u76ee\u5f55\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u8de8\u8d8a\u6587\u4ef6\u7cfb\u7edf\u8fdb\u884c\u94fe\u63a5\u3002\u4f46\u662f\uff0c\u5f53\u539f\u59cb\u6587\u4ef6\u88ab\u5220\u9664\u540e\uff0c\u94fe\u63a5\u6587\u4ef6\u4e5f\u5c06\u5931\u6548\uff0c\u4ece\u8fd9\u4e00\u70b9\u4e0a\u6765\u8bf4\u4e0eWindows\u7cfb\u7edf\u4e2d\u7684\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u5177\u6709\u4e00\u6837\u7684\u6027\u8d28\u3002<\/p>\n

ln\u547d\u4ee4<\/strong><\/p>\n

ln\u547d\u4ee4\u7528\u4e8e\u521b\u5efa\u94fe\u63a5\u6587\u4ef6\uff0c\u683c\u5f0f\u4e3a\u201cln [\u9009\u9879] \u76ee\u6807\u201d\uff0c\u5176\u53ef\u7528\u7684\u53c2\u6570\u4ee5\u53ca\u4f5c\u7528\u5982\u88686-6\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-6\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 ln\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\u63a5\u4e0b\u6765\u521b\u5efa\u4e00\u4e2a\u7c7b\u4f3c\u4e8eWindows\u7cfb\u7edf\u4e2d\u5feb\u6377\u65b9\u5f0f\u7684\u8f6f\u94fe\u63a5\u3002\u8fd9\u6837\uff0c\u5f53\u539f\u59cb\u6587\u4ef6\u88ab\u5220\u9664\u540e\uff0c\u5c31\u65e0\u6cd5\u8bfb\u53d6\u65b0\u5efa\u7684\u94fe\u63a5\u6587\u4ef6\u4e86\u3002<\/p>\n

[root@linuxprobe\u00a0~]# echo \"Welcome to lrxjmw.cn\" > readme.txt\r\n[root@linuxprobe\u00a0~]# ln -s readme.txt readit.txt\r\n[root@linuxprobe\u00a0~]# cat readme.txt \r\nWelcome to lrxjmw.cn\r\n[root@linuxprobe\u00a0~]# cat readit.txt \r\nWelcome to lrxjmw.cn\r\n[root@linuxprobe\u00a0~]# ls -l readme.txt \r\n-rw-r--r-- 1<\/strong> root root 26 Jan 11 00:08 readme.txt\r\n[root@linuxprobe\u00a0~]# rm -f readme.txt \r\n[root@linuxprobe\u00a0~]# cat readit.txt \r\ncat: readit.txt: No such file or directory<\/pre>\n

\u63a5\u4e0b\u6765\u9488\u5bf9\u4e00\u4e2a\u539f\u59cb\u6587\u4ef6\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\uff0c\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\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\" > readme.txt\r\n[root@linuxprobe\u00a0~]# ln readme.txt readit.txt\r\n[root@linuxprobe\u00a0~]# cat readme.txt \r\nWelcome to lrxjmw.cn\r\n[root@linuxprobe\u00a0~]# cat readit.txt \r\nWelcome to lrxjmw.cn\r\n[root@linuxprobe\u00a0~]# ls -l readme.txt \r\n-rw-r--r-- 2<\/strong> root root 26 Jan 11 00:13 readme.txt\r\n[root@linuxprobe\u00a0~]# rm -f readme.txt \r\n[root@linuxprobe\u00a0~]# cat readit.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\u8bf7\u52a0A\u7fa4\uff1a560843(\u6ee1<\/span><\/strong>)\uff0cB\u7fa4\uff1a340829(\u63a8\u8350<\/span><\/strong>)\uff0cC\u7fa4\uff1a463590\uff08\u63a8\u8350<\/span><\/strong>\uff09\uff0c\u70b9\u6b64\u67e5\u770b\u5168\u56fd\u7fa4<\/a>\u3002<\/p>\n

*\u672c\u7fa4\u7279\u8272\uff1a\u901a\u8fc7\u53e3\u4ee4\u9a8c\u8bc1\u786e\u4fdd\u6bcf\u4e00\u4e2a\u7fa4\u5458\u90fd\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7684\u8bfb\u8005\uff0c\u7b54\u7591\u66f4\u6709\u9488\u5bf9\u6027\uff0c\u4e0d\u5b9a\u671f\u514d\u8d39\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\u7684\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\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\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":"

\u7ea2\u5e3d\u67b6\u6784\u5e08\u4e3a\u60a8\u4eceLinux\u7cfb\u7edf\u7684\u5b58\u50a8\u7ed3\u6784\u5f15\u5165\uff0c\u8bb2\u8ff0\u786c\u76d8\u5b58\u50a8\u7ed3\u6784\u3001\u786c\u4ef6\u547d\u540d\u89c4\u5219\u4ee5\u53ca\u5185\u6838Udev\u8bbe\u5907\u7ba1\u7406\u5668\u670d\u52a1\u3002\u5b8c\u6574\u914d\u7f6eSWAP\u4ea4\u6362\u5206\u533a\u3001quota\u670d\u52a1\u9650\u5236\u78c1\u76d8\u914d\u989d\u3001ln\u547d\u4ee4\u521b\u5efa\u8f6f\/\u786c\u94fe\u63a5\u3001RAID\u78c1\u76d8\u9635\u5217(0\u30011\u30015\u548c10)\u3001LVM\u903b\u8f91\u5377\u7ba1\u7406\u5668\u3002<\/p>\n","protected":false},"author":1,"featured_media":12613,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[558],"tags":[],"class_list":["post-275","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rhel7"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/275","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=275"}],"version-history":[{"count":234,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/275\/revisions"}],"predecessor-version":[{"id":218014,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/275\/revisions\/218014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/12613"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}