Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jul 95 15:12:19 -0700
From:      tony@thing.sunquest.com
To:        questions@FREEBSD.ORG
Subject:   scsi tape
Message-ID:  <9507222212.AA23501@thing.sunquest.com>

next in thread | raw e-mail | index | archive | help

OK, I've had my FreeBSD system for a week, and this is my 1st question
to the list:

I have an OSF/1 3.2 system on my desk at work, and I wrote a tape on rmt0
using a tlz07.
I brought said tlz07 back home, plug and play to get it working on the system.

However, I'm having problems reading the tape (most likely I'm just
SOL as the DAT formats differ somewhow).


I forced the tape to density 0x13 using mt, which =61000 which matches how 
OSF/1 saw the tapedrive.

FreeBSD tar reports:
st0(ncr0:3:0): BLANK CHECK req sz: 10240 (decimal) asc:30,1 Cannot read medium - unknown format

The blocksize of 10K matches how OSF/1 wrote the tape.

I've tried specifying -B20 on the FreeBSD, and kicking the tape driver into
variable block size mode. Nada.

Does anyone have any suggestions as to how I can read this tape, if at all.

------

In addition, I had problems figuring out the info on the man page.

st(4) says:
	the values for the 2 LSB of the minor devno signify
	00: remind
	01: non rewind
	02: rewoffl
	03: control

taking a look at the devices, I have:
# ls -l /dev/*rst0*
crw-r-----  2 root  operator   14,   2 Jul 21 02:41 /dev/erst0
crw-r-----  2 root  operator   14,   2 Jul 21 02:41 /dev/erst0.0
crw-r-----  1 root  operator   14,   6 Jul 21 02:41 /dev/erst0.1
crw-r-----  1 root  operator   14,  10 Jul 21 02:41 /dev/erst0.2
crw-r-----  1 root  operator   14,  14 Jul 21 02:41 /dev/erst0.3
crw-r-----  2 root  operator   14,   1 Jul 21 02:51 /dev/nrst0
crw-r-----  2 root  operator   14,   1 Jul 21 02:51 /dev/nrst0.0
crw-r-----  1 root  operator   14,   5 Jul 21 02:41 /dev/nrst0.1
crw-r-----  1 root  operator   14,   9 Jul 21 02:41 /dev/nrst0.2
crw-r-----  1 root  operator   14,  13 Jul 21 02:41 /dev/nrst0.3
crw-r--r--  2 root  operator   14,   0 Jul 21 02:42 /dev/rst0
crw-r--r--  2 root  operator   14,   0 Jul 21 02:42 /dev/rst0.0
crw-r--r--  1 root  operator   14,   4 Jul 21 02:41 /dev/rst0.1
crw-r--r--  1 root  operator   14,   8 Jul 21 02:41 /dev/rst0.2
crw-r--r--  1 root  operator   14,  12 Jul 21 02:41 /dev/rst0.3
crw-------  1 root  wheel      14, 536870912 Jul 21 02:41 /dev/rst0.ctl

I can buy nrst0 is LSBs 01 and erst0 is LSBs 02, but rst0.ctl
doesn't seem to be set up as LSBs 03.


I'm unclear on the functionality of rst0.[1-3]. Is this a density option ?

In the Files section of st(4):
     /dev/rst0.0                Mode 0, rewind on close
     /dev/nrst0.2               Mode 2, No rewind on close
     /dev/erst0.3               Mode 3, Eject on close (if capable)

This use of nrst (bits 02) and *.2 / erst (bits 03) and *.3 is confusing, 
it's making it look like .2 signifies norewind and .3 signifies rewoffl.

------

tnx

tony



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9507222212.AA23501>