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


Groups > linux.debian.user > #163960

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 23:30 +0100
Message-ID <r02tJ-33a-29@gated-at.bofh.it> (permalink)
References <qZGjw-4vr-9@gated-at.bofh.it> <qZGWg-54b-117@gated-at.bofh.it> <qZPd8-2z8-5@gated-at.bofh.it> <r020F-2D0-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

On Mon, Feb 08, 2016 at 01:50:59PM -0800, Patrick Bartek wrote:
> On Mon, 08 Feb 2016, tomas@tuxteam.de wrote:

[...]

> > 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).
> 
> Perhaps in days gone by: my OS prior to Wheezy -- Fedora 12 --
> was like that. Anything USB had to be mounted/unmounted manually.
> What a pain.  And if you unplugged without unmounting . . .  Yes, things
> could break. But with Wheezy which I've been using for 3+ years have
> had no problems with just plug/unplug. The only precaution is to check
> the drive activity light isn't flickering.

Most definitely not. You have just been lucky. As long as a file system
is mounted, the OS is free to keep changed information in RAM, and
flushes it whenever convenient. If you pull the device out while those
changes haven't been flushed, you have data loss. If those changes
concern file system structural information... your file system is
thrashed. File systems with a journal are more robust wrt. to that
event, but the data which was in RAM hasn't made it to the stick.

You have been lucky because basically, if there is I/O bandwidth left,
the flushing happens relatively quickly. But I wouldn't count on
that.

> Of course, my install of Wheezy is very custom and minimal: for the GUI
> just a window manager, Openbox.  And I custom wrote my own udev rules
> for handling USB devices -- thumb drives, cell phones, eBook reader,
> etc.

That doesn't change anything.

> But a regular desktop should be set up to do the same thing,
> safely.

That's why the desktops have this thingy to "remove the device safely",
which under the hood does an unmount.

> If the OP's GNOME Shell is not doing this, but other desktops are, then
> GNOME might be the problem.

See above.

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

iEYEARECAAYFAla5DdUACgkQBcgs9XrR2kb1OgCeKgagYEzyRgt0eU079V/E0EaM
SYsAn2GqWo5Ct7r+H+c9n2cMQeiykq5i
=RE7A
-----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