*BSD News Article 80141


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!arclight.uoregon.edu!feed1.news.erols.com!howland.erols.net!vixen.cso.uiuc.edu!sdd.hp.com!col.hp.com!cello.hpl.hp.com!hplntx!hplb!hpcpb!jocko.bri.hp.com!aslater
From: aslater@jocko.bri.hp.com (Al Slater)
Subject: Re: SCSI tape block size
Sender: news@bri.hp.com (News User)
Message-ID: <Dywpsz.BFH@bri.hp.com>
Date: Mon, 7 Oct 1996 13:07:47 GMT
Reply-To: aslater@jocko.bri.hp.com
References: <8720ffxq0j.fsf@plm.xs4all.nl>
Nntp-Posting-Host: jocko.bri.hp.com
Organization: Hewlett-Packard
X-Newsreader: TIN [version 1.2 PL2]
Lines: 23

Peter Mutsaers (plm@xs4all.nl) wrote:
: Hello,

: I made a backup on SCSI tape, but now I can't read it because I forgot
: the blocksize. Does anyone know how I can see what the blocksize on
: the tape is?

If you really want to get grubby, read back a fixed block, say 1 byte
in fixed mode, ensure it isn't going to suppress illegal length indicator,
it'll then check condition on having no read a full block's worth and the
sense data will tell you how much more you have to read (eeugh).

(more practically, what did you write it with? 512 bytes should be the
default for most things (tar/cpio unless you fiddled with B options) and
QIC type things).

You may be able to read the blocksize back by merely doing a scsi mode
sense and looking at the block descriptor -- the block length is in
bytes 5-7.

cheers,
al
(not speaking for HP..)