[5065] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: Problem with Scsi Tapes

daemon@ATHENA.MIT.EDU (Marc SCHAEFER)
Sun Nov 8 05:52:20 1998

To: linux-scsi@vger.rutgers.edu
From: Marc SCHAEFER <schaefer@alphanet.ch>
Date: 	8 Nov 1998 11:50:12 +0100

Kai M{kisara <makisara@metla.fi> wrote:
> You can write and read only complete blocks with tapes. Tar writes
> complete blocks but when you gzip this, the result probably is not an
> integral number of blocks. The tape driver pads the last block with zeros
> and when you read the data, you read also these additional zeros. This is
> probably what gunzip complains about.

Or you can set the tape to variable block mode, with

  mt -f /dev/st0 setblk 0

This should only get you a ``sense: block length incorrect'' at the
last read.

BTW: you (the guy) should really not gzip. Maybe look into afio which
supports *file* compression (and not ARCHIVE compression, which is
dangerous). With file compression, a single tape error will kill
a file.


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post