![]() ![]() ** Technically, cmp only reports the first difference between the files. The other thing you might see that would not be good would be cmp: EOF on cdrom0, as this indicates that part of the image was not copied to the CD (this could be the result of an interruption in the copying process).Īs a side note, I would guess that the reason you're seeing a different shasum for each file is because of that zero padding at the end of the CD, which will change the shasum but won't affect the functionality at all. On the other hand, if you see an output informing you that the two differ (it will look something like image.iso cdrom0 differ, byte 128 line 7), then there was an error when copying the image and there is some difference between them. ![]() ![]() The extra data on the CD is probably just padding with zeroes, which occurs when the image is smaller than the size of the CD. The output you want to see is either no output (the image and the CD are identical), or cmp: EOF on image.iso, which indicates that there are more bytes on the CD than the image, but all of the data on the image was successfully copied to the CD. cmp compares data byte-by-byte and will inform you of any difference** between the two files.Įnter the command as cmp /home/image.iso /media/cdrom0 (make sure to use the actual paths to the image and the CD as appropriate for your situation). The best way to go about this sort of comparison on is the cmp command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |