DD img 的 MD5 不同吗?

发布于 2024-07-15 08:08:54 字数 284 浏览 3 评论 0原文

我们有一张智能媒体卡,上面安装了 Linux,我们需要复制它。 我们使用 DD 创建了一个 img,然后使用 dd 将 img 写回几个新的智能媒体卡。 我们比较了原始副本和新副本的 MD5 校验和,发现它们是不同的。

这是我们使用的:

dd if=/dev/sdb of=myimage.img

dd if=myimage.img of=/dev/sdb

dd if=/dev/sdb of=newimage.img

任何人都知道为什么会出现这些出不同?

We have a smart media card with a linux install on it that we need to duplicate. We created an img with DD and then used dd to write the img back to a couple of new smart media cards. We have compared the MD5 checksum of both the original and the new copies and they are different.

Here is what we used:

dd if=/dev/sdb of=myimage.img

dd if=myimage.img of=/dev/sdb

dd if=/dev/sdb of=newimage.img

Anyone have any ideas of why these come out different?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浅沫记忆 2024-07-22 08:08:54

如果卡片尺寸不同,将较小的图像添加到较大的卡片上不会“填满它”,并且零将保留在卡片的末尾。 用这张卡制作的图像将与原始图像不同。

数据也总是有可能在传输过程中被误写、误读或以其他方式损坏。

If the cards are different sizes, dd'ing the smaller image to a larger card will not "fill it up", and zeros will remain at the end of the card. An image made from this card will be different than the original image.

It's also always possible that data was mis-written, mis-read, or otherwise corrupted in-transit.

离旧人 2024-07-22 08:08:54

卡容量不同?
运行“ls -l myimage.img newimage.img”可能会告诉您一些信息。
运行“cmp -l myimage.img newimage.img”可能会告诉您一些信息。

The card capacities differ?
Running 'ls -l myimage.img newimage.img' might tell you something.
Running 'cmp -l myimage.img newimage.img' might tell you something.

闻呓 2024-07-22 08:08:54

如果您在两者之间安装了 /dev/sdb 这将是一个答案。 如果我没记错的话 ext2 和 ext3 有一个“安装计数器”。

If you mounted /dev/sdb in between it would be an answer. If I remember correctly ext2 and ext3 have a "mount counter".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文