You are not logged in.

#1 2010-12-05 08:11:37

Vipes
Member
From: Okinawa, Japan
Registered: 2008-06-06
Posts: 14

Mounting USB Hard Drives and Hard Locking

So, it's been a long time since I've posted here which I have to say, is because Arch was running beautifully for a long time. Sadly though, my laptop was stolen and I was forced to buy a new one. With the new one, I've gotten everything mostly back up and running but I'm having an issue. Obviously the one in the subject line.

A few things to note about this install and after testing before posting.

1. Brand new install
2. All packages are current EXCEPT 3.  I currently have nvidia-256.53-1-x86_64, nvidia-utils with the same version, and kernel26-2.6.35.5-1. These are due to a black screen I was getting on starting my xserver.
3. HAL is running
4. Optical disks mount and umount cleanly.
5. NTFS-3G is installed and working.
6. My Windows 7 install on the same internal hard drive can be accessed and mounted without a hard lock.

My problem is this. Whenever I try and connect an external hard drive via USB, it takes a few seconds and then the whole machine hard locks with what looks like a kernel panic(can't do anything and I have blinking lights...ie capslock, etc).  This computer seems to have USB 3.0 which I noticed from Win7 awhile back if that makes a difference. (05:00.0 USB Controller: NEC Corporation Device 0194 (rev 03) )

Last time I try to mount my WD Passport, I ran dmesg right after I plugged it in before I got my hard lock. The only thing I noticed were the entries at the bottom of things like this...

xhci_hcd 0000:05:00.0: WARN: Stalled endpoint

I have no idea whether that has anything to do with it or not. I'd be more than happy to post config files if needed. I've tried googling, the wiki, and the forums and I'm stumped. I actually plugged my drive in one time and got it to mount and opened some folders. Afterward, it hard locked.

Last edited by Vipes (2010-12-10 07:09:42)


Main Box: AMD Athlon 64 X2 Dual Core 6400+ @ 3.2Ghz, 4GB Kingston HyperX DDR2 PC6400 @ 4-4-4-12, eVGA NVidia 8800GTX w/ 768MB DDR3, Arch64 and Windows 7 64-bit on Dual boot
Laptops: Sony VPCF1 Arch64/Win7, Dell Inspiron E1705 Arch32.

Offline

#2 2010-12-09 15:30:35

Vipes
Member
From: Okinawa, Japan
Registered: 2008-06-06
Posts: 14

Re: Mounting USB Hard Drives and Hard Locking

Just an update. After trying everything, everything seemed to mount but my Western Digital drives. I suspect it had something to do with a conflict of the Smartware stuff that mounts too. Anyway, after doing a system update on 7 Dec with the new HAL, udev, and such, the problem fixed itself. So, I guess it was just a bug.

EDIT:

So, I was wrong. Plugged my devices in a bit ago and I got another hard lock. I started spamming dmesg right before I plugged in the drive and right after and even pushed it to a text file. I did some Google searching again and it seems that the Stalled Endpoint issue, and that module, are USB 3.0 related. Figures. If anyone has some insight, please let me know.

Last edited by Vipes (2010-12-10 07:11:07)


Main Box: AMD Athlon 64 X2 Dual Core 6400+ @ 3.2Ghz, 4GB Kingston HyperX DDR2 PC6400 @ 4-4-4-12, eVGA NVidia 8800GTX w/ 768MB DDR3, Arch64 and Windows 7 64-bit on Dual boot
Laptops: Sony VPCF1 Arch64/Win7, Dell Inspiron E1705 Arch32.

Offline

#3 2010-12-10 07:34:04

Vipes
Member
From: Okinawa, Japan
Registered: 2008-06-06
Posts: 14

Re: Mounting USB Hard Drives and Hard Locking

So, I started looking at my logs. Here's the bottom cut from errors.log:

Dec 10 08:04:03 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive cache: write through                            
Dec 10 08:04:03 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive cache: write through                            
Dec 10 08:04:03 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive cache: write through    

Cut from my dmesg when I plugged the drive in:

usb 2-4: new high speed USB device using xhci_hcd and address 0                                                    
xhci_hcd 0000:05:00.0: WARN: short transfer on control ep                                                          
xhci_hcd 0000:05:00.0: WARN: short transfer on control ep                                                          
xhci_hcd 0000:05:00.0: WARN: short transfer on control ep                                                          
xhci_hcd 0000:05:00.0: WARN: short transfer on control ep                                                          
Initializing USB Mass Storage driver...                                                                            
scsi6 : usb-storage 2-4:1.0                                                                                        
usbcore: registered new interface driver usb-storage                                                               
USB Mass Storage support registered.                                                                               
scsi 6:0:0:0: Direct-Access     WD       My Passport 070A 1032 PQ: 0 ANSI: 4                                       
sd 6:0:0:0: Attached scsi generic sg2 type 0                                                                       
scsi 6:0:0:1: CD-ROM            WD       Virtual CD 070A  1032 PQ: 0 ANSI: 4                                       
sd 6:0:0:0: [sdb] 623769600 512-byte logical blocks: (319 GB/297 GiB)                                              
sd 6:0:0:0: [sdb] Write Protect is off                                                                             
sd 6:0:0:0: [sdb] Mode Sense: 23 00 10 00                                                                          
sd 6:0:0:0: [sdb] Assuming drive cache: write through                                                              
sr1: scsi3-mmc drive: 51x/51x caddy                                                                                
sr 6:0:0:1: Attached scsi CD-ROM sr1                                                                               
sr 6:0:0:1: Attached scsi generic sg3 type 5                                                                       
sd 6:0:0:0: [sdb] Assuming drive cache: write through                                                              
 sdb:                                                                                                              
scsi 6:0:0:2: Enclosure         WD       SES Device       1032 PQ: 0 ANSI: 4                                       
scsi 6:0:0:2: Attached scsi generic sg4 type 13                                                                    
 sdb1                                                                                                              
sd 6:0:0:0: [sdb] Assuming drive cache: write through                                                              
sd 6:0:0:0: [sdb] Attached SCSI disk                                                                               
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
ses 6:0:0:2: Attached Enclosure device                                                                             
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
fuse init (API version 7.14)                                                                                       
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint                                                                      
xhci_hcd 0000:05:00.0: WARN: Stalled endpoint

Kernel messages show pretty much the same thing. These logs were from just a moment ago when I plugged it in and then removed it. Sometimes it seems to hard lock, others it doesn't. Got me.


Main Box: AMD Athlon 64 X2 Dual Core 6400+ @ 3.2Ghz, 4GB Kingston HyperX DDR2 PC6400 @ 4-4-4-12, eVGA NVidia 8800GTX w/ 768MB DDR3, Arch64 and Windows 7 64-bit on Dual boot
Laptops: Sony VPCF1 Arch64/Win7, Dell Inspiron E1705 Arch32.

Offline

#4 2010-12-10 07:45:40

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: Mounting USB Hard Drives and Hard Locking

Do you need USB 3.0?  You could always blacklist xhci_hcd as a workaround.  But it sounds like either a hardware issure or kernel bug.

Offline

#5 2010-12-10 07:48:48

Vipes
Member
From: Okinawa, Japan
Registered: 2008-06-06
Posts: 14

Re: Mounting USB Hard Drives and Hard Locking

I don't *need* it, no. Something else I just realized though. Right now, my drive is plugged in and working. Thinking back, I only think I got hard locks when I was using my 4port hub in conjuction with my drives. The hub, is USB 2.0. This is me assuming, but maybe THAT has something to do with it.


Main Box: AMD Athlon 64 X2 Dual Core 6400+ @ 3.2Ghz, 4GB Kingston HyperX DDR2 PC6400 @ 4-4-4-12, eVGA NVidia 8800GTX w/ 768MB DDR3, Arch64 and Windows 7 64-bit on Dual boot
Laptops: Sony VPCF1 Arch64/Win7, Dell Inspiron E1705 Arch32.

Offline

#6 2010-12-10 11:59:59

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Mounting USB Hard Drives and Hard Locking

may be a power surge with your 4 port usb hub.

Offline

#7 2010-12-11 23:02:24

Vipes
Member
From: Okinawa, Japan
Registered: 2008-06-06
Posts: 14

Re: Mounting USB Hard Drives and Hard Locking

It's not the hub like I thought. I had just a hard drive plugged in and I got another hard lock trying to unmount it. I think it has to be something USB 3.0 related so I will try and blacklist that module.


Main Box: AMD Athlon 64 X2 Dual Core 6400+ @ 3.2Ghz, 4GB Kingston HyperX DDR2 PC6400 @ 4-4-4-12, eVGA NVidia 8800GTX w/ 768MB DDR3, Arch64 and Windows 7 64-bit on Dual boot
Laptops: Sony VPCF1 Arch64/Win7, Dell Inspiron E1705 Arch32.

Offline

#8 2011-11-14 02:41:42

Mikrochip
Member
Registered: 2011-11-14
Posts: 1

Re: Mounting USB Hard Drives and Hard Locking

Sorry to interject here but:: this problem exists with WD My Passports on machines without usb3 too... so you might be barking up the wrong tree.

i have replicated the issue on ubuntu 10.04LTS server(i386, and x64) - so not distro-specific. and... these are heavy duty servers -- they don't have usb3 in them at all., only USB2.0

it would seem it is a bug in the drives electronics, and is specific to WD my passports/other WD encrypted disk-and-board solutions(all 1 piece inside) - and the bug is not 100% permanent, so it is something the drive does intermittently, and so has no hope of being fixed considering windows just doesn't care... reboot, replug, it works -- what ordinary user knows any different?


we will be decommisioning all of the WD my passports across all of our sites, as the issue has been around for long enough for a kernel patch to fix it, but still isn't fixed.  we have to manually force down, and restart servers to solve the problem, and get the backup drives back. try using standard drives in standard noname caddies... your problem will go away.

Offline

Board footer

Powered by FluxBB