Re: [expert] Device is busy: how do I figure out which processes?

2002-09-20 Thread Randall Jonasz

Hi Damon, 

You might try lsof filename to see which processes are using it.  Hope
that helps!

Cheers,

Randy

On Fri, 2002-09-20 at 22:21, Damon Lynch wrote:
> Hi,
> 
> I'm trying to figure out why drakfont from RC3 is freezing when
> importing fonts.  After that, /mnt/nt cannot be unmounted, because it is
> busy.  How do I figure out which processes are running that use it, so I
> can terminate them?
> 
> Damon
> 
> 
> 
> 
> 

> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Device is busy: how do I figure out which processes?

2002-09-20 Thread Damon Lynch

On Sat, 2002-09-21 at 16:03, Randall Jonasz wrote:
Hi Damon, 

You might try lsof filename to see which processes are using it.  Hope
that helps!

Cheers,

Randy

Hi Randy,

I tried that, by randomly selected a file on the mounted partition, and
the command prompt stopped responding before I could complete the
command!  I haven't seen that before.

Damon




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Device is busy: how do I figure out which processes?

2002-09-21 Thread Thomas Sourmail

> I'm trying to figure out why drakfont from RC3 is freezing when
> importing fonts.  After that, /mnt/nt cannot be unmounted, because it is
> busy.  How do I figure out which processes are running that use it, so I
> can terminate them?

I had the same problem. 
lsof | grep /mnt/cdrom (or /mnt/nt in your case)
should point to the cause of the problem. Most often gmc (hate nautilus)
or xscreensaver (can't quite figure out why..).

Thomas.





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Device is busy: how do I figure out which processes?

2002-09-21 Thread et

On Saturday 21 September 2002 05:32 am, you wrote:
> > I'm trying to figure out why drakfont from RC3 is freezing when
> > importing fonts.  After that, /mnt/nt cannot be unmounted, because it is
> > busy.  How do I figure out which processes are running that use it, so I
> > can terminate them?
>
> I had the same problem.
> lsof | grep /mnt/cdrom (or /mnt/nt in your case)
> should point to the cause of the problem. Most often gmc (hate nautilus)
> or xscreensaver (can't quite figure out why..).
>
> Thomas.
try this; as root without the quotes, in a text window "ps aux | grep drak" 
to get a process number and info about any program with drak in the name that 
is running.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Device is busy: how do I figure out which processes?

2002-09-21 Thread Damon Lynch

On Sat, 2002-09-21 at 21:32, Thomas Sourmail wrote:
> I'm trying to figure out why drakfont from RC3 is freezing when
> importing fonts.  After that, /mnt/nt cannot be unmounted, because it is
> busy.  How do I figure out which processes are running that use it, so I
> can terminate them?

I had the same problem. 
lsof | grep /mnt/cdrom (or /mnt/nt in your case)
should point to the cause of the problem. Most often gmc (hate nautilus)
or xscreensaver (can't quite figure out why..).

Thomas.

That did the trick!  Thanks.  It's not a drak program, as far as I can
tell (it was hours since I ran that), but bash when I tried to inspect a
file in it:
bash  3875root3r   DIR   3,6912288 5 /mnt/nt

Anyway, a very useful command.  Thanks,
Damon






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Device is busy: how do I figure out which processes?

2002-09-21 Thread ddc_prueba

I think what you really want is:

fuser -mv /mnt/nt

This will give you (as man page says) '...All processes accessing  files
on  that file system ...', so you'll have the guilty process ;-))

And if you want to know who and launched it:

fuser -v /mnt/nt

but it would probably say root and from kernel.


Good luck.



El sáb, 21-09-2002 a las 04:21, Damon Lynch escribió:
> Hi,
> 
> I'm trying to figure out why drakfont from RC3 is freezing when
> importing fonts.  After that, /mnt/nt cannot be unmounted, because it is
> busy.  How do I figure out which processes are running that use it, so I
> can terminate them?
> 
> Damon
> 
> 
> 
> 
> 

> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com


___
Copa del Mundo de la FIFA 2002
El único lugar de Internet con vídeos de los 64 partidos.
¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com