mount -o loop.... changes the udf image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I tested an UDF iso image with mount -o loop... and I was really surprised, the mount changed the image. I am not sure what it writes to the image, probably almost nothing (mount time stamp?) but the checksum of the image is changed. It's very bad when you download something you mount it (just to test) and then you want to check the checksum of the file....
to check:
$ mkdir testdir
$ genisoimage -udf -o testimage.iso testdir/
...
$ sudo md5sum testimage.iso
92c720ac623ed69
$ sudo mount -o loop testimage.iso /mnt
mount: block device /home/qji/
$ md5sum testimage.iso
0bc99bab37df097
$ sudo umount /mnt
$ md5sum testimage.iso
0bc99bab37df097
My Ubuntu is an up to date 12.04 x64.