Hacker News new | past | comments | ask | show | jobs | submit login

# cat file.img > /dev/sdaX

works, fyi




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





Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: