Re:Running Out of Disk Space in Production
by ape4 on Tuesday April 07, 2026 @02:24PM
(#47679328)
That's very cool. Sadly running that exact command gets an incomplete file and error "error writing output file". It suggests adding iflag=fullblock (to dd). Running that makes a file of the correct size. But still gives "error writing output file". I suppose that occurs because dd breaks the pipe.
[ Parent
| on HN ]
Re:Running Out of Disk Space in Production
by Twirrim on Tuesday April 07, 2026 @07:49PM
(#47682820)
Weird, I could have sworn that used to work, maybe I wrote the notes down wrong.
Easiest alternative I guess is to pipe through head. It still grumbles, but it does work
openssl enc -aes-256-ctr -pbkdf2 -pass pass:"$(date '+%s')" < /dev/zero | head -c 10M > foo