> > We have been in trouble umounting /cdrom due to 'device busy' on
> > SunOS4.1.3/Sparc 2 platform. We failed to locate any processes
> > running related to the cdrom. That left us no choice but rebooting.
> If you believe such a process existed but you just couldn't find it,
> perhaps you weren't using the right tools. I've found ofiles very
> useful when searching for processes that are holding filesystems open.
Yes, ofiles is a neat little tool, but it doesn't come close to
working on Sys/V. How would one go about asking "Who has /foo/bar
open?" on a Sys/V machine? As near as I can tell from TFM, the answer
is "Start killing processes until the problem goes away, and the last
program you killed was the one with the file open." There oughta be a
better way ...
("Don't use Sys/V" is another answer, I suppose, but it's not always
an available alternative. ;-)
--
Unix trivia question of the day: What does the following command do:
find . '*.bak' -exec rm -f {} ';'
Bonus question: Is there any way to undo the damage?