Sponsored Content
Full Discussion: Trying to eject cdrom
Operating Systems Solaris Trying to eject cdrom Post 302566115 by agarcia19 on Wednesday 19th of October 2011 01:15:32 PM
Old 10-19-2011
Trying to eject cdrom

The green cdrom light is blinking on our Sun Solaris server. I tried the eject command to eject cdrom:
Code:
eject cdrom
cdrom: No such file or directory
bash-2.05# eject
No default media available
bash-2.05# eject cdrom0
cdrom0: No such file or directory
 
The message log file shows:
 
Oct 19 10:11:38 sdbb-prod scsi: [ID 107833 kern.warning] WARNING: /pci@1e,600000/ide@d/sd@0,0 (sd30):
Oct 19 10:11:38 sdbb-prod       Error for Command: read(10)                Error Level: Retryable
Oct 19 10:11:38 sdbb-prod scsi: [ID 107833 kern.notice]         Requested Block: 16                        Erro
r Block: 16
Oct 19 10:11:38 sdbb-prod scsi: [ID 107833 kern.notice]         Vendor: TEAC                               Seri
al Number:
Oct 19 10:11:38 sdbb-prod scsi: [ID 107833 kern.notice]         Sense Key: Not Ready
Oct 19 10:11:38 sdbb-prod scsi: [ID 107833 kern.notice]         ASC: 0x53 (media load or eject failed), ASCQ: 0
x0, FRU: 0x0
Oct 19 10:11:43 sdbb-prod scsi: [ID 107833 kern.warning] WARNING: /pci@1e,600000/ide@d/sd@0,0 (sd30):
Oct 19 10:11:43 sdbb-prod       Error for Command: read(10)                Error Level: Retryable
Oct 19 10:11:43 sdbb-prod scsi: [ID 107833 kern.notice]         Requested Block: 16                        Erro
r Block: 16
Oct 19 10:11:43 sdbb-prod scsi: [ID 107833 kern.notice]         Vendor: TEAC                               Seri
al Number:
Oct 19 10:11:43 sdbb-prod scsi: [ID 107833 kern.notice]         Sense Key: Not Ready
Oct 19 10:11:43 sdbb-prod scsi: [ID 107833 kern.notice]         ASC: 0x53 (media load or eject failed), ASCQ: 0
x0, FRU: 0x0
Oct 19 10:11:48 sdbb-prod scsi: [ID 107833 kern.warning] WARNING: /pci@1e,600000/ide@d/sd@0,0 (sd30):
Oct 19 10:11:48 sdbb-prod       Error for Command: read(10)                Error Level: Retryable
Oct 19 10:11:48 sdbb-prod scsi: [ID 107833 kern.notice]         Requested Block: 16                        Erro
r Block: 16
Oct 19 10:11:48 sdbb-prod scsi: [ID 107833 kern.notice]         Vendor: TEAC                               Seri
al Number:
Oct 19 10:11:48 sdbb-prod scsi: [ID 107833 kern.notice]         Sense Key: Not Ready
Oct 19 10:11:48 sdbb-prod scsi: [ID 107833 kern.notice]         ASC: 0x53 (media load or eject failed), ASCQ: 0
x0, FRU: 0x0
Oct 19 10:11:53 sdbb-prod scsi: [ID 107833 kern.warning] WARNING: /pci@1e,600000/ide@d/sd@0,0 (sd30):
Oct 19 10:11:53 sdbb-prod       Error for Command: read(10)                Error Level: Fatal
Oct 19 10:11:53 sdbb-prod scsi: [ID 107833 kern.notice]         Requested Block: 16                        Erro
r Block: 16
Oct 19 10:11:53 sdbb-prod scsi: [ID 107833 kern.notice]         Vendor: TEAC                               Seri
al Number:
Oct 19 10:11:53 sdbb-prod scsi: [ID 107833 kern.notice]         Sense Key: Not Ready
Oct 19 10:11:53 sdbb-prod scsi: [ID 107833 kern.notice]         ASC: 0x3a (medium not present), ASCQ: 0x0, FRU:
 0x0


Last edited by DukeNuke2; 10-24-2011 at 12:07 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Eject Tape

Hi, I'm using AIX and I'm looking for a command that can eject the tape. Any help is highly appreciated. Regards, BS (3 Replies)
Discussion started by: bbhavis
3 Replies

2. Shell Programming and Scripting

eject floppy messages

Anyone know if there is a way to keep the "/dev/floppy/... can now be ejected" messages from coming up on the screen? I'm using Solaris 8 and it pops a message up, which is fine, but it also writes text in the terminal session... that is what I'm trying to avoid. I have tried running in silent... (4 Replies)
Discussion started by: Serious_Lee
4 Replies

3. Solaris

cdrom will not eject

Hi I have placed a CD into the rom and now I can not eject it. when i type in eject cdrom i get the follwing error root@ssdb0009 # eject cdrom /vol/dev/rdsk/c0t6d0/dp_a0500_solaris_7_and_8_cd: Device busy Therefore i try and eject it with the -f option (eject -f cdrom) I still get the... (4 Replies)
Discussion started by: dennisca
4 Replies

4. Solaris

Tape eject using nsrjb

We have just got a Sun L8 tape library and I was trying to script a couple of things. One was to eject (export) a tape from the machine. nsrjb seems to have an enormous amount of options but this is one thing I have not been able to do. Anybody ever managed to do it? Cheers (1 Reply)
Discussion started by: Argus
1 Replies

5. AIX

Eject CDROM?

Now i have a prolem! I double click on my zip file from cdrom. System can not read my zip file and i can not eject my cdrom. How can i manage process and can i end a process or how can i eject my cdrom? please have me! thanks (4 Replies)
Discussion started by: leenguyen0101
4 Replies

6. Solaris

SF V210 CDROM drive auto eject!

Hi, When I insert a cd to CDROM drive in SF V210 Solaris 10 it took seconds then eject it auto! How can I solve this issue? Thanks Regards :) (8 Replies)
Discussion started by: HishamN
8 Replies

7. AIX

eject dvd/cd

does someone knows how to eject a dvd/cd device? thx (2 Replies)
Discussion started by: jcpetela
2 Replies

8. Filesystems, Disks and Memory

eject virtual tape

Hi i´m working with aix 6.1 and DL4100 (virtual tape library from EMC) and i makes backups (mksysb) into virtual drive (virtual standalone drive). I need eject de tape when backup is finished and I don't now what command use. Thanks for your help. The commands mt and tctl doesn't works.... (0 Replies)
Discussion started by: wolaf
0 Replies

9. Solaris

CDROM will not eject - says device busy

Hi, I've seen similar posts on this board about ejecting CDROMs but I've tried the solutions people suggested but still cannot eject the CD. It's stuck in a production box so I can't reboot it... bash-3.00# eject -f cdrom /vol/dev/dsk/c0t0d0/sol_10_106_sparc/s0: Device busy bash-3.00#... (14 Replies)
Discussion started by: jimmy54321
14 Replies

10. Solaris

How to eject boot cdrom after booting from it?

Hey everyone, I currently have a sparcstation 5, and am trying to run some scripts on it without booting off the hard drive. Currently I am using a Solaris 8 install cd to boot into single user mode. However, the scripts I have are on a different CD. What I would like to do is to use the... (6 Replies)
Discussion started by: idlechatter
6 Replies
scsi_vu_errmsg(9F)					   Kernel Functions for Drivers 					scsi_vu_errmsg(9F)

NAME
scsi_vu_errmsg - display a SCSI request sense message SYNOPSIS
#include <sys/scsi/scsi.h> void scsi_vu_errmsg(struct scsi_pkt *pktp, char *drv_name, int severity, int err_blkno, struct scsi_key_strings *cmdlist, struct scsi_extended_sense *sensep, struct scsi_asq_key_strings *asc_list, char **decode_fru struct scsi_device*, char *, int, char); INTERFACE LEVEL
Solaris DDI specific (Solaris DDI). PARAMETERS
The following parameters are supported: devp Pointer to the scsi_device(9S) structure. pktp Pointer to a scsi_pkt(9S) structure. drv_name String used by scsi_log(9F). severity Error severity level, maps to severity strings below. blkno Requested block number. err_blkno Error block number. cmdlist An array of SCSI command description strings. sensep A pointer to a scsi_extended_sense(9S) structure. asc_list A pointer to a array of asc and ascq message list.The list must be terminated with -1 asc value. decode_fru This is a function pointer that will be called after the entire sense information has been decoded. The parameters will be the scsi_device structure to identify the device. Second argument will be a pointer to a buffer of length specified by third argument. The fourth argument will be the FRU byte. decode_fru might be NULL if no special decoding is required. decode_fru is expected to return pointer to a char string if decoding possible and NULL if no decoding is possible. DESCRIPTION
This function is very similar to scsi_errmsg(9F) but allows decoding of vendor-unique ASC/ASCQ and FRU information. The scsi_vu_errmsg() function interprets the request sense information in the sensep pointer and generates a standard message that is dis- played using scsi_log(9F). It first searches the list array for a matching vendor unique code if supplied. If it does not find one in the list then the standard list is searched. The first line of the message is always a CE_WARN, with the continuation lines being CE_CONT. sensep may be NULL, in which case no sense key or vendor information is displayed. The driver should make the determination as to when to call this function based on the severity of the failure and the severity level that the driver wants to report. The scsi_device(9S) structure denoted by devp supplies the identification of the device that requested the display. severity selects which string is used in the Error Level: reporting, according to the table below: Severity Value: String: SCSI_ERR_ALL All SCSI_ERR_UNKNOWN Unknown SCSI_ERR_INFO Information SCSI_ERR_RECOVERED Recovered SCSI_ERR_RETRYABLE Retryable SCSI_ERR_FATAL Fatal blkno is the block number of the original request that generated the error. err_blkno is the block number where the error occurred. cmdlist is a mapping table for translating the SCSI command code in pktp to the actual command string. The cmdlist is described in the structure below: struct scsi_key_strings { int key; char *message; }; For a basic SCSI disk, the following list is appropriate: static struct scsi_key_strings scsi_cmds[] = { 0x00, "test unit ready", 0x01, "rezero/rewind", 0x03, "request sense", 0x04, "format", 0x07, "reassign", 0x08, "read", 0x0a, "write", 0x0b, "seek", 0x12, "inquiry", 0x15, "mode select", 0x16, "reserve", 0x17, "release", 0x18, "copy", 0x1a, "mode sense", 0x1b, "start/stop", 0x1e, "door lock", 0x28, "read(10)", 0x2a, "write(10)", 0x2f, "verify", 0x37, "read defect data", 0x3b, "write buffer", -1, NULL }; CONTEXT
The scsi_vu_errmsg() function may be called from user, interrupt, or kernel context. EXAMPLES
Example 1 Using scsi_vu_errmsg() struct scsi_asq_key_strings cd_slist[] = { 0x81, 0, "Logical Unit is inaccessable", -1, 0, NULL, }; scsi_vu_errmsg(devp, pkt, "sd", SCSI_ERR_INFO, bp->b_blkno, err_blkno, sd_cmds, rqsense, cd_list, my_decode_fru); This generates the following console warning: WARNING: /sbus@1,f8000000/esp@0,800000/sd@1,0 (sd1): Error for Command: read Error Level: Informational Requested Block: 23936 Error Block: 23936 Vendor: XYZ Serial Number: 123456 Sense Key: Unit Attention ASC: 0x81 (Logical Unit is inaccessable), ASCQ: 0x0 FRU: 0x11 (replace LUN 1, located in slot 1) SEE ALSO
cmn_err(9F), scsi_errmsg(9F), scsi_log(9F), scsi_errmsg(9F), scsi_asc_key_strings(9S), scsi_device(9S), scsi_extended_sense(9S), scsi_pkt(9S) Writing Device Drivers STREAMS Programming Guide SunOS 5.11 16 Jan 2006 scsi_vu_errmsg(9F)
All times are GMT -4. The time now is 11:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy