From owner-freebsd-questions Mon Aug 10 22:22:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA09734 for freebsd-questions-outgoing; Mon, 10 Aug 1998 22:22:18 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA09712 for ; Mon, 10 Aug 1998 22:22:13 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id OAA12569; Tue, 11 Aug 1998 14:51:49 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id OAA21651; Tue, 11 Aug 1998 14:51:47 +0930 (CST) Message-ID: <19980811145147.S20188@freebie.lemis.com> Date: Tue, 11 Aug 1998 14:51:47 +0930 From: Greg Lehey To: Chuck Robey Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: WangDat 3100 SCSI tape References: <19980811140316.R20188@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Chuck Robey on Tue, Aug 11, 1998 at 12:13:30AM -0400 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 11 August 1998 at 0:13:30 -0400, Chuck Robey wrote: > > On Tue, 11 Aug 1998, Greg Lehey wrote: > >>> I got a new tape, to make sure that wasn't the problem. I have the >>> density set to "X3B5/88-185A", Blocksize variable. I tried to tar my >>> home directory onto it, which has more than 100M now. I get about 20 >>> files into that, I get to a leftover kernel, and: >>> >>> .. >>> .. >>> chuckr/.login >>> chuckr/.addressbook.lu >>> chuckr/kernel >>> tar: can't write to /dev/rst0 : Input/output error >> >> This should have been accompanied by a message on the console. Check >> /var/log/messages to see it again. > > Here's the log message: > > Aug 11 00:18:09 moon st0: MEDIUM ERROR info:0x5f000 asc:c,0 Write error > sks:80,1 > Aug 11 00:18:09 moon st0: MEDIUM ERROR info:0x1 asc:c,0 Write error > > The same error seems to occur every time, even though the tape was > changed out (twice). This can also happen as the result of dirty heads or faulty electronics--in my experience, at least as often as with bad tapes. Is the drive new? If not, have you cleaned the head? >> The fact that it listed the files doesn't mean that they got written. >> tar first blocks them, and then tries to write the blocks to tape. >> >>> I'm doing this as root. I chose the density not because of the >>> name, but because it numerically matched the density called out in >>> the drive specification (I located that and downloaded it). >> >> Does it make any difference? What happens if you don't set a density >> at all? > > I've set the density on /dev/st0ctl.0, to serve as a default on rst0. I > don't set density in the tar command (I don't think I can). I've tried > blocksizes of variable, 512, and 8192, and a couple different densities. > Seeing as how the densities and blocksizes are defaulting, I don't see > what "What happens if you don't set a density at all" could mean to me. > > I use as tar command "tar cvfb chuckr b #" (#=blocksize, or omitted for > variable size blocks). chuckr is my home dir. Looks reasonable, though I've given up specifying a block size. But that wouldn't be causing the problem you're seeing. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message