← Back to team overview

kernel-packages team mailing list archive

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

 

This bug still "work" for my USB 3.0 devices (storage/hard disk) with
USB 3.0 port.

$ uname -a
Linux B85I-Ubuntu 4.2.0-19-generic #23-Ubuntu SMP Wed Nov 11 11:39:30 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/issue
Ubuntu 15.10 \n \l

-- 
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:
  Confirmed

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