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


Groups > linux.debian.user > #163930

Re: GNOME Shell can't unmount my USB key

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: GNOME Shell can't unmount my USB key
Date 2016-02-08 09:20 +0100
Message-ID <qZPd8-2z8-5@gated-at.bofh.it> (permalink)
References <qZGjw-4vr-9@gated-at.bofh.it> <qZGWg-54b-117@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Feb 07, 2016 at 03:20:22PM -0800, Patrick Bartek wrote:
> On Sun, 07 Feb 2016, Me wrote:
> 
> > Hello,
> > 
> > In GNOME Shell, when I click on the "Eject" option in the notification
> > bar to unmount my USB key, it unmounts correctly and then immediately
> > mounts again, as if I just plugged it.
> > 
> > It happens only with the Kingston DataTraveler I own. I've tried on
> > several desktops, and it seems to happen only with GNOME Shell. MATE,
> > XFCE, and Ubuntu with Unity don't have the issue. And when I unmount
> > it with Nautilus, it stays unmounted, as it should.
> > 
> > This bug is annoying, as I can't be sure that nothing is writing on my
> > key before unplugging it.
> > 
> > I want to find the cause, and if necessary write a bug report. I need
> > advice : should I report the bug to Debian or GNOME ? What additional
> > information could I provide that could help ?
> > 
> > Obviously, if someone has a way to fix this without reporting a bug, I
> > would also be happy to read it.
> 
> You shouldn't have to "eject" it all.  Just plug it in and when done,
> pull it out. The system should mount and unmount it automatically. We're
> not talking Windows here.

This seems like *very* bad advice. The system keeps a cache[1] of the data
in the USB and flushes this cache only from time to time (that's what
makes accesses to the otherwise slow USB pretty fast).

Unmounting (however you achieve it -- be it from the command line or from
some desktop-y GUI, which labels this operation as "ejecting" or "safe
removal" or other more confusing terms) flushes (i.e. writes back) all the
"dirty" data in the cache and prevents more accesses to the device.

Only then can you remove it without fear of losing data.

Otherwise you either lose the last writes to the device (if you're
lucky and/or have a civilised file system on your stick, like ext3/ext4),
or the whole file system is thrashed (more likely when you have an
uncivilised filesystem, like some variation of FAT).

Take care

[1] actually it's more than one cache. It's caches all the way down!

- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAla4RSYACgkQBcgs9XrR2kbAcwCdF2JgbOOnG8WYXgPVqjJa+9hJ
pDcAniMbrT5z8tHvpaJnIpohtex55ex3
=5MP2
-----END PGP SIGNATURE-----

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

GNOME Shell can't unmount my USB key Me <mlistsgn@gmail.com> - 2016-02-07 23:50 +0100
  Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-08 00:30 +0100
    Re: GNOME Shell can't unmount my USB key Me <mlistsgn@gmail.com> - 2016-02-08 01:00 +0100
    Re: GNOME Shell can't unmount my USB key <tomas@tuxteam.de> - 2016-02-08 09:20 +0100
      Re: GNOME Shell can't unmount my USB key Me <mlistsgn@gmail.com> - 2016-02-08 09:50 +0100
        Re: GNOME Shell can't unmount my USB key <tomas@tuxteam.de> - 2016-02-08 10:50 +0100
          Re: GNOME Shell can't unmount my USB key Me <mlistsgn@gmail.com> - 2016-02-08 11:00 +0100
            Re: GNOME Shell can't unmount my USB key Sven Arvidsson <sa@whiz.se> - 2016-02-15 15:30 +0100
              Re: GNOME Shell can't unmount my USB key Me Em <mlistsgn@gmail.com> - 2016-02-18 21:40 +0100
      Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-08 23:00 +0100
        Re: GNOME Shell can't unmount my USB key <tomas@tuxteam.de> - 2016-02-08 23:30 +0100
        Re: GNOME Shell can't unmount my USB key Me <mlistsgn@gmail.com> - 2016-02-09 11:50 +0100
          Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-09 18:10 +0100
            Re: GNOME Shell can't unmount my USB key David Wright <deblis@lionunicorn.co.uk> - 2016-02-09 19:10 +0100
              Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-11 20:00 +0100
                Re: GNOME Shell can't unmount my USB key David Wright <deblis@lionunicorn.co.uk> - 2016-02-11 22:30 +0100
                Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-12 18:00 +0100
                Re: GNOME Shell can't unmount my USB key <tomas@tuxteam.de> - 2016-02-12 09:50 +0100
                Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-12 18:40 +0100
            Re: GNOME Shell can't unmount my USB key Me <mlistsgn@gmail.com> - 2016-02-09 19:50 +0100
              Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-11 20:20 +0100
                Re: GNOME Shell can't unmount my USB key Chris Bannister <cbannister@slingshot.co.nz> - 2016-02-11 23:30 +0100
                Re: GNOME Shell can't unmount my USB key Lisi Reisz <lisi.reisz@gmail.com> - 2016-02-12 00:00 +0100
                Re: GNOME Shell can't unmount my USB key David Wright <deblis@lionunicorn.co.uk> - 2016-02-12 03:50 +0100
                Re: GNOME Shell can't unmount my USB key Lisi Reisz <lisi.reisz@gmail.com> - 2016-02-12 11:00 +0100
                Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-12 18:10 +0100
            Re: GNOME Shell can't unmount my USB key Brian <ad44@cityscape.co.uk> - 2016-02-09 21:20 +0100
              Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-11 20:50 +0100
        Re: GNOME Shell can't unmount my USB key Bernard <bdebreil@teaser.fr> - 2016-02-15 01:30 +0100
    Re: GNOME Shell can't unmount my USB key Stuart Longland <stuartl@longlandclan.id.au> - 2016-02-09 22:30 +0100
      Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-11 21:00 +0100
        Re: GNOME Shell can't unmount my USB key Me <mlistsgn@gmail.com> - 2016-02-11 22:00 +0100
          Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-12 19:30 +0100
            Re: GNOME Shell can't unmount my USB key Stuart Longland <stuartl@longlandclan.id.au> - 2016-02-12 22:50 +0100
              Re: GNOME Shell can't unmount my USB key Patrick Bartek <nemommxiv@gmail.com> - 2016-02-13 02:30 +0100

csiph-web