{"id":292922,"date":"2024-09-12T12:04:47","date_gmt":"2024-09-12T04:04:47","guid":{"rendered":"https:\/\/lrxjmw.cn\/lwjxtczycpfq.html"},"modified":"2024-09-12T12:04:47","modified_gmt":"2024-09-12T04:04:47","slug":"lwjxtczycpfq","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lwjxtczycpfq.html","title":{"rendered":"Linux \u6587\u4ef6\u7cfb\u7edf\u64cd\u4f5c\u4e0e\u78c1\u76d8\u5206\u533a\uff1a\u5b8c\u6574\u5206\u533a\u6d41\u7a0b\u53ca\u547d\u4ee4\u4ecb\u7ecd"},"content":{"rendered":"

\u5e8f\u8a00<\/p>\n

c\u76d8\u662f\u5982\u4f55\u5206\u533a\u7684\u5728\u6587\u7ae0\u65c1\u8fb9\u4f1a\u63d0\u5230\uff0c\u5148\u8c08\u4e00\u4e0bLinux<\/a>\u6587\u4ef6\u7cfb\u7edf\u7684\u7b80\u5355\u64cd\u4f5c\u3002\u4e0d\u8fc7\u5728\u9605\u8bfb\u672c\u6587\u4e4b\u524d\uff0c\u6211\u5047\u8bbe\u8bfb\u8005\u4eec\u5bf9Linux\u7684c\u76d8\u4e0e\u6587\u4ef6\u7cfb\u7edf\u4ee5\u53ca\u76ee\u5f55\u6811\u65e9\u5df2\u6709\u4e86\u521d\u6b65\u7684\u4e86\u89e3\u3002<\/p>\n

\u91cd\u8981\u8bf4\u660e\uff1a\u5b8c\u6574\u7684\u5206\u533a\u6d41\u7a0b\u8bf7\u7ed3\u5408\u53e6\u5916\u4e00\u7bc7\u6587\u7ae0\u53ef\u4ee5\u66f4\u597d\u7684\u8fdb\u884c,\u6d41\u7a0b\u5df2\u672c\u7247\u6587\u7ae0\u4e3a\u4e3b--\u4f20\u9001\u95e8\u64cd\u4f5c\u6587\u4ef6\u7cfb\u7edf<\/p>\n

\u4ecb\u7ecd\u64cd\u4f5c\u6587\u4ef6\u7cfb\u7edf\u7684\u51e0\u4e2a\u547d\u4ee4<\/a>\u3002<\/p>\n

\u67e5\u770bc\u76d8\/\u76ee\u5f55\u6811<\/p>\n

\u4e00\u3001df\u547d\u4ee4\u67e5\u770bc\u76d8\u7684\u5206\u533a\u548c\u65e9\u5df2\u4f7f\u7528\u91cf<\/p>\n

\u89e3\u91ca\u4e0b\u8f93\u51fa\u7684\u7b2c\u4e00\u884c\u4e2d\u4e2a\u522b\u6570\u7ec4\u7684\u542b\u610f\uff1a<\/p>\n

\u6587\u4ef6\u7cfb\u7edf<\/p>\n

\u5bb9\u91cf<\/p>\n

\u5df2\u7528<\/p>\n

\u53ef\u7528<\/p>\n

\u6302\u8f7d\u70b9<\/p>\n

\u4ee3\u8868c\u76d8\u7684\u5206\u533a\u548c\u663e\u5b58\u4e2d\u7684\u67d0\u4e00\u4e2a\u533a\u57df\u3002<\/p>\n

c\u76d8\u603b\u5171\u7684\u5bb9\u91cf<\/p>\n

c\u76d8\u65e9\u5df2\u4f7f\u7528\u7684\u5bb9\u91cf<\/p>\n

c\u76d8\u672a\u4f7f\u7528\u7684\u5bb9\u91cf<\/p>\n

\u8be5\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u5728\u54ea\u4e00\u4e2a\u76ee\u5f55\u4e0b<\/p>\n

\u4ece\u56fe\u4e2d\u53ef\u4ee5\u770b\u51fa\u6211\u7684c\u76d8\u867d\u7136\u662f\u5206\u4e86\u56db\u4e2a\u533a\u7684\uff0c\u5206\u522b\u662f\/dev\/sda1\u3001\/dev\/sda2\u3001\/dev\/sda3\u3001\/dev\/sda4\uff0c\u8fd9\u513f\u4e0d\u663e\u793a\/dev\/sda3\u7684\u7f18\u7531\u662f\u7531\u4e8e\u6211\u5206\u533a\u7684\u65f6\u4faf\u628a\/dev\/sda3\u6302\u8f7d\u5230\u6765swap\u4e0b\u3002<\/p>\n

\u53e6\u5916\u7684udev\u3001tmps\u7b49\u662f\u7cfb\u7edf\u8fd0\u884c\u65f6\uff0c\u5728\u663e\u5b58\u754c\u5b9a\u7684\u4e00\u90e8\u5206\u533a\u57df\u3002\u8fd9\u90e8\u4efd\u533a\u57df\u88ab\u4e34\u65f6\u6302\u8f7d\u5230\u6587\u4ef6\u6811\u4e0b\u3002<\/p>\n

\u53e6\u5916\uff0cdf\u662f\u8bfb\u53d6\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684superblock\u4e2d\u7684\u6570\u636e\u6765\u8f93\u51fa\u7684\uff0c\u6240\u4ee5\u901f\u7387\u5f88\u5feb\u3002<\/p>\n

df\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u7684\u547d\u4ee4\u53c2\u6570\uff0c\u53ef\u4ee5\u7528man\u67e5\u770b\u3002<\/p>\n

\u4e8c\u3001\u5229\u7528du\u547d\u4ee4\u67e5\u8be2\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u76ee\u5f55\/\u6587\u4ef6\u6240\u5360\u7684\u5bb9\u91cf<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u4e0a\u56fe\u663e\u793a\u4e86Java\u5de5\u7a0b\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\/\u76ee\u5f55\uff0c\u4e24\u4fa7\u662f\u62a2\u5360\u7684\u5bb9\u91cflinux\u67e5\u770b\u7aef\u53e3\u5360\u7528\uff0c\u4e24\u4fa7\u662f\u5177\u4f53\u7684\u6587\u4ef6\u540d\/\u76ee\u5f55\u540d\u3002<\/p>\n

\u4e09\u3001dumpe2fs\u67e5\u770b\u5206\u533a\u7684\u5177\u4f53\u4f7f\u7528\u60c5\u51b5<\/p>\n

\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a\u600e\u4e48\u6837_linux\u683c\u5f0f\u5316\u78c1\u76d8\u547d\u4ee4_\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u67e5\u770b\/dev\/sda2\u8fd9\u4e2a\u5206\u533a\uff0c\u4e0b\u8fb9\u89e3\u91ca\u4e00\u4e0b\u76f8\u5173\u6570\u636e\u3002<\/p>\n

Filesystemvolumename<\/p>\n

Filesystemstate<\/p>\n

Inodecount<\/p>\n

Blockcount<\/p>\n

Blocksize<\/p>\n

\u6587\u4ef6\u7cfb\u7edf\u7684\u522b\u79f0\uff0c\u53ef\u4ee5\u81ea\u5df1\u8d77\u540d<\/p>\n

\u6587\u4ef6\u7cfb\u7edf\u7684\u72b6\u6001\uff0c\u5047\u5982\u662fclean\u5219\u8868\u793a\u6b63\u5e38<\/p>\n

Inode\u7684\u6570\u76ee<\/p>\n

Block\u5757\u7684\u6570\u76ee<\/p>\n

\u6bcf\u4e00\u4e2aBlock\u5757\u7684\u5927\u5c0f\uff0c\u76ee\u524d\u53ea\u67091KB\uff0c2KB\uff0c4KB\u7684\u53d6\u503c<\/p>\n

\u5173\u4e8e\u8054\u63a5\u6587\u4ef6<\/p>\n

\u5728windwos\u4e2d\uff0c\u8054\u63a5\u6587\u4ef6\u5c31\u76f8\u5f53\u4e8e\u4e00\u4e2a\u5feb\u6377\u65b9\u6cd5\uff0c\u4f46\u662f\u5728Linux\u5374\u6ca1\u6709\u90a3\u4e48\u7b80\u5355\u3002<\/p>\n

\u4e00\u3001\u6587\u4ef6\u662f\u5982\u4f55\u88ab\u8bfb\u53d6\u7684<\/p>\n

\u5728Linux\u4e2d\uff0c\u4e00\u4e2a\u6587\u4ef6\u5206\u4e3a\u4e24\u4e2a\u90e8\u4efd\uff0c\u4e00\u4e2a\u662f\u6587\u4ef6\u7684\u6743\u9650\u548c\u5c5e\u6027\uff0c\u53e6\u5916\u4e00\u4e2a\u662f\u6587\u4ef6\u7684\u5177\u4f53\u5185\u5bb9linux\u57f9\u8bad\u5b66\u6821\uff0c\u8fd9\u4e09\u8005\u5206\u522b\u50a8\u5b58\u5728inode\u5757\u548cblock\u5757\u4e2d\u3002\u800c\u6bcf\u4f4dblock\u5757\u90fd\u6709\u4e00\u4e2a\u7d22\u5f15\u53f7\u7801\uff0c\u8fd9\u4e2a\u7d22\u5f15\u53f7\u7801\u4f1a\u88ab\u8bb0\u5f55\u5728inode\u4e0a\u9762\u3002<\/p>\n

\u4e00\u4e2a\u6587\u4ef6\u53ef\u80fd\u4f1a\u5f88\u5927\uff0c\u6240\u4ee5\u987b\u8981\u591a\u4e2ablock\u5757\u6765\u50a8\u5b58\u4e00\u4e2a\u6587\u4ef6\u7684\u6240\u6709\u5185\u5bb9\u3002\u6bcf\u4f4dblock\u7684\u7d22\u5f15\u5c31\u4f1a\u88ab\u8bb0\u5f55\u5728inode\u4e0a\u9762\u3002\u540c\u65f6\uff0c\u6bcf\u4f4d\u5355\u4e00\u6587\u4ef6\u53ea\u5bb9\u8bb8\u6709\u4e00\u4e2ainode\u5757\u3002<\/p>\n

\u6240\u4ee5\u8bfb\u53d6\u4e00\u4e2a\u6587\u4ef6\u7684\u6d41\u7a0b\u662f\u8fd9\u4e2a\u6837\u5b50\u7684\uff0c\u5148\u8bfb\u53d6\u8fd9\u4e2a\u6587\u4ef6inode\u5757\u4e0a\u9762\u50a8\u5b58\u7684\u6240\u6709\u7d22\u5f15\u53f7\u7801\uff0c\u4e4b\u540e\u6839\u636e\u53f7\u7801\u53bb\u627e\u5bfb\u5bf9\u5e94\u7684block\u5757\uff0c\u6700\u540e\u8bfb\u53d6block\u5757\u4e0a\u9762\u7684\u5185\u5bb9\u3002<\/p>\n

\u770b\u4e0a\u53bb\u5f88\u7b80\u5355\uff0c\u5bf9\u5427\uff01\u4f46\u662f\u95ee\u9898\u6765\u5566\uff0c\u6587\u4ef6\u7684inode\u662f\u5982\u4f55\u88ab\u8bfb\u53d6\u7684\uff1f\uff1f<\/p>\n

\u7b54\u6848\u662f\u901a\u8fc7\u76ee\u5f55\u8bfb\u53d6\u3002Linux\u662f\u4e00\u4e2a\u76ee\u5f55\u6811\u7ed3\u6784\uff0c\u6240\u6709\u7684\u6587\u4ef6\u5168\u90e8\u50a8\u5b58\u5728\u76ee\u5f55\u4e0b\uff0c\u60f3\u8981\u8bfb\u53d6\u4e00\u4e2a\u6587\u4ef6\uff0c\u5fc5\u5148\u8bfb\u53d6\u5176\u76ee\u5f55\u3002\u4e00\u4e2a\u76ee\u5f55\u4e5f\u662f\u7531inode\u548cblock\u5757\u6784\u6210\u7684\uff0c\u533a\u522b\u662f\u76ee\u5f55\u7684block\u5757\u4e2d\u50a8\u5b58\u7684\u662f\u8be5\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u548c\u8be5\u6587\u4ef6\u7684inode\u53f7\u7801\u7684\u6620\u5c04\u3002<\/p>\n

\u4e3e\u4e2a\u53cd\u4f8b\uff1a\u8bfb\u53d6\/bin\/ln\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u4e8c\u3001\u786c\u8054\u63a5<\/p>\n

\u94fa\u57ab\u4e86\u5982\u6b64\u591a\uff0c\u73b0\u4eca\u56de\u5f52\u4e3b\u9898\u3002<\/p>\n

linux\u683c\u5f0f\u5316\u78c1\u76d8\u547d\u4ee4_\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a\u600e\u4e48\u6837_\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a<\/p>\n

\u5728Linux\u4e2d\uff0c\u751f\u6210\u8fd9\u4e2a\u6240\u8c13\u7684\u201c\u5feb\u6377\u65b9\u6cd5\u201d\u6709\u4e24\u79cd\uff0c\u4e00\u79cd\u662f\u786c\u8054\u63a5\uff0c\u53e6\u5916\u4e00\u79cd\u662f\u8f6f\u8054\u63a5\uff0c\u5148\u4ecb\u7ecd\u786c\u8054\u63a5\u3002<\/p>\n

\u4e3e\u4f8b\u8bf4\u660e\uff1a\u6211\u5982\u4eca\u8981\u5728\u201c\/root\u201d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u5bf9\u201c\/bin\/ln\u201d\u7684\u786c\u8054\u63a5\uff0c\u8054\u63a5\u540d\u5b50\u662fln2\u3002\u8fd9\u4e48Linux\u5b83\u4f1a\u8fd9\u6837\u505a\uff0c\u5b83\u4f1a\u5728\u201c\/root\u201d\u76ee\u5f55\u7684block\u5757\u4e2d\u6dfb\u52a0\u4e00\u6761\u6587\u4ef6\u540d\u548cinode\u53f7\u7801\u7684\u6620\u5c04\uff0c\u6587\u4ef6\u540d\u81ea\u7136\u662fln2\uff0cinode\u53f7\u7801\u5c31\u662f\u201c\/bin\/ln\u201d\u6587\u4ef6\u7684inode\u53f7\u7801\u3002<\/p>\n

\u4e0a\u56fe\uff1a<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u5728\u201c\/root\u201d\u76ee\u5f55\u4e0b\u751f\u6210\u4e86ln2\u7684\u6587\u4ef6\uff0c\u5047\u5982\u53cc\u51fb\u5b83\uff0c\u90fd\u4f1a\u6267\u884c\u201c\/bin\/ln\u201d\u6587\u4ef6\u3002\u77a7\u77a7\u6700\u4e0a\u9762\u7684\u53f7\u7801130894\uff0c\u4e24\u4e2a\u90fd\u662f\u4e00\u6837\u7684\uff0c\u8868\u793aln\u548cln2\u90fd\u662f\u8054\u63a5\u5230\u540c\u4e00\u4e2ainode\u53f7\u7801\u3002<\/p>\n

\u8fd8\u6709\u4e00\u70b9\u5c31\u662f\uff0c\u6ce8\u610f\u5230\u8f93\u51fa\u6570\u636e\u4e2d\u76842\u5417\uff1f\u5c31\u662f\u5728-rwxr-xr-x\u524d\u9762\u7684\uff0c\u4ee3\u8868\u7684\u662f\u6709\u591a\u5c11\u4e2a\u786c\u8054\u63a5\u8054\u63a5\u5230\u4e86\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n

\u4e09\u3001\u8f6f\u8054\u63a5<\/p>\n

\u786c\u8054\u63a5\u53ea\u662f\u5728\u76ee\u5f55\u7684block\u5757\u4e0a\u9762\u6dfb\u52a0\u4e86\u4e00\u6761\u989d\u5916\u7684\u6620\u5c04\u8bb0\u5f55\uff0c\u5e76\u6ca1\u6709\u591a\u5360\u7528\u989d\u5916\u7684inode\u5757\u548cblock\u5757\uff0c\u5e76\u4e14\u8f6f\u8054\u63a5\u5c31\u4e0d\u540c\u4e86\u3002<\/p>\n

\u8f6f\u8054\u63a5\u662f\u76f4\u63a5\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u3002\u56e0\u4e3a\u4e00\u4e2a\u6587\u4ef6\u5bf9\u5e94\u4e00\u4e2ainode\u5757\u548c\u8d77\u7801\u4e00\u4e2ablock\u5757\uff0c\u6240\u4ee5\u65b0\u5efa\u4e00\u4e2a\u8f6f\u8054\u63a5\u5c31\u8d77\u7801\u4f1a\u5360\u7528\u4e24\u4e2ablock\u5757\u3002\u5176\u4e2dinode\u7684\u4f5c\u7528\u5c31\u4e0d\u7528\u8bf4\u4e86\uff0c\u81ea\u7136\u662f\u62ff\u6765\u8bb0\u5f55\u5c5e\u6027\u6743\u9650\u548cblock\u7d22\u5f15\u7684\u3002\u5e76\u4e14\u8f6f\u8054\u63a5\u7684block\u5757\u4f5c\u7528\u662f\u4fdd\u5b58\u4f60\u8981\u8054\u63a5\u7684\u6587\u4ef6\u7684\u5b8c\u6574\u8def\u5f84\u3002<\/p>\n

\u4e0a\u56fe\u4e3e\u4f8b\u5b50\uff1a<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u6ce8\u610f\u533a\u522b\uff0c\u4e24\u4e2a\u6587\u4ef6\u7684inode\u53f7\u7801\u4e0d\u4e00\u6837\uff01\uff01\u8bf4\u660e\u6211\u4eec\u65b0\u5efa\u4e86\u4e00\u4e2a\u6587\u4ef6\u3002\u8fd8\u6709\uff0c\u5927\u5bb6\u542c\u5230\u4e86\u90a3\u79cd\u6570\u5b577\u5417\uff0c\u8fd9\u4e2a\u4f4d\u7f6e\u7684\u503c\u4e00\u822c\u4ee3\u8868\u6587\u4ef6\u5185\u5bb9\u7684\u5927\u5c0f\uff0c\u4f46\u662f\u4e3a\u4f55\u662f7\u5462\uff1f\u8bb0\u5f97\u521a\u624d\u8bf4\u7684\u201c\u8f6f\u8054\u63a5\u7684block\u5757\u662f\u62ff\u6765\u4fdd\u5b58\u4f60\u8981\u8054\u63a5\u7684\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u201d\uff0c\u201c\/bin\/ln\u201d\u6b63\u597d7\u4e2a\u5b57\u7b26\uff0c\u4e00\u4e2a\u5b57\u7b26\u5c31\u662f\u4e00\u4e2abyte\uff0c\u6240\u4ee5\u6587\u4ef6\u5185\u5bb9\u662f7\u4e2abyte\u3002\uff08\u5176\u4ed6\u7684\u533a\u522b\u8bfb\u8005\u4eec\u81ea\u5df1\u53bb\u611f\u53d7\uff09<\/p>\n

\u56db\u3001\u8f6f\u8054\u63a5\u548c\u786c\u8054\u63a5\u7684\u533a\u522b\u3002<\/p>\n

PS\uff1a\u89c9\u5f97\u8fd9\u4e2a\u8054\u63a5\u6211\u597d\u50cf\u6ca1\u6709\u8bb2\u6e05\u695a\u3002\u6709\u610f\u89c1\u8bf7\u63d0<\/p>\n

c\u76d8\u7684\u5206\u533a\u2013\u547d\u4ee4fdisk<\/p>\n

\u540e\u9762\u90fd\u662f\u94fa\u57ab\uff0c\u524d\u9762\u624d\u662f\u5177\u4f53\u7684c\u76d8\u7ba1\u7406\u64cd\u4f5c\u3002\u5e76\u4e14c\u76d8\u7684\u5206\u533a\u53ea\u662fc\u76d8\u7ba1\u7406\u7684\u4e00\u5c0f\u90e8\u4efd\u3002<\/p>\n

\u672c\u4eba\u53ea\u6709\u4e00\u5757c\u76d8\uff0c\u5728Linux\u4e2d\u5206\u914d\u7684\u540d\u5b50\u662f\/dev\/sda\uff0c\u7528\u4e4b\u524d\u7684df\u53ef\u4ee5\u67e5\u770b\u3002<\/p>\n

\u89c1\u5230\u6ca1\uff0c\u91cc\u9762\u7684\/dev\/sda2\u3001\/dev\/sda4\u7b49\u7b49\uff0c\u9664\u53bb\u90a3\u79cd\u6570\u5b57\u5c31\u662f\u4f60\u7684c\u76d8\u8bbe\u5907\u540d\u5b50\u3002\u73b0\u4eca\u5c31\u8981\u6b65\u5165\u8fd9\u4e2a\u8bbe\u5907\u67e5\u770b\u4e00\u4e0b\u3002<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u770b\u56fe\uff0c\u91cc\u9762\u8bf4\u660e\u4e86\u4e00\u5207\u3002<\/p>\n

\u6839\u636e\u63d0\u793a\uff0c\u4f60\u8f93\u5165m\u5c31\u53ef\u4ee5\u67e5\u8be2\u5206\u533a\u7684\u6240\u6709\u547d\u4ee4\uff0c\u7b80\u5355\u6613\u61c2\u3002<\/p>\n

\u6709\u4e24\u4e2a\u547d\u4ee4\u6211\u5f97\u6ce8\u91cd\u6307\u51fa\u3002\u3002\u3002\u3002<\/p>\n

\u6b64\u547d\u4ee4\u4f1a\u4f7f\u4f60\u7684\u6240\u6709\u5bf9c\u76d8\u7684\u64cd\u4f5c\u5168\u90e8\u751f\u6548\uff0c\u5047\u5982\u4e0d\u6e05\u695a\u81ea\u5df1\u6240\u4f5c\u6240\u4e3a\u7684\u540e\u679c\uff0c\u6b64\u547d\u4ee4\u8bf7\u614e\u7528\u3002<\/p>\n

linux\u683c\u5f0f\u5316\u78c1\u76d8\u547d\u4ee4_\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a\u600e\u4e48\u6837_\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a<\/p>\n

\u9000\u51fac\u76d8\u5206\u533a\u7a0b\u5e8f\uff0c\u4e4b\u524d\u6240\u6709\u7684\u64cd\u4f5c\u90fd\u65e0\u6548\uff0c\u5176\u5b9e\u524d\u63d0\u662f\u4f60\u6ca1\u6709\u7528w\u3002<\/p>\n

\u8f93\u5165p\uff0c\u770b\u5b83\u544a\u8bc9\u6211\u54ea\u4e9b\u4fe1\u606f\uff1a<\/p>\n

\u539f\u5148\u6211\u7684c\u76d8\u5206\u4e3a\u56db\u4e2a\u533asda1\u3001sda2\u3001sda3\u3001sda4<\/p>\n

\u5982\u4eca\u6765\u5220\u6389\u4e00\u4e2a\u5206\u533a\u8bd5\u8bd5\uff0c\u8f93\u5165d\uff1a<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u8f93\u5165d\u540e\uff0c\u7b14\u8bb0\u672c\u8981\u6c42\u4f60\u8f93\u5165\u4f60\u60f3\u5220\u6389\u7684\u533a\u53f7\uff0c\u4e8e\u662f\u6211\u8f93\u5165\u4e862\u3002<\/p>\n

\u518d\u8f93\u5165p\u67e5\u770b\u4e00\u4e0b\uff1a<\/p>\n

\u5c3c\u739b\uff0csda2\u6ca1\u4e86\u3002\u3002\u3002<\/p>\n

\u7834\u7f50\u5b50\u7834\u6454\uff0c\u5168\u90e8\u5220\u9664\u5427\u3002\u3002\u3002\u5220\u9664\u6765\u91cd\u65b0\u6dfb\u52a0\uff0c\u6dfb\u52a0\u7528n\u5c31\u884c\u3002\u3002<\/p>\n

\u770b\u5230\u6ca1\uff0c\u8ba9\u4f60\u8f93\u5165\u65b0\u5efa\u533a\u7684\u8d77\u59cb\u78c1\u9053\u53f7\u7801\uff0c\u548c\u7ed3\u675f\u78c1\u9053\u53f7\u7801\uff0c\u521b\u5efa\u6210\u529f\u6765\uff0c\u7528p\u67e5\u770b\u4e00\u4e0b\u3002<\/p>\n

\u4e0d\u73a9\u4e86\uff0c\u6309q\u9000\u51fa\u3002<\/p>\n

\u6211\u5728Ubuntu\u5b89\u88c5\u65f6\uff0c\u9884\u7559\u4e8620G\u7684c\u76d8\u7a7a\u95f4\u6ca1\u6709\u8fdb\u884c\u5206\u533a\uff0c\u6b64\u6b21\u6211\u53d6\u51fa2G\u62ff\u6765\u91cd\u65b0\u505a\u793a\u8303\u3002<\/p>\n

\u5176\u4e2d\u7684sda5\u5c31\u662f\u4ece\u7a7a\u95f2\u7a7a\u95f4\u638f\u51fa\u6765\u76842G\u3002<\/p>\n

\u5728\u6b64\u5904\u63d0\u9192\u4e0b\uff0c\u8f93\u5165p\u67e5\u8be2\u662f\u4e0d\u4f1a\u5c06\u6ca1\u6709\u5206\u533a\u7684c\u76d8\u7a7a\u95f4\u663e\u793a\u4e0b\u6765\u7684\uff0c\u4f60\u53ea\u6709\u8f93\u5165n\uff0c\u7cfb\u7edf\u5c31\u4f1a\u8ba9\u4f60\u6653\u5f97\u539f\u5148\u4f60\u8fd8\u6709\u7a7a\u95f4\u672a\u88ab\u5206\u914d\u3002<\/p>\n

\u8fd9\u513f\u6211\u6309\u4e86w\u6765\u5199\u5165c\u76d8\u3002\u5199\u5165\u7684\u786e\u662f\u6210\u529f\u4e86\uff0c\u4e0d\u8fc7\u7cfb\u7edf\u5e76\u6ca1\u6709\u91cd\u65b0\u533a\u8bfb\u53d6\u8fd9\u4e2a\u5206\u533a\u8868\uff0c\u6211\u662f\u4e0d\u60f3\u5f00\u673a\u91cd\u542f\u7684\uff0c\u6240\u4ee5\u7528\u8fd9\u4e2a\u547d\u4ee4\u53bb\u5f3a\u5236\u5b83\u8bfb\u53d6\u5427\u3002<\/p>\n

\u5c06\u5206\u597d\u7684c\u76d8\u4f4e\u683c<\/p>\n

\u9009\u62e9\u4e00\u79cd\u6587\u4ef6\u683c\u5f0f\u5c06\u65b0\u5efa\u7684\u5206\u533a\u521d\u59cb\u5316\uff0c\u662f\u4e3a\u4e86\u8ba9Linux\u624d\u80fd\u8fa8\u8bc6\u8fd9\u4e2a\u5206\u533a\u4e0a\u9762\u7684\u6587\u4ef6\u3002\u6240\u8c13\u7684\u6587\u4ef6\u683c\u5f0f\u5c31\u662f\uff0cc\u76d8\u7684\u6587\u4ef6\u662f\u6839\u636e\u5982\u4f55\u7684\u4e00\u79cd\u65b9\u5f0f\u7ec4\u7ec7\u4e0a\u53bb\uff0c\u4e4b\u524d\u63d0\u5230\u7684\u6587\u4ef6\u7531\u4e24\u90e8\u4efd\u7ec4\u6210\u7684\uff0c\u4f8b\u5982inode\uff0cblock\u7b49\uff0c\u5c31\u662fLinux\u7684\u6240\u624d\u80fd\u8fa8\u8bc6\u7684\u6587\u4ef6\u683c\u5f0f\u7684\u4e00\u79cd\u3002<\/p>\n

\u4f4e\u683c\u7684\u547d\u4ee4-mkfs<\/p>\n

linux\u683c\u5f0f\u5316\u78c1\u76d8\u547d\u4ee4_\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a\u600e\u4e48\u6837_\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a<\/p>\n

mkfs-t\u6587\u4ef6\u683c\u5f0f\u8bbe\u5907\u6587\u4ef6\u540d<\/p>\n

\u8fd9\u513f\u624b\u8d31\uff0c\u6587\u4ef6\u683c\u5f0f\u5199\u6210ext3\u4e86\uff0c\u5e94\u5f53\u7528ext4\u7684\uff0c\u5f97\u518d\u91cd\u65b0\u4f4e\u683c\u4e00\u6b21\u3002\u3002<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u5b8c\u6bd5\u3002<\/p>\n

PS\uff1a\u8fd8\u6709\u4e00\u4e2a\u547d\u4ee4\u662fmke2fs\uff0c\u81ea\u884cman\u3002<\/p>\n

\u68c0\u6d4bc\u76d8\u662f\u5426\u6709\u95ee\u9898\u547d\u4ee4fsck<\/p>\n

\u7cfb\u7edf\u8dd1\u4e45\u4e86linux\u683c\u5f0f\u5316\u78c1\u76d8\u547d\u4ee4<\/strong>\uff0cc\u76d8\u4f1a\u51fa\u73b0\u4e00\u4e9b\u95ee\u9898\uff0c\u4f8b\u5982\u4f4e\u683c\uff0c\u6587\u4ef6\u53d7\u635f\u4e4b\u7c7b\u7684\u3002\u3002\u3002\uff08\u867d\u7136\u6211\u4e5f\u4e0d\u592a\u61c2\uff0c\u62b1\u6b49\uff09\u3002<\/p>\n

fsck\u547d\u4ee4\u662f\u62ff\u6765\u68c0\u9a8cc\u76d8\u662f\u5426\u6709\u95ee\u9898\u7684\uff0c\u76f8\u5173\u53c2\u6570\u81ea\u884cman\u3002<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u503c\u5f97\u6ce8\u610f\u7684\u4e00\u70b9\u662f\uff1afsck\u547d\u4ee4\u53ef\u80fd\u4f1a\u7834\u635f\u6587\u4ef6\u7cfb\u7edf\uff0c\u6240\u4ee5\u88abfsck\u626b\u63cf\u7684\u5206\u533a\u8bf7\u4e0d\u8981\u88ab\u6302\u8f7d\u3002<\/p>\n

\u6302\u8f7d\/\u5378\u8f7dc\u76d8\u4e00\u3001\u6302\u8f7dc\u76d8<\/p>\n

\u8fd9\u513f\u6211\u51c6\u5907\u628asda5\u6302\u8f7d\u5230\u201cmnt\/sda5\u201d\u8fd9\u4e2a\u76ee\u5f55\uff0c\u8fd9\u4e2a\u76ee\u5f55\u662f\u4e0d\u5b58\u5728\u7684\uff0c\u6240\u4ee5\u8981\u521b\u5efa\u3002<\/p>\n

\u6302\u8f7d\u7684\u547d\u4ee4\u662fmount\uff0c\u547d\u4ee4\u6709\u70b9\u590d\u6742linux\u683c\u5f0f\u5316\u78c1\u76d8\u547d\u4ee4<\/strong>\uff0c\u81ea\u884cman\u3002<\/p>\n

\u6ce8\u610f\u547d\u4ee4\uff1amount<\/p>\n

\u5f04\u5b8c\u4e86\u7528df\u67e5\u770b\u4e00\u4e0b\uff0c\u770b\u6700\u540e\u4e00\u884c\u7684\/mnt\/sda5\uff0c\u662f\u4e0d\u662f\u6210\u529f\u4e86\uff01<\/p>\n

\u4ee5\u4e0b\u51e0\u70b9\u8981\u6ce8\u610f\uff1a<\/p>\n

\u89c9\u5f97\u592a\u7b80\u5355\u4e86\u3002\u3002\u3002\u867d\u7136mount\u662f\u6bd4\u8f83\u590d\u6742\u7684\uff0c\u4f46\u7528\u4e0a\u53bb\u7b80\u5355\u7684\u7f18\u7531\u662f\u7cfb\u7edf\u65e9\u5df2\u5e2e\u6211\u4eec\u628a\u8bb8\u591a\u4e1c\u897f\u90fd\u505a\u597d\u4e86\uff0c\u771f\u5b9e\u7684\u8fc7\u7a0b\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n

\u6240\u4ee5\u8bf4\u6709\u8fd9\u4e2a\u6587\u4ef6\u5f88\u91cd\u8981\uff1a\/proc\/filesystems<\/p>\n

\u8fd9\u4e2a\u6587\u4ef6\u8bb0\u5f55leLinux\u6240\u6709\u65e9\u5df2\u52a0\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u8fd8\u6709\u4e00\u4e2a\uff1a\/lib\/modules\/$(uname-r)\/kernel\/fs\/<\/p>\n

\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e0b\u8fb9\u6240\u6709\u7684\u6587\u4ef6\u90fd\u5bf9\u5e94\u7740\u67d0\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\u7684\u9a71\u52a8\u3002<\/p>\n

\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a_\u78c1\u76d8\u683c\u5f0f\u5316\u547d\u4ee4\u4f1a\u600e\u4e48\u6837_linux\u683c\u5f0f\u5316\u78c1\u76d8\u547d\u4ee4<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u4e8c\u3001\u5378\u8f7dc\u76d8<\/p>\n

\u5f88\u7b80\u5355\u7684\uff1aumount<\/p>\n

\u5f00\u673a\u6302\u8f7d<\/p>\n

\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5047\u5982\u4f60\u518d\u5ea6\u5f00\u673a\uff0c\u90fd\u4f1a\u53d1\u89c9\u4e4b\u524d\u65e9\u5df2\u6302\u8f7d\u7684c\u76d8\u5fc5\u987b\u81ea\u52a8\u518d\u5ea6\u6302\u8f7d\u4e00\u6b21\uff0c\u4e0d\u4fe1\u53ef\u4ee5\u7528df\u547d\u4ee4\u67e5\u770b\u4e00\u4e0b\u3002<\/p>\n

\u4e3a\u4e86\u5f00\u673a\u624b\u52a8\u6302\u8f7dc\u76d8\uff0c\u53ea\u987b\u8981\u914d\u7f6e\u4e00\u4e0b\/etc\/fstab\u6587\u4ef6\u5373\u53ef\u3002<\/p>\n

\u4e0d\u540c\u7684Linuxdistribution\u7684fstab\u6587\u4ef6\u53ef\u80fd\u4e0d\u4e00\u6837\uff0c\u6211\u7684Ubuntu\u5982\u4e0a\u6240\u793a\uff0c\u987b\u8981\u5728\u672b\u5c3e\u6dfb\u52a0\u4e00\u4e9b\u914d\u7f6e\u5c31\u80fd\u5f00\u673a\u6302\u8f7dsda5\uff0c\u4e0d\u8fc7\u6211\u5f97\u5148\u89e3\u91ca\u4e0b\u8fd96\u5217\u7684\u542b\u610f\u3002<\/p>\n

filesystem<\/p>\n

mountpoint<\/p>\n

type<\/p>\n

options<\/p>\n

dump<\/p>\n

pass<\/p>\n

\u8bbe\u5907\u540d\u79f0\u3002c\u76d8\u53f7\u7684UUID<\/p>\n

\u6302\u8f7d\u70b9<\/p>\n

\u5206\u533a\u7c7b\u578b.linux\u5206\u533a\u901a\u5e38\u4e3aext4\u3002<\/p>\n

\u6302\u8f7d\u53c2\u6570\u3002\u901a\u5e38\u4e3adefaults\u3002\u5e38\u7528\u53c2\u6570\u5982\u4e0b\uff1aauto\uff1a\u5f00\u673a\u624b\u52a8\u6302\u8f7d\u3002default\uff1a\u6839\u636e\u5927\u591a\u6570\u6c38\u4e45\u6587\u4ef6\u7cfb\u7edf\u7684\u7f3a\u7701\u503c\u8bbe\u7f6e\u6302\u8f7d\u5b9a\u4e49\u3002noauto\uff1a\u5f00\u673a\u4e0d\u624b\u52a8\u6302\u8f7d\u3002nouser\uff1a\u53ea\u6709\u8d85\u7ea7\u7528\u6237\u53ef\u4ee5\u6302\u8f7d\u3002ro\uff1a\u6309\u53ea\u8bfb\u6743\u9650\u6302\u8f7d\u3002rw\uff1a\u6309\u53ef\u8bfb\u53ef\u5199\u6743\u9650\u6302\u8f7d\u3002user\uff1a\u4efb\u4f55\u7528\u6237\u90fd\u53ef\u4ee5\u6302\u8f7d\u3002<\/p>\n

c\u76d8\u5907\u4efd\u3002\u9ed8\u8ba4\u4e3a0\uff0c\u8868\u793a\u4e0d\u5907\u4efd\u3002<\/p>\n

c\u76d8\u68c0\u6d4b\u3002\u9ed8\u8ba4\u4e3a0\uff0c\u8868\u793a\u4e0d\u68c0\u6d4b\u3002<\/p>\n

\u5173\u952e\u662f\u5982\u4f55\u67e5\u8be2UUID\u53f7\u7801\uff0c\u770b\u8fd9\u4e2a\uff1a<\/p>\n

\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0<\/p>\n

\u67e5\u627e\u5230\u540e\uff0c\u6dfb\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a<\/p>\n

\u8fd9\u6837\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n

PS\uff1a\u8fd8\u6709\u4e00\u4e9b\u4e1c\u897f\u6ca1\u5199\u5b8c\uff0c\u4e4b\u540e\u66f4\u65b0\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u78c1\u76d8\u662f\u600e\u4e48\u5206\u533a\u7684\u5728\u6587\u7ae0\u540e\u9762\u4f1a\u8c08\u5230\uff0c\u5148\u8c08\u4e00\u4e0bLinux\u6587\u4ef6\u7cfb\u7edf\u7684\u7b80\u5355\u64cd\u4f5c\u3002\u4e00\u3001df\u547d\u4ee4\u67e5\u770b\u78c1\u76d8\u7684\u5206\u533a\u548c\u5df2\u7ecf\u4f7f\u7528\u91cf\u78c1\u76d8\u7684\u5206\u533a\u2013\u547d\u4ee4fdisk\u503c\u5f97\u6ce8\u610f\u7684\u4e00\u70b9\u662f\uff1afsck\u547d\u4ee4\u53ef\u80fd\u4f1a\u635f\u574f\u6587\u4ef6\u7cfb\u7edf\uff0c\u6240\u4ee5\u88abfsck\u626b\u63cf\u7684\u5206\u533a\u8bf7\u4e0d\u8981\u88ab\u6302\u8f7d\u3002<\/p>\n","protected":false},"author":1,"featured_media":292923,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[2940,2942,2941,2939,2527],"class_list":["post-292922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-dml-3","tag-dml-4","tag-ysyl","tag-wjxt","tag-cpfq"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/292922","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=292922"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/292922\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/292923"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=292922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=292922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=292922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}