[comp.sys.hp] HP C2292A DAT on HP9000/375...

heldt@ece.wsu.edu (Tim Heldt) (07/29/90)

I cannot write to my DAT...  What major number is required.  There is no
information available in any of the manuals I have received this far.
It is on the SCSI interface.  I have a call into support but have not
heard from them yet.

Any ideas would be greatly appreciated.

  +-------------------------------------------------+
  | Tim Heldt             heldt@ece.wsu.edu         |
  | Systems Programmer    uunet!ece.wsu.edu!heldt   |
  |                                                 |
  | Electrical & Computer Engineering Department    |
  | Washington State University                     |
  | Pullman, WA  99164-2752                         |
  | (509) 335-6887                                  |
  +-------------------------------------------------+

stevej@hpcpbla.HP.COM (Steve Jerman) (07/30/90)

/ hpcpbla:comp.sys.hp / heldt@ece.wsu.edu (Tim Heldt) /  9:44 pm  Jul 28, 1990 /

>I cannot write to my DAT...  What major number is required.  There is no
>information available in any of the manuals I have received this far.
>It is on the SCSI interface.  I have a call into support but have not
>heard from them yet.
>
>Any ideas would be greatly appreciated.

Hi Tim,

  There is an application note for the DDS drive which I'm sure your
  support people can get for you, otherwise mail me and I'll get one
  sent to you. 

  In the mean time here are the major/minor numbers:

crw-rw-rw-   1 root     sys       54 0x0e0102 Jul 23 10:22 /dev/rmt/1
crw-rw-rw-   1 root     sys       54 0x0e0103 Jul 23 10:22 /dev/rmt/1.norew
crw-rw-rw-   1 root     sys       54 0x0e0202 Jul 26 08:29 /dev/rmt/2
crw-rw-rw-   1 root     sys       54 0x0e0203 Jul 26 08:29 /dev/rmt/2.norew
crw-rw-rw-   1 root     sys       54 0x0e0302 Jul 30 13:45 /dev/rmt/3
crw-rw-rw-   1 root     sys       54 0x0e0303 Jul 27 17:14 /dev/rmt/3.norew
crw-rw-rw-   1 root     sys       54 0x0e0402 Jul 26 08:30 /dev/rmt/4
crw-rw-rw-   1 root     sys       54 0x0e0403 Jul 26 08:31 /dev/rmt/4.norew
crw-rw-rw-   1 root     sys       54 0x0e0502 Jul 30 12:06 /dev/rmt/5
crw-rw-rw-   1 root     sys       54 0x0e0503 Jul 27 17:14 /dev/rmt/5.norew
crw-rw-rw-   1 root     sys       54 0x0e0602 Jul 27 11:01 /dev/rmt/6
crw-rw-rw-   1 root     sys       54 0x0e0603 Jul 26 08:31 /dev/rmt/6.norew

 major - 54 

 minor -

   top byte - select code 
   middle byte - SCSI ID
   low byte 
    bit 0 - set: no rewind on close
    bit 1 - set: Berkley style clear: ATT style

  Hope this gets you going

Steve
Steve Jerman
Hewlett Packard
Computer Peripherals Bristol

Address:	     Email:
  Filton Road		stevej@hpcpbla
  Stoke Gifford
  Bristol
  BS12 6QZ
  UK

munir@hpfcmgw.HP.COM (Munir Mallal) (07/31/90)

>I cannot write to my DAT...  What major number is required.  There is no
>information available in any of the manuals I have received this far.
>It is on the SCSI interface.  I have a call into support but have not
>heard from them yet.
>

Make sure that you have the scsitape driver in your kernel (SAM can add
it for you).  A quick check of /etc/master indicates tha the major
number should be 54.  The minor number is similar to a 9-track drive. 
I use:

crw-rw-rw-   1 root     other     54 0x0e0102 Jul 27 15:02 /dev/dat
crw-rw-rw-   1 root     other     54 0x0e0103 Jul 27 17:14 /dev/dat.norew

Munir Mallal

Disclaimer:  I don't have the documentation either.  The above is
	     empirical data and may not represent fact.  It is not
	     endorsed by my employer.

linas@hparc0.HP.COM (Linas Petras) (07/31/90)

I had the same problem. It appears that somehow the info missed the 7.0
release package.

In my case the minor number was the problem. The major number is found in
the /etc/masters file. Anyhow, the two line below should get you going.

crw-rw-rw-   1 root     sys       54 0x0e0502 Jul 30 19:07 /dev/rmt/0m
crw-rw-rw-   1 root     sys       54 0x0e0503 Jul 30 19:06 /dev/rmt/0mn

The format for the minor number is standard HP conventions, that is the
first 2 digits correspond to the SC of the interface card, the second 2
digits correspond to the SCSI unit address, and the last two digits are
device specific ( which I can't remember right now) but I think are as
follows:

	LSByte of Minor #

	Bit 0		immediate report mode on/off 
	Bit 1		berkeley style rewind on/off 
	Bit 2		at&t style rewind on/off

If you use the above names, you can check that the tape works but firstly
loading a tape (wait till the lights stop flashing) then issue the follow-
ing and it should unload the tape.

	mt offl

To see if you can read from the tape (ie you have the right address) try the
following:

	od -x < /dev/rmt/0m | more

To do something useful try the following:


	cd /
	find . -print | cpio -ocdumvB > /dev/rmt/0m

If you use some other naming convention check the mt (1) man page on how
to specify a different dev file.

PS
The first entry above WILL rewind the tape when you have finished accessing
it, whereas the second entry WILL NOT rewind the tape. 


Linas Petras				_            +------------------------+
Hewlett-Packard Australia              ___   _-      |                        |
Phone: +61 3 895 2744                _- . -__-.-     |   This space to rent.  |
UUCP: ...!hpausla!hpuarca!linas  __--. . . . . .-    |   (Economical rates..) |
Internet: linas@hparc0.HP.COM   - . Australasian. -  |                        |
ACSnet: linas@hpuarca.hp.oz    - . . .Response . . - +------------------------+
DESK: Linas PETRAS/HP9061/MA   -. . . .Centre . . ._
Snail: 31-41 Joseph St,         -_ ._------_ . . ._  Customer
       Blackburn, VIC 3130,       --        -_.X_-  Escalation
       AUSTRALIA.                             -- \... Centre