Article 56YJT How can I pipe od to dd

How can I pipe od to dd

by
zero.one
from LinuxQuestions.org on (#56YJT)
I am running:

od /dev/sda

on a uninitialized drive. This outputs all non-zero characters on the drive.

I would like to pipe it to dd or any other command that can do this and overwrite each non-zero character that is found as zero.

I'm willing to try any other command or script to do this, but I don't want to format the entire drive. What is available to achieve this?latest?d=yIl2AUoC8zA latest?i=Ky_0cU3N68A:iGSlkAczysM:F7zBnMy latest?i=Ky_0cU3N68A:iGSlkAczysM:V_sGLiP latest?d=qj6IDK7rITs latest?i=Ky_0cU3N68A:iGSlkAczysM:gIN9vFwKy_0cU3N68A
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments