On 2002.05.02 18:25 Raymond Moyers wrote:
Whats wrong with cat ?
[...]
I see most are using dd when cat is all they need
cat(1) and dd(1) do not read / recognize the _physical_ block size of
the tape. The block size that you can specify with the "bs=' parameter
of dd(1) is _not_ the physical block size of the tape, it is the size of
the dd(1) internal buffer space, i.e. the third parameter of a read(2)
call. I think you can play with cat(1) / dd(1) to read / write the data
but you will have to set / snoop the tape block size with mt(1)
accordingly... A very painfull and error-prone procedure. As boot tapes
and the like are critical about the physical block size of the tape, you
need a programm that reads / writes the data _and_ the physical block
size for each file on the tape. => cptape / maketape.
--
tsch??,
Jochen
Homepage:
http://www.unixag-kl.fh-kl.de/~jkunz/