bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion: A No-write Option, e.g. --scrub.


From: Ralph Corderoy
Subject: Re: Suggestion: A No-write Option, e.g. --scrub.
Date: Fri, 06 Mar 2020 16:33:24 +0000

Hi Antonio,

> > It occurred to me that ddrescue(1) would do a better job, but I
> > wouldn't want a copy created in an output file.  I skimmed
> > https://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html
> > but didn't see a way to do this, or a special meaning to an output
> > file of /dev/null.
>
> Thanks. I'll document this. As you suggest, /dev/null (combined with a
> mapfile) can be used to perform this task efficiently with a command
> like this one:
>
>    ddrescue -f -r-1 /dev/sdcard /dev/null mapfile

Thanks.  I should have also asked: is using /dev/null a special value
that avoids the write(2) system calls, e.g. as shown by ‘strace -c’?

-- 
Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]