Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 1996 09:28:30 -0500
From:      Richard J Kuhns <rjk@sparcmill.grauel.com>
To:        John Fieber <jfieber@indiana.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: SCSI tape drive problem in -current
Message-ID:  <199609111428.JAA20003@sparcmill.grauel.com>
In-Reply-To: <Pine.BSI.3.95.960910095334.14433i-100000@fallout.campusview.indiana.edu>
References:  <199609101441.JAA02613@sparcmill.grauel.com> <Pine.BSI.3.95.960910095334.14433i-100000@fallout.campusview.indiana.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
John Fieber writes:
 > On Tue, 10 Sep 1996, Richard J Kuhns wrote:
 > 
 > > (bt0:6:0): "ARCHIVE VIPER 2525 25462 -007" type 1 removable SCSI 1
 > > st0(bt0:6:0): Sequential-Access density code 0x0,  drive empty
 > 
 > Just as I suspected.  See if the patch below to
 > src/sys/scsi/scsiconf.c makes your drive happy. 
 > 
 > -john
 > 
 > == jfieber@indiana.edu ===========================================
 > == http://fallout.campusview.indiana.edu/~jfieber ================
 > 
 > Index: scsiconf.c
 > ===================================================================
 > RCS file: /home/ncvs/src/sys/scsi/scsiconf.c,v
 > retrieving revision 1.63
 > diff -c -r1.63 scsiconf.c
 > *** scsiconf.c	1996/09/08 10:44:16	1.63
 > --- scsiconf.c	1996/09/10 14:52:29
 > ***************
 > *** 284,290 ****
 >   		"st", SC_ONE_LU, ST_Q_SNS_HLP|ST_Q_NO_1024, mode_tandberg4200
 >   	},
 >   	{
 > ! 		T_SEQUENTIAL, T_SEQUENTIAL, T_REMOV, "ARCHIVE", "VIPER 2525*", "-005",
 >   		"st", SC_ONE_LU, 0, mode_archive2525
 >   	},
 >   	{
 > --- 284,290 ----
 >   		"st", SC_ONE_LU, ST_Q_SNS_HLP|ST_Q_NO_1024, mode_tandberg4200
 >   	},
 >   	{
 > ! 		T_SEQUENTIAL, T_SEQUENTIAL, T_REMOV, "ARCHIVE", "VIPER 2525 *", "*",
 >   		"st", SC_ONE_LU, 0, mode_archive2525
 >   	},
 >   	{
 > 
 > 
I applied this patch, rebuilt the kernel, and rebooted (I'd left the tape
in the drive).  The probe info was

(bt0:6:0): "ARCHIVE VIPER 2525 25462 -007" type 1 removable SCSI 1d
st0(bt0:6:0): Sequential-Access density code 0x0, 1024-byte blocks, write-enabled

`mt status' said

Present Mode:   Density = QIC-320      Blocksize variable
---------available modes---------
Mode 0:         Density = 0x00         Blocksize variable
Mode 1:         Density = QIC-320      Blocksize variable
Mode 2:         Density = QIC-150      Blocksize variable
Mode 3:         Density = QIC-120      Blocksize variable

which is a major change.  At this point, the tape was still unreadable.
A couple of people had suggested setting the blocksize explicitly, so I
tried "mt blocksize 1024" -- I could then read the tape without any
problems.

So, even with the patch above, the default blocksize apparently isn't being
set to what the probe indicates.

I'll hang on to these old backups for a while longer, in case anyone wants
me to try anything else.

Thanks, everyone.
--
Richard Kuhns			rjk@grauel.com
PO Box 6249			Tel: (317)477-6000 \
100 Sawmill Road				    x319
Lafayette, IN  47903		     (800)489-4891 /




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