linuxdddiskimage

dd partition image differs


What variables can produce different md5sum of the same dd image of a partition? If I execute this code over two storages (same size, brand and geometry) why I obtain different "partition.image" files:

sfdisk /dev/sda < /partition.table
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt/
tar -xf somefiles.tar -C /mnt/
umount /mnt
dd if=/dev/sda1 of=/partition.image

P.S. tar is preserving all files timings!


Solution

  • Time of creation, access etc. And that's good - no two images, created at different storages should be the same. Or otherwise, you could have something called "collision".