From owner-freebsd-questions@FreeBSD.ORG Sun Jun 12 09:17:24 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BD5816A41C for ; Sun, 12 Jun 2005 09:17:24 +0000 (GMT) (envelope-from freebsd@nagilum.org) Received: from p15140542.pureserver.info (papendorf-se.de [217.160.222.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E5C643D4C for ; Sun, 12 Jun 2005 09:17:23 +0000 (GMT) (envelope-from freebsd@nagilum.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by p15140542.pureserver.info (Postfix) with ESMTP id 8349E2F4119; Sun, 12 Jun 2005 11:17:21 +0200 (CEST) Received: from p15140542.pureserver.info ([127.0.0.1]) by localhost (p15140542 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09619-04; Sun, 12 Jun 2005 11:17:18 +0200 (CEST) Received: from cakebox.homeunix.net (Fd1e8.f.strato-dslnet.de [195.4.209.232]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by p15140542.pureserver.info (Postfix) with ESMTP id AC5F72F40FE; Sun, 12 Jun 2005 11:17:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cakebox.homeunix.net (Postfix) with ESMTP id 24320302A24; Sun, 12 Jun 2005 11:17:10 +0200 (CEST) Received: from cakebox.homeunix.net ([127.0.0.1]) by localhost (cakebox.tis [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 58022-05; Sun, 12 Jun 2005 11:17:00 +0200 (CEST) Received: from [10.1.1.4] (unknown [10.1.1.4]) by cakebox.homeunix.net (Postfix) with ESMTP id 38DD1302912; Sun, 12 Jun 2005 11:16:57 +0200 (CEST) Message-ID: <42ABFD8A.3000107@nagilum.org> Date: Sun, 12 Jun 2005 11:16:58 +0200 From: Nagilum User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jonathan Belson References: <428CAB4B.6080907@witchspace.com> In-Reply-To: <428CAB4B.6080907@witchspace.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at cakebox.homeunix.net X-Virus-Scanned: amavisd-new at papendorf-se.de Cc: freebsd-questions@freebsd.org Subject: Re: Rewinding tapes 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: Sun, 12 Jun 2005 09:17:24 -0000 Jonathan Belson wrote: > Hiya > > I've written a small script that backs up data to a tape, rewinds it, > then reads back the data that was stored as a test. > > The problem I've run into is that 'mt rewind' is asynchronous, and > subsequent tape operations will fail until the rewind operation has > finished. > > Is there a way to find out when the tape has finished rewinding, or at > least to rewind synchronously? The drive is an ATA Seagate STT2401A. > > Cheers, Hi Jon, How about simply accessing the rewinding version of the device? (e.g. /dev/st0 instead of /dev/nst0) Kind regards, Alex.