home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!crdgw1!rpi!gatech!swrinde!cs.utexas.edu!usc!sdd.hp.com!hpscit.sc.hp.com!hplextra!otter.hpl.hp.com!hpltoad!hpopd!hpcpbla!mark
- From: mark@hpcpbla.bri.hp.com (Mark Simms)
- Newsgroups: comp.periphs.scsi
- Subject: Re: HP/Sun DAT compatibility
- Message-ID: <9850059@hpcpbla.bri.hp.com>
- Date: 27 Jan 93 16:12:43 GMT
- References: <1993Jan13.210947.27896@netcom.com>
- Organization: HP Computer Peripherals Bristol, UK
- Lines: 50
-
- >> I have a WangDAT drive attached to a Sun and in another office there's
- >> an HP DAT drive attached to an HP-9000/730. The drive on the Sun will
- >> read the tapes it wrote, but not the HP tapes. I haven't been able to
- >> try the other direction. Anyway, I'm using tar to read/write the
- >> tapes, and when I try reading an HP tape on the Sun it gets the first
- >> directory entry then dies with 'tar: read error: Invalid argument'.
- >> (tar gives one other message before it gets the first directory entry:
- >> 'tar: blocksize=1').
-
- I have a suspicion that this might be an incompatibility relating to
- the HP and Sun tape drivers rather than the DAT drives themselves. HP
- systems tend to write with large block sizes and Sun ones with small
- block sizes. When the Sun system attempts to read the tape written on
- the HP system, it gets the first 512 bytes and then falls over with an
- illegal length record. This would explain why you get the first
- directory entry.
-
- The only way to overcome this that I know of is to write all
- interchange tapes with 512 byte blocks. I think this is the default
- on the Sun. The HP can be made to write such tapes using one of the
- commands that follow:
-
- tar cvb 1 files
- tar cvf - files | dd of=/dev/rmt/0mn bs=512
-
- This causes tar to write the tape in 512 byte blocks which should then
- be readable on the Sun. It will also be much slower than using the
- default block size of 10k.
-
- You may be able to read a standard HP tape with 10k records by
- specifying a blocking factor of 20 on the Sun. This would be a better
- approach, but I do not know if it will work. This would require one
- of the following commands:
-
- tar xvb 1 files
- dd if=/dev/rmt/0mn bs=10k | tar cvf - files
-
- Hope this helps.
-
- Mark Simms
-
- ----------------------------------------------------------------------
- Opinions expressed are my own and are not intended to be an official
- statement by Hewlett-Packard Company
- ----------------------------------------------------------------------
- Name: Mark Simms
- Profession: Software Engineer
- Organization: Hewlett-Packard Computer Peripherals Division
- Unix-mail: mark@hpcpbla.bri.hp.com
- ----------------------------------------------------------------------
-