From owner-freebsd-questions Fri Feb 2 12:13: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 9ECE237B401 for ; Fri, 2 Feb 2001 12:12:51 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.1/8.11.1) id f12KCfO17966; Fri, 2 Feb 2001 14:12:41 -0600 (CST) (envelope-from dan) Date: Fri, 2 Feb 2001 14:12:41 -0600 From: Dan Nelson To: Murray Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to mount a tape drive? Message-ID: <20010202141241.A20020@dan.emsphone.com> References: <20010202130432.A357@converging.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i In-Reply-To: <20010202130432.A357@converging.net>; from "Murray" on Fri Feb 2 13:04:32 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Feb 02), Murray said: > I came to work today and found a series of errors on the console > related to the tape drive. The messages referred to device sa0 (my > drive) and ncr0 (the scsi controller). The drive is a HP-T20. I have > a script that runs everyday and which sends a log to my email > account. The log said: tar can't write to /dev/rsa0: Input/output > error. The console display also said that I had to use OFFLINE, > REWIND, OR MTEOM to bring sa0 back on line. > > I simply would like to look at the contents of the tape drive to see > if the tape backup worked. In addition, can you send commands to the > tape drive to determine that it is functioning properly. > > I tried to mount the tape using: mount /dev/rsa0 /tape and I received > the error: mount: Block device required. If I used sa0 instead of > rsa0, I received the error: no such file or directory. I created a > tape directory at root. Tapes don't have filesystems, so you can't mount them. If you did a tar backup, run "tar tvf /dev/rsa0". If you did a dump, try "restore tvf /dev/rsa0". If it's a 3rd-party backup, use their verify program or run "tcopy /dev/rsa0" which will just print how much data is on the tape. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message