USB 3.0 storage safely remove issue: re-detect (re-plug-in) the device(that I have removed already) soon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
I have a USB 3.0 Hard Disk, a USB 3.0 Flash storage, and a 4GB micro SD with USB 2.0 SD card. When I unmount devices, they still show up when I execute the command. For example, when I plug in my USB 3.0 flash storage to my PC's USB 3.0 port:
$ df -h
...
/dev/sdc1 30G 17G 13G 57% /media/chen/MyFlash
I ummount it and safely remove it, and run df -h, you will see it:
$ sudo umount /dev/sdc1
...
$ sudo udisks --detach /dev/sdc
$ df -h
...
/dev/sdc1 30G 17G 13G 57% /media/chen/MyFlash
(4)Oops, The issue is an nightmare!! :( Please see the log )
$ sudo lspci -vnvn > lspci-vnvn.
=======
The behavior of my USB 3.0 Hard disk is same.
(1) I plug in my USB 3.0 Hard disk to my pc's USB 3.0 port( the same port ).
(2) My computer detect my storage soon and automatically mount it.
$ df -h
...
/dev/sdc1 932G 205M 932G 1% /media/chen/陈家胜
(3) I ummount it and safely remove it, and run df -h, you will see it:
$ sudo umount /dev/sdc1
[sudo] password for chen:
...
$ sudo udisks --detach /dev/sdc
$ df -h
...
/dev/sdc1 932G 205M 932G 1% /media/chen/陈家胜
(4) :( Please see the log:
$ sudo lspci -vnvn > lspci-vnvn.
(5)And I just realize lspci have no information usb storage, so:
$ lsusb > lsusb3.
(6)I unplug my HD and plug in my storage.
$ lsusb > lsusb3.0storage.log
=======
And Have a try that plug in my micro sd card with card reader to USB 3.0 port( the same port ):
(1) plug in my micro sd card , and :
$ df -h
...
/dev/sdd4 3.7G 38M 3.7G 2% /media/
(2) lsusb:
$ lsusb
( because i plug in my USB Storage to another usb 3.0 port, so my sd card is /dev/sdd4 )
( Why i plug in my USB Storage is that i want get string of "Teclast CoolFlash USB3.0" )
( from gnome-disks And I forgot unplug it...)
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 013: ID 13fe:5500 Kingston Technology Company Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 8087:07dc Intel Corp.
Bus 003 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 003 Device 002: ID 24ae:2000
Bus 003 Device 008: ID 05e3:0723 Genesys Logic, Inc. GL827L SD/MMC/MS Flash Card Reader
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(3)And then unmount and safely remove my sd card and ... :
chen@chen-
文件系统 容量 已用 可用 已用% 挂载点
...
/dev/sdd4 3.7G 38M 3.7G 2% /media/
chen@chen-
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 013: ID 13fe:5500 Kingston Technology Company Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 8087:07dc Intel Corp.
Bus 003 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 003 Device 002: ID 24ae:2000
Bus 003 Device 008: ID 05e3:0723 Genesys Logic, Inc. GL827L SD/MMC/MS Flash Card Reader
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
chen@chen-
[sudo] password for chen:
chen@chen-
chen@chen-
chen@chen-
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 014: ID 13fe:5500 Kingston Technology Company Inc.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 8087:07dc Intel Corp.
Bus 003 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 003 Device 002: ID 24ae:2000
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(You can see I did a mistake, I udisks --detach /dev/sdc ... I hopt that not distract you ...)
(And the led of card reader if off )
=======
let's see what happen when I plug in my USB3.0 Flash Storage into USB 2.0 port:
(1)Plug in USB 3.0 Flash storage into USB 2.0 port
chen@chen-
文件系统 容量 已用 可用 已用% 挂载点
...
/dev/sdc1 30G 17G 13G 57% /media/chen/MyFlash
chen@chen-
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 009: ID 8087:07dc Intel Corp.
Bus 003 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 003 Device 002: ID 24ae:2000
Bus 003 Device 010: ID 13fe:5500 Kingston Technology Company Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(2)And unmount and safely remove it:
chen@chen-
chen@chen-
chen@chen-
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 009: ID 8087:07dc Intel Corp.
Bus 003 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 003 Device 002: ID 24ae:2000
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
chen@chen-
(The led of FLASH storage is off)
=======
I have a try again:
I push in USB 3.0 Flash storage into USB 3.0 Port. I unmount and safely remove it.
The led of Flash Storage ==> on ==> off =(after 0.7 second)=> on.
This operation , I won't do it on my Hard Disk......
and it seem some problems with my hard disk [ASMedia Technology Inc. ASMedia 2105 SATA bridge] between usb 2.0 driver ;)
WORKAROUND: In BIOS > Settings > Advanced > USB Configuration change "XHCI Hand-off" to [Disabled].
---
ApportVersion: 2.14.1-0ubuntu3.8
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
InstallationDate: Installed on 2014-12-18 (109 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
MachineType: MSI MS-7851
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.127.11
Tags: trusty
Uname: Linux 3.13.0-48-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 07/17/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V3.6
dmi.board.
dmi.board.name: B85I (MS-7851)
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: MS-7851
dmi.product.
dmi.sys.vendor: MSI
tags: | added: vivid |
summary: |
- USB 3.0 storage safely remove issue: re-detect the device(that I have - removed already) soon + USB 3.0 storage safely remove issue: re-detect (re-plug-in) the + device(that I have removed already) soon |
description: | updated |
tags: |
added: bios-outdated-3.7 removed: latest-bios-3.6 |
Changed in linux (Ubuntu): | |
status: | Confirmed → Incomplete |
tags: |
added: latest-bios-3.7 removed: bios-outdated-3.7 |
Changed in linux (Ubuntu): | |
importance: | Low → Medium |
status: | Confirmed → Incomplete |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1441104
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.