Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #268639 > unrolled thread

Debian 12.5 up-to-date Xfce, Firefox clings to USB stick

Started byAntti-Pekka Känsälä <antti.pekka.kansala@gmail.com>
First post2024-03-30 16:40 +0100
Last post2024-03-30 23:20 +0100
Articles 5 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  Debian 12.5 up-to-date Xfce, Firefox clings to USB stick Antti-Pekka Känsälä <antti.pekka.kansala@gmail.com> - 2024-03-30 16:40 +0100
    Re: Debian 12.5 up-to-date Xfce, Firefox clings to USB stick gene heskett <gheskett@shentel.net> - 2024-03-30 18:20 +0100
      Re: Debian 12.5 up-to-date Xfce, Firefox clings to USB stick Cindy Sue Causey <butterflybytes@gmail.com> - 2024-03-30 19:00 +0100
    Re: Debian 12.5 up-to-date Xfce, Firefox clings to USB stick Charles Curley <charlescurley@charlescurley.com> - 2024-03-30 19:30 +0100
    Re: Debian 12.5 up-to-date Xfce, Firefox clings to USB stick David Christensen <dpchrist@holgerdanske.com> - 2024-03-30 23:20 +0100

#268639 — Debian 12.5 up-to-date Xfce, Firefox clings to USB stick

FromAntti-Pekka Känsälä <antti.pekka.kansala@gmail.com>
Date2024-03-30 16:40 +0100
SubjectDebian 12.5 up-to-date Xfce, Firefox clings to USB stick
Message-ID<InIYh-2Myo-7@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

What could be the deal, when Firefox tries to stop me from unmounting a
stick, after I've accessed files on it through Firefox?  I worry about my
stick security.  Thanks.

[toc] | [next] | [standalone]


#268642

Fromgene heskett <gheskett@shentel.net>
Date2024-03-30 18:20 +0100
Message-ID<InKx4-2Qmi-11@gated-at.bofh.it>
In reply to#268639
On 3/30/24 11:36, Antti-Pekka Känsälä wrote:
> What could be the deal, when Firefox tries to stop me from unmounting a 
> stick, after I've accessed files on it through Firefox?  I worry about 
> my stick security.  Thanks.

Since this is normally a root operation, I'm confused. Likely what it 
means is that you have an open write path from firefox to the stick that 
has not been properly closed. I get into a similar state working with 
u-sd's using mc to edit something I have used mc to cd to, and forget to 
cd back out of the u-sd before I eject the card to take it to its proper 
home in a pi clone. Possibly fixed by stopping firefox first?

Cheers, Gene Heskett, CET.
-- 
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis

[toc] | [prev] | [next] | [standalone]


#268644

FromCindy Sue Causey <butterflybytes@gmail.com>
Date2024-03-30 19:00 +0100
Message-ID<InL9L-2QyU-1@gated-at.bofh.it>
In reply to#268642
On Sat, Mar 30, 2024 at 1:19 PM gene heskett <gheskett@shentel.net> wrote:
>
> On 3/30/24 11:36, Antti-Pekka Känsälä wrote:
> > What could be the deal, when Firefox tries to stop me from unmounting a
> > stick, after I've accessed files on it through Firefox?  I worry about
> > my stick security.  Thanks.
>
> Since this is normally a root operation, I'm confused. Likely what it
> means is that you have an open write path from firefox to the stick that
> has not been properly closed. I get into a similar state working with
> u-sd's using mc to edit something I have used mc to cd to, and forget to
> cd back out of the u-sd before I eject the card to take it to its proper
> home in a pi clone. Possibly fixed by stopping firefox first?


The other thing I try with this is to run something like:

$ mount|grep sda2

The "sda2" can be replaced with whatever else is involved. That filters out a
hopefully small(er) list to show if something is unusually mounted. Running
"mount" alone opens up the whole list.

Going that route helped me in chroot a couple days ago. An unbelievable number
of /proc, /sys, /dev, and /dev/pts mount points appeared. I only manually
mounted them once each. Manually umount'ing each point until none were left
fixed whatever trouble that seemed to inflict on apt-get.

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA
* runs with birdseed *

[toc] | [prev] | [next] | [standalone]


#268645

FromCharles Curley <charlescurley@charlescurley.com>
Date2024-03-30 19:30 +0100
Message-ID<InLCN-2QXC-5@gated-at.bofh.it>
In reply to#268639
On Sat, 30 Mar 2024 17:17:52 +0200
Antti-Pekka Känsälä <antti.pekka.kansala@gmail.com> wrote:

> What could be the deal, when Firefox tries to stop me from unmounting
> a stick, after I've accessed files on it through Firefox?  I worry
> about my stick security.  Thanks.

It sounds like Firefox has a file open on the stick. To check this, run
something like

lsof | grep -i offsite

where offsite is in the path to the stick.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

[toc] | [prev] | [next] | [standalone]


#268654

FromDavid Christensen <dpchrist@holgerdanske.com>
Date2024-03-30 23:20 +0100
Message-ID<InPdn-2T8q-1@gated-at.bofh.it>
In reply to#268639
On 3/30/24 08:17, Antti-Pekka Känsälä wrote:
> What could be the deal, when Firefox tries to stop me from unmounting a
> stick, after I've accessed files on it through Firefox?  I worry about my
> stick security.  Thanks.


Linux knows what files are open on each file system.  If you try to 
unmount a file system with open files or eject a mounted USB drive with 
open files, Linux will refuse and your desktop environment will display 
a suitable error dialog.  This is a feature, not a bug.


The solution is to close all the files on the file system, and then 
unmount it.


David

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web