Code Monkey home page Code Monkey logo

Comments (1)

davidpolverari avatar davidpolverari commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.