kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #111585
[Bug 1441104] Re: USB 3.0 storage safely remove issue: re-detect the device(that I have removed already) soon
陈伟琪, thank you for reporting this and helping make Ubuntu better. Could
you please test the latest upstream kernel available from the very top
line at the top of the page (the release names are irrelevant for
testing, and please do not test the daily folder) following
https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional
upstream developers to examine the issue.
If the test did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags by clicking on the yellow circle with a black pencil icon, next to the word Tags, located at the bottom of the report description:
kernel-fixed-upstream
kernel-fixed-upstream-3.XY-rcZ
Where XY and Z are numbers corresponding to the kernel version.
If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-3.XY-rcZ
Once testing of the upstream kernel is complete, please mark this bug's
Status as Confirmed. Please let us know your results.
Thank you for your understanding.
** Description changed:
- I have an USB 3.0 Hard Disk and an USB 3.0 Flash storage.
- And I have an 4GB micro sd with USB 2.0 sd card. But I do not have 2.0 USB storage or 2.0 usb hard disk.
-
- OK, let me describe this issue:
-
- (1) I plug in my USB 3.0 flash storage to my pc's USB 3.0 port.
- (2) My computer detect my storage soon and automatically mount it.
+ 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
- (3) I ummount it and safely remove it, and run df -h, you will see it:
+ 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 30G 17G 13G 57% /media/chen/MyFlash
(4)Oops, The issue is an nightmare!! :( Please see the log )
$ sudo lspci -vnvn > lspci-vnvn.usbstorage_usb3.0.log
-
========================================================
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.usbharddisk_usb3.0.log
(5)And I just realize lspci have no information usb storage, so:
$ lsusb > lsusb3.0harddisk.log
(6)I unplug my HD and plug in my storage.
$ lsusb > lsusb3.0storage.log
-
- #It's so strange that lsusb show my usb storage "Kingston Technology Company Inc.", But
- #my usb storage is "Teclast CoolFlash USB3.0". OK, that may not be important.
-
=====================================================================================
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/chen/DiskGenius
(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-Server:~/bug$ df -h
文件系统 容量 已用 可用 已用% 挂载点
...
/dev/sdd4 3.7G 38M 3.7G 2% /media/chen/DiskGenius
chen@chen-Server:~/bug$ lsusb
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-Server:~/bug$ sudo umount /dev/sdd4
[sudo] password for chen:
chen@chen-Server:~/bug$ sudo udisks --detach /dev/sdc
chen@chen-Server:~/bug$ sudo udisks --detach /dev/sdd
chen@chen-Server:~/bug$ lsusb
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-Server:~/bug$ df -h
文件系统 容量 已用 可用 已用% 挂载点
...
/dev/sdc1 30G 17G 13G 57% /media/chen/MyFlash
chen@chen-Server:~/bug$ lsusb
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-Server:~/bug$ sudo umount /dev/sdc1
chen@chen-Server:~/bug$ sudo udisks --detach /dev/sdc
chen@chen-Server:~/bug$ lsusb
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-Server:~/bug$
(The led of FLASH storage is off)
-
=================================================
- I have a try agagin:
+ 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 ;)
- =================================================
- OK, That's my USB 3.0 issue
-
- ==================================================
- chen@chen-Server:~/bug$ uname -a
- Linux chen-Server 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
- chen@chen-Server:~/bug$ cat /etc/issue
- Ubuntu 14.04.2 LTS \n \l
- chen@chen-Server:~/bug$ cat /proc/cpuinfo > cpuinfo.log
-
- about the log, I tar then into dir bug ==> bug.tar
-
- If you need other information, just tell me.
- But I have no ieda that more information i should provide. I not often report bugs.
-
- OK.
- Best Regards,
- Weiqi Chen.
---
ApportVersion: 2.14.1-0ubuntu3.8
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC1: chen 1921 F.... pulseaudio
/dev/snd/controlC0: chen 1921 F.... pulseaudio
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=/vmlinuz-3.13.0-48-generic root=UUID=12124a3b-f21c-46ab-a265-b1f37918e964 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.13.0-48.80-generic 3.13.11-ckt16
RelatedPackageVersions:
linux-restricted-modules-3.13.0-48-generic N/A
linux-backports-modules-3.13.0-48-generic N/A
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.asset.tag: To be filled by O.E.M.
dmi.board.name: B85I (MS-7851)
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV3.6:bd07/17/2014:svnMSI:pnMS-7851:pvr1.0:rvnMSI:rnB85I(MS-7851):rvr1.0:cvnMSI:ct3:cvr1.0:
dmi.product.name: MS-7851
dmi.product.version: 1.0
dmi.sys.vendor: MSI
** Tags added: latest-bios-3.6
** Changed in: linux (Ubuntu)
Importance: Undecided => Low
** Changed in: linux (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1441104
Title:
USB 3.0 storage safely remove issue: re-detect the device(that I have
removed already) soon
Status in linux package in Ubuntu:
Incomplete
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.usbstorage_usb3.0.log
========================================================
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.usbharddisk_usb3.0.log
(5)And I just realize lspci have no information usb storage, so:
$ lsusb > lsusb3.0harddisk.log
(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/chen/DiskGenius
(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-Server:~/bug$ df -h
文件系统 容量 已用 可用 已用% 挂载点
...
/dev/sdd4 3.7G 38M 3.7G 2% /media/chen/DiskGenius
chen@chen-Server:~/bug$ lsusb
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-Server:~/bug$ sudo umount /dev/sdd4
[sudo] password for chen:
chen@chen-Server:~/bug$ sudo udisks --detach /dev/sdc
chen@chen-Server:~/bug$ sudo udisks --detach /dev/sdd
chen@chen-Server:~/bug$ lsusb
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-Server:~/bug$ df -h
文件系统 容量 已用 可用 已用% 挂载点
...
/dev/sdc1 30G 17G 13G 57% /media/chen/MyFlash
chen@chen-Server:~/bug$ lsusb
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-Server:~/bug$ sudo umount /dev/sdc1
chen@chen-Server:~/bug$ sudo udisks --detach /dev/sdc
chen@chen-Server:~/bug$ lsusb
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-Server:~/bug$
(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 ;)
---
ApportVersion: 2.14.1-0ubuntu3.8
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC1: chen 1921 F.... pulseaudio
/dev/snd/controlC0: chen 1921 F.... pulseaudio
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=/vmlinuz-3.13.0-48-generic root=UUID=12124a3b-f21c-46ab-a265-b1f37918e964 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.13.0-48.80-generic 3.13.11-ckt16
RelatedPackageVersions:
linux-restricted-modules-3.13.0-48-generic N/A
linux-backports-modules-3.13.0-48-generic N/A
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.asset.tag: To be filled by O.E.M.
dmi.board.name: B85I (MS-7851)
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV3.6:bd07/17/2014:svnMSI:pnMS-7851:pvr1.0:rvnMSI:rnB85I(MS-7851):rvr1.0:cvnMSI:ct3:cvr1.0:
dmi.product.name: MS-7851
dmi.product.version: 1.0
dmi.sys.vendor: MSI
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1441104/+subscriptions
References