Writing file containing NULL byte with 'dd' to a Exabyte Tape

Jeremy Webber jeremy at chook.ua.oz
Thu Nov 17 15:29:37 AEST 1988


In article <254 at ists> mike at ists (Mike Clarkson) writes:

>   The exabyte uses 1024 byte fixed blocks.

>   Is your dd defaulting to an odd number of 512 blocks?


>   Try specifying bs=2b or some such incantation.

Unfortunately not even this will work with some versions of dd.  In fact there
is no way to make dd guarantee its output to be a multiple of 1k, because it
does not pad the last block.  If you are using the Delta Microsystems box they
provide a utility called bdd which has an appropriate option.  Else you may
have to write your own.

For this particular problem you may be able to do by specifying ibs=1k and
conv=sync but that will not work for all applications.
--
--
Jeremy Webber			     ACSnet: jeremy at chook.ua.oz
Computer Science Department	   Internet: jeremy at chook.ua.oz.au
University of Adelaide		   Voicenet: +61 8 228 5763
GPO Box 498, Adelaide 5001	   Papernet: +61 8 223 1206 (FAX)
Australia



More information about the Comp.unix.wizards mailing list