Comments (1)
Hello,
Hi,
i have read that someone is going to use following command:
sudo dcfldd if=/dev/sdb of=usb.img bs=3M hash=sha256 hashlog=sha256.txt; sha256sum usb.img
i read that by hashing may still not achieve 1:1 copy due to errors reading from source with bad sectors. Does it mean that dcfldd stop operation on read error? I have not found any "ddrescue" like switch to retry (-r) reading sectors that failed reading.
Both dd
and dcfldd
(as a fork of the former) will stop on read errors, unless you specify conv=noerror
. By default, both will try to read the bad sectors multiple times before failing.
f="log/debug.log";time md5sum "$f";time sha256sum "$f"
shows:real 0m0,008s real 0m0,004s
so i assume that sha256 would be like 2x faster
You're making an assumption based on anecdotal evidence.
so i will use it just by defining
hash=sha256 hashlog=sha256.txt;
where hashlog parameter has no benefit of r€suming the interrupted process it is just to record it for convenience?
As stated on the dcfldd man page, the hash
parameter specifies the hash algorithms to be used, and its usage will perform the calculation in parallel with the disk reading. The hashlog
parameter will save the resulting final hashes to the specified files.
The point of those options is only to speed up the hashing process; instead of hashing the read data that at the end of the acquisition process, the hashing is done in parallel with it.
Regards,
David.
from dcfldd.
Related Issues (13)
- dcfldd handles the case 'statusinterval=0' not correct. HOT 1
- hashlog empty HOT 1
- SHA1 hash is wrong over S390x architecture on Debian HOT 7
- Bash completion file not installed by the build system? HOT 13
- diffwr option OOM kill HOT 16
- ./configure: line 5434: syntax error near unexpected token `BASH_COMPLETION,' HOT 2
- Build dependencies are undocumented HOT 2
- doc/dcfldd-bash_completion should be updated HOT 1
- errlog parameter causes segfault
- dcfldd: Fails to get size of destination correctly, hilarity ensues HOT 4
- Release tarballs need autotools
- dcfldd write only to maximum 2 output files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcfldd.