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 device is busy

I stop the volume mgr and try then but stil not working.

do i need a reboot ??

hiho,

are you sure that no application tries to read the cdrom (perhaps another shell? )
perfom:

# cd /
# eject

killing the automountd means you have to umount the device yourself

# umount /dev/dsk/c0t6d0s0
<push the eject button>

greetings Pre�y

Hi denisca,

Unix never lies. It realy means the device is busy. It can have several causes. Your current working directory resides on the mounted CD. Or maybe your previous ksh still resides in there. fuser -cu /SD_CDROM should tell you more. This shows you the current runnning prcesses on this FS. ps -ef and than look for possible processes running on this FS might clear out some as well.
It is very important to first make sure all processes have stopped on this FS before stoppping and restarting mountd.

Good luck

Regs David

Well without talking about anything else try by unmounting the cdrom and then eject.:slight_smile:

I have seen problems on Soalris often (especially with Oracle CDs for some reason) where vold gets messed up and no matter what you do you cannot eject the CD. There are 2 options I use:

  1. Stop and restart vold:

#/etc/init.d/volmgt stop
#/etc/init.d/volmgt start
#eject

  1. Reboot.