-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When generating mutiple checksums, Only Read Files once, but generate multiple checksums simultaneously to speed up checksumming. #127
Comments
Thanks for this idea. However, I believe actually you should just choose one of the checksum methods. I suggest that b2sum is good enough. Steven |
Improve the checksums mechanism for Clonezilla image. Make it read once and pass to multiple checksum programs. Thanks to barkoder. Ref: #127
Thanks for your suggestion. This feature has been implemented in Clonezilla live >= 3.2.0-27 or 20241213-*: Steven |
Tested I selected Please fix. |
Could you please show the files list in your image dir by running: Steven |
Also
The binary catting appears to have happened while reading the |
Bug fixed: wrong total number for chosen checksum method. Thanks to barkoder. Ref: #127 (comment)
Please give testing Clonezilla live >= 3.2.0-33 or 20250114-* a try: Steven |
Say I tell clonezilla to generate md5 , sha256 and b2sum of individual files on a drive containing 2 partitions. As of
clonezilla-live-3.1.1-27-amd64.iso
, this is how generating mutiple checksums in Clonezilla works.Clonezilla is reading the same files three times in steps 2,3,4 and in steps 6,7,8.
This significantly increases wear on the disk.
This disk could fail at Step 2,3 or 4. And failing steps 5-8 altogether.
The way it should work is...
Why not just read the files once and generate multiple checksums simultaneously using
cat
andtee
?Generate list of files with full path in a given partition and store in /tmp/list_of_files_in_dev_sda1.txt
I'm not a shell expert but something like this ?
The above command will not append the name of the files themselves into the checksum file list . But I'm sure there's a way in shell to also get the names of the files into the files.
This would significantly speed up checksumming and the overall cloning process and most importantly minimize wear on the disk.
Also related #126
Thanks!
The text was updated successfully, but these errors were encountered: