From owner-freebsd-questions Sun Apr 14 23:33:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by hub.freebsd.org (Postfix) with ESMTP id C8CF237B405 for ; Sun, 14 Apr 2002 23:33:34 -0700 (PDT) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 32E6428BD2; Mon, 15 Apr 2002 02:33:34 -0400 (EDT) Date: Mon, 15 Apr 2002 02:33:34 -0400 (EDT) From: Peter Leftwich X-X-Sender: To: "Justin L. Boss" Cc: FreeBSD Questions Subject: Re: backup to /dev/ast0 get Input/output error In-Reply-To: <3CBA673B.2030600@yahoo.com> Message-ID: <20020415022633.D89105-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 15 Apr 2002, JustinL. Boss wrote: > This is probably something simple but I can't figure it out. The tape seams to be working when using mt but when I use tar I get: > mt -f /dev/ast0 status .. I am not very familiar with the "mt" command but have a feeling about what "seams" [sic] to be the problem :) > Mode Density Blocksize bpi Compression > Current: 0x01:X3.22-1983 512 bytes 800 none > ---------available modes--------- > 0: default variable 0 none > 1: default variable 0 none > 2: default variable 0 none > 3: default variable 0 none > --------------------------------- > File Number: 0 Record Number: 0 Residual Count 0 > > tar -zpcf /dev/ast0 /home From what I learned recently about the "tar" command, the file name you are writing out to (using the 'c' flag) is required right after this flag. Maybe try the command without the -c and instead use "-r" or "--append?" > tar: Removing leading / from absolute path names in the archive. I think if you use the "-z" flag, then somewhere in your command line you are required to specify a filename, for example "slash_home.tgz" > tar (child): can't write to /dev/ast0 : Input/output error > Thanks for your help. Well, the "mt -f" seemed to give you the go-ahead with this device. Are there any oddities reported by `dmesg -a` by the way? Hopefully the list can explain to us who "tar" had a "[love]child" with. *grin* -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message