From owner-freebsd-hackers@FreeBSD.ORG Thu May 16 23:56:15 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 82B521EA for ; Thu, 16 May 2013 23:56:15 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-ve0-x231.google.com (mail-ve0-x231.google.com [IPv6:2607:f8b0:400c:c01::231]) by mx1.freebsd.org (Postfix) with ESMTP id 457C87A6 for ; Thu, 16 May 2013 23:56:15 +0000 (UTC) Received: by mail-ve0-f177.google.com with SMTP id ox1so3478486veb.22 for ; Thu, 16 May 2013 16:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=0SvcP5lluUhoLTNEZtIES7/8kcchcfiNQrI+f165//Y=; b=oJGSTyBDj8yt/VppqdhjQ8h6eXnhBst4EIsemJp6f3nge3FLoObw0E/MW+USB34L4b Kvd70+Fsl/kMfrt+kYjSz4OOoV0GTPwwDvH55dIWM7/C8QlUaouA9K4fuQYtHxoWPRwA uyYzuqQA4eF54BRPMC58aZGFMwpSeEPYv/Nmm2PyB/K4eWDJmcD9EchdhRqHlpZli7V1 yzQgktZF42PAMiHVOJlcjxqOmgpYrqzyIrluYnfGSEfMLD2opBnr5j4+dgS1xFZwvqDK VSGSkQX659LtHt62iZTZYJGRFa9r1PDOglQ8mB6vW0iCr82vCb7ZzlsXA8bqOgK10MdH 1b0A== MIME-Version: 1.0 X-Received: by 10.52.114.135 with SMTP id jg7mr24555892vdb.78.1368748574544; Thu, 16 May 2013 16:56:14 -0700 (PDT) Received: by 10.220.23.143 with HTTP; Thu, 16 May 2013 16:56:14 -0700 (PDT) In-Reply-To: <0D672BB1-1928-4F7A-BF72-CA7EE15D0563@gid.co.uk> References: <0D672BB1-1928-4F7A-BF72-CA7EE15D0563@gid.co.uk> Date: Thu, 16 May 2013 19:56:14 -0400 Message-ID: Subject: Re: tape (sa0) on sparc64 ? From: Zaphod Beeblebrox To: Bob Bishop Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 May 2013 23:56:15 -0000 On Thu, May 16, 2013 at 5:08 PM, Bob Bishop wrote: > Hi, > > On 16 May 2013, at 21:51, Zaphod Beeblebrox wrote: > > > I have to retrieve some very old backups. They were made on FreeBSD and > > are on tape... specifically DDS4. [etc] > > 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 > --- > > narrowing down the block size logically comes after making the tape go. > > > Try bs=64k > Same result. Besides, as far as I understand, the proper operation (if the blocksize is too small) is to read the first $n bytes and then write them to the output.. But same result.