{"id":279065,"date":"2023-08-01T04:04:36","date_gmt":"2023-07-31T20:04:36","guid":{"rendered":"https:\/\/lrxjmw.cn\/lcpywjxtglfq.html"},"modified":"2023-08-01T04:04:36","modified_gmt":"2023-07-31T20:04:36","slug":"lcpywjxtglfq","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lcpywjxtglfq.html","title":{"rendered":"Linux\u78c1\u76d8\u4e0e\u6587\u4ef6\u7cfb\u7edf\u7ba1\u7406\u5206\u533a\u8868\u7684\u516d\u4e2a\u4e3b\u8981\u5185\u5bb9\u8bf4\u660e"},"content":{"rendered":"
\u8fd9\u7bc7\u6587\u7ae0\u5c06\u4e3a\u4f60\u4eec\u8be6\u5c3d\u8bb2\u89e3\u6709\u5173Linux<\/a>\u4e2d\u5982\u4f55\u7ba1\u7406c\u76d8\u4e0e\u6587\u4ef6\u7cfb\u7edf<\/a>\uff0c\u6587\u7ae0\u5185\u5bb9\u8d28\u91cf\u8f83\u9ad8\uff0c\u56e0\u800c\u5c0f\u7f16\u5206\u4eab\u7ed9\u4f60\u4eec\u505a\u4e2a\u53c2\u8003inode \u786c\u76d8 \u5220\u9664\u4e24\u4e2a\u6587\u4ef6 -linux<\/strong>\uff0c\u5e0c\u671b\u4f60\u4eec\u9605\u8bfb\u5b8c\u8fd9\u7bc7\u6587\u7ae0\u540e\u5bf9\u76f8\u5173\u77e5\u8bc6\u6709\u4e00\u5b9a\u7684\u4e86\u89e3\u3002<\/p>\n Linuxc\u76d8\u4e0e\u6587\u4ef6\u7cfb\u7edf\u7ba1\u7406<\/p>\n c\u76d8\u5206\u533a\u8868\u4e3b\u8981\u6709\u4e24\u79cd\u683c\u5f0f\uff0c\u4e00\u79cd\u662f\u9650\u5236\u8f83\u591a\u7684MBR\u5206\u533a\u8868\uff0c\u4e00\u79cd\u662f\u8f83\u65b0\u4e14\u9650\u5236\u8f83\u5c11\u7684GPT\u5206\u533a\u8868\u3002MBR\u5206\u533a\u8868\u4e2d\uff0c\u7b2c\u4e00\u4e2a\u78c1\u9053\u6700\u91cd\u8981inode \u786c\u76d8 \u5220\u9664\u4e24\u4e2a\u6587\u4ef6 -linux<\/strong>\uff0c\u4e0a\u9762\u6709\uff1a\uff081\uff09\u4e3b\u8981\u5f00\u673a\u533a\uff08Masterbootrecord,MBR\uff09\u53ca\u5206\u533a\u8868\uff08partitiontable\uff09\uff0c\u5176\u4e2dMBR\u5360\u6709446Bytes\uff0c\u800cpartitiontable\u5219\u5360\u670964Bytes\u3002GPT\u5206\u533a\u8868\u4e0d\u4ec5\u5206\u533a\u6570\u76ee\u6269\u5c55\u8f83\u591a\u4e4b\u5916\uff0c\u652f\u6301\u7684c\u76d8\u5bb9\u91cf\u4e5f\u53ef\u4ee5\u8d85\u8fc72TB\u3002<\/p>\n \u6587\u4ef6\u7cfb\u7edf\u7279\u70b9<\/p>\n \u6587\u4ef6\u7cfb\u7edf\u4e00\u822c\u4f1a\u5c06\u8fd9\u4e24\u90e8\u5206\u7684\u6570\u636e\u5206\u522b\u50a8\u5b58\u5728\u4e0d\u540c\u7684\u533a\u5757\uff0c\u6743\u9650\u4e0e\u5c5e\u6027\u653e\u7f6e\u5230inode\u4e2d\uff0c\u81f3\u4e8e\u5b9e\u9645\u6570\u636e\u5219\u653e\u7f6e\u5230datablock\u533a\u5757\u4e2d\u3002\u53e6\u5916\uff0c\u8fd8\u6709\u4e00\u4e2a\u8d85\u7ea7\u533a\u5757\uff08superblock\uff09\u4f1a\u8bb0\u5f55\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u7684\u6574\u4f53\u4fe1\u606flinux\u7cfb\u7edf\u955c\u50cf\u4e0b\u8f7d\uff0c\u5305\u62ecinode\u4e0eblock\u7684\u603b\u6570\u3001\u4f7f\u7528\u91cf\u3001\u5269\u4f59\u91cf\u7b49\u3002<\/p>\n Linux\u7684EXT2\u6587\u4ef6\u7cfb\u7edf\uff08inode\uff09<\/p>\n Ext2\u4f4e\u683c\u540e\u6709\u70b9\u50cf\u4e0b\u8fb9\u8fd9\u6837\uff1a<\/p>\n <\/p>\n \u6bcf\u4e00\u4e2a\u533a\u5757\u7fa4\u7ec4\uff08blockgroup\uff09\u7684\u516d\u4e2a\u4e3b\u8981\u5185\u5bb9\u8bf4\u660e\u5982\u4e0b\uff1a<\/p>\n dumpe2fs\uff1a\u67e5\u8be2Ext\u5bb6\u65cfsuperblock\u4fe1\u606f\u7684\u6307\u4ee4<\/p>\n dumpe2fs\/dev\/vda5<\/p>\n EXT2\/EXT3\/EXT4\u6587\u4ef6\u7684\u5b58\u53d6\u4e0e\u65e5\u5fd7\u5f0f\u6587\u4ef6\u7cfb\u7edf\u7684\u529f\u80fd<\/p>\n \u65e5\u5fd7\u5f0f\u6587\u4ef6\u7cfb\u7edf\uff08journal\uff09\u4f1a\u591a\u51fa\u4e00\u5757\u8bb0\u5f55\u533a\uff0c\u968f\u65f6\u8bb0\u8f7d\u6587\u4ef6\u7cfb\u7edf\u7684\u4e3b\u8981\u6d3b\u52a8\uff0c\u53ef\u63a8\u52a8\u7cfb\u7edf\u590d\u539f\u65f6\u95f4\uff1b<\/p>\n \u6302\u8f7d\u70b9\u7684\u610f\u4e49\uff08mountpoint\uff09<\/p>\n \u5c06\u6587\u4ef6\u7cfb\u7edf\u4e0e\u76ee\u5f55\u6811\u7ed3\u5408\u7684\u52a8\u4f5c\u6211\u4eec\u79f0\u4e3a\u201c\u6302\u8f7d\u201d\u3002\u91cd\u70b9\u662f\uff1a\u6302\u8f7d\u70b9\u4e00\u5b9a\u662f\u76ee\u5f55\uff0c\u8be5\u76ee\u5f55\u4e3a\u6b65\u5165\u8be5\u6587\u4ef6\u7cfb\u7edf\u7684\u5165\u53e3\u3002\u56e0\u800c\u5e76\u4e0d\u662f\u4f60\u6709\u4efb\u4f55\u6587\u4ef6\u7cfb\u7edf\u90fd\u80fd\u4f7f\u7528\uff0c\u5fc5\u9700\u8981\u201c\u6302\u8f7d\u201d\u5230\u76ee\u5f55\u6811\u7684\u67d0\u4e2a\u76ee\u5f55\u540e\uff0c\u624d\u624d\u80fd\u4f7f\u7528\u8be5\u6587\u4ef6\u7cfb\u7edf\u7684\u3002<\/p>\n \u6587\u4ef6\u7cfb\u7edf\u7684\u7b80\u5355\u64cd\u4f5c<\/p>\n df\uff1a\u5217\u4e3e\u6587\u4ef6\u7cfb\u7edf\u7684\u6574\u4f53c\u76d8\u4f7f\u7528\u91cf\uff1bdu\uff1a\u8bc4\u4f30\u6587\u4ef6\u7cfb\u7edf\u7684c\u76d8\u4f7f\u7528\u91cf\uff08\u5e38\u7528\u5728\u63a8\u4f30\u76ee\u5f55\u6240\u5360\u5bb9\u91cf\uff09<\/p>\n \u5b9e\u4f53\u94fe\u63a5\u4e0e\u7b26\u53f7\u94fe\u63a5\uff1aln<\/p>\n HardLink\uff08\u5b9e\u4f53\u94fe\u63a5,\u786c\u5f0f\u94fe\u63a5\u6216\u5b9e\u9645\u94fe\u63a5\uff09<\/p>\n \u5047\u5b9a\u6211\u7cfb\u7edf\u6709\u4e2a\/root\/crontab\u4ed6\u662f\/etc\/crontab\u7684\u5b9e\u4f53\u94fe\u63a5\uff0c\u4e5f\u5c31\u662f\u8bf4\u8fd9\u4e24\u4e2a\u6587\u4ef6\u540d\u94fe\u63a5\u5230\u540c\u4e00\u4e2ainode\u3002<\/p>\n SymbolicLink\uff08\u7b26\u53f7\u94fe\u63a5\uff0c\u4ea6\u79f0\u662f\u6377\u5f84\uff09<\/p>\n \u8fd9\u4e2aSymbolicLink\u4e0eWindows\u7684\u6377\u5f84\u53ef\u4ee5\u7ed9\u4ed6\u5212\u4e0a\u7b49\u53f7\uff0c\u7531Symboliclink\u6240\u521b\u5efa\u7684\u6587\u4ef6\u4e3a\u4e00\u4e2a\u72ec\u7acb\u7684\u65b0\u7684\u6587\u4ef6\uff0c\u6240\u4ee5\u4f1a\u5360\u7528\u6389inode\u4e0eblock\u3002<\/p>\n c\u76d8\u7684\u5206\u533a\u3001\u683c\u5f0f\u5316\u3001\u68c0\u9a8c\u4e0e\u6302\u8f7d<\/p>\n \u5047\u5982\u6211\u4eec\u60f3\u8981\u5728\u7cfb\u7edf\u4e0a\u9762\u65b0\u589e\u4e00\u9897c\u76d8\u65f6\uff0c\u5e94\u5f53\u6709\u4ec0\u4e48\u52a8\u4f5c\u987b\u8981\u505a\u7684\u5462\uff1a<\/p>\n \u5bf9c\u76d8\u8fdb\u884c\u5206\u533a\uff0c\u4ee5\u521b\u5efa\u53ef\u7528\u7684partition\uff1b<\/p>\n \u5bf9\u8be5partition\u8fdb\u884c\u4f4e\u683c\uff08format\uff09linux\u662f\u4ec0\u4e48\u7cfb\u7edf\uff0c\u4ee5\u521b\u5efa\u7cfb\u7edf\u53ef\u7528\u7684filesystem\uff1b<\/p>\n \u82e5\u60f3\u8981\u4ed4\u7ec6\u4e00\u70b9\uff0c\u5219\u53ef\u5bf9\u521a\u624d\u521b\u5efa\u597d\u7684filesystem\u8fdb\u884c\u68c0\u9a8c\uff1b<\/p>\n \u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u987b\u8981\u521b\u5efa\u6302\u8f7d\u70b9\uff08\u4ea6\u79f0\u662f\u76ee\u5f55\uff09\uff0c\u5e76\u5c06\u4ed6\u6302\u8f7d\u4e0a\u6765\uff1b<\/p>\n \u89c2\u5bdfc\u76d8\u5206\u533a\u72b6\u6001<\/p>\n lsblk\u5217\u4e3e\u7cfb\u7edf\u4e0a\u7684\u6240\u6709c\u76d8\u5217\u8868<\/p>\n blkid\u5217\u4e3e\u8bbe\u5907\u7684UUID\u7b49\u53c2\u6570<\/p>\n parted\u5217\u4e3ec\u76d8\u7684\u5206\u533a\u8868\u7c7b\u578b\u4e0e\u5206\u533a\u4fe1\u606f<\/p>\n <\/p>\n c\u76d8\u5206\u533a\uff1agdisk\/fdisk<\/p>\n c\u76d8\u4f4e\u683c\uff08\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff09<\/p>\n XFS\u6587\u4ef6\u7cfb\u7edfmkfs.xfs<\/p>\n XFS\u6587\u4ef6\u7cfb\u7edfforRAID\u6027\u80fd\u4f18\u5316\uff08Optional\uff09<\/p>\n EXT4\u6587\u4ef6\u7cfb\u7edfmkfs.ext4<\/p>\n \u5176\u4ed6\u6587\u4ef6\u7cfb\u7edfmkfs<\/p>\n \u6587\u4ef6\u7cfb\u7edf\u68c0\u9a8c<\/p>\n xfs_repair\u5904\u7406XFS\u6587\u4ef6\u7cfb\u7edf<\/p>\n <\/p>\n fsck.ext4\u5904\u7406EXT4\u6587\u4ef6\u7cfb\u7edf<\/p>\n \u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u4e0e\u5378\u8f7d<\/p>\n mount<\/p>\n \u8bbe\u7f6e\u5f00\u673a\u6302\u8f7d<\/p>\n \u5f00\u673a\u6302\u8f7d\/etc\/fstab\u53ca\/etc\/mtab\uff0c\u867d\u7136\/etc\/fstab\uff08filesystemtable\uff09\u5c31\u662f\u5c06\u6211\u4eec\u501f\u52a9mount\u6307\u4ee4\u8fdb\u884c\u6302\u8f7d\u65f6\uff0c\u5c06\u6240\u6709\u7684\u9009\u9879\u4e0e\u53c2\u6570\u5199\u5165\u5230\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u5c31\u662f\u4e86\u3002<\/p>\n \u663e\u5b58\u4ea4\u6362\u7a7a\u95f4\uff08swap\uff09\u4e4b\u521b\u5efa<\/p>\n \u4f7f\u7528\u5b9e\u4f53\u5206\u533a\u521b\u5efaswap<\/p>\n \u4f7f\u7528\u6587\u4ef6\u521b\u5efaswap<\/p>\n \u5173\u4e8eLinux\u4e2d\u5982\u4f55\u7ba1\u7406c\u76d8\u4e0e\u6587\u4ef6\u7cfb\u7edf\u5c31\u5206\u4eab\u5230\u8fd9\u513f\u4e86\uff0c\u5e0c\u671b\u4ee5\u4e0a\u5185\u5bb9\u53ef\u4ee5\u5bf9\u4f60\u4eec\u6709\u4e00\u5b9a\u7684\u5e2e\u52a9\uff0c\u53ef\u4ee5\u5b66\u5230\u66f4\u591a\u77e5\u8bc6\u3002\u5047\u5982\u8ba4\u4e3a\u6587\u7ae0\u4e0d\u9519\uff0c\u53ef\u4ee5\u628a\u5b83\u5206\u4eab\u51fa\u53bb\u8ba9\u66f4\u591a\u7684\u4eba\u542c\u5230\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u78c1\u76d8\u4e0e\u6587\u4ef6\u7cfb\u7edf\u7ba1\u7406\u6587\u4ef6\u7cfb\u7edf\u7279\u6027\u6587\u4ef6\u7cfb\u7edf\uff08inode\uff09\u6587\u4ef6\u7684\u5b58\u53d6\u4e0e\u65e5\u5fd7\u5f0f\u6587\u4ef6\u7cfb\u7edf\u7684\u529f\u80fddu\uff1a\u8bc4\u4f30\u6587\u4ef6\u7cfb\u7edf\u7684\u78c1\u76d8\u4f7f\u7528\u91cf\uff08\u5e38\u7528\u5728\u63a8\u4f30\u76ee\u5f55\u6240\u5360\u5bb9\u91cf\uff09\u78c1\u76d8\u7684\u5206\u533a\u3001\u683c\u5f0f\u5316\u3001\u68c0\u9a8c\u4e0e\u6302\u8f7d\u5217\u51fa\u7cfb\u7edf\u4e0a\u7684\u6240\u6709\u78c1\u76d8\u5217\u8868\u5217\u51fa\u78c1\u76d8\u7684\u5206\u533a\u8868\u7c7b\u578b\u4e0e\u5206\u533a\u4fe1\u606f\u78c1\u76d8\u683c\u5f0f\u5316\uff08\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff09\u6587\u4ef6\u7cfb\u7edf\u6587\u4ef6\u7cfb\u7edf\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u4e0e\u5378\u8f7d\u5c06\u6240\u6709\u7684\u9009\u9879\u4e0e\u53c2\u6570\u5199\u5165\u5230\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u5c31\u662f\u4e86\u3002\u4f7f\u7528\u6587\u4ef6\u521b\u5efaswap<\/p>\n","protected":false},"author":1,"featured_media":279066,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-279065","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\/279065","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=279065"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/279065\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/279066"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=279065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=279065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=279065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}