Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Using shell redirects sucks though, you need to run the shell as root.

Using cp seems overkill? It's really really designed to copy files between file systems and has a lot of logic to handle different cases and different optimisations which don't matter when writing to block devices.

As you say, there's no magic. I want a program which just calls 'open' on a path I give it and then uses 'write' to write my data to it. cp does so, so much more related to file systems, shell redirects aren't a separate program I can run with sudo, but I can trust dd to do the job. And it has a (kinds bad) progress monitor to boot.

The default 512 byte block size is unfortunate though.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: