From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,44a0f577b7d744ed X-Google-Attributes: gidf72b0,public X-Google-Thread: fcda7,44a0f577b7d744ed X-Google-Attributes: gidfcda7,public X-Google-Thread: 11035d,44a0f577b7d744ed X-Google-Attributes: gid11035d,public X-Google-Thread: fee84,44a0f577b7d744ed X-Google-Attributes: gidfee84,public X-Google-Thread: 1020c6,44a0f577b7d744ed X-Google-Attributes: gid1020c6,public X-Google-Thread: 115614,44a0f577b7d744ed X-Google-Attributes: gid115614,public From: cudcv@csv.warwick.ac.uk (Rob McMahon) Subject: Re: Info needed: s/w and h/w for duplicating DAT Date: 1995/08/26 Message-ID: <41n9re$b4j@bacon.csv.warwick.ac.uk>#1/1 X-Deja-AN: 108891710 distribution: inet references: <411taq$js4@eng_ser1.erg.cuhk.hk> <417pdu$gbm@fohnix.metronet.com> content-type: text/plain; charset=US-ASCII organization: University of Warwick, Coventry, UK mime-version: 1.0 newsgroups: comp.unix.misc,comp.unix.admin,comp.sys.hp.hpux,comp.unix.solaris,comp.unix.osf.osf1,comp.unix.aix In article , Wolfgang Denk writes: >> $ dd if=/dev/rmt0 bs=1024b | dd of=/dev/rmt1 bs=1024b > >Bad. > >Is the input tape written using fixed or variable block size? If fixed, >which block size? If variable, are all blocks of the same size? > >Your method will destroy the original record structure... As far as I know `bs' has always preserved the record structure provided 1) it's big enough, and 2) no conversion is specified. From the manual entry: bs=n Set both input and output block size, superseding ibs and obs. Also, if no conversion is specified, preserve the input block size instead of packing short blocks into the output buffer (this is particularly efficient because it reduces in-memory copying). So whilst the above isn't safe, because the data will get broken up in the pipe, the simpler dd if=/dev/rmt0 bs=1024b of=/dev/rmt1 is okay. Rob -- UUCP: ...!mcsun!uknet!warwick!cudcv PHONE: +44 1203 523037 INET: cudcv@csv.warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England