New issue
Advanced search Search tips

Issue 861997 link

Starred by 0 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Feature



Sign in to add a comment

Corrupted USB drives should give more user-friendly errors.

Project Member Reported by amistry@chromium.org, Jul 10

Issue description

Chrome Version: 69.????
OS: Chrome OS

What steps will reproduce the problem?
1. Plug in corrupted/broken USB drive
2...
3. Profit!

What is the expected result?
A message of some sort saying the USB drive is corrupted/broken and the user should try using another drive.

What happens instead?
Not sure, but it's not a friendly message. Either the drive doesn't show up, or might show up but not show any files.

I noticed this when looking at feedback issues. An example log looks like:
2018-07-04T16:48:11.018147-05:00 NOTICE kernel: [ 2141.117123] scsi 0:0:0:0: Direct-Access     Lexar    USB Flash Drive  8.07 PQ: 0 ANSI: 2
2018-07-04T16:48:11.018214-05:00 INFO kernel: [ 2141.119514] platform vpd: Driver vpd requests probe deferral
2018-07-04T16:48:11.026143-05:00 NOTICE kernel: [ 2141.127158] sd 0:0:0:0: [sda] 15663104 512-byte logical blocks: (8.01 GB/7.46 GiB)
2018-07-04T16:48:11.026184-05:00 NOTICE kernel: [ 2141.127502] sd 0:0:0:0: [sda] Write Protect is off
2018-07-04T16:48:11.026192-05:00 DEBUG kernel: [ 2141.127526] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
2018-07-04T16:48:11.026196-05:00 ERR kernel: [ 2141.127867] sd 0:0:0:0: [sda] No Caching mode page found
2018-07-04T16:48:11.026201-05:00 ERR kernel: [ 2141.127892] sd 0:0:0:0: [sda] Assuming drive cache: write through
2018-07-04T16:48:11.591359-05:00 INFO kernel: [ 2141.692886]  sda: sda1
2018-07-04T16:48:11.596072-05:00 NOTICE kernel: [ 2141.697164] sd 0:0:0:0: [sda] Attached SCSI removable disk
2018-07-04T16:48:42.800500-05:00 INFO kernel: [ 2172.900947] usb 1-2: reset high-speed USB device number 5 using xhci_hcd
2018-07-04T16:48:43.071303-05:00 INFO kernel: [ 2173.171097] sd 0:0:0:0: [sda]  
2018-07-04T16:48:43.071378-05:00 WARNING kernel: [ 2173.171123] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2018-07-04T16:48:43.071393-05:00 INFO kernel: [ 2173.171143] sd 0:0:0:0: [sda]  
2018-07-04T16:48:43.071403-05:00 WARNING kernel: [ 2173.171155] Sense Key : Unit Attention [current] 
2018-07-04T16:48:43.071411-05:00 WARNING kernel: [ 2173.171177] Info fld=0x0
2018-07-04T16:48:43.071419-05:00 INFO kernel: [ 2173.171190] sd 0:0:0:0: [sda]  
2018-07-04T16:48:43.071427-05:00 WARNING kernel: [ 2173.171205] Add. Sense: Not ready to ready change, medium may have changed
2018-07-04T16:48:43.071435-05:00 INFO kernel: [ 2173.171228] sd 0:0:0:0: [sda] CDB: 
2018-07-04T16:48:43.071443-05:00 WARNING kernel: [ 2173.171240] Read(10): 28 00 00 ee fc 78 00 00 a8 00
2018-07-04T16:48:43.071451-05:00 ERR kernel: [ 2173.171292] blk_update_request: I/O error, dev sda, sector 15662200
2018-07-04T16:48:43.805109-05:00 INFO kernel: [ 2173.902664]  sda: sda1
2018-07-04T16:49:14.084823-05:00 INFO kernel: [ 2204.184589] usb 1-2: USB disconnect, device number 5
2018-07-04T16:49:14.091366-05:00 INFO kernel: [ 2204.190121] sd 0:0:0:0: [sda]  
2018-07-04T16:49:14.091421-05:00 WARNING kernel: [ 2204.190154] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
2018-07-04T16:49:14.091437-05:00 INFO kernel: [ 2204.190185] sd 0:0:0:0: [sda] CDB: 
2018-07-04T16:49:14.091446-05:00 WARNING kernel: [ 2204.190204] Read(10): 28 00 00 ee fc 78 00 00 a8 00
2018-07-04T16:49:14.091454-05:00 ERR kernel: [ 2204.190305] blk_update_request: I/O error, dev sda, sector 15662200
2018-07-04T16:49:14.091462-05:00 INFO kernel: [ 2204.190569] sd 0:0:0:0: [sda]  
2018-07-04T16:49:14.091472-05:00 WARNING kernel: [ 2204.190596] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
2018-07-04T16:49:14.091481-05:00 INFO kernel: [ 2204.190624] sd 0:0:0:0: [sda] CDB: 
2018-07-04T16:49:14.091490-05:00 WARNING kernel: [ 2204.190642] Read(10): 28 00 00 ee fd 28 00 00 30 00
2018-07-04T16:49:14.091498-05:00 ERR kernel: [ 2204.190735] blk_update_request: I/O error, dev sda, sector 15662376
2018-07-04T16:49:14.096593-05:00 ERR kernel: [ 2204.195561] scsi 0:0:0:0: rejecting I/O to dead device
2018-07-04T16:49:14.096632-05:00 ERR kernel: [ 2204.195618] scsi 0:0:0:0: rejecting I/O to dead device
2018-07-04T16:49:14.096640-05:00 ERR kernel: [ 2204.195651] scsi 0:0:0:0: rejecting I/O to dead device
2018-07-04T16:49:14.096645-05:00 ERR kernel: [ 2204.195803] Buffer I/O error on dev sda, logical block 512, async page read
2018-07-04T16:49:14.104087-05:00 ERR kernel: [ 2204.203244] udevd[9380]: inotify_add_watch(9, /dev/sda1, 10) failed: No such file or directory
2018-07-04T16:49:14.135520-05:00 ERR kernel: [ 2204.234912] udevd[9380]: inotify_add_watch(9, /dev/sda, 10) failed: No such file or directory
2018-07-04T16:49:14.142107-05:00 ERR kernel: [ 2204.241792] udevd[9380]: inotify_add_watch(9, /dev/sda, 10) failed: No such file or directory
2018-07-04T16:49:14.156579-05:00 ERR disks[1459]: Could not get the properties of device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1
2018-07-04T16:49:14.157126-05:00 ERR disks[1459]: GetDeviceProperties(...): Domain=dbus, Code=org.chromium.CrosDisks.Error, Message=Could not get the properties of device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1
2018-07-04T16:49:14.173832-05:00 ERR disks[1459]: Could not get the properties of device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda
2018-07-04T16:49:14.174353-05:00 ERR disks[1459]: GetDeviceProperties(...): Domain=dbus, Code=org.chromium.CrosDisks.Error, Message=Could not get the properties of device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda
2018-07-04T16:49:14.206562-05:00 ERR kernel: [ 2204.305611] udevd[9380]: inotify_add_watch(9, /dev/sda1, 10) failed: No such file or directory
2018-07-04T16:49:14.213063-05:00 ERR kernel: [ 2204.312261] udevd[9380]: inotify_add_watch(9, /dev/sda, 10) failed: No such file or directory
2018-07-04T16:49:14.230811-05:00 ERR disks[1459]: Could not get the properties of device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1
2018-07-04T16:49:14.230941-05:00 ERR disks[1459]: GetDeviceProperties(...): Domain=dbus, Code=org.chromium.CrosDisks.Error, Message=Could not get the properties of device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1
2018-07-04T16:49:14.243079-05:00 DEBUG kernel: [ 2204.342855] SELinux: initialized (dev proc, type proc), uses genfs_contexts
2018-07-04T16:49:14.258974-05:00 ERR disks[1459]: Could not get the properties of device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda
2018-07-04T16:49:14.261149-05:00 ERR disks[1459]: GetDeviceProperties(...): Domain=dbus, Code=org.chromium.CrosDisks.Error, Message=Could not get the properties of device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host0/target0:0:0/0:0:0:0/block/sda

 

Sign in to add a comment