public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [question] What happens when dd writes data to a missing device?
@ 2020-10-11 19:46 Mikhail Gavrilov
  2020-10-11 19:52 ` Sven-Haegar Koch
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mikhail Gavrilov @ 2020-10-11 19:46 UTC (permalink / raw)
  To: Linux List Kernel Mailing

Hi folks!
I have a question.
What happens when dd writes data to a missing device?

For example:
# dd if=/home/mikhail/Downloads/Fedora-Workstation-Live-x86_64-Rawhide-20201010.n.0.iso
of=/dev/adb

Today I and wrongly entered /dev/adb instead of /dev/sdb,
and what my surprise was when the data began to be written to the
/dev/adb device without errors.

But my surprise was even greater when cat /dev/adb started to display
the written data.

I have a question:
Where the data was written and could it damage the stored data in
memory or on disk?


--
Best Regards,
Mike Gavrilov.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-12  2:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-11 19:46 [question] What happens when dd writes data to a missing device? Mikhail Gavrilov
2020-10-11 19:52 ` Sven-Haegar Koch
2020-10-11 20:31 ` Al Viro
2020-10-12  1:57 ` Douglas Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox