I know i can fill an entire disk with 0x0 like this:
dd if=/dev/zero of=/dev/sda bs=4k conv=notrunc
Is there a way to fill the entire disk with a char of my choice?
How about this:
yes "<char>" | dd of=/dev/sda bs=4k conv=notrunc
Substitute with character of your choice.
You can do it this way:
while true; do echo -n 'x'; done | dd of=/dev/sda bs=4k conv=notrunc iflag=fullblock
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With