| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Mon Nov 17, 2008 8:11 pm Post subject: Can't unmount busy device ? WHICH pid |
|
|
Understandably you can't unmount a 'busy' device.
But, KDE has 4 dsktops and I typically use each one
for 6 VTs, mostly with mc.
Currently 'pgrep mc' shows that I've got 16 mc running.
So with great frustration, I step manually through each dsktop
and each VT to see which one's 'got' /mnt/disk which I want
to unmount.
Nor do I find a solution in 'man ps'.
What method should I use to see which VT is using /mnt/disk ?
Also related to this frustration: under kde-3.0 my spare box
showed 'Window' on the top-menu also for VTs.
Ie. to be able to: window / <select the desktop tasks>.
When you've got no 'free screen' to use right-mouse to
<select the desktop tasks>, this top-menu: / Window is
needed.
How to get it ?
== TIA. |
|
| |
|
Back to top |
Eef Hartman Guest
|
Posted: Mon Nov 17, 2008 8:27 pm Post subject: Re: Can't unmount busy device ? WHICH pid |
|
|
In alt.os.linux.slackware AliBama@gmail wrote:
| Quote: | So with great frustration, I step manually through each dsktop
and each VT to see which one's 'got' /mnt/disk which I want
to unmount.
|
fuser -m /mnt/disk # of course the "right" mount point
will give you the PID's of processes that are accessing files within
that mounted sub-tree.
With "ps -ef" you can then find the pseudo terminal (pts/??)
those processes are running in.
How you correlate that to "windows on desktops", I don't
know, but Linux (as in "kernel") doesn't know either.
It is something within your window manager, but - as I said -
I wouldn't know how to obtain that info.
--
*******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M.Hartman@tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
******************************************************************* |
|
| |
|
Back to top |
b.jeswine Guest
|
Posted: Tue Nov 18, 2008 4:43 am Post subject: Re: Can't unmount busy device ? WHICH pid |
|
|
In news:1226930530.755818@vasbyt.isdsl.net,
AliBama@gmail <AliBama@gmail> typed:
| Quote: | Understandably you can't unmount a 'busy' device.
But, KDE has 4 dsktops and I typically use each one
for 6 VTs, mostly with mc.
....
What method should I use to see which VT is using /mnt/disk ?
|
I'm not familiar with mc, but have you considered "killall mc"? |
|
| |
|
Back to top |
David W. Hodgins Guest
|
Posted: Tue Nov 18, 2008 4:55 am Post subject: Re: Can't unmount busy device ? WHICH pid |
|
|
On Mon, 17 Nov 2008 17:43:31 -0500, b.jeswine <me@privacy.net> wrote:
| Quote: | What method should I use to see which VT is using /mnt/disk ?
I'm not familiar with mc, but have you considered "killall mc"?
|
Lol. I think that's exactly what the op is trying to avoid. :)
Using fuser or lsof -n |grep $mountpoint and then killing the specific
instance of mc using the process id would be more useful.
Regards, Dave Hodgins
--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.) |
|
| |
|
Back to top |
Balwinder S Dheeman Guest
|
Posted: Tue Nov 18, 2008 8:29 am Post subject: Re: Can't unmount busy device ? WHICH pid |
|
|
On 11/18/2008 04:13 AM, b.jeswine wrote:
| Quote: | In news:1226930530.755818@vasbyt.isdsl.net,
What method should I use to see which VT is using /mnt/disk ?
|
Ali Bama try:
lsof |grep /mnt/disk
| Quote: | I'm not familiar with mc, but have you considered "killall mc"?
|
Seems, beating about a bush to me ;)
--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Gentoo, Fedora, Debian/FreeBSD/XP
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/ |
|
| |
|
Back to top |
Sidney Lambe Guest
|
Posted: Wed Nov 19, 2008 7:06 am Post subject: Re: Can't unmount busy device ? WHICH pid |
|
|
["Followup-To:" header set to comp.os.linux.misc.]
AliBama@gmail <AliBama@gmail> wrote:
| Quote: | Understandably you can't unmount a 'busy' device.
But, KDE has 4 dsktops and I typically use each one
for 6 VTs, mostly with mc.
Currently 'pgrep mc' shows that I've got 16 mc running.
|
This is madness. Mc is the precursor of gnome. You are basically
running a desktop environment within a desktop environment and
they aren't compatible.
I suggest that you run mc in xterms outside of kde (if you have
to use that monstrosity at all).
| Quote: | So with great frustration,
|
Hardly a surrise.
[delete]
Sid |
|
| |
|
Back to top |
Guest
|
Posted: Fri Nov 21, 2008 8:45 am Post subject: Re: Can't unmount busy device ? WHICH pid |
|
|
In alt.os.linux.slackware AliBama@gmail wrote:
| Quote: | Understandably you can't unmount a 'busy' device.
But, KDE has 4 dsktops and I typically use each one
for 6 VTs, mostly with mc.
Currently 'pgrep mc' shows that I've got 16 mc running.
So with great frustration, I step manually through each dsktop
and each VT to see which one's 'got' /mnt/disk which I want
to unmount.
Nor do I find a solution in 'man ps'.
What method should I use to see which VT is using /mnt/disk ?
Also related to this frustration: under kde-3.0 my spare box
showed 'Window' on the top-menu also for VTs.
Ie. to be able to: window / <select the desktop tasks>.
When you've got no 'free screen' to use right-mouse to
select the desktop tasks>, this top-menu: / Window is
needed.
How to get it ?
== TIA.
|
try
lsof /mnt/disk
to see processes having that directory open, match the
PID to the vt |
|
| |
|
Back to top |
|