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


Groups > linux.debian.user > #228238

Re: Problem unplugging a USB drive

From Joe <joe@jretrading.com>
Newsgroups linux.debian.user
Subject Re: Problem unplugging a USB drive
Date 2020-10-26 13:20 +0100
Message-ID <B49DJ-6aM-21@gated-at.bofh.it> (permalink)
References <B49u1-67y-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 26 Oct 2020 12:08:11 +0000
Mick Ab <recoverymail123890@gmail.com> wrote:

> A USB memory stick has been plugged into a USB 3 port for quite a few
> days. The stick was left there after it was discovered that the
> kernel does not recognise it (e.g. fdisk - l does not show the stick).
> 
> It was decided to unplug the stick. Subsequently the command
> cat  /var/log/messages was run and the messages revealed that just
> before the stick was unplugged, the kernel suddenly found the stick
> and automatically mounted it to /media/usb0. While the stick was being
> unplugged, the system performed a 'lazy' unmount from /media/usb0.
> 
> The stick was later plugged back into the USB 3 port and the dmesg
> command issued. The dmesg messages revealed that the stick was
> probably corrupted due to the lazy unmount.
> 
> My question is :-
> 
> Why did the kernel suddenly find the stick and automatically mount it
> just before the stick was unplugged ?

When you say 'just before', are you talking milliseconds or minutes?

USB 'plugs' are appalling, and I've known sticks to be unrecognised, but
found after wiggling the device slightly.

-- 
Joe

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


Thread

Problem unplugging a USB drive Mick Ab <recoverymail123890@gmail.com> - 2020-10-26 13:10 +0100
  Re: Problem unplugging a USB drive Joe <joe@jretrading.com> - 2020-10-26 13:20 +0100
    Re: Problem unplugging a USB drive Curt <curty@free.fr> - 2020-10-26 15:20 +0100
      Re: Problem unplugging a USB drive David Wright <deblis@lionunicorn.co.uk> - 2020-10-26 16:30 +0100
        Re: Problem unplugging a USB drive Mick Ab <recoverymail123890@gmail.com> - 2020-10-26 18:10 +0100
          Re: Problem unplugging a USB drive Stefan Monnier <monnier@iro.umontreal.ca> - 2020-10-26 21:20 +0100
          Re: Problem unplugging a USB drive David Wright <deblis@lionunicorn.co.uk> - 2020-10-26 21:50 +0100
            Re: Problem unplugging a USB drive Mick Ab <recoverymail123890@gmail.com> - 2020-10-26 22:00 +0100

csiph-web