Menu

Is it possible to Check/Verify an image?

Help
2009-06-10
2013-04-05
  • John Harrison

    John Harrison - 2009-06-10

    To determine if the image was created without errors.

     
    • Steven Shiau

      Steven Shiau - 2009-06-11

      Not really.
      In the future, we will have a program, e.g. partclone.imgchk, which can check the CRC of the blocks saved.

      Steven.

       
    • Ken Clive

      Ken Clive - 2009-07-17

      If the image is compressed using gzip, you can cd intto the directory where the actual image is stored and run this:

      gzip -tv filename

      Where filename is the image itself.  The "t" flag is gzip's built-in integrity checking feature, and "v" makes the output verbose so it's easier to see if the integrity check fails/succeeds.  For spanned images, however, this is a bit trickier.  The spanned images will have similar filenames, so we can do this:

      cat commonfilename.* | gzip -tv

      Basically, I'm feeding the gzip command with each spanned file.  You can't run gzip -tv on each separate span file because it will give you an "unexpected end of file" error message.  Hope this helped!

       
      • Steven Shiau

        Steven Shiau - 2009-07-18

        Ken,
        Thanks for sharing that. Actually in the future we will have another program in Clonezilla to check the image, by checking the compression integrity and the CRC checksum in the image.

        Steven.

         

Log in to post a comment.