Hacker News new | ask | show | jobs
by fransje26 922 days ago
I use dd for that.

    dd if=./file.txt
Can you also format your drive with ffmpeg? I'm looking for a more versatile dd replacement..
1 comments

It can't create partition tables or filesystems, so no, but

  ffmpeg -f data -i /dev/zero -map 0:0 -c copy -f data - > /dev/sda
is roughly equivalent to to

  dd status=progress if=/dev/zero of=/dev/sda
you might need a -disposition default type option, otherwise, it introduce some abnormal behavior