From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7256dcb20dc4ebcd X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-03-10 00:07:38 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!yale.edu!nigel.msen.com!sdd.hp.com!math.ohio-state.edu!howland.reston.ans.net!pipex!sunic!kidec.cmb.ki.se!calypso.kib.ki.se!user From: Ulf@argo.kib.ki.se (Ulf Kronman) Subject: SUMMARY: Access to ejected CD-disk dumps kernel Message-ID: Followup-To: comp.unix.osf.osf1 Sender: news@kidec.cmb.ki.se (USENET News System) Nntp-Posting-Host: calypso.kib.ki.se Organization: Library of Karolinska Institute, Stockholm, Sweden References: <2llcnu$1iii@thebes.cc.waikato.ac.nz> Date: Thu, 10 Mar 1994 08:07:38 GMT 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 This is one of the hairy parts of osf 1.3. Should be fixed in OSF 2.0 "Dr. Tom Blinn, 603-881-0646" 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 _____________________________________________________________________