Complete.Org: Mailing Lists: Archives: discussion: January 2004:
[aclug-L] Re: cdrom problem
Home

[aclug-L] Re: cdrom problem

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: discussion@xxxxxxxxx
Subject: [aclug-L] Re: cdrom problem
From: Noah Romer <klevin@xxxxxxxxxx>
Date: Sat, 17 Jan 2004 13:24:40 -0800 (PST)
Reply-to: discussion@xxxxxxxxx

On Sat, 17 Jan 2004, bbales wrote:

> Maybe someone else has had this problem and can help.
>
> Using RH 9.0 and KDE.  When I stick a disk in the cdrom, Konqueror comes up
> and mounts and opens the disk.  When I am through with the disk I quit what
> I'm doing and quit Conqueror and try to umount the cdrom.  I get "device is
> busy."  It stays that way no matter what I try.  Only way to get the disk out
> is to shut down and reboot.  Just shutting down all programs and kde doesn't
> do it.
>
> I would prefer that konqueror stay dormant until I want it, but I know how to
> shut kongqueror down so it's not a big problem.  What I need is an easy way
> to "unbusy" the cdrom.
> bruce

It's not an elegant solution, but you could use the `lsof` utility to find
out what process still has the cdrom open. i.e. `lsof | grep /mnt/cdrom`
(in the case where the cd gets mounted to /mnt/cdrom, kde probably uses
the automounter or some such). You could then kill that process or take
other appropriate action.

lsof can take a while to finish executing so don't be allarmed if grep
doesn't output anything right away.
--
Noah Romer              |"Everyone is more or less mad on one point."
klevin@xxxxxxxxxx       |                       - Rudyard Kipling
PGP key available       |
by finger or email      |

-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]