GNU bug report logs - #19065
dd design bug

Previous Next

Package: coreutils;

Reported by: bt <bdtitus108 <at> yahoo.com>

Date: Sun, 16 Nov 2014 01:48:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: bt <bdtitus108 <at> yahoo.com>
To: 19065 <at> debbugs.gnu.org
Subject: bug#19065: dd design bug
Date: Sun, 16 Nov 2014 01:11:54 +0000 (UTC)
[Message part 1 (text/plain, inline)]
The following undocumented behavior of dd is (IMO) a design flaw.

If dd is used to copy one partition to another, as in

#dd if=/dev/sda3 of=/dev/sdb3 ...

and if in fact sdb3 does not exist, then dd will overwrite the first part of
an existing partition *sda1*. 

It doesn't make sense that if the "of=" device doesn't exist, then another
pre-existing device, not mentioned in the command line, is overwritten.
Several websites have incorrect information about the behavior of dd in this
situation. 
At the very least, this should be documented--maybe I'm missing something, but didn't see it in the man pages or the texinfo manual.

Thanks,B. Titus

[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.