From owner-freebsd-questions@FreeBSD.ORG Thu Mar 19 18:32:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6D2F106564A for ; Thu, 19 Mar 2009 18:32:10 +0000 (UTC) (envelope-from jaime@snowmoon.com) Received: from mail-qy0-f134.google.com (mail-qy0-f134.google.com [209.85.221.134]) by mx1.freebsd.org (Postfix) with ESMTP id 7C8FD8FC1A for ; Thu, 19 Mar 2009 18:32:10 +0000 (UTC) (envelope-from jaime@snowmoon.com) Received: by qyk40 with SMTP id 40so988049qyk.3 for ; Thu, 19 Mar 2009 11:32:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.45.144 with SMTP id e16mr4339914qaf.53.1237487527824; Thu, 19 Mar 2009 11:32:07 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Mar 2009 14:32:07 -0400 Message-ID: From: Jaime To: Andrew Hamilton-Wright Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Formatting a tape? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 18:32:11 -0000 On Thu, Mar 19, 2009 at 1:39 PM, Andrew Hamilton-Wright wrote: > What happens if you use dd to try and write to the tape? > > The command > dd if=/dev/zero of=/dev/sa0 count=8 > should print out: > 8+0 records in > 8+0 records out I tried this and the output was: 8+0 records in 8+0 records out 4096 bytes transferred in 0.036611 secs (111879 bytes/sec) So then I tried my backup script (which is basically a tar command) and got this on the console: (sa0:ahc0:0:6:0): Unexpected busfree in Data-out phase SEQADDR == 0x86 (sa0:ahc0:0:6:0): lost device (sa0:ahc0:0:6:0): failed to write terminating filemark(s) (sa0:ahc0:0:6:0): tape is now frozen- use an OFFLINE, REWIND, or MTEOM command to clear this state. (sa0:ahc0:0:6:0): removing device entry On the ssh terminal / standard output, I got this: tar: Write error: Input/output error Now "camcontrol devlist" doesn't show the tape drive, even though it did before. So I use "camcontrol rescan all" and it comes back. On console, it says: sa0 at ahc0 bus 0 target 6 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 160.000MB/s transfers (80.000MHz, offset 96, 16 bit) So then I try: mt -f /dev/sa0 rewind mt: /dev/sa0: Device not configured atlas:jkikpole>camcontrol devlist at scbus0 target 0 lun 0 (pass0) at scbus0 target 1 lun 0 (pass1) at scbus0 target 2 lun 0 (pass2) at scbus1 target 0 lun 0 (da0,pass3) WTF? Its gone again. On console, I get: (sa0:ahc0:0:6:0): lost device (sa0:ahc0:0:6:0): removing device entry I'm going to tinker some more and see if I can get this drive working again. I'll also try another tape. (Its worth noting that I DID manage to get a tape working thanks to mt -f /dev/sa0 fsf 1 && mt -f /dev/sa0 rewind.) More info later. Thanks for the help Jaime