CDROM will not eject - says device busy


 
Thread Tools Search this Thread
Operating Systems Solaris CDROM will not eject - says device busy
# 1  
Old 10-16-2009
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...
Code:
bash-3.00# eject -f cdrom
/vol/dev/dsk/c0t0d0/sol_10_106_sparc/s0: Device busy

bash-3.00# fuser -cu /cdrom/sol_10_106_sparc/s0
/cdrom/sol_10_106_sparc/s0:    10163c(root)     514c(root)
bash-3.00#

So far I have tried the following:

- Physically pressing eject button
- volmgt start / stop
- eject -f cdrom
- Umount - f /vol/dev/dsk/c0t0d0/sol_10_106_sparc/s0
- umount /cdrom
- fuser command

Any help would be much appreciated!

Thanks
Jimmy

Last edited by pludi; 10-16-2009 at 10:16 AM.. Reason: code tags, please...
# 2  
Old 10-16-2009
Did you just try "eject" command? cd to the "/" and tried? If not use a pin to "pok" the hole near the drive
# 3  
Old 10-16-2009
when you restarting the solaris box you can eject the CD rom.
# 4  
Old 10-16-2009
Quote:
Originally Posted by saga499
when you restarting the solaris box you can eject the CD rom.
The problem is, its a prod box and he cant restart anytime he wants to.
# 5  
Old 10-16-2009
What are the processes with PIDs 10163 and 514 ?
Code:
ptree 10163
ptree 514
ptree $$

# 6  
Old 10-16-2009
Well, you are already half way there. Look at the output of the fuser command. It tells you that there are 2 login instances of root somewhere in the /cdrom directory. The numbers 10163 and 514 should correspond to the process IDs of those root instances' login shells; I'm even venturing to say one of those is your current login.

So, change to another directory, run fuser again, and kill the process(es) that remain. That will free up /cdrom, and you will be able to eject the disk

Code:
# cd
# fuser /cdrom
   514c
# kill -9 514  # or whatever process number(s) show
# eject cd

# 7  
Old 10-16-2009
Quote:
Originally Posted by System Shock
Well, you are already half way there. Look at the output of the fuser command. It tells you that there are 2 login instances of root somewhere in the /cdrom directory. The numbers 10163 and 514 should correspond to the process IDs of those root instances' login shells; I'm even venturing to say one of those is your current login.

So, change to another directory, run fuser again, and kill the process(es) that remain. That will free up /cdrom, and you will be able to eject the disk

Code:
# cd
# fuser /cdrom
   514c
# kill -9 514  # or whatever process number(s) show
# eject cd

Great.. You're sharp.. I was sleepy and never notice the first post outputs
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Mount : Device busy

mount -f nfs 1234:/export/ert /der/fr/ert mount : /der/fr/ert: device busy normally I will then do an fuser filesystem and kill the pids, which I did. now if I do an fuser /der/fr/ert I get the mount point and no pid > fuser /der/fr/ert /der/fr/ert: but it... (1 Reply)
Discussion started by: goya
1 Replies

2. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies

3. Solaris

Trying to eject cdrom

The green cdrom light is blinking on our Sun Solaris server. I tried the eject command to eject cdrom: 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... (6 Replies)
Discussion started by: agarcia19
6 Replies

4. 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

5. UNIX for Dummies Questions & Answers

Device or resource busy??

Hi, I'm trying to do a sharity mount to mount a terastation network drive. I'm getting a Device or resource busy message after my mount command. Please see output below... # /usr/local/sharity3/bin/sharity mount smb://labbackup01/bakup_data /mnt/labbackup01 Device or resource busy.... (2 Replies)
Discussion started by: orahi001
2 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. HP-UX

Cannot umount - device busy

Anyone have any idea why I cannot umount a directory even though fuser shows no process attached to it? fuser -cu /data/oracle/GMPSHRDM/export /data/oracle/GMPSHRDM/export: umount /data/oracle/GMPSHRDM/export umount: cannot unmount /data/oracle/GMPSHRDM/export : Device busy umount:... (2 Replies)
Discussion started by: keelba
2 Replies

8. 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

9. 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

10. UNIX for Dummies Questions & Answers

umount, device busy, but..

I'm trying to unmount a file system, but umount says the device is busy. A fuser -c /myfs tells me that nothing on this fs is in use. Any idea? Oh, and btw, why isn't my signature beeing displayed? Show user's signature is enabled and I have entered one :/ (10 Replies)
Discussion started by: sTorm
10 Replies
Login or Register to Ask a Question