
			CDBLKSIZE.EXE
			=============

Copyright:
==========

Copyright (c) 1993, Juergen Keil, Tools GmbH, Bonn

This programme may be freely redistributed, but this entire copyright
notice MUST remain intact.


Description:
============

This is a short utility to set the logical blocksize used by a SCSI
cdrom drive.  I have used this programme to help connecting a SunCD
drive (that's a Sony CDU-8012 with 512 bytes / logical block) to a PC
using an adaptec SCSI host adapter.  The programme requires an
installed ASPI driver to send SCSI commands to the CDROM drive.
The logical blocksize is programmed using a SCSI MODE SELECT command and
is in effect until

 - a SCSI bus reset occurs
 - the CDROM drive is power cycled
 - another MODE SELECT programmes another block size

at which point you might have to rerun this programme.

USAGE:
======

cdblksize [-a SCSI_ha_num] [-t target] [-l lun] [blksize]

-a SCSI_ha_num

This is the host adaptor number of the SCSI bus to which the cdrom is
connected.  This option is required only, if you have more that one
Adaptec HA card in you PC.  Commands go to adapter #0 if this option
is missing.

-t target

This is the CDROM drive's target id on the SCSI bus. Since this
utility is indended for a SunCD drive connected to a PC and Sun likes
CDROM drives connected as target 6, I've made target 6 the default,
if this option is missing.

-l lun

This can be used to set the LUN that is affected by this programme.
LUN #0 is the default.

blksize

This is the blksize that will be configured. If the blksize argument is
missing, 2048 bytes/logical block is assumed.  Blksize should be a power
of 2 (the SunCD understands 256, 512, 1024 and 2048 bytes/block).


Place a command like 'cdblksize -t 6 2048' into autoexec.bat just after
loading MSCDEX.


		Juergen Keil
		Tools GmbH
		Adolfstrasse 5
		W-5300 Bonn 1
		(53111 Bonn  after July, 1st)

		EMail: jk@tools.de
		Tel: +49 228 985800
