Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Ulf@argo.kib.ki.se (Ulf Kronman)
Subject: SUMMARY: Access to ejected CD-disk dumps kernel
Date: Thu, 10 Mar 1994 08:07:38 GMT	[thread overview]
Message-ID: <Ulf-100394090738@calypso.kib.ki.se> (raw)
In-Reply-To: 2llcnu$1iii@thebes.cc.waikato.ac.nz

Here are the answers I got to the same posting to the osf-managers mailing
list:

QUESTION:
I have mounted a SCSI-conncted ISO 9660 CR-ROM and exported it with NFS.
If I eject the CD without first doing umount and then tries to access the
CD, or a client PC tries to access it, the kernel dumps core and the system
reboots. I wonder if there is any way to tell OSF that the CD is a
_removable_ disk and make it ask the operator to load the disk if someone
tries to access the filesystem while the disk is ejected?

ANSWERS:

1. Wait for OSF1 v2.0 or get a patch
   ---------------------------------
Bill Broadley <broadley@neurocog.lrdc.pitt.edu>
This is one of the hairy parts of osf 1.3. Should be fixed in OSF 2.0

"Dr. Tom Blinn, 603-881-0646" <tpb@zk3.dec.com>
The problem you are describing is a known problem.  It is fixed in DEC
OSF/1 V2.0 which will be available next month.  In the meantime, I believe
it is one of the problems that can be fixed by the available patches to
V1.3/a/b which you should be able to obtain from your Digital customer
support center.  I believe the net effect of the patch is to disable the
ejection of a mounted CD, so you have to umount it to eject it; but I could
be mistaken, and you will get a good description of the fix with the patch.

cahill@atm.ox.ac.uk
When we ran OSF/1 v. 1.2, it wouldn't *let* us remove the CD without
unmounting it. Then we updated to v. 1.3, and suddenly it did let us,
except that if we tried to unmount it after removing it, *any* attempt to
access it (e.g. ls -l / ) locked up as an "uninterruptable sleeping
process" until we rebooted (manually).

2. Lock the disk in the drive
   --------------------------
das@mda.ca (Darcy Semeniuk)
The way that I got around it was to change 1 parameter in one of the system
.c files so that the CD couldn't be ejected unles it was unmounted already.
(I think that I changed NO_OPT_CMDS to SZ_PREV_ALLOW on line 3038 (RRD42
entry) of /usr/sys/data/cam_data.c) 

adley@mprgate.mpr.ca (Robert Adley)
You need to change the file /sys/data/cam_data.c to prevent the CD from
being ejected while it is mounted.
In section :
/* RRD42 */
{"DEC     RRD42", 13, DEV_RRD42, (ALL_DTYPE_RODIRECT << DTYPE_SHFT) ,
  (struct pt_info *)ccmn_rrd40_sizes, 512, DEC_MAX_REC, NO_DENS_TAB,
NO_MODE_TAB, 
(SZ_NOSYNC | SZ_REORDER),
  NO_OPT_CMDS, SZ_READY_DEF, SZ_NO_QUE, DD_REQSNS_VAL | DD_INQ_VAL,
  36, 64
},
change the line :
NO_OPT_CMDS, SZ_READY_DEF, SZ_NO_QUE, DD_REQSNS_VAL | DD_INQ_VAL,
to :
SZ_PREV_ALLOW, SZ_READY_DEF, SZ_NO_QUE, DD_REQSNS_VAL | DD_INQ_VAL,

Thanks to all who responded

- But my question about the possibility to get an operator message to load
the requested disk still stands unanswered. Is this not at all a feature in
unix? (In VMS it comes automatically: "Please load...")
_____________________________________________________________________
Ulf Kronman                    Systems Engineer      
KIBIC                          Voice:    +46 8 7286846
Box 200                        Fax:      +46 8 301739
S-171 77 Stockholm, SWEDEN     Internet: Ulf.Kronman@kib.ki.se
_____________________________________________________________________


  reply	other threads:[~1994-03-10  8:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-28 16:27 Access to ejected CD-disk dumps kernel Ulf Kronman
1994-03-07 10:00 ` Anthony Baxter
1994-03-09 20:49   ` Hamish Marson
1994-03-10  8:07     ` Ulf Kronman [this message]
1994-03-10 16:26     ` Darcy Semeniuk
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox