← Back to team overview

kernel-packages team mailing list archive

[Bug 1441104] [NEW] USB 3.0 storage safely remove issue: re-detect the device(that I have removed already) soon

 

Public bug reported:

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.
$ 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:
$ 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 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.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete


** Tags: trusty

** Attachment added: "about the log, I tar then into dir bug ==> bug.tar"
   https://bugs.launchpad.net/bugs/1441104/+attachment/4368328/+files/bug.tar

-- 
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 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.
  $ 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:
  $ 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 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1441104/+subscriptions


Follow ups

References