From owner-freebsd-questions@FreeBSD.ORG Fri Nov 2 06:35:17 2007 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 5F80216A419 for ; Fri, 2 Nov 2007 06:35:17 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id 27ED113C4A7 for ; Fri, 2 Nov 2007 06:35:16 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from TEDSDESK (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.13.8/8.13.8) with SMTP id lA26YVcZ094771; Thu, 1 Nov 2007 23:34:33 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: , Date: Thu, 1 Nov 2007 22:35:43 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 In-Reply-To: <472A2498.2050309@dreamchaser.org> Importance: Normal Cc: Subject: RE: skip bad block in QIC-150 tar 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: Fri, 02 Nov 2007 06:35:17 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of > freebsd@dreamchaser.org > Sent: Thursday, November 01, 2007 11:10 AM > To: freebsd-questions@freebsd.org > Subject: skip bad block in QIC-150 tar > > > I'm trying to recover some files from a 5 yr old tar on a QIC-150 tape. > > Unfortunately, there's a bad block on the tape; > tar barfs and quits when it gets to it: > tar: Unrecognized archive format: Inappropriate file type or format > > I managed to get a complete directory listing using tar t on my first > attempt, before the tape became unreadable; it had to work at it but > apparently managed to eventually get the block read. > > I've cleaned the tape and retried multiple times, to no avail. > > I've tried omitting the directory containing the bad block, > but that hasn't prevented it from terminating. > > Anyone know a way to get around this? > Untar from the non-rewinding device. When it hits the bad spot and aborts, just rerun tar again - it will start up the tape and forward it looking for the end of file mark that signifies the end of the current file and the beginning of the next. You may need to rerun it a couple times to get past the bad section. You can also use the "mt fsf" command to bump it forward. Ted