Very often, after accessing a CD, some program (e.g. konqueror) keeps some file open even if I think I closed it. Pressing the "eject" button on the CD-ROM drive doesn't do anything. If I tell KDE to eject it, I get a pretty stupid error message: umount: /media/hdc is not in the fstab (and you are not root) Please check that the disk is entered correctly. Well, it was able to *mount* it without being root (using pmount), so it better unmount it, too. If I run "pumount /dev/cdrom" manually, I get: umount: /media/hdc: device is busy umount: /media/hdc: device is busy Error: umount failed Why is it busy? Who is using it? I try "fuser /media/hdc" - nothing. "lsof /media/hdc" - still nothing. Only "/usr/sbin/lsof | grep /media" gives me: konqueror 2324 dima 18r REG 22,0 6069716 8706 /media/hdc/books/KnoppixKompakt_2005-06-18.pdf Shouldn't there be a more user-friendly way to eject a CD? Ideally, I think, "umount" (or "pumount") itself should be able to find out what program is using the device. Then, KDE or other programs could tell the user, and ask if he/she wants to close that program first. Alternatively, it would be nice if a device could be unmounted even if it is in use. "supermount" used to do that, right? It would invalidate all of device's file descriptors, or something like that - and everything worked nicely.
(In reply to comment #0) > Only "/usr/sbin/lsof | grep /media" gives me: > konqueror 2324 dima 18r REG 22,0 6069716 8706 > /media/hdc/books/KnoppixKompakt_2005-06-18.pdf OK, so - apparently it *is* busy. > Ideally, I think, "umount" (or "pumount") itself should be able to find out > what program is using the device. Then, KDE or other programs could tell the > user, and ask if he/she wants to close that program first. Patches are welcome, preferably send them upstream.