ddで0xffを書き込む方法
$ tr "\000" "\377" < /dev/zero | dd ibs=1k count=1000 of=0xffFile.bin 1000+0 records in 2000+0 records out 1024000 bytes (1.0 MB) copied, 0.0278322 s, 36.8 MB/s
確認。
$ hexdump -C 0xffFile.bin 00000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 000fa000
ちゃんと書けている。