Hi!

Trying to kill the keyboard, [EMAIL PROTECTED] produced:
> Sep 17 14:35:00 proxy02 kernel: st0: Write not multiple of tape block
> size. 

> What does it mean ? 

Your tape is in block mode.  Writes must be in a multible of
the block size.  E.g. blocksize is 10K, then all writes must
be n*10K big, with n being an integer (1,2,3,4....).

You explicitely do set the size:

> > > # A compressing DAT (DDS-1-DC or DDS-2)
> > > manufacturer=HP model = "C1533A" {
> > > scsi2logical=1 can-bsr can-partitions auto-lock
> > > mode1 blocksize=1024 compression=1
            ^^^^^^^^^^^^^^
> > > }

and the tape uses it:

> Sep 17 14:23:40 proxy02 kernel: st0: Default block size set to 1024
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> bytes. 
  ^^^^^
Now, using 
  
> > > # dd if=foo.tgz of=/dev/st0 bs=1024

will produce stuff like 
first   1024 bytes      of foo.tgz
second  1024 bytes      of foo.tgz
third   1024 bytes      of foo.tgz
....    1024 bytes      ....
LAST     888 bytes      of foo.tgz
        ^^^^

So the last block is not padded to that size.
Either go into variable block size (and I doubt a block size
of 1 K is a good value, but YMMV) or pad the last block using

dd ..... conv=sync
tar .... --blocking-factor=2            (for 2*512 byte block
                                         size, see "info tar")

which should do the trick.

-Wolfgang

Reply via email to