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?


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?