{"id":79223,"date":"2026-03-01T13:18:41","date_gmt":"2026-03-01T05:18:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79223.html"},"modified":"2026-03-01T13:18:41","modified_gmt":"2026-03-01T05:18:41","slug":"ext-%e7%b3%bb%e5%88%97%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e6%a0%b8%e5%bf%83%ef%bc%9a%e5%9d%97%e3%80%81%e5%88%86%e5%8c%ba%e3%80%81inode-%e4%b8%8e%e5%9d%97%e7%bb%84%e7%bb%93%e6%9e%84%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79223.html","title":{"rendered":"Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3\uff1a\u5757\u3001\u5206\u533a\u3001inode \u4e0e\u5757\u7ec4\u7ed3\u6784\u8be6\u89e3"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051831-69a3cc27b0fd4.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"70\" height=\"70\" \/><\/p>\n<p> <font color=\"#CC0000\">&#x1f525;\u8349\u8393\u718aLotso&#xff1a;\u4e2a\u4eba\u4e3b\u9875 <\/font><\/p>\n<p> <font color=\"#0099FF\">\u2744\ufe0f\u4e2a\u4eba\u4e13\u680f: \u300aC&#043;&#043;\u77e5\u8bc6\u5206\u4eab\u300b \u300aLinux \u5165\u95e8\u5230\u5b9e\u8df5&#xff1a;\u96f6\u57fa\u7840\u4e5f\u80fd\u61c2\u300b <\/font><\/p>\n<p> <font color=\"#0000CD\" size=\"4\">\u2728\u751f\u6d3b\u662f\u9ed8\u9ed8\u7684\u575a\u6301&#xff0c;\u6bc5\u529b\u662f\u6c38\u4e45\u7684\u4eab\u53d7&#xff01;<\/font> <\/p>\n<hr \/>\n<p><font color=\"#4B0082\" size=\"4\">&#x1f3ac; \u535a\u4e3b\u7b80\u4ecb&#xff1a;<\/font><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051832-69a3cc2835402.gif\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u524d\u8a00&#xff1a;<\/li>\n<li>\u4e00. \u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u94fa\u57ab&#xff1a;\u5757\u3001\u5206\u533a\u3001inode<\/li>\n<li>\n<ul>\n<li>1.1 \u5757&#xff08;Block&#xff09;&#xff1a;\u6587\u4ef6\u5b58\u53d6\u7684\u6700\u5c0f\u5355\u4f4d<\/li>\n<li>1.2 \u5206\u533a&#xff08;Partition&#xff09;&#xff1a;\u78c1\u76d8\u7684 \u201c\u903b\u8f91\u5207\u7247\u201d<\/li>\n<li>1.3 inode&#xff1a;\u6587\u4ef6\u5c5e\u6027\u7684 \u201c\u8eab\u4efd\u8bc1\u201d<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c. Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3&#xff1a;\u5757\u7ec4&#xff08;Block Group&#xff09;\u7ed3\u6784<\/li>\n<li>\n<ul>\n<li>2.1 \u5757\u7ec4\u7684\u6574\u4f53\u7ed3\u6784<\/li>\n<li>2.2 \u5757\u7ec4\u5185\u90e8\u6838\u5fc3\u6784\u6210&#xff08;\u4ece\u7ba1\u7406\u5230\u6570\u636e\u7684\u5b8c\u6574\u94fe\u8def&#xff09;<\/li>\n<li>\n<ul>\n<li>2.2.1 \u8d85\u7ea7\u5757&#xff08;Super Block&#xff09;&#xff1a;\u6587\u4ef6\u7cfb\u7edf\u7684 \u201c\u603b\u914d\u7f6e\u6587\u4ef6\u201d<\/li>\n<li>2.2.2 \u5757\u7ec4\u63cf\u8ff0\u7b26\u8868&#xff08;GDT&#xff1a;Group Descriptor Table&#xff09;<\/li>\n<li>2.2.3 \u5757\u4f4d\u56fe&#xff08;Block Bitmap&#xff09;&#xff1a;\u5757\u7684 \u201c\u5360\u7528\u72b6\u6001\u8bb0\u5f55\u8868\u201d<\/li>\n<li>2.2.4 inode \u4f4d\u56fe&#xff08;Inode Bitmap&#xff09;&#xff1a;inode \u7684 \u201c\u5360\u7528\u72b6\u6001\u8bb0\u5f55\u8868\u201d<\/li>\n<li>2.2.5 inode \u8868&#xff08;Inode Table&#xff09;&#xff1a;inode \u7684 \u201c\u5b58\u50a8\u4ed3\u5e93\u201d<\/li>\n<li>2.2.6 \u6570\u636e\u5757&#xff08;Data Blocks&#xff09;&#xff1a;\u6587\u4ef6\u5185\u5bb9\u7684 \u201c\u5b58\u50a8\u533a\u57df\u201d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09. \u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u5de5\u4f5c\u6d41\u7a0b&#xff1a;\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u7684\u5e95\u5c42\u903b\u8f91&#xff08;\u5176\u5b83\u7684\u5c31\u4e0d\u5c55\u793a\u4e86&#xff09;<\/li>\n<li>\u7ed3\u5c3e&#xff1a;<\/li>\n<\/ul>\n<hr \/>\n<h2>\u524d\u8a00&#xff1a;<\/h2>\n<p>\u5728\u4e0a\u4e00\u7bc7\u535a\u5ba2\u4e2d&#xff0c;\u6211\u4eec\u641e\u61c2\u4e86\u78c1\u76d8\u7684\u7269\u7406\u7ed3\u6784\u3001\u903b\u8f91\u62bd\u8c61\u548c\u5bfb\u5740\u65b9\u5f0f&#xff08;CHS\/LBA&#xff09;&#xff0c;\u77e5\u9053\u4e86\u78c1\u76d8\u7684\u6700\u5c0f\u5b58\u50a8\u5355\u4f4d\u662f\u6247\u533a\u3002\u4f46\u6247\u533a\u4ec5 512 \u5b57\u8282&#xff0c;\u76f4\u63a5\u64cd\u4f5c\u6548\u7387\u6781\u4f4e&#xff0c;\u4e14\u6742\u4e71\u65e0\u7ae0\u7684\u6247\u533a\u65e0\u6cd5\u9ad8\u6548\u7ba1\u7406\u6587\u4ef6\u3002\u8fd9\u5c31\u9700\u8981 \u201c\u6587\u4ef6\u7cfb\u7edf\u201d \u767b\u573a \u2014\u2014 \u5b83\u5c31\u50cf\u78c1\u76d8\u7684 \u201c\u7ba1\u7406\u5458\u201d&#xff0c;\u901a\u8fc7\u5212\u5206\u5757\u3001\u5206\u533a\u3001inode \u7b49\u7ed3\u6784&#xff0c;\u5c06\u96f6\u6563\u7684\u6247\u533a\u7ec4\u7ec7\u6210\u6709\u5e8f\u7684\u5b58\u50a8\u4f53\u7cfb&#xff0c;\u8ba9\u6587\u4ef6\u7684\u521b\u5efa\u3001\u8bfb\u53d6\u3001\u4fee\u6539\u3001\u5220\u9664\u53d8\u5f97\u9ad8\u6548\u53ef\u63a7\u3002\u672c\u6587\u4ece \u201c\u5757\u201d\u201c\u5206\u533a\u201d\u201cinode\u201d \u7b49\u57fa\u7840\u6982\u5ff5\u5165\u624b&#xff0c;\u6df1\u5165\u5256\u6790 Ext2\/3\/4 \u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u8bbe\u8ba1 \u2014\u2014 \u5757\u7ec4\u7ed3\u6784&#xff0c;\u5e2e\u4f60\u5f7b\u5e95\u641e\u61c2\u6587\u4ef6\u7cfb\u7edf\u662f\u5982\u4f55\u7ba1\u7406\u78c1\u76d8\u5b58\u50a8\u7684\u3002<\/p>\n<hr \/>\n<h2>\u4e00. \u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u94fa\u57ab&#xff1a;\u5757\u3001\u5206\u533a\u3001inode<\/h2>\n<p>\u5728\u8ba4\u8bc6 Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u4e4b\u524d&#xff0c;\u5fc5\u987b\u5148\u638c\u63e1\u4e09\u4e2a\u6838\u5fc3\u524d\u7f6e\u6982\u5ff5&#xff0c;\u5b83\u4eec\u662f\u6587\u4ef6\u7cfb\u7edf\u8bbe\u8ba1\u7684\u57fa\u77f3\u3002<\/p>\n<h3>1.1 \u5757&#xff08;Block&#xff09;&#xff1a;\u6587\u4ef6\u5b58\u53d6\u7684\u6700\u5c0f\u5355\u4f4d<\/h3>\n<p>\u5757\u7684\u5f15\u5165\u539f\u56e0&#xff1a; \u6247\u533a\u662f\u78c1\u76d8\u7684\u6700\u5c0f\u7269\u7406\u5b58\u50a8\u5355\u4f4d&#xff08;512 \u5b57\u8282&#xff09;&#xff0c;\u4f46\u9891\u7e41\u64cd\u4f5c\u5355\u4e2a\u6247\u533a\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u8c03\u7528\u8fc7\u591a&#xff08;\u6bcf\u6b21 IO \u90fd\u8981\u5207\u6362\u5185\u6838\u6001&#xff09;&#xff0c;\u6548\u7387\u6781\u4f4e\u3002\u56e0\u6b64\u6587\u4ef6\u7cfb\u7edf\u5f15\u5165 \u201c\u5757\u201d \u7684\u6982\u5ff5&#xff0c;\u5c06\u8fde\u7eed\u7684\u591a\u4e2a\u6247\u533a\u6253\u5305\u6210\u4e00\u4e2a\u5757&#xff0c;\u4f5c\u4e3a\u6587\u4ef6\u5b58\u53d6\u7684\u6700\u5c0f\u5355\u4f4d\u3002 \u5757\u7684\u5173\u952e\u7279\u6027&#xff1a;<\/p>\n<ul>\n<li>\u5757\u5927\u5c0f\u7531\u683c\u5f0f\u5316\u65f6\u6307\u5b9a&#xff08;\u5e38\u89c1 4KB&#061;8 \u4e2a\u6247\u533a&#xff09;&#xff0c;\u4e00\u65e6\u786e\u5b9a\u4e0d\u53ef\u4fee\u6539&#xff1b;<\/li>\n<li>\u5757\u662f\u6587\u4ef6\u7cfb\u7edf\u5c42\u9762\u7684\u903b\u8f91\u6982\u5ff5&#xff0c;\u5c4f\u853d\u4e86\u6247\u533a\u7684\u7269\u7406\u7ec6\u8282&#xff1b;<\/li>\n<li>\u6587\u4ef6\u7684\u5185\u5bb9\u6570\u636e\u4f1a\u88ab\u5206\u5272\u6210\u82e5\u5e72\u4e2a\u5757\u5b58\u50a8&#xff08;\u4e0d\u8db3\u4e00\u5757\u5219\u5360\u7528\u4e00\u5757&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u9a8c\u8bc1\u5757\u5927\u5c0f&#xff1a; \u901a\u8fc7stat\u547d\u4ee4\u53ef\u67e5\u770b\u6587\u4ef6\u7684\u5757\u76f8\u5173\u4fe1\u606f&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051832-69a3cc28af605.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8f93\u51fa\u5173\u952e\u4fe1\u606f\u89e3\u8bfb&#xff1a;<\/p>\n<ul>\n<li>Blocks: 8&#xff1a;\u6587\u4ef6\u5360\u7528 8 \u4e2a \u201c\u78c1\u76d8\u5757\u201d&#xff08;\u4e0d\u540c\u7cfb\u7edf\u5757\u8ba1\u6570\u89c4\u5219\u53ef\u80fd\u4e0d\u540c&#xff09;&#xff1b;<\/li>\n<li>IO Block: 4096&#xff1a;\u6587\u4ef6\u7cfb\u7edf\u7684\u5757\u5927\u5c0f\u4e3a 4KB&#xff08;\u5373 8 \u4e2a\u6247\u533a&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u6ce8\u610f&#xff1a;<\/p>\n<ul>\n<li>\u78c1\u76d8\u5c31\u662f\u2f00\u4e2a\u4e09\u7ef4\u6570\u7ec4&#xff0c;\u6211\u4eec\u628a\u5b83\u770b\u5f85\u6210\u4e3a\u2f00\u4e2a&#034;\u2f00\u7ef4\u6570\u7ec4&#034;&#xff0c;\u6570\u7ec4\u4e0b\u6807\u5c31\u662fLBA&#xff0c;\u6bcf\u4e2a\u5143\u7d20\u90fd\u662f\u6247\u533a<\/li>\n<li>\u6bcf\u4e2a\u6247\u533a\u90fd\u6709LBA&#xff0c;\u90a3\u4e488\u4e2a\u6247\u533a\u2f00\u4e2a\u5757&#xff0c;\u6bcf\u2f00\u4e2a\u5757\u7684\u5730\u5740\u6211\u4eec\u4e5f\u80fd\u7b97\u51fa\u6765\u3002<\/li>\n<li>\u77e5\u9053LBA&#xff1a;\u5757\u53f7 &#061; LBA\/8<\/li>\n<li>\u77e5\u9053\u5757\u53f7&#xff1a;LAB&#061;\u5757\u53f7*8 &#043; n (n\u662f\u5757\u5185\u7b2c\u51e0\u4e2a\u6247\u533a) <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051832-69a3cc28f0b6c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<h3>1.2 \u5206\u533a&#xff08;Partition&#xff09;&#xff1a;\u78c1\u76d8\u7684 \u201c\u903b\u8f91\u5207\u7247\u201d<\/h3>\n<p>\u5206\u533a\u7684\u6838\u5fc3\u4f5c\u7528&#xff1a; \u4e00\u5757\u7269\u7406\u78c1\u76d8\u5bb9\u91cf\u53ef\u80fd\u5f88\u5927&#xff08;\u5982 1TB&#xff09;&#xff0c;\u82e5\u5168\u76d8\u53ea\u88c5\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf&#xff0c;\u4e00\u65e6\u635f\u574f\u4f1a\u5bfc\u81f4\u6240\u6709\u6570\u636e\u4e22\u5931\u3002\u5206\u533a\u5c31\u662f\u5c06\u78c1\u76d8\u6309\u67f1\u9762&#xff08;\u78c1\u76d8\u7269\u7406\u7ed3\u6784\u7684\u6838\u5fc3&#xff09;\u5206\u5272\u6210\u591a\u4e2a\u72ec\u7acb\u7684 \u201c\u903b\u8f91\u78c1\u76d8\u201d&#xff0c;\u6bcf\u4e2a\u5206\u533a\u53ef\u5355\u72ec\u683c\u5f0f\u5316\u3001\u6302\u8f7d\u4f7f\u7528&#xff0c;\u5b9e\u73b0\u6570\u636e\u9694\u79bb\u548c\u7075\u6d3b\u7ba1\u7406\u3002 \u5206\u533a\u7684\u672c\u8d28&#xff1a;<\/p>\n<ul>\n<li>\u5206\u533a\u7684\u6700\u5c0f\u5355\u4f4d\u662f\u67f1\u9762&#xff0c;\u6bcf\u4e2a\u5206\u533a\u6709\u72ec\u7acb\u7684\u8d77\u59cb\u548c\u7ed3\u675f\u67f1\u9762&#xff1b;<\/li>\n<li>\u4ece\u903b\u8f91\u4e0a\u770b&#xff0c;\u5206\u533a\u5c31\u662f\u78c1\u76d8\u7684 \u201c\u5207\u7247\u201d&#xff0c;\u6bcf\u4e2a\u5207\u7247\u90fd\u662f\u4e00\u4e2a\u72ec\u7acb\u7684\u5b58\u50a8\u533a\u57df&#xff1b;<\/li>\n<li>Linux \u4e2d\u5206\u533a\u8bbe\u5907\u6587\u4ef6\u4ee5\/dev\/sda1\u3001\/dev\/vda1\u7b49\u5f62\u5f0f\u5b58\u5728&#xff08;\u5982\/dev\/vda1\u8868\u793a\u7b2c\u4e00\u5757\u865a\u62df\u78c1\u76d8\u7684\u7b2c\u4e00\u4e2a\u5206\u533a&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u5b9e\u6218\u67e5\u770b\u5206\u533a\u4fe1\u606f&#xff1a; \u901a\u8fc7fdisk\u547d\u4ee4\u67e5\u770b\u7cfb\u7edf\u5206\u533a&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051833-69a3cc29b1794.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>Start\/End&#xff1a;\u5206\u533a\u7684\u8d77\u59cb \/ \u7ed3\u675f\u6247\u533a\u53f7&#xff1b;<\/li>\n<li>Blocks&#xff1a;\u5206\u533a\u603b\u5757\u6570&#xff08;1 \u5757 &#061; 1KB&#xff0c;\u6b64\u5904 41936658&#043; KB\u224840GB&#xff09;&#xff1b;<\/li>\n<li>System&#xff1a;\u5206\u533a\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff08;83 \u5bf9\u5e94 Linux \u7cfb\u7edf&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u67f1\u9762\u662f\u5206\u533a\u7684\u6700\u5c0f\u5355\u4f4d&#xff0c;\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u53c2\u8003\u67f1\u9762\u53f7\u7801\u7684\u65b9\u5f0f\u6765\u8fdb\u884c\u5206\u533a&#xff0c;\u5176\u672c\u8d28\u5c31\u662f\u8bbe\u7f6e\u6bcf\u4e2a\u533a\u7684\u8d77\u59cb\u67f1\u9762\u548c\u7ed3\u675f\u67f1\u9762\u53f7\u7801\u3002 \u6b64\u65f6\u6211\u4eec\u53ef\u4ee5\u5c06\u786c\u76d8\u4e0a\u7684\u67f1\u9762&#xff08;\u5206\u533a&#xff09;\u8fdb\u884c\u5e73\u94fa&#xff0c;\u5c06\u5176\u60f3\u8c61\u6210\u4e00\u4e2a\u5927\u7684\u5e73\u9762&#xff0c;\u5982\u4e0b\u56fe\u6240\u793a&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051833-69a3cc29e7df1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051834-69a3cc2a52565.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5176\u5b9e\u5206\u533a\u8fd8\u53ef\u4ee5\u7ee7\u7eed\u5206\u4e3a\u4e00\u4e2a\u4e2a\u7ec4&#xff0c;\u8fd9\u4e2a\u6211\u4eec\u540e\u9762\u8fd8\u4f1a\u518d\u8bb2\u7684\u3002<\/p>\n<h3>1.3 inode&#xff1a;\u6587\u4ef6\u5c5e\u6027\u7684 \u201c\u8eab\u4efd\u8bc1\u201d<\/h3>\n<p>inode \u7684\u6838\u5fc3\u4f5c\u7528&#xff1a; \u6587\u4ef6 &#061; \u5c5e\u6027&#xff08;\u5143\u6570\u636e&#xff09;&#043; \u5185\u5bb9\u3002\u6587\u4ef6\u7684\u5185\u5bb9\u5b58\u50a8\u5728\u5757\u4e2d&#xff0c;\u800c\u6587\u4ef6\u7684\u5c5e\u6027&#xff08;\u6240\u6709\u8005\u3001\u6743\u9650\u3001\u5927\u5c0f\u3001\u521b\u5efa\u65f6\u95f4\u3001\u5757\u6620\u5c04\u5173\u7cfb\u7b49&#xff09;\u9700\u8981\u5355\u72ec\u5b58\u50a8 \u2014\u2014 \u8fd9\u5c31\u662f inode&#xff08;\u7d22\u5f15\u8282\u70b9&#xff09;\u7684\u804c\u8d23\u3002 inode \u7684\u5173\u952e\u7279\u6027&#xff1a;<\/p>\n<ul>\n<li>\u6bcf\u4e2a\u6587\u4ef6\u5bf9\u5e94\u552f\u4e00\u7684 inode&#xff0c;\u5305\u542b\u552f\u4e00\u7684 inode \u53f7&#xff1b;<\/li>\n<li>inode \u5927\u5c0f\u56fa\u5b9a&#xff08;\u5e38\u89c1 128 \u5b57\u8282\u6216 256 \u5b57\u8282&#xff09;&#xff0c;\u4e0e\u6587\u4ef6\u5185\u5bb9\u5927\u5c0f\u65e0\u5173&#xff1b;<\/li>\n<li>\u6587\u4ef6\u540d\u4e0d\u5b58\u50a8\u5728 inode \u4e2d&#xff0c;\u800c\u662f\u5b58\u50a8\u5728\u76ee\u5f55\u7684\u5757\u6570\u636e\u4e2d&#xff08;\u76ee\u5f55\u672c\u8d28\u4e5f\u662f\u6587\u4ef6&#xff0c;\u6211\u4eec\u4e4b\u540e\u518d\u6765\u8be6\u7ec6\u4e86\u89e3&#xff09;&#xff1b;<\/li>\n<li>inode \u4e2d\u6700\u6838\u5fc3\u7684\u5b57\u6bb5\u662fi_block[EXT2_N_BLOCKS]&#xff08;15 \u4e2a\u6307\u9488&#xff09;&#xff0c;\u8bb0\u5f55\u6587\u4ef6\u5185\u5bb9\u6240\u5728\u7684\u5757\u7f16\u53f7\u3002<\/li>\n<\/ul>\n<p>inode \u7ed3\u6784\u6838\u5fc3\u5b57\u6bb5&#xff08;Ext2 \u793a\u4f8b&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">ext2_inode<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    __le16 i_mode<span class=\"token punctuation\">;<\/span>        <span class=\"token comment\">\/\/ \u6587\u4ef6\u6743\u9650&#xff08;\u59820644&#xff09;<\/span><br \/>\n    __le16 i_uid<span class=\"token punctuation\">;<\/span>         <span class=\"token comment\">\/\/ \u6240\u6709\u8005ID<\/span><br \/>\n    __le32 i_size<span class=\"token punctuation\">;<\/span>        <span class=\"token comment\">\/\/ \u6587\u4ef6\u5927\u5c0f&#xff08;\u5b57\u8282&#xff09;<\/span><br \/>\n    __le32 i_atime<span class=\"token punctuation\">;<\/span>       <span class=\"token comment\">\/\/ \u6700\u540e\u8bbf\u95ee\u65f6\u95f4<\/span><br \/>\n    __le32 i_mtime<span class=\"token punctuation\">;<\/span>       <span class=\"token comment\">\/\/ \u6700\u540e\u4fee\u6539\u65f6\u95f4&#xff08;\u5185\u5bb9&#xff09;<\/span><br \/>\n    __le32 i_ctime<span class=\"token punctuation\">;<\/span>       <span class=\"token comment\">\/\/ \u6700\u540e\u53d8\u66f4\u65f6\u95f4&#xff08;\u5c5e\u6027&#xff09;<\/span><br \/>\n    __le16 i_gid<span class=\"token punctuation\">;<\/span>         <span class=\"token comment\">\/\/ \u6240\u5c5e\u7ec4ID<\/span><br \/>\n    __le16 i_links_count<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u786c\u94fe\u63a5\u6570<\/span><br \/>\n    __le32 i_blocks<span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/\/ \u5360\u7528\u5757\u6570<\/span><br \/>\n    __le32 i_block<span class=\"token punctuation\">[<\/span><span class=\"token number\">15<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/ \u5757\u6620\u5c04\u6307\u9488&#xff08;12\u76f4\u63a5&#043;1\u4e00\u7ea7\u95f4\u63a5&#043;1\u4e8c\u7ea7\u95f4\u63a5&#043;1\u4e09\u7ea7\u95f4\u63a5&#xff09;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u5b9e\u6218\u67e5\u770b inode \u4fe1\u606f&#xff1a; \u901a\u8fc7ls -li\u547d\u4ee4\u53ef\u67e5\u770b\u6587\u4ef6\u7684 inode \u53f7&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051834-69a3cc2ae3fec.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5f00\u5934\u7684\u53f7\u7801\u5c31\u662f\u8be5\u6587\u4ef6\u7684 inode \u53f7&#xff0c;\u901a\u8fc7 inode \u53f7\u53ef\u552f\u4e00\u5b9a\u4f4d\u6587\u4ef6\u3002<\/p>\n<hr \/>\n<h2>\u4e8c. Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3&#xff1a;\u5757\u7ec4&#xff08;Block Group&#xff09;\u7ed3\u6784<\/h2>\n<p>Ext2\/3\/4 \u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u8bbe\u8ba1\u662f \u201c\u5757\u7ec4\u201d\u2014\u2014 \u5c06\u4e00\u4e2a\u5206\u533a\u8fdb\u4e00\u6b65\u5212\u5206\u4e3a\u591a\u4e2a\u5927\u5c0f\u76f8\u7b49\u7684\u5757\u7ec4&#xff08;\u7c7b\u4f3c \u201c\u5c0f\u533a\u5212\u5206\u201d&#xff09;&#xff0c;\u6bcf\u4e2a\u5757\u7ec4\u5305\u542b\u5b8c\u6574\u7684\u7ba1\u7406\u7ed3\u6784\u548c\u6570\u636e\u5b58\u50a8\u533a\u57df\u3002\u8fd9\u79cd\u8bbe\u8ba1\u7684\u4f18\u52bf\u662f&#xff1a;\u5206\u6563\u98ce\u9669&#xff08;\u5355\u4e2a\u5757\u7ec4\u635f\u574f\u4e0d\u5f71\u54cd\u5168\u5c40&#xff09;\u3001\u63d0\u5347\u6548\u7387&#xff08;IO \u64cd\u4f5c\u96c6\u4e2d\u5728\u5355\u4e2a\u5757\u7ec4&#xff0c;\u51cf\u5c11\u78c1\u5934\u79fb\u52a8&#xff09;\u3002<\/p>\n<h3>2.1 \u5757\u7ec4\u7684\u6574\u4f53\u7ed3\u6784<\/h3>\n<p>\u4e00\u4e2a Ext2 \u5206\u533a\u7684\u7ed3\u6784\u5982\u4e0b&#xff08;\u4ece\u78c1\u76d8\u8d77\u59cb\u4f4d\u7f6e\u5230\u672b\u5c3e&#xff09;&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051835-69a3cc2b0a9ee.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>Boot Block&#xff1a;\u56fa\u5b9a 1KB&#xff0c;\u5b58\u50a8\u5206\u533a\u8868\u548c\u542f\u52a8\u4fe1\u606f&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u4e0d\u53ef\u4fee\u6539&#xff1b;<\/li>\n<li>\u6bcf\u4e2a Block Group \u7ed3\u6784\u5b8c\u5168\u76f8\u540c&#xff0c;\u5305\u542b&#xff1a;\u8d85\u7ea7\u5757\u3001\u5757\u7ec4\u63cf\u8ff0\u7b26\u8868\u3001\u5757\u4f4d\u56fe\u3001inode \u4f4d\u56fe\u3001inode \u8868\u3001\u6570\u636e\u5757\u3002<\/li>\n<\/ul>\n<h3>2.2 \u5757\u7ec4\u5185\u90e8\u6838\u5fc3\u6784\u6210&#xff08;\u4ece\u7ba1\u7406\u5230\u6570\u636e\u7684\u5b8c\u6574\u94fe\u8def&#xff09;<\/h3>\n<p>\u6bcf\u4e2a\u5757\u7ec4\u5c31\u50cf\u4e00\u4e2a \u201c\u72ec\u7acb\u7684\u5c0f\u6587\u4ef6\u7cfb\u7edf\u201d&#xff0c;\u5185\u90e8\u7ed3\u6784\u5c42\u5c42\u9012\u8fdb&#xff0c;\u5404\u53f8\u5176\u804c&#xff1a;<\/p>\n<ul>\n<li>\u6211\u4eec\u5148\u6765\u770b\u770b\u6574\u4f53\u56fe\u793a\u89e3\u6790(\u5f88\u91cd\u8981)&#xff0c;\u518d\u7ee7\u7eed\u5f80\u4e0b\u770b <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051835-69a3cc2b56074.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051836-69a3cc2c78ba3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u5173\u952e\u95ee\u9898\u89e3\u7b54(\u4e5f\u53ef\u4ee5\u5148\u770b\u4e0b\u9762\u7684\u518d\u8fd4\u56de\u8fc7\u6765\u7406\u89e3)&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051837-69a3cc2d691a0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<h4>2.2.1 \u8d85\u7ea7\u5757&#xff08;Super Block&#xff09;&#xff1a;\u6587\u4ef6\u7cfb\u7edf\u7684 \u201c\u603b\u914d\u7f6e\u6587\u4ef6\u201d<\/h4>\n<ul>\n<li>\u6838\u5fc3\u4f5c\u7528&#xff1a;\u5b58\u50a8\u6574\u4e2a\u5206\u533a\u7684\u6587\u4ef6\u7cfb\u7edf\u5168\u5c40\u4fe1\u606f&#xff0c;\u662f\u6587\u4ef6\u7cfb\u7edf\u7684 \u201c\u5927\u8111\u201d&#xff1b;<\/li>\n<li>\u5173\u952e\u5b58\u50a8\u5185\u5bb9&#xff1a;\n<ul>\n<li>\u5757\u5927\u5c0f\u3001inode \u5927\u5c0f&#xff1b;<\/li>\n<li>\u5757\u603b\u6570\u3001inode \u603b\u6570\u3001\u7a7a\u95f2\u5757\u6570\u3001\u7a7a\u95f2 inode \u6570&#xff1b;<\/li>\n<li>\u6700\u8fd1\u6302\u8f7d\u65f6\u95f4\u3001\u6700\u8fd1\u5199\u5165\u65f6\u95f4\u3001\u6700\u8fd1\u78c1\u76d8\u68c0\u67e5\u65f6\u95f4&#xff1b;<\/li>\n<li>\u9b54\u6570&#xff08;s_magic&#xff0c;Ext2 \u9b54\u6570\u4e3a 0xEF53&#xff0c;\u7528\u4e8e\u8bc6\u522b\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff09;&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\u5197\u4f59\u8bbe\u8ba1&#xff1a;\u8d85\u7ea7\u5757\u4f1a\u5728\u591a\u4e2a\u5757\u7ec4\u4e2d\u5907\u4efd&#xff08;Block Group 0 \u5fc5\u5b58&#xff09;&#xff0c;\u9632\u6b62\u5355\u70b9\u635f\u574f\u5bfc\u81f4\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\u5d29\u6e83\u3002<\/li>\n<li>\u90e8\u5206\u6e90\u7801(\u9009\u62e9\u6027\u7684\u770b)&#xff1a;<\/li>\n<\/ul>\n<p><span class=\"token comment\">\/*<br \/>\n * \u8d85\u7ea7\u5757\u7ed3\u6784<br \/>\n *\/<\/span><br \/>\n<span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">ext2_super_block<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    __le32 s_inodes_count<span class=\"token punctuation\">;<\/span>        <span class=\"token comment\">\/* Inodes\u603b\u6570 *\/<\/span><br \/>\n    __le32 s_blocks_count<span class=\"token punctuation\">;<\/span>        <span class=\"token comment\">\/* \u5757\u603b\u6570 *\/<\/span><br \/>\n    __le32 s_r_blocks_count<span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/* \u4fdd\u7559\u5757\u6570 *\/<\/span><br \/>\n    __le32 s_free_blocks_count<span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/* \u7a7a\u95f2\u5757\u6570 *\/<\/span><br \/>\n    __le32 s_free_inodes_count<span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/* \u7a7a\u95f2Inodes\u6570 *\/<\/span><br \/>\n    __le32 s_first_data_block<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/* \u7b2c\u4e00\u4e2a\u6570\u636e\u5757 *\/<\/span><br \/>\n    __le32 s_log_block_size<span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/* \u5757\u5927\u5c0f&#xff08;\u5bf9\u6570\u5f62\u5f0f&#xff09; *\/<\/span><br \/>\n    __le32 s_log_frag_size<span class=\"token punctuation\">;<\/span>       <span class=\"token comment\">\/* \u7247\u6bb5\u5927\u5c0f&#xff08;\u5bf9\u6570\u5f62\u5f0f&#xff09; *\/<\/span><br \/>\n    __le32 s_blocks_per_group<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/* \u6bcf\u7ec4\u7684\u5757\u6570 *\/<\/span><br \/>\n    __le32 s_frags_per_group<span class=\"token punctuation\">;<\/span>     <span class=\"token comment\">\/* \u6bcf\u7ec4\u7684\u7247\u6bb5\u6570 *\/<\/span><br \/>\n    __le32 s_inodes_per_group<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/* \u6bcf\u7ec4\u7684Inodes\u6570 *\/<\/span><br \/>\n    __le32 s_mtime<span class=\"token punctuation\">;<\/span>               <span class=\"token comment\">\/* \u6302\u8f7d\u65f6\u95f4 *\/<\/span><br \/>\n    __le32 s_wtime<span class=\"token punctuation\">;<\/span>               <span class=\"token comment\">\/* \u5199\u5165\u65f6\u95f4 *\/<\/span><br \/>\n    __le16 s_mnt_count<span class=\"token punctuation\">;<\/span>           <span class=\"token comment\">\/* \u6302\u8f7d\u6b21\u6570 *\/<\/span><br \/>\n    __le16 s_max_mnt_count<span class=\"token punctuation\">;<\/span>       <span class=\"token comment\">\/* \u6700\u5927\u6302\u8f7d\u6b21\u6570 *\/<\/span><br \/>\n    __le16 s_magic<span class=\"token punctuation\">;<\/span>               <span class=\"token comment\">\/* \u9b54\u6570\u7b7e\u540d&#xff08;0xEF53&#xff09; *\/<\/span><br \/>\n    __le16 s_state<span class=\"token punctuation\">;<\/span>               <span class=\"token comment\">\/* \u6587\u4ef6\u7cfb\u7edf\u72b6\u6001 *\/<\/span><br \/>\n    __le16 s_errors<span class=\"token punctuation\">;<\/span>              <span class=\"token comment\">\/* \u9519\u8bef\u68c0\u6d4b\u65f6\u7684\u884c\u4e3a *\/<\/span><br \/>\n    __le16 s_minor_rev_level<span class=\"token punctuation\">;<\/span>     <span class=\"token comment\">\/* \u6b21\u4fee\u8ba2\u7ea7\u522b *\/<\/span><br \/>\n    __le32 s_lastcheck<span class=\"token punctuation\">;<\/span>           <span class=\"token comment\">\/* \u4e0a\u6b21\u68c0\u67e5\u65f6\u95f4 *\/<\/span><br \/>\n    __le32 s_checkinterval<span class=\"token punctuation\">;<\/span>       <span class=\"token comment\">\/* \u68c0\u67e5\u6700\u5927\u95f4\u9694\u65f6\u95f4 *\/<\/span><br \/>\n    __le32 s_creator_os<span class=\"token punctuation\">;<\/span>          <span class=\"token comment\">\/* \u521b\u5efa\u64cd\u4f5c\u7cfb\u7edf *\/<\/span><br \/>\n    __le32 s_rev_level<span class=\"token punctuation\">;<\/span>           <span class=\"token comment\">\/* \u4fee\u8ba2\u7ea7\u522b *\/<\/span><br \/>\n    __le16 s_def_resuid<span class=\"token punctuation\">;<\/span>          <span class=\"token comment\">\/* \u4fdd\u7559\u5757\u7684\u9ed8\u8ba4\u7528\u6237ID *\/<\/span><br \/>\n    __le16 s_def_resgid<span class=\"token punctuation\">;<\/span>          <span class=\"token comment\">\/* \u4fdd\u7559\u5757\u7684\u9ed8\u8ba4\u7ec4ID *\/<\/span><\/p>\n<p>    <span class=\"token comment\">\/*<br \/>\n     * \u4ee5\u4e0b\u5b57\u6bb5\u4ec5\u7528\u4e8eEXT2_DYNAMIC_REV\u7248\u672c\u7684\u8d85\u7ea7\u5757<br \/>\n     *<br \/>\n     * \u6ce8\u610f&#xff1a;\u517c\u5bb9\u7279\u6027\u96c6\u4e0e\u4e0d\u517c\u5bb9\u7279\u6027\u96c6\u7684\u533a\u522b\u5728\u4e8e&#xff0c;<br \/>\n     * \u5982\u679c\u4e0d\u517c\u5bb9\u7279\u6027\u96c6\u4e2d\u6709\u5185\u6838\u4e0d\u8ba4\u8bc6\u7684\u4f4d&#xff0c;\u5185\u6838\u5e94\u62d2\u7edd\u6302\u8f7d\u8be5\u6587\u4ef6\u7cfb\u7edf\u3002<br \/>\n     *<br \/>\n     * e2fsck\u7684\u8981\u6c42\u66f4\u4e25\u683c&#xff1a;\u5982\u679c\u5b83\u4e0d\u77e5\u9053\u517c\u5bb9\u6216\u4e0d\u517c\u5bb9\u7279\u6027\u96c6\u4e2d\u7684\u67d0\u4e2a\u7279\u6027&#xff0c;<br \/>\n     * \u5b83\u5fc5\u987b\u4e2d\u6b62&#xff0c;\u5e76\u4e14\u4e0d\u5c1d\u8bd5\u4fee\u6539\u5b83\u4e0d\u7406\u89e3\u7684\u5185\u5bb9&#8230;<br \/>\n     *\/<\/span><br \/>\n    __le32 s_first_ino<span class=\"token punctuation\">;<\/span>           <span class=\"token comment\">\/* \u7b2c\u4e00\u4e2a\u975e\u4fdd\u7559inode\u7f16\u53f7 *\/<\/span><br \/>\n    __le16 s_inode_size<span class=\"token punctuation\">;<\/span>          <span class=\"token comment\">\/* inode\u7ed3\u6784\u5927\u5c0f *\/<\/span><br \/>\n    __le16 s_block_group_nr<span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/* \u5f53\u524d\u8d85\u7ea7\u5757\u6240\u5728\u7684\u5757\u7ec4\u53f7 *\/<\/span><br \/>\n    __le32 s_feature_compat<span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/* \u517c\u5bb9\u7279\u6027\u96c6 *\/<\/span><br \/>\n    __le32 s_feature_incompat<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/* \u4e0d\u517c\u5bb9\u7279\u6027\u96c6 *\/<\/span><br \/>\n    __le32 s_feature_ro_compat<span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/* \u53ea\u8bfb\u517c\u5bb9\u7279\u6027\u96c6 *\/<\/span><br \/>\n    __u8 s_uuid<span class=\"token punctuation\">[<\/span><span class=\"token number\">16<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>              <span class=\"token comment\">\/* 128\u4f4d\u5377UUID *\/<\/span><br \/>\n    <span class=\"token keyword\">char<\/span> s_volume_name<span class=\"token punctuation\">[<\/span><span class=\"token number\">16<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>       <span class=\"token comment\">\/* \u5377\u540d\u79f0 *\/<\/span><br \/>\n    <span class=\"token keyword\">char<\/span> s_last_mounted<span class=\"token punctuation\">[<\/span><span class=\"token number\">64<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/* \u4e0a\u6b21\u6302\u8f7d\u7684\u76ee\u5f55 *\/<\/span><br \/>\n    __le32 s_algorithm_usage_bitmap<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/* \u538b\u7f29\u7b97\u6cd5\u4f7f\u7528\u4f4d\u56fe *\/<\/span><\/p>\n<p>    <span class=\"token comment\">\/*<br \/>\n     * \u6027\u80fd\u63d0\u793a\u3002\u4ec5\u5f53EXT2_COMPAT_PREALLOC\u6807\u5fd7\u5f00\u542f\u65f6&#xff0c;<br \/>\n     * \u76ee\u5f55\u9884\u5206\u914d\u624d\u4f1a\u751f\u6548\u3002<br \/>\n     *\/<\/span><br \/>\n    __u8 s_prealloc_blocks<span class=\"token punctuation\">;<\/span>       <span class=\"token comment\">\/* \u5c1d\u8bd5\u9884\u5206\u914d\u7684\u5757\u6570 *\/<\/span><br \/>\n    __u8 s_prealloc_dir_blocks<span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/* \u4e3a\u76ee\u5f55\u9884\u5206\u914d\u7684\u5757\u6570 *\/<\/span><br \/>\n    __u16 s_padding1<span class=\"token punctuation\">;<\/span>             <span class=\"token comment\">\/* \u586b\u5145 *\/<\/span><\/p>\n<p>    <span class=\"token comment\">\/*<br \/>\n     * \u65e5\u5fd7\u652f\u6301&#xff08;\u5f53EXT3_FEATURE_COMPAT_HAS_JOURNAL\u8bbe\u7f6e\u65f6\u6709\u6548&#xff09;<br \/>\n     *\/<\/span><br \/>\n    __u8 s_journal_uuid<span class=\"token punctuation\">[<\/span><span class=\"token number\">16<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/* \u65e5\u5fd7\u8d85\u7ea7\u5757UUID *\/<\/span><br \/>\n    __u32 s_journal_inum<span class=\"token punctuation\">;<\/span>         <span class=\"token comment\">\/* \u65e5\u5fd7\u6587\u4ef6\u7684inode\u7f16\u53f7 *\/<\/span><br \/>\n    __u32 s_journal_dev<span class=\"token punctuation\">;<\/span>          <span class=\"token comment\">\/* \u65e5\u5fd7\u6587\u4ef6\u7684\u8bbe\u5907\u7f16\u53f7 *\/<\/span><br \/>\n    __u32 s_last_orphan<span class=\"token punctuation\">;<\/span>          <span class=\"token comment\">\/* \u5f85\u5220\u9664inode\u5217\u8868\u7684\u8d77\u59cb *\/<\/span><br \/>\n    __u32 s_hash_seed<span class=\"token punctuation\">[<\/span><span class=\"token number\">4<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>         <span class=\"token comment\">\/* HTREE\u54c8\u5e0c\u79cd\u5b50 *\/<\/span><br \/>\n    __u8 s_def_hash_version<span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/* \u9ed8\u8ba4\u4f7f\u7528\u7684\u54c8\u5e0c\u7248\u672c *\/<\/span><br \/>\n    __u8 s_reserved_char_pad<span class=\"token punctuation\">;<\/span>     <span class=\"token comment\">\/* \u4fdd\u7559\u5b57\u7b26\u586b\u5145 *\/<\/span><br \/>\n    __u16 s_reserved_word_pad<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/* \u4fdd\u7559\u5b57\u586b\u5145 *\/<\/span><br \/>\n    __le32 s_default_mount_opts<span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/* \u9ed8\u8ba4\u6302\u8f7d\u9009\u9879 *\/<\/span><br \/>\n    __le32 s_first_meta_bg<span class=\"token punctuation\">;<\/span>       <span class=\"token comment\">\/* \u7b2c\u4e00\u4e2a\u5143\u6570\u636e\u5757\u7ec4 *\/<\/span><br \/>\n    __u32 s_reserved<span class=\"token punctuation\">[<\/span><span class=\"token number\">190<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>        <span class=\"token comment\">\/* \u586b\u5145\u5230\u5757\u672b\u5c3e *\/<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>2.2.2 \u5757\u7ec4\u63cf\u8ff0\u7b26\u8868&#xff08;GDT&#xff1a;Group Descriptor Table&#xff09;<\/h4>\n<ul>\n<li>\u6838\u5fc3\u4f5c\u7528&#xff1a;\u6bcf\u4e2a\u5757\u7ec4\u5bf9\u5e94\u5176\u4e2d\u4e00\u4e2a\u63cf\u8ff0\u7b26&#xff0c;\u8bb0\u5f55\u8be5\u5757\u7ec4\u7684\u8be6\u7ec6\u5c5e\u6027\u4fe1\u606f&#xff1b;<\/li>\n<li>\u5173\u952e\u5b58\u50a8\u5185\u5bb9&#xff1a;\n<ul>\n<li>\u5757\u4f4d\u56fe\u7684\u5757\u7f16\u53f7&#xff08;bg_block_bitmap&#xff09;&#xff1b;<\/li>\n<li>inode \u4f4d\u56fe\u7684\u5757\u7f16\u53f7&#xff08;bg_inode_bitmap&#xff09;&#xff1b;<\/li>\n<li>inode \u8868\u7684\u8d77\u59cb\u5757\u7f16\u53f7&#xff08;bg_inode_table&#xff09;&#xff1b;<\/li>\n<li>\u8be5\u5757\u7ec4\u7684\u7a7a\u95f2\u5757\u6570\u3001\u7a7a\u95f2 inode \u6570\u3001\u76ee\u5f55\u6570&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\u5197\u4f59\u8bbe\u8ba1&#xff1a;\u4e0e\u8d85\u7ea7\u5757\u7c7b\u4f3c&#xff0c;GDT \u4e5f\u4f1a\u5728\u591a\u4e2a\u5757\u7ec4\u4e2d\u5907\u4efd<\/li>\n<\/ul>\n<p>\u5757\u7ec40: | \u8d85\u7ea7\u5757 | GDT | \u5757\u4f4d\u56fe | inode\u4f4d\u56fe | inode\u8868 | \u6570\u636e\u5757 |<br \/>\n\u5757\u7ec41: | \u8d85\u7ea7\u5757\u5907\u4efd | GDT\u5907\u4efd | \u5757\u4f4d\u56fe | inode\u4f4d\u56fe | inode\u8868 | \u6570\u636e\u5757 |<br \/>\n\u5757\u7ec43: | \u8d85\u7ea7\u5757\u5907\u4efd | GDT\u5907\u4efd | \u5757\u4f4d\u56fe | inode\u4f4d\u56fe | inode\u8868 | \u6570\u636e\u5757 |<br \/>\n\u5757\u7ec45: | \u8d85\u7ea7\u5757\u5907\u4efd | GDT\u5907\u4efd | \u5757\u4f4d\u56fe | inode\u4f4d\u56fe | inode\u8868 | \u6570\u636e\u5757 |<br \/>\n\u5757\u7ec47: | \u8d85\u7ea7\u5757\u5907\u4efd | GDT\u5907\u4efd | \u5757\u4f4d\u56fe | inode\u4f4d\u56fe | inode\u8868 | \u6570\u636e\u5757 |<br \/>\n&#8230;<\/p>\n<ul>\n<li>\u90e8\u5206\u6e90\u7801(\u9009\u62e9\u6027\u7684\u770b)&#xff1a;<\/li>\n<\/ul>\n<p><span class=\"token comment\">\/*<br \/>\n * \u5757\u7ec4\u63cf\u8ff0\u7b26\u7ed3\u6784&#xff08;\u78c1\u76d8\u7ea7&#xff09;<br \/>\n *\/<\/span><br \/>\n<span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">ext2_group_desc<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    __le32 bg_block_bitmap<span class=\"token punctuation\">;<\/span>        <span class=\"token comment\">\/* \u5757\u4f4d\u56fe\u6240\u5728\u5757\u53f7 *\/<\/span><br \/>\n    __le32 bg_inode_bitmap<span class=\"token punctuation\">;<\/span>        <span class=\"token comment\">\/* Inode\u4f4d\u56fe\u6240\u5728\u5757\u53f7 *\/<\/span><br \/>\n    __le32 bg_inode_table<span class=\"token punctuation\">;<\/span>         <span class=\"token comment\">\/* Inode\u8868\u8d77\u59cb\u5757\u53f7 *\/<\/span><br \/>\n    __le16 bg_free_blocks_count<span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/* \u7a7a\u95f2\u5757\u6570\u91cf *\/<\/span><br \/>\n    __le16 bg_free_inodes_count<span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/* \u7a7a\u95f2Inode\u6570\u91cf *\/<\/span><br \/>\n    __le16 bg_used_dirs_count<span class=\"token punctuation\">;<\/span>     <span class=\"token comment\">\/* \u76ee\u5f55\u6570\u91cf&#xff08;\u5df2\u4f7f\u7528\u7684\u76ee\u5f55\u9879&#xff09; *\/<\/span><br \/>\n    __le16 bg_pad<span class=\"token punctuation\">;<\/span>                 <span class=\"token comment\">\/* \u586b\u5145\u5bf9\u9f50 *\/<\/span><br \/>\n    __le32 bg_reserved<span class=\"token punctuation\">[<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span>         <span class=\"token comment\">\/* \u4fdd\u7559\u5b57\u6bb5 *\/<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u8865\u5145\u8bf4\u660e&#xff1a;\n<ul>\n<li>\u6bcf\u4e2a\u5757\u7ec4\u5728GDT&#xff08;\u7ec4\u63cf\u8ff0\u7b26\u8868&#xff09;\u4e2d\u90fd\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684ext2_group_desc\u7ed3\u6784<\/li>\n<li>\u8fd9\u4e2a\u7ed3\u6784\u63cf\u8ff0\u7684\u662f\u7279\u5b9a\u5757\u7ec4\u7684\u5143\u6570\u636e\u4f4d\u7f6e\u548c\u7edf\u8ba1\u4fe1\u606f<\/li>\n<li>\u6240\u6709\u5757\u7ec4\u7684\u63cf\u8ff0\u7b26\u6309\u987a\u5e8f\u7ec4\u6210GDT&#xff0c;\u5b58\u50a8\u5728\u591a\u4e2a\u4f4d\u7f6e\u8fdb\u884c\u5907\u4efd<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>2.2.3 \u5757\u4f4d\u56fe&#xff08;Block Bitmap&#xff09;&#xff1a;\u5757\u7684 \u201c\u5360\u7528\u72b6\u6001\u8bb0\u5f55\u8868\u201d<\/h4>\n<ul>\n<li>\u6838\u5fc3\u4f5c\u7528&#xff1a;\u7528\u4e00\u4e2a bit \u4f4d\u6807\u8bb0\u4e00\u4e2a\u5757\u7684\u72b6\u6001&#xff08;0 &#061; \u7a7a\u95f2&#xff0c;1 &#061; \u5df2\u5360\u7528&#xff09;&#xff1b;<\/li>\n<li>\u9ad8\u6548\u6027&#xff1a;\u67e5\u627e\u7a7a\u95f2\u5757\u65f6&#xff0c;\u53ea\u9700\u904d\u5386\u4f4d\u56fe\u4e2d\u7684 bit \u4f4d&#xff0c;\u65e0\u9700\u626b\u63cf\u6240\u6709\u5757&#xff1b;<\/li>\n<li>\u793a\u4f8b&#xff1a;\u82e5\u5757\u4f4d\u56fe\u7684\u7b2c 3 \u4e2a bit \u4e3a 1&#xff0c;\u8868\u793a\u8be5\u5757\u7ec4\u7684\u7b2c 3 \u4e2a\u5757\u5df2\u88ab\u5360\u7528\u3002<\/li>\n<\/ul>\n<p>\u5b57\u82820: [bit7][bit6][bit5][bit4][bit3][bit2][bit1][bit0]<br \/>\n            \u7b2c8\u5757 \u7b2c7\u5757 \u7b2c6\u5757 \u7b2c5\u5757 \u7b2c4\u5757 \u7b2c3\u5757 \u7b2c2\u5757 \u7b2c1\u5757<br \/>\n              \u2191     \u2191     \u2191     \u2191     \u2191     \u2191     \u2191     \u2191<br \/>\n             \u6700\u9ad8\u4f4d \u2190&#8212;&#8212;&#8211; \u5b57\u8282\u5185\u6bd4\u7279\u4f4d\u987a\u5e8f &#8212;&#8212;&#8211;\u2192 \u6700\u4f4e\u4f4d<\/p>\n<h4>2.2.4 inode \u4f4d\u56fe&#xff08;Inode Bitmap&#xff09;&#xff1a;inode \u7684 \u201c\u5360\u7528\u72b6\u6001\u8bb0\u5f55\u8868\u201d<\/h4>\n<ul>\n<li>\u6838\u5fc3\u4f5c\u7528&#xff1a;\u4e0e\u5757\u4f4d\u56fe\u903b\u8f91\u4e00\u81f4&#xff0c;\u7528\u4e00\u4e2a bit \u4f4d\u6807\u8bb0\u4e00\u4e2a inode \u7684\u72b6\u6001&#xff08;0 &#061; \u7a7a\u95f2&#xff0c;1 &#061; \u5df2\u5360\u7528&#xff09;&#xff1b;<\/li>\n<li>\u5173\u952e\u7279\u6027&#xff1a;inode \u7f16\u53f7\u662f\u5206\u533a\u7ea7\u5168\u5c40\u552f\u4e00\u7684&#xff0c;\u7531\u5757\u7ec4\u53f7 &#043; \u5757\u7ec4\u5185 inode \u504f\u79fb\u91cf\u7ec4\u6210\u3002<\/li>\n<\/ul>\n<h4>2.2.5 inode \u8868&#xff08;Inode Table&#xff09;&#xff1a;inode \u7684 \u201c\u5b58\u50a8\u4ed3\u5e93\u201d<\/h4>\n<ul>\n<li>\u6838\u5fc3\u4f5c\u7528&#xff1a;\u8fde\u7eed\u7684\u5757\u7ec4\u6210 inode \u8868&#xff0c;\u6bcf\u4e2a\u5757\u5b58\u50a8\u591a\u4e2a inode&#xff08;\u5982 4KB \u5757\u53ef\u5b58\u50a8 32 \u4e2a 128 \u5b57\u8282\u7684 inode&#xff09;&#xff1b;<\/li>\n<li>\u5173\u952e\u7279\u6027&#xff1a;inode \u8868\u7684\u8d77\u59cb\u4f4d\u7f6e\u7531 GDT \u4e2d\u7684bg_inode_table\u6307\u5b9a&#xff0c;\u901a\u8fc7 inode \u53f7\u53ef\u5feb\u901f\u8ba1\u7b97\u51fa\u5176\u5728 inode \u8868\u4e2d\u7684\u4f4d\u7f6e\u3002<\/li>\n<\/ul>\n<h4>2.2.6 \u6570\u636e\u5757&#xff08;Data Blocks&#xff09;&#xff1a;\u6587\u4ef6\u5185\u5bb9\u7684 \u201c\u5b58\u50a8\u533a\u57df\u201d<\/h4>\n<ul>\n<li>\u6838\u5fc3\u4f5c\u7528&#xff1a;\u5b58\u50a8\u6587\u4ef6\u7684\u5185\u5bb9\u6570\u636e&#xff0c;\u662f\u5757\u7ec4\u4e2d\u6700\u5927\u7684\u533a\u57df&#xff1b;<\/li>\n<li>\u5b58\u50a8\u7c7b\u578b&#xff1a;\n<ul>\n<li>\u666e\u901a\u6587\u4ef6&#xff1a;\u76f4\u63a5\u5b58\u50a8\u6587\u4ef6\u5185\u5bb9&#xff1b;<\/li>\n<li>\u76ee\u5f55\u6587\u4ef6&#xff1a;\u5b58\u50a8\u8be5\u76ee\u5f55\u4e0b\u7684 \u201c\u6587\u4ef6\u540d\u2192inode \u53f7\u201d \u6620\u5c04\u5173\u7cfb&#xff1b;<\/li>\n<li>\u94fe\u63a5\u6587\u4ef6&#xff1a;\u786c\u94fe\u63a5\u4ec5\u589e\u52a0 inode \u7684\u94fe\u63a5\u6570&#xff0c;\u8f6f\u94fe\u63a5\u5b58\u50a8\u76ee\u6807\u6587\u4ef6\u8def\u5f84\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>\u4e09. \u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u5de5\u4f5c\u6d41\u7a0b&#xff1a;\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u7684\u5e95\u5c42\u903b\u8f91&#xff08;\u5176\u5b83\u7684\u5c31\u4e0d\u5c55\u793a\u4e86&#xff09;<\/h2>\n<p>\u7ed3\u5408\u4e0a\u8ff0\u7ed3\u6784&#xff0c;\u6211\u4eec\u4ee5\u521b\u5efa\u4e00\u4e2a\u666e\u901a\u6587\u4ef6&#xff08;touch test.txt&#xff09;\u4e3a\u4f8b&#xff0c;\u770b\u770b\u6587\u4ef6\u7cfb\u7edf\u7684\u5e95\u5c42\u64cd\u4f5c\u6d41\u7a0b&#xff1a;<\/p>\n<ul>\n<li>\u67e5\u627e\u7a7a\u95f2 inode&#xff1a;\u904d\u5386 inode \u4f4d\u56fe&#xff0c;\u627e\u5230\u7b2c\u4e00\u4e2a\u503c\u4e3a 0 \u7684 bit \u4f4d&#xff0c;\u6807\u8bb0\u4e3a 1&#xff08;\u5360\u7528&#xff09;&#xff0c;\u5206\u914d\u5bf9\u5e94\u7684 inode&#xff1b;<\/li>\n<li>\u5199\u5165 inode \u5c5e\u6027&#xff1a;\u5c06\u6587\u4ef6\u7684\u5c5e\u6027&#xff08;\u6240\u6709\u8005\u3001\u6743\u9650\u3001\u521b\u5efa\u65f6\u95f4\u7b49&#xff09;\u5199\u5165 inode \u8868\u4e2d\u5bf9\u5e94\u7684 inode&#xff0c;i_block\u6570\u7ec4\u521d\u59cb\u5316\u4e3a 0&#xff1b;<\/li>\n<li>\u67e5\u627e\u7a7a\u95f2\u5757&#xff1a;\u904d\u5386\u5757\u4f4d\u56fe&#xff0c;\u627e\u5230\u7a7a\u95f2\u5757&#xff0c;\u6807\u8bb0\u4e3a 1&#xff08;\u5360\u7528&#xff09;&#xff0c;\u82e5\u6587\u4ef6\u6709\u5185\u5bb9\u5219\u5c06\u5185\u5bb9\u5199\u5165\u8be5\u5757&#xff0c;\u5e76\u66f4\u65b0 inode \u7684i_block\u6570\u7ec4&#xff08;\u8bb0\u5f55\u5757\u7f16\u53f7&#xff09;&#xff1b;<\/li>\n<li>\u66f4\u65b0\u76ee\u5f55\u6570\u636e&#xff1a;\u5728\u5f53\u524d\u76ee\u5f55\u7684\u6570\u636e\u5757\u4e2d&#xff0c;\u6dfb\u52a0\u4e00\u6761 \u201c\u6587\u4ef6\u540d&#xff08;test.txt&#xff09;\u2192inode \u53f7\u201d \u7684\u6620\u5c04\u8bb0\u5f55\u3002<\/li>\n<\/ul>\n<p>\u6574\u4e2a\u8fc7\u7a0b\u4e2d&#xff0c;\u6587\u4ef6\u7cfb\u7edf\u901a\u8fc7\u5757\u4f4d\u56fe\u3001inode \u4f4d\u56fe\u5feb\u901f\u5b9a\u4f4d\u7a7a\u95f2\u8d44\u6e90&#xff0c;\u901a\u8fc7 inode \u5173\u8054\u6587\u4ef6\u5c5e\u6027\u4e0e\u5185\u5bb9&#xff0c;\u901a\u8fc7\u76ee\u5f55\u7ef4\u62a4\u6587\u4ef6\u540d\u4e0e inode \u7684\u6620\u5c04&#xff0c;\u9ad8\u6548\u5b8c\u6210\u6587\u4ef6\u521b\u5efa\u3002<\/p>\n<p>\u5b9e\u9645\u793a\u4f8b&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051838-69a3cc2ed78e3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> 4 \u4e2a\u6b65\u9aa4&#xff1a;<\/p>\n<ul>\n<li>\u5b58\u50a8\u5c5e\u6027 \u5185\u6838\u627e\u5230\u4e00\u4e2a\u7a7a\u95f2\u7684 i \u8282\u70b9&#xff08;\u8fd9\u91cc\u662f 263466&#xff09;&#xff0c;\u5e76\u5c06\u6587\u4ef6\u5c5e\u6027&#xff08;\u5982\u6743\u9650\u3001\u65f6\u95f4\u6233\u3001\u6240\u6709\u8005\u7b49&#xff09;\u8bb0\u5f55\u5728\u5176\u4e2d\u3002<\/li>\n<li>\u5b58\u50a8\u6570\u636e \u6587\u4ef6\u9700\u8981\u5b58\u50a8\u5728\u4e09\u4e2a\u78c1\u76d8\u5757\u4e2d\u3002\u5185\u6838\u627e\u5230\u7a7a\u95f2\u5757&#xff1a;300\u3001500\u3001800&#xff0c;\u5e76\u6309\u987a\u5e8f\u5c06\u7f13\u51b2\u533a\u6570\u636e\u590d\u5236\u5230\u8fd9\u4e9b\u5757\u4e2d\u3002<\/li>\n<li>\u8bb0\u5f55\u5206\u914d\u60c5\u51b5 \u6587\u4ef6\u6570\u636e\u5757\u6309\u987a\u5e8f 300\u3001500\u3001800 \u5b58\u653e\u3002\u5185\u6838\u5728 i \u8282\u70b9\u7684\u78c1\u76d8\u5206\u5e03\u533a\u8bb0\u5f55\u8fd9\u4e2a\u5757\u5217\u8868\u3002<\/li>\n<li>\u6dfb\u52a0\u6587\u4ef6\u540d\u5230\u76ee\u5f55 \u6587\u4ef6\u540d\u662f abc\u3002\u5185\u6838\u5728\u5f53\u524d\u76ee\u5f55\u7684\u76ee\u5f55\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6761\u76ee&#xff08;\u5165\u53e3&#xff09;&#xff1a; (i\u8282\u70b9\u53f7: 263466, \u6587\u4ef6\u540d: abc) \u8fd9\u4e2a\u6761\u76ee\u5efa\u7acb\u4e86\u6587\u4ef6\u540d\u4e0e\u6587\u4ef6\u5185\u5bb9\u548c\u5c5e\u6027\u4e4b\u95f4\u7684\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<p>\u8865\u5145\u51e0\u4e2a\u6838\u5fc3\u6ce8\u610f\u4e8b\u9879&#xff1a;<\/p>\n<ul>\n<li>\u5757\u548c inode \u7684\u6570\u91cf\u5728\u683c\u5f0f\u5316\u65f6\u786e\u5b9a&#xff0c;\u82e5 inode \u8017\u5c3d&#xff08;\u5982\u5927\u91cf\u5c0f\u6587\u4ef6&#xff09;&#xff0c;\u5373\u4f7f\u6709\u7a7a\u95f2\u5757\u4e5f\u65e0\u6cd5\u521b\u5efa\u65b0\u6587\u4ef6&#xff1b;<\/li>\n<li>\u8d85\u7ea7\u5757\u548c GDT \u7684\u5197\u4f59\u5907\u4efd\u662f\u6587\u4ef6\u7cfb\u7edf\u7684 \u201c\u6551\u547d\u7a3b\u8349\u201d&#xff0c;\u82e5\u4e3b\u8d85\u7ea7\u5757\u635f\u574f&#xff0c;\u53ef\u901a\u8fc7\u5907\u4efd\u6062\u590d&#xff1b;<\/li>\n<li>\u76ee\u5f55\u4e5f\u662f\u6587\u4ef6&#xff0c;\u5176\u5185\u5bb9\u662f \u201c\u6587\u4ef6\u540d\u2192inode \u53f7\u201d \u7684\u6620\u5c04&#xff0c;\u5220\u9664\u6587\u4ef6\u672c\u8d28\u662f\u5220\u9664\u76ee\u5f55\u4e2d\u7684\u8be5\u6620\u5c04&#xff0c;\u5e76\u5c06 inode \u548c\u5757\u6807\u8bb0\u4e3a\u7a7a\u95f2(\u5173\u4e8e\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u6211\u4eec\u4e0b\u7bc7\u535a\u5ba2\u8fd8\u4f1a\u518d\u7ee7\u7eed\u8bb2\u7684)\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051838-69a3cc2ef31c5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<hr \/>\n<h2>\u7ed3\u5c3e&#xff1a;<\/h2>\n<p>&#x1f353; \u6211\u662f\u8349\u8393\u718a Lotso&#xff01;\u82e5\u8fd9\u7bc7\u6280\u672f\u5e72\u8d27\u5e2e\u4f60\u6253\u901a\u4e86\u5b66\u4e60\u4e2d\u7684\u5361\u70b9&#xff1a;<br \/>\n&#x1f440; \u3010\u5173\u6ce8\u3011\u8ddf\u6211\u4e00\u8d77\u6df1\u8015\u6280\u672f\u9886\u57df&#xff0c;\u4ece\u57fa\u7840\u5230\u8fdb\u9636&#xff0c;\u89c1\u8bc1\u6bcf\u4e00\u6b21\u6210\u957f<br \/>\n\u2764\ufe0f \u3010\u70b9\u8d5e\u3011\u8ba9\u4f18\u8d28\u5185\u5bb9\u88ab\u66f4\u591a\u4eba\u770b\u89c1&#xff0c;\u8ba9\u77e5\u8bc6\u4f20\u9012\u66f4\u6709\u529b\u91cf<br \/>\n\u2b50 \u3010\u6536\u85cf\u3011\u628a\u6838\u5fc3\u77e5\u8bc6\u70b9\u3001\u5b9e\u6218\u6280\u5de7\u5b58\u597d&#xff0c;\u9700\u8981\u65f6\u76f4\u63a5\u67e5\u3001\u968f\u65f6\u7528<br \/>\n&#x1f4ac; \u3010\u8bc4\u8bba\u3011\u5206\u4eab\u4f60\u7684\u7ecf\u9a8c\u6216\u7591\u95ee&#xff08;\u6bd4\u5982\u66fe\u8e29\u8fc7\u7684\u6280\u672f\u5751&#xff1f;&#xff09;&#xff0c;\u4e00\u8d77\u4ea4\u6d41\u907f\u5751<br \/>\n&#x1f5f3;\ufe0f \u3010\u6295\u7968\u3011\u7528\u4f60\u7684\u9009\u62e9\u52a9\u529b\u793e\u533a\u5185\u5bb9\u65b9\u5411&#xff0c;\u544a\u8bc9\u5927\u5bb6\u54ea\u4e2a\u6280\u672f\u70b9\u6700\u8be5\u91cd\u70b9\u62c6\u89e3<br \/>\n\u6280\u672f\u4e4b\u8def\u96be\u514d\u6709\u56f0\u60d1&#xff0c;\u4f46\u540c\u884c\u7684\u4eba\u4f1a\u8ba9\u524d\u8fdb\u66f4\u6709\u65b9\u5411&#xff5e;\u613f\u6211\u4eec\u90fd\u80fd\u5728\u81ea\u5df1\u4e13\u6ce8\u7684\u9886\u57df\u91cc&#xff0c;\u4e00\u6b65\u6b65\u9760\u8fd1\u5fc3\u4e2d\u7684\u6280\u672f\u76ee\u6807&#xff01;<\/p>\n<p><font color=\"#FF0000\"> \u7ed3\u8bed&#xff1a;\u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e \u201c\u7ec4\u7ec7\u4e0e\u7ba1\u7406\u201d\u2014\u2014 \u901a\u8fc7\u5757\u3001\u5206\u533a\u3001inode \u5c06\u96f6\u6563\u7684\u6247\u533a\u8f6c\u5316\u4e3a\u6709\u5e8f\u7684\u5b58\u50a8\u4f53\u7cfb&#xff0c;\u800c Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u7684\u5757\u7ec4\u7ed3\u6784\u5219\u8fdb\u4e00\u6b65\u4f18\u5316\u4e86\u8fd9\u79cd\u7ba1\u7406\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002\u7406\u89e3\u4e86\u5757\u7ec4\u7684 \u201c\u8d85\u7ea7\u5757\u2192GDT\u2192\u4f4d\u56fe\u2192inode \u8868\u2192\u6570\u636e\u5757\u201d \u94fe\u8def&#xff0c;\u5c31\u7b49\u4e8e\u638c\u63e1\u4e86 Ext2\/3\/4 \u6587\u4ef6\u7cfb\u7edf\u7684\u5e95\u5c42\u903b\u8f91\u3002\u4e0b\u4e00\u7bc7\u535a\u5ba2&#xff0c;\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8 inode \u4e0e\u6570\u636e\u5757\u7684\u6620\u5c04\u673a\u5236&#xff08;\u76f4\u63a5\u5757\u3001\u95f4\u63a5\u5757&#xff09;\u3001\u8def\u5f84\u89e3\u6790\u3001\u6302\u8f7d\u7b49\u9ad8\u7ea7\u5185\u5bb9&#xff0c;\u5e26\u4f60\u5f7b\u5e95\u5403\u900f Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u3002<\/font><\/p>\n<p>  <font color=\"#CC0000\">\u2728\u628a\u8fd9\u4e9b\u5185\u5bb9\u5403\u900f\u8d85\u725b\u7684&#xff01;\u653e\u677e\u4e0b\u5427\u2728 <\/font><\/p>\n<p>  <font color=\"#CC0000\"> \u0295\u02d8\u1d25\u02d8\u0294 <\/font><\/p>\n<p>  <font color=\"#CC0000\">\u3065\u304d\u3089\u3069 <\/font><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051840-69a3cc301ca48.gif\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f525;\u8349\u8393\u718aLotso&#xff1a;\u4e2a\u4eba\u4e3b\u9875 \u2744\ufe0f\u4e2a\u4eba\u4e13\u680f: \u300aC\u77e5\u8bc6\u5206\u4eab\u300b \u300aLinux \u5165\u95e8\u5230\u5b9e\u8df5&#xff1a;\u96f6\u57fa\u7840\u4e5f\u80fd\u61c2\u300b \u2728\u751f\u6d3b\u662f\u9ed8\u9ed8\u7684\u575a\u6301&#xff0c;\u6bc5\u529b\u662f\u6c38\u4e45\u7684\u4eab\u53d7&#xff01; &#x1f3ac; \u535a\u4e3b\u7b80\u4ecb&#xff1a; \u6587\u7ae0\u76ee\u5f55\u524d\u8a00&#xff1a;\u4e00. \u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u94fa\u57ab&#xff1a;\u5757\u3001\u5206\u533a\u3001inode1.1 \u5757&#xff08;Block&#xff09;&#xff1a;\u6587\u4ef6\u5b58\u53d6\u7684\u6700\u5c0f\u5355\u4f4d1.2 \u5206\u533a&#xff08;Partitio<\/p>\n","protected":false},"author":2,"featured_media":79208,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[84,55,174,58,50,190,1860],"topic":[],"class_list":{"0":"post-79223","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-android","9":"tag-c","11":"tag-linux","12":"tag-50","13":"tag-190","14":"tag-1860"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3\uff1a\u5757\u3001\u5206\u533a\u3001inode \u4e0e\u5757\u7ec4\u7ed3\u6784\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/79223.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3\uff1a\u5757\u3001\u5206\u533a\u3001inode \u4e0e\u5757\u7ec4\u7ed3\u6784\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f525;\u8349\u8393\u718aLotso&#xff1a;\u4e2a\u4eba\u4e3b\u9875 \u2744\ufe0f\u4e2a\u4eba\u4e13\u680f: \u300aC\u77e5\u8bc6\u5206\u4eab\u300b \u300aLinux \u5165\u95e8\u5230\u5b9e\u8df5&#xff1a;\u96f6\u57fa\u7840\u4e5f\u80fd\u61c2\u300b \u2728\u751f\u6d3b\u662f\u9ed8\u9ed8\u7684\u575a\u6301&#xff0c;\u6bc5\u529b\u662f\u6c38\u4e45\u7684\u4eab\u53d7&#xff01; &#x1f3ac; \u535a\u4e3b\u7b80\u4ecb&#xff1a; \u6587\u7ae0\u76ee\u5f55\u524d\u8a00&#xff1a;\u4e00. \u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u94fa\u57ab&#xff1a;\u5757\u3001\u5206\u533a\u3001inode1.1 \u5757&#xff08;Block&#xff09;&#xff1a;\u6587\u4ef6\u5b58\u53d6\u7684\u6700\u5c0f\u5355\u4f4d1.2 \u5206\u533a&#xff08;Partitio\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79223.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-01T05:18:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051831-69a3cc27b0fd4.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79223.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79223.html\",\"name\":\"Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3\uff1a\u5757\u3001\u5206\u533a\u3001inode \u4e0e\u5757\u7ec4\u7ed3\u6784\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-01T05:18:41+00:00\",\"dateModified\":\"2026-03-01T05:18:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79223.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79223.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79223.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3\uff1a\u5757\u3001\u5206\u533a\u3001inode \u4e0e\u5757\u7ec4\u7ed3\u6784\u8be6\u89e3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3\uff1a\u5757\u3001\u5206\u533a\u3001inode \u4e0e\u5757\u7ec4\u7ed3\u6784\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/79223.html","og_locale":"zh_CN","og_type":"article","og_title":"Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3\uff1a\u5757\u3001\u5206\u533a\u3001inode \u4e0e\u5757\u7ec4\u7ed3\u6784\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f525;\u8349\u8393\u718aLotso&#xff1a;\u4e2a\u4eba\u4e3b\u9875 \u2744\ufe0f\u4e2a\u4eba\u4e13\u680f: \u300aC\u77e5\u8bc6\u5206\u4eab\u300b \u300aLinux \u5165\u95e8\u5230\u5b9e\u8df5&#xff1a;\u96f6\u57fa\u7840\u4e5f\u80fd\u61c2\u300b \u2728\u751f\u6d3b\u662f\u9ed8\u9ed8\u7684\u575a\u6301&#xff0c;\u6bc5\u529b\u662f\u6c38\u4e45\u7684\u4eab\u53d7&#xff01; &#x1f3ac; \u535a\u4e3b\u7b80\u4ecb&#xff1a; \u6587\u7ae0\u76ee\u5f55\u524d\u8a00&#xff1a;\u4e00. \u6587\u4ef6\u7cfb\u7edf\u7684\u6838\u5fc3\u94fa\u57ab&#xff1a;\u5757\u3001\u5206\u533a\u3001inode1.1 \u5757&#xff08;Block&#xff09;&#xff1a;\u6587\u4ef6\u5b58\u53d6\u7684\u6700\u5c0f\u5355\u4f4d1.2 \u5206\u533a&#xff08;Partitio","og_url":"https:\/\/www.wsisp.com\/helps\/79223.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-01T05:18:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260301051831-69a3cc27b0fd4.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/79223.html","url":"https:\/\/www.wsisp.com\/helps\/79223.html","name":"Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3\uff1a\u5757\u3001\u5206\u533a\u3001inode \u4e0e\u5757\u7ec4\u7ed3\u6784\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-01T05:18:41+00:00","dateModified":"2026-03-01T05:18:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79223.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79223.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79223.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Ext \u7cfb\u5217\u6587\u4ef6\u7cfb\u7edf\u6838\u5fc3\uff1a\u5757\u3001\u5206\u533a\u3001inode \u4e0e\u5757\u7ec4\u7ed3\u6784\u8be6\u89e3"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=79223"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79223\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/79208"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79223"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}