3 ms·
# cat file.img > /dev/sdaX works, fyi
by lohfu 4y ago
# cat file.img > /dev/sdaX
works, fyi
- lohfu 4y agoi misread https://www.unix.com/302462639-post2.html?s=26c3fb7cf64a858cac739368304643cb https://www.unix.com/302462639-post2.html?s=26c3fb7cf64a858c...
- yjftsjthsd-h 4y agoUm. 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?
- Taniwha 4y agoNo 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