\u547d\u4ee4<\/a>\uff1afdisk-l<\/p>\n\u6ce8\u610f\uff1a\u4e0a\u56fe\u4e2d\/dev\/sda1\u524d\u9762\u6709\u4e2a*\uff0c\u8868\u793a\u8be5c\u76d8\u7528\u4e8e\u5f15\u5bfc\u7cfb\u7edf\u8fdb\u884c\u542f\u52a8\u3002<\/p>\n
sda1\uff1a\u50a8\u5b58\u7684\u662f\u4e0e\u7cfb\u7edf\u76f8\u5173\u7684\u6587\u4ef6<\/p>\n
sda2\uff1a\u865a\u62df\u663e\u5b58\u4ea4\u6362\u5206\u533a<\/p>\n
sda3\uff1a\u4e3a\u6211\u4eec\u7cfb\u7edf\u4e0a\u7684\u8ddf\u5206\u533a<\/p>\n
start\u3001end\u8868\u793a\u5206\u533a\u5f00\u59cb\u7684\u78c1\u9053\u4f4d\u7f6e\u548c\u7ed3\u675f\u7684\u78c1\u9053\u4f4d\u7f6e\u3002<\/p>\n
blocks\uff1a\u8868\u793a\u5757\u7684\u4fe1\u606f\uff0c\u4e00\u4e2a\u5757\u4e0a\u9762\u6709\u591a\u4e2a\u78c1\u9053\u3002<\/p>\n
Id\uff1a\u8868\u793ac\u76d8\u7f16\u53f7<\/p>\n
system\uff1a\u8868\u793aLinux\u7cfb\u7edf\u5206\u533a\u7684\u4e00\u4e2a\u5206\u533a\u4fe1\u606f\u3002<\/p>\n
\uff082\uff09\u4e4b\u540e\u4f7f\u7528\u547d\u4ee4\uff1afdisk\/dev\/sda\u8ba9\u786c\u789f\u6b65\u5165\u5206\u533a\u6a21\u5f0f<\/p>\n
\u6b64\u65f6\u547d\u4ee4\u680f\u63d0\u793a\u8f93\u5165m\u6765\u5bfb\u6c42\u5e2e\u52a9\uff0c\u8fd9\u4e48\u6211\u4eec\u8f93\u5165m\uff0c\u6765\u770b\u4e00\u4e0b\u90fd\u6709\u4ec0\u4e48\u9009\u9879\u3002<\/p>\n
\u4e0a\u56fe\u4e2d\uff1a\u6211\u5c06\u753b\u6a2a\u7ebf\u7684\u6807\u8bb0\u4e3a\u65f6\u5e38\u4f1a\u7528\u5230\u7684\uff0c\u4e4b\u540e\u6211\u4eec\u6765\u89e3\u91ca\u4e00\u4e0b\u5176\u4e2d\u7684\u4e00\u4e9b\u9009\u9879\u3002<\/p>\n
n\u6dfb\u52a0\u4e00\u4e2a\u65b0\u5206\u533aq\u4e0d\u4fdd\u5b58\u5c31\u9000\u51fap\u590d\u5370\u5206\u533a\u8868m\u590d\u5370\u9009\u9879\u83dc\u5355<\/p>\n
\u5220\u6389\u4e00\u4e2a\u5206\u533a<\/p>\n
\u4fdd\u5b58\u9000\u51fa<\/p>\n
\u6539\u53d8\u7cfb\u7edfid\u53f7<\/p>\n
\uff083\uff09\u5f00\u59cb\u521b\u5efa\u5206\u533a\uff0c\u56e0\u800c\u6211\u4eec\u8f93\u5165\uff4e\uff0c\u4e4b\u540e\u56de\u8f66\u5982\u53f3\u56fe\u3002<\/p>\n
\u6211\u4eec\u770b\u89c1\u9ec4\u989c\u8272\u8170\u7ebf\u4e0a\u663e\u793a\u7684\u662f3\u4e2a\u4e3b\u8981\u5206\u533a\uff0c0\u4e2a\u6269\u5145\u5206\u533a\uff0c\u8fd8\u67091\u4e2a\u95f2\u7f6e\u5206\u533a\u3002<\/p>\n
\u7ea2\u8272\u5149\u6807\u524d\u7684defaulte\u8868\u793a\u7684\u662f\u9ed8\u8ba4\u4e3a\u6269\u5145\u5206\u533a\u3002\u6211\u4eec\u4e0d\u4ec5\u76f4\u63a5\u56de\u8f66\u6b65\u5165\u4e0b\u4e00\u6b65\uff0c\u4e5f\u53ef\u4ee5\u8f93\u5165e\u6b65\u5165\u4e0b\u4e00\u6b65\u3002<\/p>\n
\u2460\u6b64\u5c81\u6708\u6807\u6240\u5728\u7684\u4f4d\u7f6e\u8868\u793a\u9009\u62e9\u8f93\u5165\u8d77\u59cb\u4f4d\u7f6e\uff0c\u4e5f\u5c31\u662f\u8d77\u59cb\u78c1\u9053\u3002\u5176\u5b9e\uff0c\u6211\u4eec\u4e0d\u7528\u8f93\u5165\uff0c\u76f4\u63a5\u56de\u8f66\u5c31\u597d\u6b65\u5165\u4e0b\u4e00\u6b65\u3002\u5b83\u5c31\u662f\u4e3a\u4e86\u624d\u80fd\u5c06\u524d\u9762\u7684\u6240\u6709\u53ef\u7528\u78c1\u9053\u5145\u5206\u7684\u501f\u52a9\u4e0a\uff0c\u800c\u9ed8\u8ba4\u9009\u62e9\u53ef\u7528\u78c1\u9053\u7684\u8d77\u59cb\u6700\u5c0f\u78c1\u9053\u3002<\/p>\n
\u56de\u8f66\u540e\u6b65\u5165\u4e0b\u4e00\u6b65\uff0c\u5982\u4e0b\uff1a<\/p>\n
\u2461\u6b64\u5c81\u6708\u6807\u6240\u5728\u7684\u4f4d\u7f6e\u8868\u793a\u9009\u62e9\u8f93\u5165\u7ec8\u4e86\u4f4d\u7f6e\uff0c\u4e5f\u5c31\u662f\u7ed3\u675f\u78c1\u9053\u3002\u5176\u5b9e\uff0c\u6211\u4eec\u4e0d\u7528\u8f93\u5165\uff0c\u76f4\u63a5\u56de\u8f66\u5c31\u53ef\u4ee5\u628a\u91cc\u9762\u5269\u4f59\u7684\u5168\u90e8\u7a7a\u95f4\u5145\u5206\u7684\u501f\u52a9\u4e0a\u3002<\/p>\n
\u56de\u8f66\u540e\u5982\u4e0b\uff1a<\/p>\n
\u2462\u5230\u8fd9\u513f\u6211\u4eec\u521b\u5efa\u7684\u6269\u5145\u5206\u533a\u65e9\u5df2\u521b\u5efa\u597d\u4e86\uff0c\u6211\u4eec\u5728\u547d\u4ee4\u884c\u754c\u9762\u8f93\u5165p\u67e5\u770b\u4e00\u4e0b\u5206\u533a\u60c5\u51b5\uff1a<\/p>\n
\u9ec4\u989c\u8272\u6846\u6846\u6240\u6846\u53d6\u7684\u4fe1\u606f\u5c31\u662f\u6211\u4eec\u521b\u5efa\u7684\u6269\u5145\u5206\u533a\uff0c\u4ee5\u53ca\u4ed6\u7684\u8d77\u59cb\uff0c\u7ec8\u4e86\u78c1\u9053\u4f4d\u7f6e\u4fe1\u606f\uff1b\u5757\u4fe1\u606f\uff1bid\u7f16\u53f7\u4fe1\u606f\uff0c\u5206\u533a\u4fe1\u606f\u3002<\/p>\n
\u2463\u6709\u4e86\u6269\u5145\u5206\u533a\uff0c\u8fd9\u4e48\u6211\u4eec\u624d\u53ef\u4ee5\u521b\u5efa\u903b\u8f91\u5206\u533a\u3002<\/p>\n
\u6211\u4eec\u5728\u547d\u4ee4\u884c\u8f93\u5165n\u6dfb\u52a0\u4e00\u4e2a\u65b0\u5206\u533a\uff0c\u6b64\u65f6\u6dfb\u52a0\u7684\u5206\u533a\u5c31\u662f\u903b\u8f91\u5206\u533a\u3002<\/p>\n
\u8fd9\u65f6\u5b83\u5bfb\u95ee\u8bbe\u7f6e\u903b\u8f91\u5206\u533a\u7684\u8d77\u59cb\u78c1\u9053\uff0c\u4e3a\u4e86\u5145\u5206\u501f\u52a9\uff0c\u6211\u4eec\u9009\u62e9\u9ed8\u8ba4\u503c\uff0c\u4e4b\u540e\u56de\u8f66\u3002<\/p>\n
\u5230\u8fd9\u513f\u5b83\u5728\u5bfb\u95ee\u78c1\u9053\u7ed3\u675f\u4f4d\u7f6e\uff0c\u8bf4\u767d\u4e86\u5c31\u662f\u6211\u4eec\u5728\u8bbe\u7f6e\u903b\u8f91\u5206\u533a\u5927\u5c0f\u3002\u8f93\u5165\u683c\u5f0f\u4e3a\uff1a+\u78c1\u9053\u6216\u5219+\u6570\u503c\u5927\u5c0f{\u5355\u4f4d}<\/p>\n
\u4e4b\u540e\u6211\u4eec\u8f93\u5165\uff1a+1G\u8868\u793a\u8bbe\u7f6e\u5927\u5c0f\u4e3a\u76841G\u7684\u903b\u8f91\u7a7a\u95f4\u3002\u56de\u8f66\u4ee5\u540e\u5c31\u5b8c\u6210\u4e86\u65b0\u7684\u5206\u533a\u7684\u8bbe\u7f6e\u3002<\/p>\n
\u7d27\u63a5\u7740\u6211\u4eec\u8f93\u5165p\u590d\u5370\u5206\u533a\u8868\u67e5\u770b\u5206\u533a\u4fe1\u606f\u3002<\/p>\n
\u4e0a\u56fe\u4e2d\u9ec4\u989c\u8272\u7684\u7ebf\u4e0a\u7684\u6587\u5b57\u4e3a\u63d0\u793a\u4fe1\u606f\uff1a\u63d0\u793a\u5206\u533a5\u5927\u5c0f\u4e3a1GB\u4e14\u65e9\u5df2\u521b\u5efa\u3002<\/p>\n
\u2464\u6b64\u65f6\u4e0d\u8981\u7740\u6025\uff0c\u6211\u4eec\u4e00\u5b9a\u8981\u8bb0\u4f4f\u8981\u4fdd\u5b58\uff0c\u5728\u547d\u4ee4\u884c\u8f93\u5165w\u4fdd\u5b58\u5206\u533a\u4fe1\u606f\u3002\u6211\u4eec\u901a\u8fc7w\u4fdd\u5b58\u5e76\u9000\u51fa\u540e\uff0c\u4f7f\u7528fdisk-l\u53ef\u4ee5\u67e5\u770b\u5230c\u76d8\u7684\u5206\u533a\u4fe1\u606f\u3002<\/p>\n
<\/p>\n
\u2465\u4f46\u662f\u5f53\u4f60\u5728\u4f4e\u683c\u7684\u65f6\u4faf\uff0c\u6709\u53ef\u80fd\u627e\u4e0d\u5230\u8fd9\u4e2a\u5206\u533a\u3002\u8fd9\u662f\u7531\u4e8eLinux\u6ca1\u6709\u628a\u5206\u533a\u4fe1\u606f\u8bfb\u5230\u5185\u6838\u6765\uff0c\u6211\u4eec\u987b\u8981\u8f93\u5165partprobe\u8fd9\u4e2a\u547d\u4ee4\uff0c\u6765\u4f7f\u6211\u4eec\u5185\u6838\u91cd\u8bfb\u4e00\u4e0b\u6211\u4eec\u7684\u5206\u533a\u4fe1\u606f\u3002<\/p>\n
\u5230\u8fd9\u513f\u6211\u4eec\u65e9\u5df2\u6210\u529f\u5730\u521b\u5efa\u4e86\u4e00\u4e2a1G\u5927\u5c0f\u7684\u5206\u533a\uff0c\u800c\u4e14\u6211\u4eec\u80fd\u7528\u5417\uff1f\u4e0d\u80fd\uff0c\u7531\u4e8e\u6211\u4eec\u8981\u5bf9c\u76d8\u8fdb\u884c\u4f4e\u683c\u540e\u624d\u53ef\u4ee5\u8fdb\u884c\u6570\u636e\u7684\u50a8\u5b58\u3002<\/p>\n
\u4e09\u3001\u78c1\u76d8\u7684\u4f4e\u683c1\u3001\u8ba4\u8bc6\u4f4e\u683c\uff1a<\/p>\n
\u4f4e\u683c\uff1a\u6307\u5c06\u5206\u533a\u683c\u5f0f\u5316\u6210\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n
\u90a3\u54ea\u4e9b\u662f\u6587\u4ef6\u7cfb\u7edf\u5462\uff1f<\/p>\n
\u6587\u4ef6\u7cfb\u7edf\uff1a\u6307\u64cd\u4f5c\u7cfb\u7edf\u7528\u4e8e\u660e\u6670\u50a8\u5b58\u8bbe\u5907\u6216\u5206\u533a\u4e0a\u7684\u6587\u4ef6\u7684\u65b9\u5f0f\u548c\u6570\u636e\u7ed3\u6784\uff1a\u5373\u5728\u50a8\u5b58\u8bbe\u5907\u4e0a\u7ec4\u7ec7\u6587\u4ef6\u7684\u65b9\u5f0f\u3002\u5c31\u597d\u6bd4\u4e00\u4e2a\u8bfe\u5ba4\uff0c\u670b\u53cb\u4eec\u7684\u5750\u7684\u4f4d\u7f6e\u603b\u662f\u4e0e\u6905\u5b50\u6905\u5b50\u6392\u5217\u7684\u65b9\u6cd5\u6709\u5173\u7cfb\u3002\u6905\u5b50\uff0c\u684c\u5b50\u5982\u4f55\u6446\u653e\uff0c\u5c31\u9020\u6210\u4e86\u670b\u53cb\u5750\u7684\u4f4d\u7f6e\u5728\u90a3\u91cc\u3002\u6587\u4ef6\u7cfb\u7edf\u50a8\u5b58\u6570\u636e\u4e5f\u662f\u5982\u6b64\u4e2a\u9053\u7406\u3002<\/p>\n
2\u3001Linux\u7cfb\u7edf\u4e0b\u7684\u6587\u4ef6\u7c7b\u578b\uff1a<\/p>\n
Linux\u4e0b\u7684\u6587\u4ef6\u7c7b\u578b\u6709ext2\u3001ext3\u3001ext4\u3001xfs\u7b49\u7b49\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\uff1amkfs\uff0e\u4e4b\u540e\u7528\u6309TAB\u3001TAB\u6765\u67e5\u770b\u90fd\u6709\u4ec0\u4e48\u6587\u4ef6\u7c7b\u578b\u3002<\/p>\n
3\u3001\u78c1\u76d8\u7684\u4f4e\u683c\uff1a<\/p>\n
\u6211\u4eec\u5982\u4eca\u8981\u5bf9\u521a\u521a\u521b\u5efa\u7684\u903b\u8f91\u5206\u533a5\u8fdb\u884c\u4f4e\u683c\u3002<\/p>\n
\uff081\uff09\u5728\u547d\u4ee4\u884c\u8f93\u5165mkfs.ext3\/dev\/sda5\u610f\u601d\u5c31\u662f\u4f4e\u683c\u6839\u4e0b\u7684sda5\u5206\u533a\uff0c\u4f4e\u683c\u7c7b\u578b\u4e3a.ext3<\/p>\n
\u5f53done\u90fd\u51fa\u73b0\u5b8c\u6bd5\u540e\uff0c\u610f\u5473\u7740\u4f4e\u683c\u65e9\u5df2\u8fdb\u884c\u5b8c\u6bd5\u3002<\/p>\n
\uff082\uff09\u4f4e\u683c\u5b8c\u6bd5\u540e\u6211\u4eec\u4f7f\u7528\u547d\u4ee4\uff1all\u6765\u67e5\u770b\u6211\u4eec\u4f4e\u683c\u5b8c\u6bd5\u540e\u7684\u5206\u533a\u7684\u6587\u4ef6\u7c7b\u578b\u4fe1\u606f\u3002<\/p>\n
\u6211\u4eec\u4ece\u4fe1\u606f\u4e2d\u53ef\u4ee5\u770b\u4e0b\u6765sda5\u4e3a\u4e00\u4e2a\u5757\u8bbe\u5907\u6587\u4ef6\u30028\u8868\u793a\u4e3b\u8bbe\u5907\u53f7\uff0c5\u8868\u793a\u7684\u4e3a\u4ece\u8bbe\u5907\u53f7\u3002<\/p>\n
\u5230\u8fd9\u513f\u65e9\u5df2\u4f4e\u683c\u597d\u7684sda5\u80fd\u7528\u5417\uff1f\u7b54\u6848\u662f\u4e0d\u80fd\uff0c\u8981\u60f3\u7528\u8fd9\u4e2ac\u76d8\u6211\u4eec\u8fd8\u987b\u8981\u6302\u8f7d\u3002<\/p>\n
\u56db\u3001\u78c1\u76d8\u7684\u6302\u8f7d1\u3001\u8ba4\u8bc6\u6302\u8f7d\uff1a<\/p>\n
\uff081\uff09Linux\u7684\u5b97\u65e8\u662f\u4e00\u5207\u7686\u6587\u4ef6\uff0c\u4ece\u4ee5\u4e0a\u6211\u4eec\u4e5f\u770b\u89c1\u3002\u6211\u4eec\u50a8\u5b58\u7684\u6240\u6709\u6587\u4ef6\u90fd\u5728sda3\u4e0b\u50a8\u5b58\u7740\uff0csda3\u4e5f\u5c31\u662f\u6211\u4eec\u7684\u6839\u3002\u90a3\u6211\u4eec\u8981\u5728sda5\u4e2d\u5199\u5165\u6587\u4ef6\u65f6\uff0c\u9996\u5148\u8981sda5\u8981\u4e0esda3\u5148\u6784\u5efa\u4e00\u4e2a\u8054\u7cfb\uff0c\u8fd9\u4e2a\u8054\u7cfb\u5c31\u662f\u4e00\u4e2a\u76ee\u5f55\u3002\u6784\u5efa\u8054\u7cfb\u7684\u8fc7\u7a0b\u6211\u4eec\u79f0\u4f5c\u6302\u8f7d\u3002<\/p>\n
\uff082\uff09\u5f53\u6211\u4eec\u8bbf\u95eesda3\u4e0b\u8fb9\u7684\u8fd9\u4e2a\u76ee\u5f55\u7684\u65f6\u4faf\uff0c\u5b9e\u9645\u4e0a\u6211\u4eec\u8bbf\u95ee\u7684\u624d\u662fsda5\u8fd9\u4e2a\u8bbe\u5907\u6587\u4ef6\u3002\u8fd9\u4e2a\u76ee\u5f55\u76f8\u5f53\u4e8e\u4e00\u4e2a\u8bbf\u95eesda5\u7684\u5165\u53e3\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u4e2a\u63d2\u53e3\uff0c\u6709\u4e86\u8fd9\u4e2a\u63a5\u53e3\u624d\u53ef\u4ee5\u8bbf\u95ee\u8fd9\u4e2ac\u76d8\u3002<\/p>\n
2\u3001\u78c1\u76d8\u7684\u6302\u8f7d\uff1a<\/p>\n
\uff081\uff09\u6302\u8f7d\u70b9\u76ee\u5f55:\u6211\u4eec\u5c06c\u76d8\u5207\u5230\u6839\u76ee\u5f55\uff0cmedia\u548cmnt\u8fd9\u4e24\u4e2a\u76ee\u5f55\u88ab\u79f0\u4f5c\u6302\u8f7d\u70b9\u76ee\u5f55\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u81ea\u5df1\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\u4f5c\u4e3a\u4e00\u4e2a\u6302\u8f7d\u70b9\u76ee\u5f55\uff0c<\/p>\n
\uff082\uff09\u4e34\u65f6\u6302\u8f7d\uff1a\u5c06\u6307\u5b9a\u7684\u4e00\u4e2a\u76ee\u5f55\u4f5c\u4e3a\u6302\u8f7d\u70b9\u76ee\u5f55\u65f6\uff0c\u5047\u82e5\u6302\u8f7d\u70b9\u7684\u76ee\u5f55\u6709\u6587\u4ef6\uff0c\u8fd9\u4e48\u6587\u4ef6\u4f1a\u88ab\u9690\u85cf\u3002\u56e0\u800c\u5f53\u6211\u4eec\u987b\u8981\u6302\u8f7d\u76ee\u5f55\u65f6\uff0c\u6700\u597d\u65b0\u5efa\u4e00\u4e2a\u7a7a\u6587\u4ef6\u5939\u6765\u4f5c\u4e3a\u6302\u5728\u70b9\u76ee\u5f55\u3002\uff08\u91cd\u542f\u540e\u5931\u6548\uff09<\/p>\n
<\/p>\n
\u2460\u9996\u5148\u5728\u6839\u4e0b\u521b\u5efa\u4e00\u4e2atest\u76ee\u5f55\u7528\u4e8e\u6d4b\u8bd5\uff0c\u5728test\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6file\uff0c\u548c\u4e00\u4e2a\u76ee\u5f55directory\u3002<\/p>\n
\u2461\u7136\u540e\u6211\u4eec\u6302\u8f7dsda5\uff0c\u4f7f\u7528\u547d\u4ee4\uff1amount\/dev\/sda5\/test\u610f\u601d\u5c31\u662f\u8bf4\u5c06\/dev\/sda5\u6302\u8f7d\u5230test\u76ee\u5f55\u4e2d<\/p>\n
\u4e4b\u540e\u6211\u4eec\u5237\u65b0\u4e00\u4e0b\u5207\u51fa\u53bb\uff0c\u91cd\u65b0\u8fdb\u5230\u8fd9\u4e2a\u76ee\u5f55\u3002\uff08\u5176\u5b9e\u5927\u5bb6\u4e5f\u53ef\u4ee5\u4e0d\u5237\u65b0\u76f4\u63a5\u4f7f\u7528ll\u547d\u4ee4\u77a7\u77a7\u4f1a\u51fa\u73b0\u54ea\u4e9b\uff09<\/p>\n
\u2462\u73b0\u5728\u6211\u4eec\u5728test\u76ee\u5f55\u4e0b\u7684\u64cd\u4f5c\u5c31\u76f8\u5f53\u4e8e\u5728sda5\u4e2d\u8fdb\u884c\u64cd\u4f5c\uff0c\u6211\u4eec\u5728\u4e0a\u9762\u5199\u4e00\u4e2a\u6587\u4ef6\u5427\u3002<\/p>\n
\u2463\u6309\u7167\u4e0a\u4e00\u6b65\uff0c\u6211\u4eec\u7684colour\u6587\u4ef6\u662f\u5728sda5\u4e2dlinux \u786c\u76d8\u5206\u533a\u5de5\u5177<\/strong>\uff0c\u8fd9\u4e48\u6211\u4eec\u5c06\u6302\u8f7d\u7684sda5\u7ed9\u5378\u8f7d\u6389\u3002\u6211\u4eec\u518d\u6b65\u5165test\u67e5\u770b\u4e0a\u9762\u7684\u6587\u4ef6\u6709\u54ea\u4e9b\u3002\u6ce8\u610f\u5378\u8f7d\u65f6\u4e00\u5b9a\u8981\u9000\u51fa\u76ee\u5f55\uff0c\u4e0d\u7136\u96be\u4ee5\u8fdb\u884c\u5378\u8f7d\u3002\u5378\u8f7d\u7684\u547d\u4ee4\uff1aumount\/dev\/sda5\u6216\u5219\u662fumount\/test<\/p>\n\u2464\u540c\u7406\u4f9d\u636e\u7b2c\u2462\u6b65\u7684\u64cd\u4f5c\uff0c\u6211\u4eec\u5728sda5\u4e0a\u9762\u5199\u5165\u4e00\u4e2a\u6587\u4ef6\u3002\u8fd9\u4e48\u6211\u4eec\u6b64\u6b21\u5c06\u8fd9\u4e2asda5\u76f4\u63a5\u6302\u8f7d\u5230\u65b0\u5efa\u7684\u4e00\u4e2a\u76ee\u5f55test2\u3002\u540c\u7406\u6211\u4eec\u5e94\u5f53\u80fd\u60f3\u5230\uff0c\u6302\u8f7d\u540e\u8fd9\u4e2a\u7a7a\u6587\u4ef6\u5939\u4e5f\u5c31\u80fd\u8bfb\u5230colour\u8fd9\u4e2a\u6587\u4ef6\u3002\uff08\u5176\u5b9e\u4e5f\u8981\u5237\u65b0\u4e00\u4e0b\uff09<\/p>\n
\u5230\u8fd9\u513f\u624d\u80fd\u8bf4\u660ecolour\u8fd9\u4e2a\u6587\u4ef6\u662f\u5c5e\u4e8ec\u76d8\u91cc\u7684\u800c\u975e\u76ee\u5f55\u91cc\u7684\u3002<\/p>\n
\u5982\u4eca\u6211\u4eec\u56de\u5230\u5f00\u5934\uff0c\u6211\u4eec\u4e4b\u524d\u8bf4\u8fc7\uff0c\u6211\u4eec\u8fd9\u4e9b\u6302\u8f7d\u5f62\u5f0f\u4e3a\u4e34\u65f6\u6302\u8f7d\uff0c\u56e0\u800c\u4f60\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165reboot\u91cd\u542fLinux\u540e\uff0c\u6b65\u5165test2\u4e2d\u662f\u770b\u4e0d\u5230\u4efb\u4f55\u6587\u4ef6\u7684\u3002\u8fd9\u513f\u4e0d\u518d\u6f14\u793a\u3002<\/p>\n
\uff083\uff09\u5982\u4f55\u67e5\u770b\u5230\u5f53\u524d\u7cfb\u7edf\u4e0a\u6240\u6709c\u76d8\u7684\u6302\u8f7d\u4fe1\u606f\uff1f<\/p>\n
\u2460\u4f7f\u7528mount\u547d\u4ee4\uff0c\u4f46\u8bfb\u4e0a\u53bb\u8f83\u8d39\u529b\uff0c\u767d\u8272\u8170\u7ebf\u53ef\u4ee5\u544a\u8bc9\u6211\u4eec\u5728\u90a3\u91cc\u6302\u8f7d\u7684\u7ea2\u65d7linux6.0\u6559\u7a0b\uff0cc\u76d8\u7684\u683c\u5f0f\u7c7b\u578b\uff0c\u8bfb\u5199\u6743\u9650\uff0c\u7b49\u5176\u4ed6\u4fe1\u606f\u3002<\/p>\n
\u2461\u4f7f\u7528\u547d\u4ee4df-h\u8fd9\u66f4\u4fbf\u4e8e\u6211\u4eec\u5bf9c\u76d8\u7684\u4fe1\u606f\u7684\u4e86\u89e3\u3002\u5305\u62ec\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u65e9\u5df2\u4f7f\u7528\u7684\u5206\u533a\u5927\u5c0f\uff0c\u603b\u5171\u53ef\u7528\u5206\u533a\u7684\u5927\u5c0f\uff0c\u4f7f\u7528\u7387\uff0c\u4ee5\u53ca\u6302\u8f7d\u7684\u4f4d\u7f6e\u3002\uff08\u63a8\u8350\uff09<\/p>\n
\u6ce8\u610f\uff1a\u6211\u4eec\u5f53\u65f6\u4e3asda5\u5206\u914d\u4e861G\u7684\u5927\u5c0f\uff0c\u4f46\u56e0\u4e3a\u4f4e\u683c\u540e\uff0c\u8981\u50a8\u5b58\u4e00\u4e9b\u8bb0\u5f55\u4f4e\u683c\u7684\u7c7b\u578b\u7684\u4fe1\u606f\u3002\u6240\u4ee5\u4f1a\u5360\u7528\u4e00\u4e9b\u7a7a\u95f4\uff0c\u81f4\u4f7f\u5b9e\u9645\u7a7a\u95f4\u4f1a\u6bd4\u6211\u4eec\u9884\u5148\u5206\u914d\u7684\u7a7a\u95f4\u8981\u5c0f\u3002<\/p>\n
\uff084\uff09\u547d\u4ee4\uff1ablkid\uff1a\u67e5\u770b\u5bf9\u5e94\u5206\u533a\u7684UUID\uff08\u7f16\u53f7\uff09\u3002UUID\u60df\u4e00\u6807\u793a\u6bcf\u4e00\u4e2a\u5206\u533a\uff0c\u907f\u514d\u9519\u8bef\u7684\u6302\u8f7d\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u5c31\u4f1a\u663e\u793a\u5206\u533a\u7684\u7c7b\u578b\u3002\uff08\u5efa\u8bae\u5148\u590d\u5236\u4e00\u4e0bsda5\u7684UUID\uff0c\u4e00\u4f1a\u513f\u4f1a\u7528\u5230\uff09<\/p>\n
\uff085\uff09\u6c38\u4e45\u6302\u8f7d\uff1a\u4f7f\u7528\u6c38\u4e45\u6302\u8f7d\uff0c\u5c31\u610f\u5473\u7740\u5b83\u5f00\u673a\u4f1a\u624b\u52a8\u6302\u8f7d\u3002<\/p>\n
\u2460\u4f7f\u7528vim\u7f16\u8f91\/etc\/fstab\u5728\u547d\u4ee4\u884c\u76f4\u63a5\u8f93\u5165vim\/etc\/fstab\u5c31\u53ef\u4ee5\u7f16\u8f91\uff0c\u5b9e\u73b0\u5f00\u673a\u624b\u52a8\u6302\u8f7d\u3002<\/p>\n
\u2461\u5728\u5c06\u5149\u6807\u79fb\u5230UUID\u884c\uff0c\u5728\u547d\u4ee4\u6a21\u5f0f\u4e0b\u6309o\u952e\u6b65\u5165\u63d2\u5165\u6a21\u5f0f\uff0c\u540c\u65f6\u6362\u884c\u3002\u5c06\uff084)\u6b65\u9aa4\u4e2d\u590d\u5236\u597d\u7684sda5\u7684UUID\u7f16\u53f7\uff0c\u7c98\u8d34\u8fdb\u6765\u3002\/test\u6302\u8f7d\u70b9\u76ee\u5f55\uff0cext3\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff0c\u7b2c\u4e00\u4e2a0\u8868\u793a\u4e0d\u5907\u4efd\uff0c\u7b2c\u4e8c\u4e2a0\u8868\u793a\u4e0d\u68c0\u6d4b\u3002\u6ce8\u610f\u683c\u5f0f\u4e00\u5b9a\u8981\u6b63\u786e\uff0c\u53ef\u4ee5\u4e0d\u7528\u5bf9\u9f50\uff0c\u6700\u597d\u7684\u5224\u5b9a\u6839\u636e\u662f\u6839\u636e\u989c\u8272\u3002<\/p>\n
\u5199\u5b8c\u4ee5\u540e\u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n
<\/p>\n
\u2160\u5199\u5b8c\u4ee5\u540elinux \u786c\u76d8\u5206\u533a\u5de5\u5177<\/strong>\uff0c\u4f60\u4f7f\u7528mount\u547d\u4ee4\uff0c\u662f\u770b\u4e0d\u5230test\u6302\u8f7d\u4fe1\u606f\u7684\uff0c\u53ea\u6709\u5f00\u673a\u65f6\u5c31\u4f1a\u8bfb\u53d6\u90a3\u79cd\u6587\u4ef6\u3002\u4f60\u53ea\u9700reboot\u4e4b\u540e\u6253\u5f00\u76f8\u5e94\u7684\u76ee\u5f55\u53bb\u67e5\u627e\u6211\u4eec\u4e4b\u524d\u521b\u5efa\u7684colour\u6587\u4ef6\u662f\u5426\u5b58\u5728\u6765\u5224\u5b9a\u81ea\u5df1\u662f\u5426\u6302\u8f7d\u6210\u529f\u3002<\/p>\n\u2161\u5982\u679c\u4f60\u7740\u6025\u7684\u5c31\u60f3\u67e5\u770btest\u7684\u6302\u8f7d\u5206\u533a\u50a8\u5b58\u7684\u4fe1\u606f\u3002\u56e0\u4e3a\u5185\u6838\u8fd8\u6ca1\u6709\u8bfb\u53d6\u8fd9\u4e2a\u547d\u4ee4linux\u684c\u9762\uff0c\u6211\u4eec\u4f7f\u7528mount-a\u8fd9\u4e2a\u547d\u4ee4\u6765\u8ba9\u5185\u6838\u8bfb\u53d6\u8fd9\u4e2a\u6587\u4ef6\u3002\u4e4b\u540e\u7528mount|grep\/test\u6765\u8fc7\u6ee4\u4fe1\u606f\uff0c\u67e5\u770b\u662f\u5426\u6302\u4e0a\u3002\u8981\u4e48\u76f4\u63a5\u7701\u53bb\u4e0a\u4e00\u6b65\uff0c\u76f4\u63a5\u5230test\u76ee\u5f55\u4e0b\u53bb\u627ecolour\u6587\u4ef6\u662f\u5426\u5b58\u5728\u3002\uff08\u5047\u5982\u5931\u8d25\u4e86\u4e0d\u8981\u7740\u6025\uff0c\u5f88\u6709\u53ef\u80fd\u4f60\u6ca1\u6709\u91cd\u65b0\u8fdb\u8fd9\u4e2a\u533a\u54e6\uff09<\/p>\n
==================================================================================================<\/p>\n
\u6587\u672b\u5f69\u86cb\uff1a\u7537\u5b50\u4f34\u4eec\u6709\u6ca1\u6709\u53d1\u89c9\u5f53test\u76ee\u5f55\u88ab\u6302\u8f7d\u540e\uff0c\u8be5\u76ee\u5f55\u4e0b\u591a\u51fa\u4e86\u4e00\u4e2a\u76ee\u5f55lost+found\u3002<\/p>\n
lost+found\uff1a\u987e\u540d\u601d\u4e49\uff0c\u9057\u5931\u4e4b\u540e\u627e\u5230\u3002\u5b83\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u76ee\u5f55\uff0c\u62ff\u6765\u50a8\u5b58\u6587\u4ef6\u7cfb\u7edf\u9519\u8bef\u9020\u6210\u6587\u4ef6\u9057\u5931\u7684\u76ee\u5f55\uff0c\u56e0\u800c\u6211\u4eec\u7684\u4e00\u4e9b\u6570\u636e\u662f\u53ef\u4ee5\u901a\u8fc7\u5b83\u6765\u627e\u5230\u7684\u3002\u8fd9\u4e2a\u76ee\u5f55\u662f\u5728\u5206\u533a\u7684\u6839\u76ee\u5f55\u4e0a\uff0c\u5c31\u662f\u6211\u4eec\u6302\u8f7d\u7684\u5206\u533a\u3002\u4f46\u8fd9\u4e0d\u662f\u6bcf\u4f4d\u6587\u4ef6\u7cfb\u7edf\u90fd\u6709\u7684\u76ee\u5f55\uff0cext2\/3\u5c31\u6709\u8fd9\u4e2a\u76ee\u5f55\uff0c\u6709\u4e9b\u5c31\u6ca1\u6709\u8fd9\u4e2a\u76ee\u5f55\u3002<\/p>\n
\u672c\u8282\u6240\u7528\u5230\u7684\u4e3b\u8981Linux\u7684\u547d\u4ee4\u603b\u7ed3<\/p>\n
\u547d\u4ee4\u8be5\u547d\u4ee4\u7684\u6ce8\u91ca<\/p>\n
fdisk-l<\/p>\n
\u67e5\u770b\u5f53\u524dc\u76d8\u7684\u5206\u533a\u72b6\u51b5<\/p>\n
fdisk\/dev\/sda<\/p>\n
\u8ba9\u786c\u789f\u6b65\u5165\u5206\u533a\u6a21\u5f0f\uff0c\u6240\u5206\u7684c\u76d8\u5728\/dev\u4e0b\u7684sda\u8fd9\u5757c\u76d8<\/p>\n
partprobe<\/p>\n
\u5c06\u5206\u533a\u4fe1\u606f\u8bfb\u5230\u5185\u6838\u4e2d<\/p>\n
mkfs.ext2\/dev\/sda5<\/p>\n
\u5c06\/dev\u4e0b\u7684sda5c\u76d8\u4f4e\u683c\u4e3aext2\u7684\u683c\u5f0f\u7c7b\u578b<\/p>\n
mount\/dev\/sda5\/test<\/p>\n
\u5c06\/dev\/sda5\u6302\u8f7d\u5230test\u4e2d<\/p>\n
umount\/dev\/sda5\u6216\u5219umount\/test<\/p>\n
\u5378\u8f7d\u65e9\u5df2\u6302\u8f7d\u7684\/dev\/sda5c\u76d8\u4e5f\u5c31\u662f\u4f5c\u4e3a\u6302\u8f7d\u63d2\u53e3\u7684test\u76ee\u5f55<\/p>\n
mount<\/p>\n
\u67e5\u770b\u5f53\u524dc\u76d8\u7684\u8be6\u5c3d\u6302\u8f7d\u4fe1\u606f<\/p>\n
df-h<\/p>\n
\u67e5\u770bc\u76d8\u7684\u4fe1\u606f\uff08\u63a8\u8350\uff09<\/p>\n
blkid<\/p>\n
\u67e5\u770b\u5bf9\u5e94\u5206\u533a\u7684UUID\uff08\u7f16\u53f7\uff09<\/p>\n
\u597d\u4e86\u672c\u6587\u5230\u6b64\u5c31\u7ed3\u675f\u4e86\uff0c\u6587\u7ae0\u591a\u591a\u5c11\u5c11\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e9b\u9519\u8bef\uff0c\u4e5f\u5e0c\u671b\u4f60\u4eec\u80fd\u5e2e\u52a9\u6211\u53d1\u89c9\u6587\u7ae0\u7684\u4e00\u4e9b\u9519\u8bef\uff0c\u63d0\u51fa\u5b9d\u8d35\u7684\u5efa\u8bae\u3002\u6b22\u8fce\u4f60\u4eec\u80fd\u5728\u7559\u8a00\u533a\u8bc4\u8bba\u7559\u8a00\u54e6\uff0c\u8c22\u8c22\u9605\u8bfb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
1\u3001\u4ec0\u4e48\u662f\u78c1\u76d8\uff1a\u7531\u4e8e\u6211\u4eec\u4e4b\u524d\u8bf4\u8fc7\u4e00\u4e2a\u6247\u533a\u662f512\u5b57\u8282\uff0c\u5176\u4e2d\u670964\u4e2a\u5b57\u8282\u5b58\u50a8\u7684\u662f\u5206\u533a\u8868\uff0c\u4e00\u6761\u5206\u533a\u4fe1\u606f\u536016\u4e2a\u5b57\u8282\uff0c\u56e0\u6b64\u78c1\u76d8\u6700\u591a\u53ea\u80fd\u5206\u56db\u4e2a\u5206\u533a\uff0c\u8981\u60f3\u6709\u591a\u4e2a\u5206\u533a\u600e\u4e48\u529e\uff1f\u683c\u5f0f\u5316\uff1a\u6307\u5c06\u5206\u533a\u683c\u5f0f\u5316\u6210\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7edf\u3002\uff083\uff09\u600e\u6837\u67e5\u770b\u5230\u5f53\u524d\u7cfb\u7edf\u4e0a\u6240\u6709\u78c1\u76d8\u7684\u6302\u8f7d\u4fe1\u606f\uff1f\/test\u6302\u8f7d\u70b9\u76ee\u5f55\uff0cext3\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff0c\u7b2c\u4e00\u4e2a0\u8868\u793a\u4e0d\u5907\u4efd\uff0c\u7b2c\u4e8c\u4e2a0\u8868\u793a\u4e0d\u68c0\u67e5\u3002\u78c1\u76d8\u4e5f\u5c31\u662f\u4f5c\u4e3a\u6302\u8f7d\u63a5\u53e3\u7684test\u76ee\u5f55<\/p>\n","protected":false},"author":1,"featured_media":285303,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-285302","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/285302","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=285302"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/285302\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/285303"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=285302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=285302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=285302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}