> You usually don't even need dd, plain cat <iso >device is fine
Definitely not. In fact, even dd is insufficient unless you use os specific flags to flush the disk cache, otherwise your stick might be corrupted. Read about the fdatasync syscall.
Definitely not. In fact, even dd is insufficient unless you use os specific flags to flush the disk cache, otherwise your stick might be corrupted. Read about the fdatasync syscall.
So, on openbsd, make sure you use the raw device when writing images with dd, and in my experience you want to use dd because the block size on cat is too small. dd bs=64k if=image.file of=/dev/rsd2c (c on obsd is entire disk)
There's a good reason why the dd command exists, believe me.
FYI: https://linux.die.net/man/2/sync syscall is not the same as https://linux.die.net/man/2/fsync syscall.