Newbie needs help with cdrom

If none of the more specific forums is the right place to ask

Newbie needs help with cdrom

Postby jozmak » 2005-06-25 22:17

Hi,

I installed sarge a few weeks ago and it runs great, except a few minor glitches. The most annoying among them is that I cannot unmount or eject cds from the cd drive. When I try to unmount the cd it gives me the following error message.

[mntent]: warning: no final newline at the end of /etc/fstab
unmount: /media/cdrom0: device is busy
unmount: /media/cdrom0: device is busy
Please check that the disk is entered correctly.

I have exactly the same problem with floppies.
I am running kde desktop.

Could anyone suggest me a solution to this problem?

Thanks a lot
jozmak
jozmak
 
Posts: 50
Joined: 2005-06-17 02:33

Postby sensovision » 2005-06-26 13:33

Hi jozmak!
Generally this error: unmount: "/media/cdrom0: device is busy " mean that cdrom is beign used by some program, e.g. one of your terminals or filemanager or whatever could cause the problem, try to close all applications which you've used to access files(in terminal just make cd / to change directory you're currently viewing. After this is done try to umount once again, if you fail try this umount -l /media/cdrom0 or try to access it directly umount -l /dev/hdc
Hope this would help.
BTW you need to add one blank line to /etc/fstab to avoid error during (u)mount operations.
Denis
User avatar
sensovision
 
Posts: 120
Joined: 2004-11-15 11:38
Location: Ukraine

Postby jobezone » 2005-06-26 17:39

sensovision wrote:Hi jozmak!
BTW you need to add one blank line to /etc/fstab to avoid error during (u)mount operations.

One blank line at the end of /etc/fstab . Just make it clearer.
User avatar
jobezone
 
Posts: 220
Joined: 2005-06-12 07:20
Location: Portugal

Postby jozmak » 2005-06-26 18:05

Thanks for the suggestions.

I placed a blank line in the fstab file. Now, at least, the first error message disappeared. But the

unmount: /media/cdrom0: device is busy
unmount: /media/cdrom0: device is busy
Please check that the disk is entered correctly.

still remains.
I also closed all windows and tried unmounting and ejecting by right clicking on the cd icon but no luck still. On the other hand, the umount -l /dev/hdc command works. It unmounted the cd but I still cannot eject it. The only way I can eject the cd if I log out and login again. Then it works.

Regards,
jozmak
jozmak
 
Posts: 50
Joined: 2005-06-17 02:33

Postby sensovision » 2005-06-26 18:40

hmm, not sure what exactly could cause this but I think that it's some program causing this, because when you log all programs which was opened by you is closed and therefore they no longer use cdrom...
can you try to mount and un-mount cdrom from console and see how it works? if you would be able to do both than the problem probably in some GUI program...
too bad I'm not using KDE(I prefer Gnome) so don't know exactly what could cause such problem.
Denis
User avatar
sensovision
 
Posts: 120
Joined: 2004-11-15 11:38
Location: Ukraine

Postby jozmak » 2005-06-26 18:59

Thanks sensovision,

I did what you said. From the command line the cd mounts and unmounts nicely; but when i right click on the icon, after unmounting the cd, to eject it, i get the following error message:

Eject /dev/hdc failed.

jozmak
jozmak
 
Posts: 50
Joined: 2005-06-17 02:33

Postby sensovision » 2005-06-26 22:18

it seems that some program won't free cdrom after it's used it. You can try to discover what program is this by running this:
ps awx |grep /media/cdrom and see what programs are using specific directories. If this doesn't show anything you could try to disply all entries without filtering by ps awx.
Denis
User avatar
sensovision
 
Posts: 120
Joined: 2004-11-15 11:38
Location: Ukraine

Postby jozmak » 2005-06-26 22:33

I ran the command and this is what i got.

mak@debian:~$ ps awx |grep /media/cdrom
2771 pts/1 R+ 0:00 grep /media/cdrom
mak@debian:~$
jozmak
 
Posts: 50
Joined: 2005-06-17 02:33

Postby sensovision » 2005-06-26 23:04

jozmak wrote:I ran the command and this is what i got.

mak@debian:~$ ps awx |grep /media/cdrom
2771 pts/1 R+ 0:00 grep /media/cdrom
mak@debian:~$

and in the same time KDE doesn't let you to eject CDRom? as right now it's only shows that you execute command and noone seems to use your CDRom drive.
Denis
User avatar
sensovision
 
Posts: 120
Joined: 2004-11-15 11:38
Location: Ukraine

Postby jozmak » 2005-06-27 00:33

Hi sensovision,

Thanks a lot for helping me with the cd ejection problem. But in the mean time, I've found the solution. Googling around all day to day, I came across a posting on the mepis site where the solution was given. I paste it here so that others can benefit from it.

“There is a bug in KDE that prevents ejecting a disc from a CD-ROM or DVD as a user. This appears to be related to a KDE process, namely, kio_audiocd. It affects only those drives connected to system sound with an audio cable. There are a couple of workarounds, however. As root, check setuid in the permissions of /usr/bin/eject. If you don't want to use setuid, you simply can kill the errant process, either with Ksystemguard or with a script like this:

#! /bin/bash
killall kio_audiocd
eject /dev/hdc (or /dev/hdd as appropriate)

Save as xcd.sh or xdvd.sh in /usr/bin and give it the proper user permissions with chmod 755. I like this script; set up an icon to run it, use a red X from the actions list, and you can eject a disc with one mouse action instead of three.”

And this works great.

The Debian community is the best.

Regards,
jozmak
jozmak
 
Posts: 50
Joined: 2005-06-17 02:33

Postby sensovision » 2005-06-27 01:05

glad you've find out solution :) And I'm sure that people who use KDE and have this bug would appreciate you.
Denis
User avatar
sensovision
 
Posts: 120
Joined: 2004-11-15 11:38
Location: Ukraine

Re: Newbie needs help with cdrom

Postby Guest » 2006-01-21 14:10

jozmak wrote:Hi,

I installed sarge a few weeks ago and it runs great, except a few minor glitches. The most annoying among them is that I cannot unmount or eject cds from the cd drive. When I try to unmount the cd it gives me the following error message.

[mntent]: warning: no final newline at the end of /etc/fstab
unmount: /media/cdrom0: device is busy
unmount: /media/cdrom0: device is busy
Please check that the disk is entered correctly.

I have exactly the same problem with floppies.
I am running kde desktop.

Could anyone suggest me a solution to this problem?

Thanks a lot
jozmak
Guest
 


Return to General Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable