Subject: Re: mt: how many files on tape?
To: NetBSD Users <netbsd-users@NetBSD.org>
From: Aaron J. Grier <agrier@poofygoof.com>
List: netbsd-users
Date: 08/22/2004 21:41:46
On Sat, Aug 21, 2004 at 12:46:32AM -0400, Louis Guillaume wrote:

> I've tried to: mt eom , mt bsf 2, mt fsf 1. Now I should be at the last
> file on the tape, right?  but
> 
> # mt rewind
> # mt eom
> # mt status
> SCSI tape drive, residual=0
> ds=3<Mounted>
> er=0
> blocksize: 0 (0, 0, 0, 0)
> density: 19 (0, 0, 0, 0)
> current file number: -1
> current block number: -1

try adding -f /nrst0 to the mt operations, or export TAPE=/dev/nrst0.

the standard /dev/rst0 rewinds between operations.

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier@poofygoof.com
  "someday the industry will have throbbing frontal lobes and will be able
  to write provably correct software.  also, I want a pony." -- Zach Brown