MD5 verification and command line

USB Image Tool support forum
Post Reply
marcodip
Posts: 5
Joined: Wed Jun 06, 2012 4:03 pm

MD5 verification and command line

Post by marcodip » Wed Jun 06, 2012 4:30 pm

Hi Alex,
thank you for your useful tool.
I am using the command line version and I would like to save the progress percentage to a text file. Is it possible?

I am trying the MD5 feature, but I can't understand how to verify the restored USB device using the MD5 checksum created during the backup procedure.

Alex
Site Admin
Posts: 235
Joined: Fri Jul 29, 2011 11:59 pm

Re: MD5 verification and command line

Post by Alex » Fri Jun 08, 2012 5:55 pm

You could try to pipe the command line output into a textfile using the regular commands (usbitcmd [...] > mytextfile.txt), but I'm not sure about the percentage, that is updated. Maybe this won't work. I haven't tried out that myself.

The MD5 feature is intended as an easy way to create it with the image file to provide it for download purposes. There is no checking against the MD5 hash during Restore. For that no MD5 hash file would be needed, because it could be made directly against the backup file during the process.

marcodip
Posts: 5
Joined: Wed Jun 06, 2012 4:03 pm

Re: MD5 verification and command line

Post by marcodip » Mon Jun 11, 2012 4:25 pm

Hi Alex, thank you for your reply.
I cannot output the progress percentage to a txt file piping the command, it seems the output is saved only when the whole procedure is completed. Can you add a "save progress to file" feature to the FRL?

Please, can you explain me how "it could be made directly against the backup file during the process"?

Alex
Site Admin
Posts: 235
Joined: Fri Jul 29, 2011 11:59 pm

Re: MD5 verification and command line

Post by Alex » Fri Jun 15, 2012 2:24 pm

You wouldn't need the MD5 hash for the verification, because you can verify the written flash drive bytewise against the image file, after the backup is complete. I will have to check the text file output for the next version.

marcodip
Posts: 5
Joined: Wed Jun 06, 2012 4:03 pm

Re: MD5 verification and command line

Post by marcodip » Wed Jun 20, 2012 12:08 pm

ok thanks

Alex
Site Admin
Posts: 235
Joined: Fri Jul 29, 2011 11:59 pm

Re: MD5 verification and command line

Post by Alex » Thu Feb 21, 2013 9:44 pm

implemented with version 1.60 (command line tool)

marcodip
Posts: 5
Joined: Wed Jun 06, 2012 4:03 pm

Re: MD5 verification and command line

Post by marcodip » Thu Jun 27, 2013 3:28 pm

Hi Alex, thanks so much for implementing the scroll feature. Anyway, it seems the output file is updated only when the clone procedure is completed.
I'm using this command:
usbitcmd.exe r 3 image_file.imz /d /c /h /s > log.txt

Am I missing anything?

Alex
Site Admin
Posts: 235
Joined: Fri Jul 29, 2011 11:59 pm

Re: MD5 verification and command line

Post by Alex » Thu Jun 27, 2013 6:30 pm

You're rigth, unfortunately it seems, that it's not working correctly. I have to check & fix that.

marcodip
Posts: 5
Joined: Wed Jun 06, 2012 4:03 pm

Re: MD5 verification and command line

Post by marcodip » Thu Jul 04, 2013 4:06 pm

ok, thank you

Alex
Site Admin
Posts: 235
Joined: Fri Jul 29, 2011 11:59 pm

Re: MD5 verification and command line

Post by Alex » Tue Jul 23, 2013 6:02 pm

I did some more research on piping the output. By default, the output file is write-only and can't be accessed until the writing process has finished. Some workarounds are described here:

http://stackoverflow.com/questions/7964 ... -to-a-file

Post Reply