From owner-freebsd-questions Fri Oct 10 07:44:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA16783 for questions-outgoing; Fri, 10 Oct 1997 07:44:33 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from horton.iaces.com (proot@horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA16778 for ; Fri, 10 Oct 1997 07:44:29 -0700 (PDT) (envelope-from proot@horton.iaces.com) Received: (from proot@localhost) by horton.iaces.com (8.8.5/8.8.5) id JAA04060; Fri, 10 Oct 1997 09:43:43 -0500 (CDT) From: "Paul T. Root" Message-Id: <199710101443.JAA04060@horton.iaces.com> Subject: Re: questio To: jacques@wired.ctech.ac.za (Jacques Hugo) Date: Fri, 10 Oct 1997 09:43:43 -0500 (CDT) Cc: questions@FreeBSD.ORG In-Reply-To: <343E3294.3F54BC7E@wired.ctech.ac.za> from Jacques Hugo at "Oct 10, 97 03:50:12 pm" X-Organization: !nterprise Networking Services - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In a previous message, Jacques Hugo said: > Hi there ... > > I've got a SCSI tape drive in my box ... and have a question. > > Why when you check dmesg, the tape gets probed as st0. > I deducted that this is SCSI TAPE #1. But when you > tar or dump some filesystem, you must use /dev/nrst0. > Where does the nr come from. r is raw device. You want to talk to the character device when that device is a tape. n is the no-rewind option. So you can put more than one file on the tape. > Also, after you have tar -czvf /dev/nrsto /usr/local/httpd > (as an examole), it runs fine. > But how do you untar the files from the tape. xzvf doesn't > do it for me. And how can you list what is on the tape. > Like tar -tzvf ??? Those are the right commands. But I'm guessing that since you put the stuff on the tape with no-rewind, you are at the end of the file on the tape. If you are only putting one tar onto the tape, don't use n. If you want more than one. use n and read the man page for mt, it is your friend. mt -f /dev/nrst0 fsf 1 # move forward one file mt -f /dev/rst0 rewind mt -f /dev/rst0 offline # rewind and eject Paul. -- If you were to probe inside the guy psyche, beneath that macho exterior and the endless droning about things like the 1978 World Series, you would find, deep down inside, a passionate heartfelt interest in: the 1978 World Series. Yes. The truth is, guys don't have any sensitive innermost thoughts and feelings. It's time you women knew! --Dave Barry