Hacker News new | ask | show | jobs
by lohfu 1340 days ago
# cat file.img > /dev/sdaX

works, fyi

3 comments

Um. Does it? The stated usecase was:

> Dd is super useful for incrementally writing boot loader to /dev device endpoints when offsets are required (multiple images).

How exactly does one use cat to overwrite only a specific offset? Say, I have a 512 bootloader that needs to be placed starting at 2048 bytes into the image; how would I invoke cat to do that?

No it doesn't, what's being done here is inserting a binary block into the middle of a binary file (or disk) without overwriting the data before or after it