I want to compare the content of two disk images. (For example two disk images with gutsy n edgy) Is there a straight forward command for it in Unix?
migrated from stackoverflow.com Mar 3 '11 at 5:34
This question came from our site for professional and enthusiast programmers.
This will not copy any files to disk2 nor delete and files from disk1 thanks to the
|show 2 more comments|
To compare disk images byte-for-byte and list all the differing bytes, you can run
This will compare everything, including any unoccupied space. If these are filesystem images and you want to do a file-against-file comparison, you need to mount them, then use a file comparison tool such as diff or rsync.