[cygwin] DD bug fails to wipe last 48 sectors of a disk

Eliot Moss moss@cs.umass.edu
Tue Jun 23 15:29:45 GMT 2020


On 6/23/2020 11:28 AM, Hashim Aziz via Cygwin wrote:
> I hadn't checked with 512 byte block sizes because of the amount of time it would have taken, but sure enough have just finished trying with bs=512 and no block size at all (so dd's default block size, which is either 512 or 1024) and although each wipe took over 24 hours, they did indeed wipe all of the sectors. So it seems that there's a bug with regards to how Cygwin handles the last block when a large (i.e. sane) block size is selected, and that this bug doesn't occur on actual UNIX-based systems.

Well, that certainly points the finger at last-block handling ... EM


More information about the Cygwin mailing list