{"id":1612,"date":"2022-11-13T18:44:51","date_gmt":"2022-11-13T10:44:51","guid":{"rendered":"https:\/\/www.zhiwanyuzhou.com\/?p=1612"},"modified":"2022-11-15T13:42:14","modified_gmt":"2022-11-15T05:42:14","slug":"squashfs%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.zhiwanyuzhou.com\/index.php\/2022\/11\/13\/squashfs%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f\/","title":{"rendered":"Squashfs\u6587\u4ef6\u7cfb\u7edf"},"content":{"rendered":"\n<h2>\u4e00\u3001\u7b80\u4ecb<\/h2>\n\n\n\n<p>Squashfs\u7684\u8bbe\u8ba1\u662f\u4e13\u95e8\u4e3a\u4e00\u822c\u7684\u53ea\u8bfb\u6587\u4ef6\u7cfb\u7edf\u7684\u4f7f\u7528\u800c\u8bbe\u8ba1\uff0c\u5b83\u53ef\u5e94\u7528\u4e8e\u6570\u636e\u5907\u4efd\uff0c\u6216\u662f\u7cfb\u7edf\u8d44\u6e90\u7d27\u5f20\u7684\u7535\u8111\u4e0a\u4f7f\u7528\u3002\u6700\u521d\u7248\u672c\u7684Squashfs\u91c7\u7528 gzip \u7684\u6570\u636e\u538b\u7f29\u3002\u7248\u672c 2.6.34 \u4e4b\u540e\u7684Linux\u5185\u6838\u589e\u52a0\u4e86\u5bf9 LZMA\u548c LZO\u538b\u7f29\u7b97\u6cd5\u7684\u652f\u6301\uff0c\u7248\u672c 2.6.38 \u7684\u5185\u6838\u589e\u52a0\u4e86\u5bf9LZMA2\u7684\u652f\u6301\uff0c\u8be5\u7b97\u6cd5\u540c\u65f6\u4e5f\u662fxz\u4f7f\u7528\u7684\u538b\u7f29\u7b97\u6cd5\u3002<\/p>\n\n\n\n<p>Squashfs \u662f\u4e00\u4e2a\u9ad8\u5ea6\u538b\u7f29\u7684\u53ea\u8bfb\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u53ef\u4ee5\u5c06\u9ad8\u8fbe 2-3GB \u7684\u6570\u636e\u538b\u7f29\u5230\u4e00\u4e2a\u53ea\u6709 700M \u7684\u6587\u4ef6\u4e2d\u3002<\/p>\n\n\n\n<p>Squashfs \u7cfb\u7edf\u652f\u6301\u4ee5\u56de\u73af(loopback)\u7684\u65b9\u5f0f\u6302\u8f7d\uff0c\u7136\u540e\u4fbf\u53ef\u4ee5\u8bbf\u95ee\u5176\u4e0a\u7684\u6587\u4ef6\u4e86\uff0c\u5728\u8bbf\u95ee\u8fd9\u4e9b\u6587\u4ef6\u65f6\uff0c\u5b83\u4eec\u5c31\u4f1a\u88ab\u89e3\u538b\u7f29\u5e76\u88c5\u8f7d\u5728 RAM \u4e2d\uff0c\u800c\u4e0d\u9700\u8981\u5c06\u6574\u4e2a\u6587\u4ef6\u89e3\u538b\u7f29\u540e\u624d\u53bb\u8bbf\u95ee\u5176\u4e2d\u7684\u6587\u4ef6\uff0c\u8fd9\u6837\u4e00\u6765\u8bbf\u95ee\u901f\u5ea6\u5c31\u5feb\u591a\u4e86\u3002<\/p>\n\n\n\n<p>Squashfs\u6587\u4ef6\u7cfb\u7edf\u6982\u8ff0\uff1a<\/p>\n\n\n\n<ul><li>\u6570\u636e\u3001\u7d22\u5f15\u8282\u70b9\u548c\u76ee\u5f55\u88ab\u538b\u7f29\u3002<\/li><li>Squashfs\u5b58\u50a8\u5b8c\u6574\u7684uid\/gid\uff0832\u4f4d\uff09\u548c\u6587\u4ef6\u521b\u5efa\u65f6\u95f4\u3002<\/li><li>\u7406\u8bba\u4e0a\u6700\u591a\u652f\u63012^64\u5b57\u8282\u7684\u6587\u4ef6\u3002\u7406\u8bba\u4e0a\uff0c\u6587\u4ef6\u7cfb\u7edf\u53ef\u4ee5\u6700\u5927\u4e3a2^64\u5b57\u8282\u3002<\/li><li>\u7d22\u5f15\u8282\u70b9\u548c\u76ee\u5f55\u6570\u636e\u9ad8\u5ea6\u538b\u7f29\uff0c\u5e76\u6309\u5b57\u8282\u6253\u5305\u8fb9\u754c\u3002\u6bcf\u4e2a\u538b\u7f29\u7d22\u5f15\u8282\u70b9\u7684\u5e73\u5747\u957f\u5ea6\u4e3a8\u5b57\u8282\uff08\u786e\u5207\u957f\u5ea6\u56e0\u6587\u4ef6\u7c7b\u578b\u800c\u5f02\uff0c\u7b26\u53f7\u94fe\u63a5\u548c\u5757\/\u5b57\u7b26\u8bbe\u5907\u7d22\u5f15\u8282\u70b9\u5177\u6709\u4e0d\u540c\u7684\u5927\u5c0f\uff09\u3002<\/li><li>Squashfs\u53ef\u4ee5\u4f7f\u7528\u9ad8\u8fbe1MB\u7684\u5757\u5927\u5c0f\uff08\u9ed8\u8ba4\u5927\u5c0f\u4e3a128K\uff09\u3002\u4f7f\u7528128K\u5757\u5b9e\u73b0\u4e86\u6bd4\u6b63\u5e38\u66f4\u5927\u7684\u538b\u7f29\u6bd44K\u5757\u5927\u5c0f\u3002<\/li><li>\u68c0\u6d4b\u5e76\u5220\u9664\u6587\u4ef6\u526f\u672c\u3002<\/li><\/ul>\n\n\n\n<h2>\u4e8c\u3001\u73af\u5883<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td># \u64cd\u4f5c\u7cfb\u7edf<br>Ubuntu 20.04<br>gcc<br><br># firmware-mod-kit<br>https:\/\/github.com\/rampageX\/firmware-mod-kit<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4e0b\u8f7dfirmware-mod-kit\u6e90\u7801\u4e4b\u540e\uff0c\u7f16\u8bd1\u91cc\u9762\u81ea\u5e26\u7684\u6587\u4ef6\u7cfb\u7edf\u5de5\u5177\uff0c\u6e90\u7801\u4e2d\u5305\u542b\u5f88\u591a\u7248\u672c\uff0c\u8fd9\u91cc\u9009\u7528\u6bd4\u8f83\u5e38\u89c1\u7684squashfs-4.2\u7248\u672c\u4e3a\u4f8b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>git clone https:\/\/github.com\/rampageX\/firmware-mod-kit\ncd firmware-mod-kit\/src\/others\/squashfs-4.2\nmake<\/code><\/pre>\n\n\n\n<p>\u7f16\u8bd1\u597d\u540e\uff0c\u5728\u76ee\u5f55\u51fa\u73b0\u4e24\u4e2a\u53ef\u6267\u884c\u7a0b\u5e8fmksquashfs\uff08\u6253\u5305\uff09\u3001unsquashfs\uff08\u89e3\u5305\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"807\" height=\"402\" src=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/10\/image-50.png\" alt=\"\" class=\"wp-image-1613\" srcset=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/10\/image-50.png?v=1667181482 807w, https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/10\/image-50-300x149.png?v=1667181482 300w, https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/10\/image-50-768x383.png?v=1667181482 768w\" sizes=\"(max-width: 807px) 100vw, 807px\" \/><\/figure>\n\n\n\n<h2>\u4e09\u3001\u6587\u4ef6\u7cfb\u7edf\u7684\u6253\u5305<\/h2>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u4e3b\u8981\u662f\u4e3a\u4e86\u4e86\u89e3squashfs\u6587\u4ef6\u7cfb\u7edf\u7684\u7ed3\u6784\uff0c\u9996\u5148\u6211\u4eec\u6765\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55rootfs\uff0c\u91cc\u9762\u5305\u542b001\u76ee\u5f55\uff0c002.txt\u6587\u4ef6\u5185\u5bb9\u4e3atest002\uff0c002.link\u4e3a001\/002.txt\u7684\u94fe\u63a5\uff0c\u8fd8\u5305\u542b\u4e00\u4e2a003\u76ee\u5f55\uff0c004.txt\u6587\u4ef6\u5185\u5bb9\u4e3atest004\uff0c005.txt\u6587\u4ef6\u5185\u5bb9\u4e3atest005\uff0c\u6587\u4ef6\u6811\u7ed3\u6784\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"744\" height=\"180\" src=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/10\/image-51.png\" alt=\"\" class=\"wp-image-1614\" srcset=\"https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/10\/image-51.png?v=1667181842 744w, https:\/\/www.zhiwanyuzhou.com\/wp-content\/uploads\/2022\/10\/image-51-300x73.png?v=1667181842 300w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/figure>\n\n\n\n<p>\u4f7f\u7528\u547d\u4ee4mksquash\u6253\u5305\u4e3a\u4e00\u4e2aUBIFS\u6587\u4ef6\u7cfb\u7edf\u6620\u50cf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>.\/mksquashfs rootfs\/ rootfs.squashfs -b 131072 -comp xz<\/code><\/pre>\n\n\n\n<p>\u5e38\u7528\u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<em><\/em><\/td><td>\u53c2\u6570<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>-b 131072<\/td><td>\u6307\u5b9a\u5757\u5927\u5c0f131072\u5b57\u8282<\/td><\/tr><tr><td>2<\/td><td>-comp xz<\/td><td>\u6307\u5b9a\u538b\u7f29\u65b9\u5f0fxz\uff0c\u901a\u5e38\u652f\u6301gzip\u3001lzma\u3001xz\u538b\u7f29<\/td><\/tr><tr><td>3<\/td><td>-be<\/td><td>\u5927\u7aef\u5e8f\u6253\u5305\uff0c<strong>\u8fd9\u4e2a\u7248\u672c\u6ca1\u6709\u8fd9\u4e2a\u53c2\u6570<\/strong>\uff0c\u9ed8\u8ba4\u4e3a\u5c0f\u7aef\u5e8f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2>\u56db\u3001\u6587\u4ef6\u7cfb\u7edf\u7684\u7ed3\u6784\u5206\u6790<\/h2>\n\n\n\n<p>\u4f7f\u752816\u8fdb\u5236\u5de5\u5177\u67e5\u770b\u6253\u5305\u540e\u7684\u6587\u4ef6rootfs.squashfs<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>00000000  68 73 71 73 07 00 00 00  16 2e 5f 63 00 00 02 00  |hsqs......_c....|\n00000010  01 00 00 00 04 00 11 00  c0 04 01 00 04 00 00 00  |................|\n00000020  c3 00 00 00 00 00 00 00  00 02 00 00 00 00 00 00  |................|\n00000030  f8 01 00 00 00 00 00 00  ff ff ff ff ff ff ff ff  |................|\n00000040  86 00 00 00 00 00 00 00  20 01 00 00 00 00 00 00  |........ .......|\n00000050  a8 01 00 00 00 00 00 00  ea 01 00 00 00 00 00 00  |................|\n00000060  0c 80 00 00 06 00 83 00  40 00 00 00 02 00 74 65  |........@.....te|\n00000070  73 74 30 30 32 0a 74 65  73 74 30 30 34 0a 74 65  |st002.test004.te|\n00000080  73 74 30 30 35 0a 98 00  fd 37 7a 58 5a 00 00 01  |st005....7zXZ...|\n00000090  69 22 de 36 03 c0 5d e3  01 21 01 02 00 00 00 00  |i\".6..]..!......|\n000000a0  4a 3a 4f f6 e0 00 e2 00  55 5d 00 01 00 16 e5 c9  |J:O.....U]......|\n000000b0  26 a4 9a b7 e9 86 66 3d  05 49 8d 45 c8 c6 fc 6a  |&amp;.....f=.I.E...j|\n000000c0  0a 22 8a a1 78 88 2a 64  70 49 66 c7 2d a8 e0 34  |.\"..x.*dpIf.-..4|\n000000d0  e7 ba 48 70 8b cd ce c2  fe e1 75 d3 63 62 c1 10  |..Hp......u.cb..|\n000000e0  ef 6b 39 6e f3 f4 66 d1  50 32 3a 6e e9 66 de 26  |.k9n..f.P2:n.f.&amp;|\n000000f0  ac fa 96 42 92 5c 34 4c  c3 ff 06 a8 8a 93 bf 80  |...B.\\4L........|\n00000100  00 00 00 00 a4 75 43 27  00 01 71 e3 01 00 00 00  |.....uC'..q.....|\n00000110  d3 d0 e3 d4 3e 30 0d 8b  02 00 00 00 00 01 59 5a  |....&gt;0........YZ|\n00000120  74 00 fd 37 7a 58 5a 00  00 01 69 22 de 36 02 c0  |t..7zXZ...i\".6..|\n00000130  43 77 21 01 02 00 6c c3  5e 02 e0 00 76 00 3b 5d  |Cw!...l.^...v.;]|\n00000140  00 00 6a 7f 7b 11 6e e9  01 34 1e 1a a8 e9 c1 fb  |..j.{.n..4......|\n00000150  7a 33 6d 6e 0d ca fe 10  3a fb c4 38 7a ec b8 65  |z3mn....:..8z..e|\n00000160  10 c2 ba b2 ad e7 42 38  5b 62 15 7b 80 7f 44 63  |......B8&#91;b.{..Dc|\n00000170  82 15 14 87 96 7e 76 ea  43 25 9d 4c 00 00 49 ac  |.....~v.C%.L..I.|\n00000180  6f 50 00 01 53 77 23 5f  71 7f 90 42 99 0d 01 00  |oP..Sw#_q..B....|\n00000190  00 00 00 01 59 5a 10 80  6e 00 00 00 00 00 00 00  |....YZ..n.......|\n000001a0  18 00 00 01 00 00 00 00  96 01 00 00 00 00 00 00  |................|\n000001b0  38 80 20 00 00 00 00 00  00 00 83 00 00 00 00 00  |8. .............|\n000001c0  00 00 c3 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n000001d0  00 00 a3 00 00 00 00 00  00 00 63 00 00 00 00 00  |..........c.....|\n000001e0  00 00 40 00 00 00 00 00  00 00 b0 01 00 00 00 00  |..@.............|\n000001f0  00 00 04 80 e8 03 00 00  f2 01 00 00 00 00 00 00  |................|\n00000200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|\n*\n00001000\n<\/code><\/pre>\n\n\n\n<h4>1\u3001squashfs_super_block<\/h4>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/squashfs-tools\/squashfs_fs.h\" data-type=\"URL\" data-id=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/squashfs-tools\/squashfs_fs.h\" target=\"_blank\">\u6e90\u7801<\/a>\uff08struct squashfs_super_block\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x00-0x03<\/td><td>\u6807\u5fd7\uff0c\u5b57\u7b26\u4e32hsqs\uff0c\u8868\u793a\u5c0f\u7aef\u5e8f\uff0c\u5982\u679c\u662fsqsh\u5219\u4e3a\u5927\u7aef\u5e8f<\/td><\/tr><tr><td>2<\/td><td>0x04-0x07<\/td><td>inodes\u6570\u91cf\uff0c\u503c\u4e3a7<\/td><\/tr><tr><td>3<\/td><td>0x08-0x0B<\/td><td>\u65f6\u95f4\u6233\uff0c\u503c\u4e3a0x635f2e16<\/td><\/tr><tr><td>4<\/td><td>0x0C-0x0F<\/td><td>block_size\uff0c\u5757\u5927\u5c0f\uff0c\u503c\u4e3a0x20000<\/td><\/tr><tr><td>5<\/td><td>0x10-0x13<\/td><td>fragments\uff0c\u503c\u4e3a1<\/td><\/tr><tr><td>6<\/td><td>0x14-0x15<\/td><td>\u538b\u7f29\u65b9\u5f0f\uff0c\u503c\u4e3a4\u8868\u793axz\uff0c\u901a\u5e38\u5305\u542bgzip:1\uff0clzma:2\uff0cgzip\uff08\u975e\u6807\uff09:3\uff0cxz:4<\/td><\/tr><tr><td>7<\/td><td>0x16-0x17<\/td><td>block_log\uff0c\u503c\u4e3a0x11<\/td><\/tr><tr><td>8<\/td><td>0x18-0x19<\/td><td>flags\uff0c\u503c\u4e3a0x4C0<\/td><\/tr><tr><td>9<\/td><td>0x1A-0x1B<\/td><td>no_ids\uff0c\u503c\u4e3a1<\/td><\/tr><tr><td>10<\/td><td>0x1C-0x1D<\/td><td>s_major\uff0c\u4e3b\u7248\u672c4<\/td><\/tr><tr><td>11<\/td><td>0x1E-0x1F<\/td><td>s_minor\uff0c\u6b21\u7248\u672c0\uff0c\u5373\u7248\u672c\u53f74.0<\/td><\/tr><tr><td>12<\/td><td>0x20-0x27<\/td><td>root_inode\uff0c\u503c\u4e3a0xC3<\/td><\/tr><tr><td>13<\/td><td>0x28-0x2F<\/td><td>bytes_used\uff0c\u503c\u4e3a0x200<\/td><\/tr><tr><td>14<\/td><td>0x30-0x37<\/td><td>id_table_start\uff0c\u503c\u4e3a0x1F8<\/td><\/tr><tr><td>15<\/td><td>0x38-0x3F<\/td><td>xattr_id_table_start\uff0c\u503c\u4e3a0xFFFFFFFFFFFFFFFF<\/td><\/tr><tr><td>16<\/td><td>0x40-0x47<\/td><td>inode_table_start\uff0c\u503c\u4e3a0x86<\/td><\/tr><tr><td>17<\/td><td>0x48-0x4F<\/td><td>directory_table_start\uff0c\u503c\u4e3a0x120<\/td><\/tr><tr><td>18<\/td><td>0x50-0x57<\/td><td>fragment_table_start\uff0c\u503c\u4e3a0x1A8<\/td><\/tr><tr><td>19<\/td><td>0x58-0x5F<\/td><td>lookup_table_start\uff0c\u503c\u4e3a0x1EA<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>2\u3001file data<\/h4>\n\n\n\n<p>\u5e38\u89c4\u6587\u4ef6\u7531\u4e00\u7cfb\u5217\u8fde\u7eed\u7684\u538b\u7f29\u5757\u7ec4\u6210\uff0c\u548c\/\u6216\u538b\u7f29\u7247\u6bb5\u5757\uff08\u5c3e\u7aef\u538b\u7f29\u5757\uff09\u3002\u538b\u7f29\u7684\u5927\u5c0f\u6bcf\u4e2a\u6570\u636e\u5757\u7684\u6587\u4ef6\u7d22\u5f15\u8282\u70b9\u3002\u5728\u8bfb\u53d6\u201c\u5927\u201d\u6587\u4ef6\uff08256 MB\u6216\u66f4\u5927\uff09\uff0c\u4ee3\u7801\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7d22\u5f15\u7f13\u5b58\uff0c\u7528\u4e8e\u7f13\u5b58\u6765\u81ea\u78c1\u76d8\u4e0a\u6570\u636e\u5757\u4f4d\u7f6e\u7684\u5757\u7d22\u5f15\u3002\u7d22\u5f15\u7f13\u5b58\u5141\u8bb8Squashfs\u5904\u7406\u5927\u578b\u6587\u4ef6\uff08\u9ad8\u8fbe1.75TiB\uff09\u5728\u78c1\u76d8\u4e0a\u4fdd\u7559\u7b80\u5355\u4e14\u8282\u7701\u7a7a\u95f4\u7684\u5757\u5217\u8868\u3002\u7f13\u5b58\u5b83\u88ab\u5206\u6210\u591a\u4e2a\u63d2\u69fd\uff0c\u7f13\u5b58\u591a\u8fbe8\u4e2a224 GiB\u6587\u4ef6\uff08128 KiB\u5757\uff09\u3002\u8f83\u5927\u7684\u6587\u4ef6\u4f7f\u7528\u591a\u4e2a\u63d2\u69fd\uff0c1.75 TiB\u6587\u4ef6\u4f7f\u7528\u6240\u67098\u4e2a\u63d2\u69fd\u3002\u7d22\u5f15\u7f13\u5b58\u8bbe\u8ba1\u4e3a\u5185\u5b58\u9ad8\u6548\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f7f\u752816 KiB\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x60-0x85<\/td><td>\u6570\u636e\u5185\u5bb9<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>3\u3001inode_table<\/h4>\n\n\n\n<p>\u5143\u6570\u636e\uff08\u7d22\u5f15\u8282\u70b9\u548c\u76ee\u5f55\uff09\u88ab\u538b\u7f29\u4e3a8K\u5b57\u8282\u7684\u5757\u3002\u6bcf\u4e2a\u538b\u7f29\u5757\u7684\u524d\u7f00\u662f\u4e24\u4e2a\u5b57\u8282\u7684\u957f\u5ea6\uff0c\u5982\u679c\u5757\u672a\u538b\u7f29\u3002\u5982\u679c\u8bbe\u7f6e\u4e86-noI\u9009\u9879\uff0c\u5219\u5757\u5c06\u88ab\u89e3\u538b\u7f29\uff0c\u6216\u8005\u5982\u679c\u538b\u7f29\u5757\u5927\u4e8e\u672a\u538b\u7f29\u5757\u3002<br>\u7d22\u5f15\u8282\u70b9\u88ab\u6253\u5305\u5230\u5143\u6570\u636e\u5757\u4e2d\uff0c\u5e76\u4e14\u4e0d\u4e0e\u5757\u5bf9\u9f50\u8fb9\u754c\uff0c\u56e0\u6b64\u7d22\u5f15\u8282\u70b9\u4e0e\u538b\u7f29\u5757\u91cd\u53e0\u3002\u5df2\u8bc6\u522b\u7d22\u5f15\u8282\u70b9\u901a\u8fc748\u4f4d\u6570\u5b57\u7f16\u7801\u538b\u7f29\u5143\u6570\u636e\u5757\u7684\u4f4d\u7f6e\u5305\u542b\u7d22\u5f15\u8282\u70b9\uff0c\u4ee5\u53ca\u7d22\u5f15\u8282\u70b9\u6240\u5728\u5757\u7684\u5b57\u8282\u504f\u79fb\u91cf\u653e\u7f6e\uff08&lt;block\uff0coffset&gt;\uff09\u3002<br>\u4e3a\u4e86\u6700\u5927\u5316\u538b\u7f29\uff0c\u6bcf\u4e2a\u6587\u4ef6\u7c7b\u578b\u90fd\u6709\u4e0d\u540c\u7684\u7d22\u5f15\u8282\u70b9\uff08\u5e38\u89c4\u6587\u4ef6\u3001\u76ee\u5f55\u3001\u8bbe\u5907\u7b49\uff09\u3001\u7d22\u5f15\u8282\u70b9\u5185\u5bb9\u548c\u957f\u5ea6\u968f\u7c7b\u578b\u800c\u53d8\u5316\u3002<br>\u4e3a\u4e86\u8fdb\u4e00\u6b65\u6700\u5927\u5316\u538b\u7f29\uff0c\u4e24\u79cd\u7c7b\u578b\u7684\u5e38\u89c4\u6587\u4ef6\u7d22\u5f15\u8282\u70b9\u548c\u5b9a\u4e49\u4e86\u76ee\u5f55\u7d22\u5f15\u8282\u70b9\uff1a\u9488\u5bf9\u9891\u7e41\u51fa\u73b0\u7684\u7d22\u5f15\u8282\u70b9\u8fdb\u884c\u4e86\u4f18\u5316\u5e38\u89c4\u6587\u4ef6\u548c\u76ee\u5f55\uff0c\u4ee5\u53ca\u989d\u5916\u7684\u6269\u5c55\u7c7b\u578b\u5fc5\u987b\u5b58\u50a8\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/squashfs-tools\/unsquash.c\" target=\"_blank\"><\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/squashfs-tools\/unsquashfs.c\" data-type=\"URL\" data-id=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/squashfs-tools\/unsquashfs.c\" target=\"_blank\">\u6e90\u7801<\/a>\uff08\u51fd\u6570 uncompress_inode_table\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x86-0x87<\/td><td>c_byte\uff0c\u8bf4\u660e\u533a\u6bb5\u662f\u5426\u538b\u7f29\u548c\u538b\u7f29\u5927\u5c0f\uff0c\u533a\u6bb5\u4e3a\u538b\u7f29\uff0c\u503c0x0098<\/td><\/tr><tr><td>2<\/td><td>0x88-0x11F<\/td><td>xz\u538b\u7f29\u7684\u6570\u636e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5c06\u538b\u7f29\u7684\u6570\u636e\u89e3\u538b\u540e\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>00000000  02 00 b4 01 00 00 00 00  ef 2c 5f 63 04 00 00 00  |.........,_c....|\n00000010  00 00 00 00 00 00 00 00  00 00 00 00 08 00 00 00  |................|\n00000020  01 00 fd 01 00 00 00 00  ef 2c 5f 63 01 00 00 00  |.........,_c....|\n00000030  00 00 00 00 02 00 00 00  1e 00 00 00 03 00 00 00  |................|\n00000040  03 00 ff 01 00 00 00 00  ff 2c 5f 63 07 00 00 00  |.........,_c....|\n00000050  01 00 00 00 0b 00 00 00  30 30 31 2f 30 30 32 2e  |........001\/002.|\n00000060  74 78 74 02 00 b4 01 00  00 00 00 90 2c 5f 63 06  |txt.........,_c.|\n00000070  00 00 00 00 00 00 00 00  00 00 00 08 00 00 00 08  |................|\n00000080  00 00 00 01 00 fd 01 00  00 00 00 90 2c 5f 63 02  |............,_c.|\n00000090  00 00 00 00 00 00 00 02  00 00 00 1e 00 1b 00 03  |................|\n000000a0  00 00 00 02 00 b4 01 00  00 00 00 a1 2c 5f 63 05  |............,_c.|\n000000b0  00 00 00 00 00 00 00 00  00 00 00 10 00 00 00 08  |................|\n000000c0  00 00 00 01 00 fd 01 00  00 00 00 ff 2c 5f 63 03  |............,_c.|\n000000d0  00 00 00 00 00 00 00 04  00 00 00 44 00 36 00 08  |...........D.6..|\n*\n000000e3<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u9762\u8bb0\u5f55\u7740\u6587\u4ef6\u7d22\u5f15\u7b49\u4fe1\u606f\u3002<\/p>\n\n\n\n<h4>4\u3001directory_table<\/h4>\n\n\n\n<p>\u4e0e\u7d22\u5f15\u8282\u70b9\uff08inode\uff09\u4e00\u6837\uff0c\u76ee\u5f55\u88ab\u6253\u5305\u6210\u538b\u7f29\u7684\u5143\u6570\u636e\u5757\uff0c\u5b58\u50a8\u5728\u76ee\u5f55\u8868\u4e2d\u3002\u4f7f\u7528\u7684\u8d77\u59cb\u5730\u5740\u8bbf\u95ee\u76ee\u5f55\u5305\u542b\u76ee\u5f55\u548c\u504f\u79fb\u91cf\u7684\u5143\u5757\u89e3\u538b\u7f29\u5757\uff08\uff1cblock\uff0coffset\uff1e\uff09\u3002<br>\u76ee\u5f55\u4ee5\u7a0d\u5fae\u590d\u6742\u7684\u65b9\u5f0f\u7ec4\u7ec7\uff0c\u800c\u4e0d\u662f\u7b80\u5355\u7684\u6587\u4ef6\u540d\u5217\u8868\u3002\u8be5\u7ec4\u7ec7\u5229\u7528\u4e8b\u5b9e\u4e0a\uff08\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff09\u6587\u4ef6\u7684\u7d22\u5f15\u8282\u70b9\u5c06\u4f4d\u4e8e\u540c\u4e00\u4f4d\u7f6e\u538b\u7f29\u5143\u6570\u636e\u5757\uff0c\u56e0\u6b64\u53ef\u4ee5\u5171\u4eab\u8d77\u59cb\u5757\u3002\u56e0\u6b64\uff0c\u76ee\u5f55\u88ab\u7ec4\u7ec7\u4e3a\u4e24\u7ea7\u5217\u8868\uff0c\u5373\u76ee\u5f55\u5305\u542b\u5171\u4eab\u8d77\u59cb\u5757\u503c\u548c\u76ee\u5f55\u5e8f\u5217\u7684\u6807\u5934\u6bcf\u4e2a\u6761\u76ee\u5171\u4eab\u5171\u4eab\u7684\u8d77\u59cb\u5757\u3002\u65b0\u76ee\u5f55\u6807\u9898\u5199\u5165\u4e00\u6b21\/\u5982\u679c\u7d22\u5f15\u8282\u70b9\u5f00\u59cb\u5757\u53d1\u751f\u66f4\u6539\u3002\u76ee\u5f55\u5934\/\u76ee\u5f55\u6761\u76ee\u5217\u8868\u88ab\u91cd\u590d\u5fc5\u8981\u7684\u6b21\u6570\u3002<br>\u76ee\u5f55\u5df2\u6392\u5e8f\uff0c\u53ef\u4ee5\u5305\u542b\u76ee\u5f55\u7d22\u5f15\u4ee5\u52a0\u5feb\u901f\u5ea6\u6587\u4ef6\u67e5\u627e\u3002\u76ee\u5f55\u7d22\u5f15\u4e3a\u6bcf\u4e2a\u5143\u5757\u5b58\u50a8\u4e00\u4e2a\u6761\u76ee\uff0c\u6bcf\u4e2a\u6761\u76ee\u5c06\u7d22\u5f15\/\u6587\u4ef6\u540d\u6620\u5c04\u5b58\u50a8\u5230\u7b2c\u4e00\u76ee\u5f55\u5934\u5728\u6bcf\u4e2a\u5143\u6570\u636e\u5757\u4e2d\u3002\u76ee\u5f55\u6309\u5b57\u6bcd\u987a\u5e8f\u6392\u5e8f\uff0c\u5e76\u4e14\u5728\u67e5\u627e\u65f6\uff0c\u7ebf\u6027\u626b\u63cf\u7d22\u5f15\u4ee5\u67e5\u627e\u7b2c\u4e00\u4e2a\u6587\u4ef6\u540d\u6309\u5b57\u6bcd\u987a\u5e8f\u5927\u4e8e\u6240\u67e5\u627e\u7684\u6587\u4ef6\u540d\u3002\u6b64\u65f6\u5df2\u627e\u5230\u6587\u4ef6\u540d\u6240\u5728\u7684\u5143\u6570\u636e\u5757\u7684\u4f4d\u7f6e\u3002\u7d22\u5f15\u7684\u603b\u4f53\u601d\u60f3\u662f\u786e\u4fdd\u53ea\u9700\u8981\u4e00\u4e2a\u5143\u6570\u636e\u5757\u89e3\u538b\u7f29\u4ee5\u6267\u884c\u67e5\u627e\uff0c\u800c\u4e0d\u8003\u8651\u76ee\u5f55\u7684\u957f\u5ea6\u3002\u8fd9\u79cd\u65b9\u6848\u7684\u4f18\u70b9\u662f\u4e0d\u9700\u8981\u989d\u5916\u7684\u5185\u5b58\u5f00\u9500\u5e76\u4e14\u5728\u78c1\u76d8\u4e0a\u4e0d\u9700\u8981\u592a\u591a\u989d\u5916\u7684\u5b58\u50a8\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a href=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/squashfs-tools\/unsquashfs.c\" data-type=\"URL\" data-id=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/squashfs-tools\/unsquashfs.c\" target=\"_blank\" rel=\"noreferrer noopener\">\u6e90\u7801<\/a>\uff08\u51fd\u6570 uncompress_inode_table\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x120-0x121<\/td><td>c_byte\uff0c\u8bf4\u660e\u533a\u6bb5\u662f\u5426\u538b\u7f29\u548c\u538b\u7f29\u5927\u5c0f\uff0c\u533a\u6bb5\u4e3a\u538b\u7f29\uff0c\u503c0x0074<\/td><\/tr><tr><td>2<\/td><td>0x122-0x195<\/td><td>xz\u538b\u7f29\u7684\u6570\u636e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5c06\u538b\u7f29\u7684\u6570\u636e\u89e3\u538b\u540e\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>00000000  00 00 00 00 00 00 00 00  04 00 00 00 00 00 00 00  |................|\n00000010  02 00 06 00 30 30 32 2e  74 78 74 00 00 00 00 00  |....002.txt.....|\n00000020  00 00 00 06 00 00 00 63  00 00 00 02 00 06 00 30  |.......c.......0|\n00000030  30 34 2e 74 78 74 03 00  00 00 00 00 00 00 01 00  |04.txt..........|\n00000040  00 00 20 00 00 00 01 00  02 00 30 30 31 40 00 06  |.. .......001@..|\n00000050  00 03 00 07 00 30 30 32  2e 6c 69 6e 6b 83 00 01  |.....002.link...|\n00000060  00 01 00 02 00 30 30 33  a3 00 04 00 02 00 06 00  |.....003........|\n00000070  30 30 35 2e 74 78 74                              |005.txt|\n00000077<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u9762\u8bb0\u5f55\u7740\u6587\u4ef6\u540d\u4ee5\u53ca\u6587\u4ef6\u6240\u5c5e\u3001\u6743\u9650\u7b49\u4fe1\u606f\u3002<\/p>\n\n\n\n<h4>5\u3001fragment_table<\/h4>\n\n\n\n<p>\u5e38\u89c4\u6587\u4ef6\u53ef\u4ee5\u5305\u542b\u6620\u5c04\u5230\u7247\u6bb5\u7684\u7247\u6bb5\u7d22\u5f15\u78c1\u76d8\u4e0a\u7684\u4f4d\u7f6e\u548c\u538b\u7f29\u5927\u5c0f\u3002\u8fd9\u7247\u6bb5\u67e5\u627e\u8868\u672c\u8eab\u88ab\u538b\u7f29\u5b58\u50a8\u4e3a\u5143\u6570\u636e\u5757\u3002\u7b2c\u4e8c\u4e2a\u7d22\u5f15\u8868\u7528\u4e8e\u5b9a\u4f4d\u8fd9\u4e9b\u3002\u7b2c\u4e8c\u4e2a\u7d22\u5f15\u8868\u8bbf\u95ee\u901f\u5ea6\uff08\u56e0\u4e3a\u5b83\u5f88\u5c0f\uff09\u5728\u88c5\u8f7d\u65f6\u8bfb\u53d6\u5e76\u7f13\u5b58\u5728\u5185\u5b58\u4e2d\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/squashfs-tools\/unsquash-4.c\" target=\"_blank\">\u6e90\u7801<\/a>\uff08\u51fd\u6570 read_fragment_table_4\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x196-0x197<\/td><td>c_byte\uff0c\u8bf4\u660e\u533a\u6bb5\u662f\u5426\u538b\u7f29\u548c\u538b\u7f29\u5927\u5c0f\uff0c\u503c0x8010\uff0c\u8fd9\u91cc\u8868\u793a\u65e0\u538b\u7f29\uff0c\u603b\u51710x10\u4e2a\u5b57\u8282<\/td><\/tr><tr><td>2<\/td><td>0x198-0x19F<\/td><td>fragment[0].start_block\uff0c\u503c0x6E<\/td><\/tr><tr><td>3<\/td><td>0x1A0-0x1A3<\/td><td>fragment[0].size\uff0c\u503c0x1000018<\/td><\/tr><tr><td>4<\/td><td>0x1A4-0x1A7<\/td><td>fragment[0].unused\uff0c\u503c0<\/td><\/tr><tr><td>5<\/td><td>0x1A8-0x1AF<\/td><td><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-1-color\">fragment_table_index<\/mark><\/strong>\uff0c\u6307\u5411fragment_table\uff0c\u503c0x196<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>6\u3001export table<\/h4>\n\n\n\n<p>\u4f7fSquashfs\u6587\u4ef6\u7cfb\u7edf\u80fd\u591f\u5bfc\u51fa\uff08\u901a\u8fc7NFS\u7b49\uff09\u6587\u4ef6\u7cfb\u7edf\u53ef\u4ee5\u9009\u62e9\uff08\u4f7f\u7528-no exports Mksquashfs\u9009\u9879\u7981\u7528\uff09\u5305\u542b\u7d22\u5f15\u8282\u70b9\u53f7\u5230\u7d22\u5f15\u8282\u70b9\u78c1\u76d8\u4f4d\u7f6e\u67e5\u627e\u8868\u3002\u8fd9\u662f\u5fc5\u9700\u7684\u542f\u7528Squashfs\u5c06\u5728\u6587\u4ef6\u53e5\u67c4\u4e2d\u4f20\u9012\u7684\u7d22\u5f15\u8282\u70b9\u53f7\u6620\u5c04\u5230\u7d22\u5f15\u8282\u70b9\u78c1\u76d8\u4e0a\u7684\u4f4d\u7f6e\uff0c\u8fd9\u5728\u91cd\u65b0\u9a8c\u8bc1\u5bfc\u51fa\u4ee3\u7801\u65f6\u662f\u5fc5\u9700\u7684\u8fc7\u671f\/\u5237\u65b0\u7684\u7d22\u5f15\u8282\u70b9\u3002\u6b64\u8868\u88ab\u538b\u7f29\u5b58\u50a8\u4e3a\u5143\u6570\u636e\u5757\u3002\u7b2c\u4e8c\u4e2a\u7d22\u5f15\u8868\u662f\u7528\u4e8e\u5b9a\u4f4d\u8fd9\u4e9b\u3002\u7b2c\u4e8c\u4e2a\u7d22\u5f15\u8868\u7528\u4e8e\u8bbf\u95ee\u901f\u5ea6\uff08\u5e76\u4e14\u56e0\u4e3a\u5b83\u5f88\u5c0f\uff09\u5728\u88c5\u8f7d\u65f6\u8bfb\u53d6\u5e76\u7f13\u5b58\u5728\u5185\u5b58\u4e2d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x196-0x1A7<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>7\u3001uid\/gid index table<\/h4>\n\n\n\n<p>\u4e3a\u4e86\u8282\u7701\u7a7a\u95f4\uff0c\u5e38\u89c4\u6587\u4ef6\u5b58\u50a8uid\u548cgid\u7d22\u5f15\u4f7f\u7528id\u67e5\u627e\u8868\u8f6c\u6362\u4e3a32\u4f4duid\/gid\u3002\u8fd9\u5f20\u684c\u5b50\u662f\u538b\u7f29\u5b58\u50a8\u4e3a\u5143\u6570\u636e\u5757\u3002\u7b2c\u4e8c\u4e2a\u7d22\u5f15\u8868\u7528\u4e8e\u627e\u5230\u8fd9\u4e9b\u3002\u7b2c\u4e8c\u4e2a\u7d22\u5f15\u8868\u7528\u4e8e\u8bbf\u95ee\u901f\u5ea6\uff08\u56e0\u4e3a\u5b83\u5c0f\uff09\u5728\u88c5\u8f7d\u65f6\u8bfb\u53d6\u5e76\u7f13\u5b58\u5728\u5185\u5b58\u4e2d\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7\u5206\u6790<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/squashfs-tools\/unsquash-4.c\" data-type=\"URL\" target=\"_blank\">\u6e90\u7801<\/a>\uff08\u51fd\u6570 read_uids_guids_4\uff09\uff0c\u5e76\u7ed3\u5408\u6587\u4ef6\uff0c\u5206\u6790\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x1F2-0x1F3<\/td><td>c_byte\uff0c\u8bf4\u660e\u533a\u6bb5\u662f\u5426\u538b\u7f29\u548c\u538b\u7f29\u5927\u5c0f\uff0c\u503c0x8004\uff0c\u8fd9\u91cc\u8868\u793a\u65e0\u538b\u7f29\uff0c\u603b\u51714\u4e2a\u5b57\u8282<\/td><\/tr><tr><td>2<\/td><td>0x1F4-0x1F7<\/td><td>id_table\uff0c\u503c0x3E8<\/td><\/tr><tr><td>3<\/td><td>0x1F8-0x1FF<\/td><td><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-1-color\">id_index_table<\/mark><\/strong>\uff0c\u6307\u5411id_table\uff0c\u503c0x1F2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4>8\u3001padding<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u5e8f\u53f7<\/td><td>\u504f\u79fb<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>1<\/td><td>0x200-0xFFF<\/td><td>\u586b\u51450\uff0c4k\u5bf9\u9f50<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2>\u4e94\u3001\u603b\u7ed3<\/h2>\n\n\n\n<p>\u4e00\u4e2asquashfs\u6587\u4ef6\u7cfb\u7edf<strong>\u6700\u591a<\/strong>\u7531\u4e5d\u4e2a\u90e8\u5206\u7ec4\u6210\uff0c\u6309\u5b57\u8282\u5bf9\u9f50\u65b9\u5f0f\u6253\u5305\u5728\u4e00\u8d77\uff0c\u901a\u5e38export table\u3001xattr table\u53ef\u80fd\u6839\u636e\u9700\u8981\u8fdb\u884c\u9009\u62e9\uff0c\u5e76\u4e0d\u662f\u6700\u91cd\u8981\u7684\u90e8\u5206\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-palette-color-4-color has-palette-color-8-background-color has-text-color has-background\"><code>\t ---------------\n\t|  superblock \t|\n\t|---------------|\n\t|  compression  |\n\t|    options    |\n\t|---------------|\n\t|  datablocks   |\n\t|  &amp; fragments  |\n\t|---------------|\n\t|  inode table\t|\n\t|---------------|\n\t|   directory\t|\n\t|     table     |\n\t|---------------|\n\t|   fragment\t|\n\t|    table      |\n\t|---------------|\n\t|    export     |\n\t|    table      |\n\t|---------------|\n\t|    uid\/gid\t|\n\t|  lookup table\t|\n\t|---------------|\n\t|     xattr     |\n\t|     table  \t|\n\t ---------------<\/code><\/pre>\n\n\n\n<p>\u5f53\u4ece\u6e90\u76ee\u5f55\u8bfb\u53d6\u6587\u4ef6\u65f6\uff0c\u538b\u7f29\u6570\u636e\u5757\u88ab\u5199\u5165\u6587\u4ef6\u7cfb\u7edf\uff0c\u5e76\u68c0\u67e5\u662f\u5426\u91cd\u590d\u3002\u5199\u5165\u6240\u6709\u6587\u4ef6\u6570\u636e\u540e\uff0c\u5c06\u5199\u5165\u5b8c\u6574\u7684\u7d22\u5f15\u8282\u70b9\u3001\u76ee\u5f55\u3001\u7247\u6bb5\u3001\u5bfc\u51fa\u548cuid\/gid\u67e5\u627e\u8868\u3002<\/p>\n\n\n\n<h2>\u516d\u3001\u53c2\u8003\u94fe\u63a5<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.cnblogs.com\/chendeqiang\/p\/15361830.html\">squashfs\u6587\u4ef6\u7cfb\u7edf - \u591a\u5f17\u6717\u5f3a\u54e5 - \u535a\u5ba2\u56ed (cnblogs.com)<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.kernel.org\/doc\/html\/latest\/filesystems\/squashfs.html\">Squashfs 4.0 Filesystem \u2014 The Linux Kernel documentation<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/README\">https:\/\/github.com\/rampageX\/firmware-mod-kit\/blob\/master\/src\/others\/squashfs-4.2\/README<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u7b80\u4ecb Squashfs\u7684\u8bbe\u8ba1\u662f\u4e13\u95e8\u4e3a\u4e00\u822c\u7684\u53ea\u8bfb\u6587\u4ef6\u7cfb\u7edf\u7684\u4f7f\u7528\u800c\u8bbe\u8ba1\uff0c\u5b83\u53ef\u5e94\u7528\u4e8e\u6570\u636e\u5907\u4efd\uff0c\u6216\u662f\u7cfb\u7edf\u8d44\u6e90\u7d27\u5f20\u7684\u7535\u8111\u4e0a\u4f7f\u7528\u3002\u6700\u521d\u7248\u672c\u7684Squashfs\u91c7\u7528 gzip \u7684\u6570\u636e\u538b\u7f29\u3002\u7248\u672c 2.6.34 \u4e4b\u540e\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":5}},"_links":{"self":[{"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/posts\/1612"}],"collection":[{"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/comments?post=1612"}],"version-history":[{"count":18,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/posts\/1612\/revisions"}],"predecessor-version":[{"id":1633,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/posts\/1612\/revisions\/1633"}],"wp:attachment":[{"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/media?parent=1612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/categories?post=1612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhiwanyuzhou.com\/index.php\/wp-json\/wp\/v2\/tags?post=1612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}