From: cudcv@csv.warwick.ac.uk (Rob McMahon)
Subject: Re: Info needed: s/w and h/w for duplicating DAT
Date: 1995/08/26 [thread overview]
Message-ID: <41n9re$b4j@bacon.csv.warwick.ac.uk> (raw)
In-Reply-To: DDs88G.7Ds@denx.muc.de
In article <DDs88G.7Ds@denx.muc.de>, Wolfgang Denk <wd@denx.muc.de> 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
next prev parent reply other threads:[~1995-08-26 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-08-18 4:00 Info needed: s/w and h/w for duplicating DAT S.T. Wong
1995-08-20 4:00 ` Tom Griffing
1995-08-21 4:00 ` Joseph B. Gurman
1995-08-25 4:00 ` JP
1995-08-23 4:00 ` Wolfgang Denk
1995-08-26 4:00 ` Rob McMahon [this message]
1995-08-20 4:00 ` Info needed: s/w and h/w for duplicating JCarr37863
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox