From owner-freebsd-questions@FreeBSD.ORG Thu May 19 15:06:10 2005 Return-Path: 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 47B0716A4CE for ; Thu, 19 May 2005 15:06:10 +0000 (GMT) Received: from mta05-winn.mailhost.ntl.com (smtpout15.mailhost.ntl.com [212.250.162.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55B6643D60 for ; Thu, 19 May 2005 15:06:04 +0000 (GMT) (envelope-from jon@witchspace.com) Received: from aamta03-winn.mailhost.ntl.com ([212.250.162.8]) by mta05-winn.mailhost.ntl.com with ESMTP <20050519150602.ZDUB23015.mta05-winn.mailhost.ntl.com@aamta03-winn.mailhost.ntl.com> for ; Thu, 19 May 2005 16:06:02 +0100 Received: from witchspace.com ([81.110.67.239]) by aamta03-winn.mailhost.ntl.com with SMTP <20050519150602.JJQB2626.aamta03-winn.mailhost.ntl.com@witchspace.com> for ; Thu, 19 May 2005 16:06:02 +0100 Received: (qmail 80423 invoked from network); 19 May 2005 15:08:06 -0000 Received: from unknown (HELO ?192.168.0.1?) (192.168.0.1) by dookie.home with SMTP; 19 May 2005 15:08:06 -0000 Message-ID: <428CAB4B.6080907@witchspace.com> Date: Thu, 19 May 2005 16:05:47 +0100 From: Jonathan Belson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Rewinding tapes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 15:06:10 -0000 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, --Jon http://www.witchspace.com