挂载后 md5sum 更改?

mic*_*con 3 filesystems mount ext3 hashsum

我在 .img 文件上有一个 ext3 文件系统。挂载和卸载后,我注意到 md5sum 发生了变化,即使里面没有文件被更改!

md5sum myfilesystem.img
XXXX myfilesystem.img
mount -t ext3 myfilesystem.img temp/
umount temp/
md5sum myfilesystem.img
YYYY myfilesystem.img
Run Code Online (Sandbox Code Playgroud)

为什么 XXXX 与 YYYY 不同?我显然没有触及 myfilesystem.img 中的任何内容。

rep*_*lay 6

因为,如果您以可写模式挂载 ext3,则会更新一些内容,例如上次挂载日期。尝试使用-o ro.