Problem with USB 3 port

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Problem with USB 3 port

Postby NewToLinux » 2020-07-30 08:05

I have a problem with a USB 3 port on a desktop running Debian Linux. The problem started when a system backup was attempted to a portable hard drive plugged into the USB 3 port. The backup operation had previously been done many times with no problems.

This time the mount operation failed with a message of the type 'can't find UUID=....'

Various commands such as fdisk -l showed that the kernel was not detecting the drive.

The drive was unplugged, then replug with a dmesg command issued straight after the replug.
The dmesg output seemed to indicate the portable hard drive itself had some problem.

A new portable hard drive was plugged into the port, but the kernel could not see the new drive, although a slowly flashing light on the drive indicated some power was reaching the hard drive.

I thought that perhaps the port was not supplying enough power to the drive, so I then plugged a new USB flash drive into the port. However the kernel would not recognise the flash drive.

Someone subsequently suggested that perhaps the power pins of the port were working but not the data pins.
This could perhaps be due to a problem with the port's USB header or associated cabling or possibly due to damage to
the host controller or associated wiring.

Any thoughts on this, please.
NewToLinux
 
Posts: 44
Joined: 2017-09-17 11:30

Re: Problem with USB 3 port

Postby Deb-fan » 2020-07-30 10:03

Test on other pc's and/or other ports to help rule out hardware failure of drives, specific ports. What are those external drives formatted as ? Fat32, ext3-4 etc ? Run fsck or chkdsk on them. Plug them into suspected bad port, run "lsblk" to see if they show up and what as, then explictedly try mounting them. Say external drives do show up as a listed block device and it's sdc1 ie: "sudo mount -t auto /dev/sdc1 /mnt" Navigate to them with a file-manager or in command-line, are drives accessible, contents listed ? "ls -a" ? Error messages during this process ?

Could also try booting a live-session gnu/Nix OS(to RAM or plugged into one of the other ports on the system), plug in suspect external drives, test that problem port, do they work on it as hoped/expected ? If so indicates external drives and port are fine, issue could be the OS you've been using. Though am not real clear on the specifics to check if this is so, esp with systemd around now, have seen more than a tad of weirdness people reported experiencing as regards to issues with external drives. Improperly mounting/unmounting them etc. Has made me a tad leery, thus generally always try to unmount usb drives cleanly and do error check them occasionally with gparted or whatever. Still going to be times someone is rushing or whatever and just yanks a usb-drive out. Ah udev shouldn't have issues but dunno, seen enough horror stories to error on the side of caution.

Yep ... all over the place babble but you asked for thoughts. The process of elimination above has to make some sense here. :)

PS, common sense dictates problem is that shared port or the OS involved. Odds of two usb drives failing like this, ya know ? Good luck with it.
Most powerful FREE tech-support tool on the planet * HERE. *
Deb-fan
 
Posts: 895
Joined: 2012-08-14 12:27

Re: Problem with USB 3 port

Postby LE_746F6D617A7A69 » 2020-07-30 20:45

NewToLinux wrote:The dmesg output seemed to indicate the portable hard drive itself had some problem.
Can You show that dmesg output, starting from the moment when the drive is plugged-in ?
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 345
Joined: 2020-05-03 14:16

Re: Problem with USB 3 port

Postby p.H » 2020-08-02 12:42

NewToLinux wrote:The dmesg output seemed to indicate the portable hard drive itself had some problem.

Too bad you did not care to post that output.
p.H
 
Posts: 1434
Joined: 2017-09-17 07:12

Re: Problem with USB 3 port

Postby cuckooflew » 2020-08-02 13:55

This is really confusing, seems to be 3 or more threads on this ?
Is this the thread you refer to here ? http://forums.debian.net/viewtopic.php?f=10&t=146688&p=725114#p725114
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Problem with USB 3 port

Postby Mr. Lumbergh » 2020-08-03 06:21

NewToLinux wrote:I have a problem with a USB 3 port on a desktop running Debian Linux. The problem started when a system backup was attempted to a portable hard drive plugged into the USB 3 port. The backup operation had previously been done many times with no problems.

This time the mount operation failed with a message of the type 'can't find UUID=....'

Various commands such as fdisk -l showed that the kernel was not detecting the drive.

The drive was unplugged, then replug with a dmesg command issued straight after the replug.
The dmesg output seemed to indicate the portable hard drive itself had some problem.

A new portable hard drive was plugged into the port, but the kernel could not see the new drive, although a slowly flashing light on the drive indicated some power was reaching the hard drive.

I thought that perhaps the port was not supplying enough power to the drive, so I then plugged a new USB flash drive into the port. However the kernel would not recognise the flash drive.

Someone subsequently suggested that perhaps the power pins of the port were working but not the data pins.
This could perhaps be due to a problem with the port's USB header or associated cabling or possibly due to damage to
the host controller or associated wiring.

Any thoughts on this, please.

What kernel are you using, and does this effect other devices plugged into USB3 such as keyboard and mouse or just the HDD? I had an issue recently where restarting from sleep when booted to the 5.6 kernel caused me to lose all of my USB3 ports (they didn't even have power) but rolling back to the 5.4 solved the problem.
Mr. Lumbergh
 
Posts: 97
Joined: 2019-08-02 04:28

Re: Problem with USB 3 port

Postby NewToLinux » 2020-08-03 14:21

Apologies to cuckooflew and others for posting topic in different forums and causing confusion.

The topic seemed to develop such that I thought it should now reside in Hardware.

I promise not to do that sort of thing in future.
NewToLinux
 
Posts: 44
Joined: 2017-09-17 11:30

Re: Problem with USB 3 port

Postby NewToLinux » 2020-08-03 14:29

The kernel is the last Jessie kernel (I know it is very out of date - I have to do a backup of the system before
moving to Buster, so this USB port problem is very frustrating).

A new flash drive inserted in that USB port is also not recognised by the kernel.

Backups were working fine on a regular basis until the 'can't find UUID' problem. The portable hard drive with the UUID problem was left plugged in to the port all the time between backups, although only mounted when a backup was required.
NewToLinux
 
Posts: 44
Joined: 2017-09-17 11:30

Re: Problem with USB 3 port

Postby NewToLinux » 2020-08-03 14:54

dmesg  |   tail  -20
[260949.040348] sd 10:0:0:0: [sdf] Device not ready
[260949.040350] sd 10:0:0:0: [sdf]  [260949.040351] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[260949.040352] sd 10:0:0:0: [sdf]  [260949.040353] Sense Key : Not Ready [current] [260949.040354] Info fld=0x0
[260949.040355] sd 10:0:0:0: [sdf]  [260949.040356] <<vendor>> ASC=0xff ASCQ=0xffASC=0xff <<vendor>> ASCQ=0xff
[260949.040357] sd 10:0:0:0: [sdf] CDB: [260949.040358] Read(10): 28 00 00 3c f3 80 00 00 08 00
[260989.669839] usb 1-1: USB disconnect, device number 13
[260990.006438] usb 1-1: new high-speed USB device number 14 using xhci_hcd
[261297.336903] quiet_error: 4 callbacks suppressed
[261297.336905] Buffer I/O error on device sdj1, logical block 44
[261297.336908] Buffer I/O error on device sdj1, logical block 45
[261297.336909] Buffer I/O error on device sdj1, logical block 46
[261297.336911] Buffer I/O error on device sdj1, logical block 47
[261297.336912] Buffer I/O error on device sdj1, logical block 44
[261311.606197] Buffer I/O error on device sdj1, logical block 44
[261312.855893] Buffer I/O error on device sdj1, logical block 44


Above is result of dmesg issued immediately after original hard drive was plugged back into the USB 3 port.

That's what made me suspect original hard drive was faulty.

But subsequent plugging in of new hard drive and also new flash drive into the USB 3 port and checking with fdisk -l
showed that neither of those devices were recognised by the kernel.

My conclusion is that a fault has developed with that port itself or with its host controller.
NewToLinux
 
Posts: 44
Joined: 2017-09-17 11:30

Re: Problem with USB 3 port

Postby Deb-fan » 2020-08-03 15:13

Deleted a post cause thought it was beating a dead horse. Still yes, telling people you're still running Debian Jesse for some reason could be useful. Mentioned source of your issues could stem from a messed up Os and have nothing to do with hardware. Ah ... good lk. :)
Most powerful FREE tech-support tool on the planet * HERE. *
Deb-fan
 
Posts: 895
Joined: 2012-08-14 12:27

Re: Problem with USB 3 port

Postby NewToLinux » 2020-08-05 14:05

Both a new portable hard drive and a new flash drive have each, in turn, been plugged into the same USB 3 port.
Neither of them have been recognised by the Debian kernel.

There are 4 USB buses - 3 have USB 2 root hubs while the other has a USB 3 root hub.

The kernel recognises 5 USB devices (mouse, old flash drive, card reader, printer, scanner),
which are each connected to the same USB 2 root hub.

The question is why are the new hard drive and new flash drive not being recognised by the kernel.

Is it a hardware problem with the USB 3 port or could it possibly a software problem ?

Which is more likely and what tests (both hardware and software) can be done, apart from the usual
dmesg, fdisk, lsusb, lsblk, blkid checks ?

One or two people have mentioned turning off the computer completely (I.e. at the mains), waiting for a few
minutes and then rebooting. I am hesitant to do this because the exact cause of the USB 3 port problem is not
known and there is thus a possibility that the computer will not reboot.
NewToLinux
 
Posts: 44
Joined: 2017-09-17 11:30

Re: Problem with USB 3 port

Postby LE_746F6D617A7A69 » 2020-08-05 18:11

You didn't show a full dmesg output related to that USB drive - the moment when the device was plugged in is not visible.
Can You show full log?
The first line should look like this:
Code: Select all
usb 2-3: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd

It woud be best if You could post the logs for both HDD and that USB flash dongle (and use code tags)
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 345
Joined: 2020-05-03 14:16

Re: Problem with USB 3 port

Postby NewToLinux » 2020-08-08 14:30

I have now seen a number of cases where USB devices are not detected.

It seems that the xhci_hcd driver needs to be replaced/reinitialised.

Some of the posts recommend that the computer is completely powered down (I.e. all external devices are unmounted,
the computer is switched off and unplugged from the mains). After a wait of, say, up to 30 minutes, the computer is
rebooted. The xhci_hcd driver should be reinitialised by the reboot, so the USB 3 port should then work fine.

Other posts suggest that instead of a power down and reboot, the xhci_hcd driver could be disabled and then re-enabled
similar to suggestion in https://zedt.eu/tech/linux/restarting-u ... em-centos/

Does anyone know which directory contains the xhci_hcd driver in Debian, please ?
NewToLinux
 
Posts: 44
Joined: 2017-09-17 11:30

Re: Problem with USB 3 port

Postby peter_irich » 2020-08-09 07:35

I thini xhci-hcd is the builting module. See /lib/modules/`uname -r`/modules.builtin .

Peter.
peter_irich
 
Posts: 1290
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Problem with USB 3 port

Postby Head_on_a_Stick » 2020-08-09 09:31

Have you tried
Code: Select all
# modprobe -r xhci-hcd
# modprobe xhci-hcd
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12492
Joined: 2014-06-01 17:46
Location: /dev/chair

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable