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


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

Re: Re: 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 20:30 +0100
Last post2024-03-31 08:20 +0200
Articles 3 — 3 participants

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


Contents

  Re: Re: 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 20:30 +0100
    Re: Debian 12.5 up-to-date Xfce, Firefox clings to USB stick David Wright <deblis@lionunicorn.co.uk> - 2024-03-31 06:50 +0200
      Re: Debian 12.5 up-to-date Xfce, Firefox clings to USB stick Max Nikulin <manikulin@gmail.com> - 2024-03-31 08:20 +0200

#268646 — Re: Re: 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 20:30 +0100
SubjectRe: Re: Debian 12.5 up-to-date Xfce, Firefox clings to USB stick
Message-ID<InMyR-2RvE-1@gated-at.bofh.it>

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

I was able to replicate this, by trying to send gmail to myself in Firefox,
attaching a binary on a mounted USB stick. After the attachment supposedly
was uploaded, I tried to unmount the stick, but it blocks. "lsof | grep -i
KINGSTON" then shows a total of 129 lines from "x-www-browser". This lasted
for about a minute, then the drive unmounted by itself.

[toc] | [next] | [standalone]


#268657

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2024-03-31 06:50 +0200
Message-ID<InViN-2X07-1@gated-at.bofh.it>
In reply to#268646
On Sat 30 Mar 2024 at 21:06:27 (+0200), Antti-Pekka Känsälä wrote:
> I was able to replicate this, by trying to send gmail to myself in Firefox,
> attaching a binary on a mounted USB stick.

Did you mount the stick yourself as a user (ie there's an
fstab entry for it), or as root, or does an automounter
mount it for you?

> After the attachment supposedly
> was uploaded, I tried to unmount the stick, but it blocks. "lsof | grep -i
> KINGSTON" then shows a total of 129 lines from "x-www-browser". This lasted
> for about a minute, then the drive unmounted by itself.

This is the behaviour I see, where (1) inserting a stick creates
a mountpoint and (2) that mountpoint is referenced in /etc/fstab:

After typing Ctrl-O in Firefox, I navigate to /media/foo (the
mountpoint that was created). Double-clicking on the directory
mounts it and displays the files in it. Opening a text file
displays it. At least for a small file, FF does not hold the
file open, so I can immediately unmount the stick. That may
differ if, for example, a mail MUA or MTA is taking a lot of
time to process an attached file.

So I suspect you may be relying on an automounter to mount the
stick, and you have to wait for a period of inactivity to time
out before it decides you've probably finished with it.

Cheers,
David.

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


#268658

FromMax Nikulin <manikulin@gmail.com>
Date2024-03-31 08:20 +0200
Message-ID<InWHT-2Y31-1@gated-at.bofh.it>
In reply to#268657
On 31/03/2024 11:46, David Wright wrote:
> Double-clicking on the directory
> mounts it and displays the files in it. Opening a text file
> displays it. At least for a small file, FF does not hold the
> file open, so I can immediately unmount the stick.

Gmail may do something more fancy
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
- https://developer.mozilla.org/en-US/docs/Web/API/File_System_API

I am not surprised that the device is busy for some interval of time.

[toc] | [prev] | [standalone]


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


csiph-web