Subject: bug#6667: dd ?bug? while making image of hdd with bad sectors

From: Assaf Gordon <[email-masked]>
Date: Wed, 10 Oct 2018 11:13:00 -0600

tags 6667 notabug
close 6667
stop

Hello,

On 19/07/10 08:44 AM, Pádraig Brady wrote:
> On 19/07/10 10:05, Jakub Muszynski wrote:
>> I have been trying to make a dd copy :
>>
>> dd if=/dev/sdb conv=noerror,sync bs=4096k|pv| dd of=usb320.dd
>> conv=noerror,sync bs=4096k > dd320.LOG
>>
>> but image took all my free diskspace (406GB), and terminated, eventhough
>> my hdd is 320GB
> 
> dd doesn't read full blocks by default,
> so one has to be careful when reading from pipes.
[...]
> Does adding "iflag=fullblock" to the second dd fix things?
> Since you're not specifying a count, just removing the
> "sync" option from the second dd is equivalent.

With no further comments in 8 years, I'm closing this item.

regards,
  - assaf