zhouhongyi
V2EX  ›  问与答

Linux 上 Ext3/Ext4 文件系统解析工具

  •  
  •   zhouhongyi · Oct 11, 2021 · 1846 views
    This topic created in 1685 days ago, the information mentioned may be changed or developed.

    有没有大佬知道比较好的开源项目,能够实现在 Linux 上解析 ext3/ext4 文件系统。我知道在 Linux 上直接通过 mount 命令就可以挂载,但现在想通过 C 代码实现,目前搜到的很多开源代码都是在 Windows 上实现,有没有 Linux 实现比较好的小项目呢?

    3 replies    2021-10-12 00:44:12 +08:00
    luny
        1
    luny  
       Oct 11, 2021
    简单实现,可以看下 uboot 里面 ext4 的代码
    ysc3839
        2
    ysc3839  
       Oct 11, 2021 via Android
    7zip?
    koint
        3
    koint  
       Oct 12, 2021 via Android
    如果只需要解析和读取,并且不介意引入库文件的话,可以使用 libtsk(The Sleuth Kit)作为解析器,使用其内部 API 进行处理。
    相关的代码在 https://github.com/sleuthkit/sleuthkit/blob/develop/tsk/fs/ext2fs.c 中。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1085 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 18:22 · PVG 02:22 · LAX 11:22 · JFK 14:22
    ♥ Do have faith in what you're doing.