unmounting cdrecorder

I want to unmount DVD from my LG DBA RW. The operating system is Oracle Unbreakable Linux based on Fedora Ver4.

I right click on the DVD icon on the desktop and select eject. DVD doesn't eject.

I use the umount command.

[root@pc cdrecorder]# umount /media/cdrecorder
umount: /media/cdrecorder: device is busy
umount: /media/cdrecorder: device is busy
gram77Asked:
Who is Participating?
 
http:// thevpn.guruConnect With a Mentor Commented:
You could also try

Close any file managers and of course any other windows that show the Cd or whatever.
Wait half a minute or so
And if umount doesn't work for the normal user, do 'umount -l' as root user (that's a lower-case "L" for "lazy"). Almost always works....

to find out what is using your CDROM

lsof |grep /dev/cdrom
0
 
http:// thevpn.guruCommented:
Try it with -f
umount -f /media/cdrecorder
0
 
omarfaridConnect With a Mentor Commented:
It could be that you are in that directory while trying to unmount it.

cd /

then

umount /media/cdrecorder
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
gram77Author Commented:
I forgot to exit from the /media/cdrecorder directory when I was issuing the umount -t auto /media/cdrecorder command.

How is umount -l command able to unmount even if you are in /media/cdrecorder directory
0
 
http:// thevpn.guruCommented:
unmount -l releases all files that are using the cdrom drive..
0
 
omarfaridCommented:
From the man page:

-l
    Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)
0
All Courses

From novice to tech pro — start learning today.