我正在努力从可启动 USB 中“解压缩”和“压缩”回此根文件系统。我发现了一些类似的问题,但我认为它们太旧了,也许根文件打包随着时间的推移已经发生了一些变化(我不是 Linux 专家,我只是喜欢深入学习新的东西)。
根文件检查如下所示:
homelab@homelab-DH310V2:~/Desktop/stock/bzroot_folder$ binwalk bzroot_orig
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 ASCII cpio archive (SVR4 with no CRC), file name: "."
112 0x70 ASCII cpio archive (SVR4 with no CRC), file name: "kernel"
232 0xE8 ASCII cpio archive (SVR4 with no CRC), file name: "kernel/x86"
356 0x164 ASCII cpio archive (SVR4 with no CRC), file name: "kernel/x86/microcode",
488 0x1E8 ASCII cpio archive (SVR4 with no CRC), file name: "kernel/x86/microcode/GenuineIntel.bin"
3624572 0x374E7C ASCII cpio archive (SVR4 with no CRC), file name: "kernel/x86/microcode/AuthenticAMD.bin"
3655268 0x37C664 ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!"
3655680 0x37C800 xz compressed data
14747435 0xE1072B EBML file
27330002 0x1A105D2 mcrypt 2.5 encrypted data, algorithm: "-", keysize: 14961 bytes, mode: "V",
43539972 0x2985E04 Unix path: /usr/local/go/src/runtime/runtime-gdb.py
58338583 0x37A2D17 Zlib compressed data, default compression
79135327 0x4B7825F PARity archive data - file number 5362
93608855 0x5945B97 ASCII cpio archive (SVR4 with no CRC)
125494792 0x77AE608 MPEG transport stream data
139663506 0x8531892 Zlib compressed data, default compression
139663558 0x85318C6 Zlib compressed data, default compression
139663590 0x85318E6 Zlib compressed data, default compression
139664346 0x8531BDA Zlib compressed data, default compression
139666162 0x85322F2 Zlib compressed data, default compression
139666194 0x8532312 Zlib compressed data, default compression
139666774 0x8532556 Zlib compressed data, default compression
139670750 0x85334DE ASCII cpio archive (SVR4 with no CRC)
140843025 0x8651811 gzip compressed data, last modified: 2082-09-03 16:48:36 (bogus date)
我可以看到有早期的微代码+很多其他东西。从其他问题和答案中,我只期望内核微码文件和“zip”文件,但还有更多内容。
我能够将内核和其他内容拆分为 2 个文件(内核 + 其他),我什至以某种方式解压了根文件系统,但无法以相同的方式将其打包,当然,如果我做。
我并不是专门寻找确切的答案,但有人可能会引导我走上正确的道路。