0

是否可以将固定大小的数据添加到 ext4 映像,使其在分区的最后一个块(或者说最后 100KB)处可用?我希望能够将数据添加到 ext4 映像,这样我就可以在不了解文件系统的情况下从相应的原始分区读取数据。

这可能吗?

4

2 回答 2

1

You could build what you want using e2fslibs in e2fsprogs. That library gives you low-level access to reading the filesystem metadata.

First pass, you could dump all the metadata about "blocks in use" to see if those last 100K of blocks are in use or not. If not, just write over them.

于 2013-05-03T22:44:45.410 回答
0

您可以使用e2image实用程序转储或恢复元数据

于 2016-09-23T06:21:34.070 回答