Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2013 10:10:36 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Zaphod Beeblebrox <zbeeble@gmail.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: tape (sa0) on sparc64 ?
Message-ID:  <alpine.BSF.2.00.1305171009070.58048@wojtek.tensor.gdynia.pl>
In-Reply-To: <CACpH0Mcass3ONxhFw5mRrQ1K931gxaxBZgo45_%2BynLrrbm4DUw@mail.gmail.com>
References:  <CACpH0Mcass3ONxhFw5mRrQ1K931gxaxBZgo45_%2BynLrrbm4DUw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 1:        0x26:DDS-4           variable       97000    DCLZ
> 2:        0x26:DDS-4           variable       97000    DCLZ
> 3:        0x26:DDS-4           variable       97000    DCLZ
> ---------------------------------
> Current Driver State: at rest.
> ---------------------------------
> File Number: 0  Record Number: 0        Residual Count 0

all fine.

>
> However, attached to either controller (after a reboot of the machine and a
> powercycle of the drive), I get:
>
> [1:25:325]root@run:/home/foo> dd if=/dev/sa0  of=tape5
> dd: /dev/sa0: Input/output error
> 0+0 records in
> 0+0 records out
> 0 bytes transferred in 0.002930 secs (0 bytes/sec)
>
> ... which is a return code of '1' and no messages on the console...
>
> I have, before you ask, tried "bs=10k" and 20k ... but I believe this
> command should run by itself fetching the first 512 bytes of each block ---

wrong. you have to specify proper block size or multiple of it.

if you don't remember block size just try.

I am not sure (not used tape for a long) but requesting larger block that 
is available should work too.

if you used dump(8) then block size is most probably 32kB.

try restore(8) or tar.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1305171009070.58048>