LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ejecting cd rom (https://www.linuxquestions.org/questions/linux-newbie-8/ejecting-cd-rom-356141/)

minm 08-23-2005 09:42 AM

ejecting cd rom
 
Hey guys, i want to force eject a cd rom but it's giving me this error
linux:/home/mark # eject /media/dvdrecorder/
umount: /media/dvdrecorder: device is busy
umount: /media/dvdrecorder: device is busy


does anyone know what to do?

Thanks

trickykid 08-23-2005 09:43 AM

Do you have anything accessing the directory it's mounted to?

minm 08-23-2005 09:44 AM

I don't believe so, i only have my browser open

trickykid 08-23-2005 09:46 AM

Quote:

Originally posted by minm
I don't believe so, i only have my browser open
No other terminals with you sitting in the directory, etc?

What is the output of mount? Are any other processes using the cd/dvd rom?

minm 08-23-2005 09:48 AM

nope, i made sure the terminal closed that was accessing the directory, and now it just gives one message that the device is busy.. when i input mount, i get this:
mark@linux:~> mount
/dev/hda2 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda3 on /home type reiserfs (rw,acl,user_xattr)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid)
/dev/hdd on /media/dvdrecorder type iso9660 (ro)
mark@linux:~>

trickykid 08-23-2005 09:50 AM

Try:

umount /dev/hdd

In a terminal and closing all other open applications, including your browser.

minm 08-23-2005 09:55 AM

wierd, i did that command already as root and it gave me that error, but now it started to work.

Thanks!

for future reference, is there a command ( i believe it was grep?) that lets you see what applications is using what device?

trickykid 08-23-2005 10:25 AM

Quote:

Originally posted by minm
wierd, i did that command already as root and it gave me that error, but now it started to work.

Thanks!

for future reference, is there a command ( i believe it was grep?) that lets you see what applications is using what device?

lsof can tell you what applications or users are using files, not sure about devices.

Boow 08-23-2005 10:56 AM

also try as root "fuser -m /mnt/cdrom" it should display a number this is the pid or process id. type cmd "kill pid" . a last resort is just reboot.

minm 08-23-2005 11:04 AM

Thanks a lot!


All times are GMT -5. The time now is 01:04 PM.