Modify

Opened 2 years ago

Closed 2 years ago

#21526 closed defect (duplicate)

WD Elements 4TB drive not detected properly

Reported by: anonymous Owned by: developers
Priority: high Milestone:
Component: packages Version: Chaos Calmer 15.05
Keywords: Cc:

Description

The WD Elements 4TB USB 3.0 drive is not detected properly.
There is only an USB Mass Storage device, but no partitions.
On Windows 10 and GParted Live everything works fine (USB 3.0 and 2.0 tested, too).

Device Information:

  • Buffalo WMBR-HP-G300-H with OpenWRT Chaos Calmer 15.05
  • WD Elements 4TB (brand new, one 4TB ext4 volume, GTP)
  • tried with and without an external powered USB hub

Software installed on the router:

kmod-usb-core
kmod-usb-uhci
kmod-usb2
kmod-usb-storage
kmod-usb-storage-extras
block-mount
kmod-scsi-core
minidlna
samba36-server

files attached:

  • dmesg after plugging in the device:
  • lsusb -v

Attachments (2)

dmesg-after-plugin.txt (7.6 KB) - added by josef.schabasser@… 2 years ago.
lsusb-v.txt (2.9 KB) - added by josef.schabasser@… 2 years ago.

Download all attachments as: .zip

Change History (13)

Changed 2 years ago by josef.schabasser@…

Changed 2 years ago by josef.schabasser@…

comment:1 Changed 2 years ago by josef.schabasser@…

I forgot to mention that the external drive has its own power supply, so it is definitely NOT an USB power issue.

comment:2 Changed 2 years ago by anonymous

since it's over 2TB in size i assume it's partitioned as GPT... can you check the kernel or system log for any mention of GPT or EFI / GUID partitions being recognized?

Maybe GPT support was not enabled when building the image or for that router model.

comment:3 Changed 2 years ago by anonymous

P.S. - also check if there are any firmware upgrades for the drive...

[ 173.004000] sd 1:0:0:0: [sda] Asking for cache data failed

[ 181.328000] sd 1:0:0:0: [sda] READ CAPACITY failed

these bits are worrying... either there's a bug in the kernel storage or usb drivers.. or the drive firmware itself has issues.

comment:4 Changed 2 years ago by josef.schabasser@…

No mentions of GPT/EFI/GUID in the log and no firmware update for the drive available.
There are only updates for WD MyCloud and MyPassport drives available.
I can flash the same firmware again.

comment:5 Changed 2 years ago by anonymous

"usb-storage.delay_use=5" to the kernel or add "options usb_storage delay_use=5" to some custom .conf file in the modprobe.d directory

comment:6 Changed 2 years ago by anonymous

I tried

echo 5 > /sys/module/usb_storage/parameters/delay_use

and afterwards connecting the external drive, still the same.

Should I try setting this permanent? If so, I don't know how...

comment:7 Changed 2 years ago by anonymous

"brick"-sized external drives have quite a long boot time from my knowledge ... try setting the delay_use to 30, 60 or 180 seconds and 5 seconds is often not long enough.

the reason for this is that the drive enclosure has its own operating system and some models only boot the storage interface OS when they detect an usb connection, not when they are receiving power.

comment:8 Changed 2 years ago by anonymous

I think 15 is high enough, but then I geht this:

[ 5405.380000] usb 1-1: new high-speed USB device number 8 using ifxusb_hcd
[ 5405.576000] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 5405.588000] scsi host6: usb-storage 1-1:1.0
[ 5420.640000] scsi 6:0:0:0: Direct-Access     WD       Elements 107C    1065 PQ: 0 ANSI: 6
[ 5420.652000] sd 6:0:0:0: [sda] 976746240 4096-byte logical blocks: (4.00 TB/3.63 TiB)
[ 5420.832000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5421.204000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5421.576000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5421.948000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5422.324000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5422.704000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5422.904000] sd 6:0:0:0: [sda] Write Protect is off
[ 5422.908000] sd 6:0:0:0: [sda] Mode Sense: 53 00 10 08
[ 5423.088000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5423.464000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5423.852000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5424.224000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5424.600000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5424.980000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5425.172000] sd 6:0:0:0: [sda] No Caching mode page found
[ 5425.176000] sd 6:0:0:0: [sda] Assuming drive cache: write through
[ 5425.360000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5425.732000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5426.120000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5426.492000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5426.864000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5427.236000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5427.604000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5427.976000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5428.348000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5428.728000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5429.104000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5429.480000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5429.848000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5430.224000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5430.608000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5430.984000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5431.356000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5431.732000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5432.096000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5432.472000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5432.848000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5433.224000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5433.608000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5433.980000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5434.176000] sd 6:0:0:0: [sda] READ CAPACITY failed
[ 5434.180000] sd 6:0:0:0: [sda]
[ 5434.184000] Result: hostbyte=0x07 driverbyte=0x00
[ 5434.188000] sd 6:0:0:0: [sda] Sense not available.
[ 5434.372000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5434.744000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5435.116000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5435.488000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5435.860000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5436.232000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5436.596000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5436.968000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5437.340000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5437.712000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5438.088000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5438.460000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5438.656000] sda: detected capacity change from 4000752599040 to 0
[ 5438.860000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5439.344000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5439.716000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5440.088000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5440.460000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5440.832000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5441.196000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5441.568000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5441.940000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5442.312000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5442.684000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5443.056000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5443.428000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5443.800000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5444.172000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5444.544000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5444.920000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5445.292000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5445.656000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5446.028000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5446.400000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5446.772000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5447.148000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5447.520000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5447.884000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5448.256000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5448.628000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5449.004000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5449.376000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5449.748000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5450.112000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5450.484000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5450.856000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5451.232000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5451.604000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5451.976000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5452.168000] sd 6:0:0:0: [sda] READ CAPACITY failed
[ 5452.172000] sd 6:0:0:0: [sda]
[ 5452.176000] Result: hostbyte=0x07 driverbyte=0x00
[ 5452.180000] sd 6:0:0:0: [sda] Sense not available.
[ 5452.356000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5452.728000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5453.104000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5453.476000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5453.848000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5454.220000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5454.584000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5454.956000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5455.328000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5455.700000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5456.072000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5456.448000] usb 1-1: reset high-speed USB device number 8 using ifxusb_hcd
[ 5456.640000] sd 6:0:0:0: [sda] Attached SCSI disk

Why are there so many resets? And why is after some time a change of the capacity from 4TB to 0?

comment:9 Changed 2 years ago by anonymous

TL;DR: 15 seconds delay should be enough, the drive capacity is detected propery, but then there happens a reset bombarement and the drive capacity is changed to 0.

comment:10 Changed 2 years ago by josef.schabasser@…

This must be a problem within the kernel or one of its USB modules.
The same happens to my USB thumb drive, which I used for extroot with Barrier Breaker.
Now I can't attach any USB mass storage device to my router.
I did not test any other devices (except hubs) though.

comment:11 Changed 2 years ago by nbd

  • Resolution set to duplicate
  • Status changed from new to closed

continued in #21549

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.