Path: utzoo!attcan!uunet!munnari!mimir!hugin!augean!sirius!jeremy From: jeremy@chook.ua.oz (Jeremy Webber) Newsgroups: comp.unix.wizards Subject: Re: Writing file containing NULL byte with 'dd' to a Exabyte Tape Message-ID: Date: 17 Nov 88 05:29:37 GMT References: <558@gt-eedsp.UUCP> <254@ists> Sender: news@sirius.ua.oz Organization: Computer Science, Adelaide University, Australia Lines: 25 In-reply-to: mike@ists's message of 14 Nov 88 07:15:11 GMT Posting-Front-End: GNU Emacs 18.41.44 of Fri May 13 1988 on chook (berkeley-unix) In article <254@ists> mike@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@chook.ua.oz Computer Science Department Internet: jeremy@chook.ua.oz.au University of Adelaide Voicenet: +61 8 228 5763 GPO Box 498, Adelaide 5001 Papernet: +61 8 223 1206 (FAX) Australia