Discussion:
tmux "using" removable media? Why & how to stop it.
(too old to reply)
Porcelain Mouse
2015-05-11 07:54:23 UTC
Permalink
Dear TMUX Users,

Has anyone else observed this? Sometimes, and without any cause as far as
I can determine, tmux starts using removable media, preventing me from
unmounting it.

I start tmux first thing after every reboot. I recently rebooted, logged
in, and started tmux as normal. Then, a little bit later, I mounted a
flash drive, copied some files, and when I went to unmount the drive, I
found that tmux was "using" the drive. I assume this means that the tmux
process had the mounted directory open, as if I had started my tmux
session in a directory somewhere on the mounted removable filesystem--but
I didn't! I had to kill my four sessions just to unmount the drive.

1) Has anyone else seen this, i.e, unexpected tmux "using" of removable
filesystems?

2) What could cause this?

3) Let's say I did start a session or new-window on the mounted
filesystem. I assume that will cause this, if anything. How do I
reverse it or undo it with out killing all my sessions. I closed the
session I was most recently using and then started closing other
sessions that I am *sure* I didn't use since I had mounted the
removable drive, but I couldn't get tmux to release the FS.

I've experienced this three times, now, and I'm baffled.
Thomas Adam
2015-05-11 08:47:51 UTC
Permalink
Post by Porcelain Mouse
I start tmux first thing after every reboot. I recently rebooted, logged
in, and started tmux as normal. Then, a little bit later, I mounted a
flash drive, copied some files, and when I went to unmount the drive, I
found that tmux was "using" the drive. I assume this means that the tmux
It's possible the FD is open to the directory or something. Can you
send through some logs?

-- Thomas Adam
Nicholas Marriott
2015-05-11 09:29:24 UTC
Permalink
Probably either a session or window was created with the working
directory inside the removable media. You can change session wd with
attach -c, windows you will need to kill.
Post by Porcelain Mouse
Dear TMUX Users,
Has anyone else observed this? Sometimes, and without any cause as far as
I can determine, tmux starts using removable media, preventing me from
unmounting it.
I start tmux first thing after every reboot. I recently rebooted, logged
in, and started tmux as normal. Then, a little bit later, I mounted a
flash drive, copied some files, and when I went to unmount the drive, I
found that tmux was "using" the drive. I assume this means that the tmux
process had the mounted directory open, as if I had started my tmux
session in a directory somewhere on the mounted removable filesystem--but
I didn't! I had to kill my four sessions just to unmount the drive.
1) Has anyone else seen this, i.e, unexpected tmux "using" of removable
filesystems?
2) What could cause this?
3) Let's say I did start a session or new-window on the mounted
filesystem. I assume that will cause this, if anything. How do I
reverse it or undo it with out killing all my sessions. I closed the
session I was most recently using and then started closing other
sessions that I am *sure* I didn't use since I had mounted the
removable drive, but I couldn't get tmux to release the FS.
I've experienced this three times, now, and I'm baffled.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Balazs Kezes
2015-05-11 09:52:16 UTC
Permalink
Post by Nicholas Marriott
Probably either a session or window was created with the working
directory inside the removable media. You can change session wd with
attach -c, windows you will need to kill.
It also affects panes when you open one in the directory which you want
to unmount. And it is quite hard to track down which pane is holding the
fd. See [1] for a previous discussion about this.

[1] http://sourceforge.net/p/tmux/tickets/164/
--
Balazs
Loading...