LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-30-2020, 04:00 AM   #1
debianlearner
Member
 
Registered: May 2019
Posts: 56

Rep: Reputation: Disabled
Problem with USB 3 port


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.
 
Old 07-30-2020, 09:46 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Pi OS & Android
Posts: 11,930

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
The way to do dmesg thing is 'dmesg |tail after 10 seconds, which usua tells you the struggles it, been having.

Cables. Have you changed them?
 
Old 07-30-2020, 01:27 PM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,017

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
Are you sure that the usb port on the machine isn't getting a little wollowed out. They do that. (wollowed is word, really)
Quote:
although a slowly flashing light on the drive indicated some power was reaching the hard drive.
Yup, look at the usb port. Unplug the drive.
Code:
dmesg -w
Then plug the drive in, see if it comes ready, or if it continues to scroll info. Mess with the plug. Sometimes lightly plugging the usb cable in will work. Or pulling the plug back out very slightly.
 
Old 08-05-2020, 10:05 AM   #4
debianlearner
Member
 
Registered: May 2019
Posts: 56

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-06-2020, 04:07 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Pi OS & Android
Posts: 11,930

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Is the xhci module loaded? That's the obvious one.
 
Old 08-06-2020, 09:45 AM   #6
debianlearner
Member
 
Registered: May 2019
Posts: 56

Original Poster
Rep: Reputation: Disabled
Yes, xhci is installed.

The USB 3 port had been working okay, being regularly used to do a system backup
to a portable hard drive until one day when that drive could not be mounted :-
a 'can't find UUID=' type message being received instead. So it appears that the kernel
suddenly failed to recognise the drive.

From then onwards, the kernel has failed to recognise a new portable hard drive or
a new flash drive when these have been plugged into that USB 3 port.
 
Old 08-06-2020, 09:55 AM   #7
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 6,173
Blog Entries: 21

Rep: Reputation: 3090Reputation: 3090Reputation: 3090Reputation: 3090Reputation: 3090Reputation: 3090Reputation: 3090Reputation: 3090Reputation: 3090Reputation: 3090Reputation: 3090
After replying to your thread over here?

https://www.bleepingcomputer.com/for...al-hard-drive/

Have you tried a kernel change yet.

post

Code:
uname -r
dmesg should say something also. Is this external drive seen by anything else? Windows/Mac/Chromebook?
 
Old 08-08-2020, 10:14 AM   #8
debianlearner
Member
 
Registered: May 2019
Posts: 56

Original Poster
Rep: Reputation: Disabled
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/restartin...system-centos/

Does anyone know which directory contains the xhci_hcd driver in Debian, please ?
 
Old 08-08-2020, 01:33 PM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Pi OS & Android
Posts: 11,930

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
I don't know exactly which directory is the xhci_hcd you need, but try this
Code:
uname -r  # note the number
cd /lib/modules/<uname -r>
sudo find -name 'xhci_hcd.ko'
I don't see how that's much use, as it is loaded in ram. Wherever it is, you can remove & install it with
Code:
sudo rmmod -f xhci_hcd
sudo modprobe xhci_hcd

Last edited by business_kid; 08-08-2020 at 01:34 PM.
 
Old 08-18-2020, 02:05 PM   #10
debianlearner
Member
 
Registered: May 2019
Posts: 56

Original Poster
Rep: Reputation: Disabled
The new flash drive was unplugged from the USB 3 port.

As root, the following command was run

dmesg* |* tail


The output was :

[3974120.938338] usb 1-1: new high-speed USB device number 66 using xhci_hcd
[3974126.430777] usb 1-1: new high-speed USB device number 67 using xhci_hcd
[3974131.923271] usb 1-1: new high-speed USB device number 68 using xhci_hcd
[3974137.415713] usb 1-1: new high-speed USB device number 69 using xhci_hcd
[3974142.908184] usb 1-1: new high-speed USB device number 70 using xhci_hcd
[3974148.400664] usb 1-1: new high-speed USB device number 71 using xhci_hcd
[3974153.893132] usb 1-1: new high-speed USB device number 72 using xhci_hcd
[3974159.385762] usb 1-1: new high-speed USB device number 73 using xhci_hcd
[3974164.878067] usb 1-1: new high-speed USB device number 74 using xhci_hcd
[3974170.370558] usb 1-1: new high-speed USB device number 75 using xhci_hcd


Then the new flash drive was plugged back into the USB 3 port and then, again as root,
the following command was run

dmesg | tail -50

The output was as follows :

[3973945.175272] usb 1-1: new high-speed USB device number 34 using xhci_hcd
[3973950.667736] usb 1-1: new high-speed USB device number 35 using xhci_hcd
[3973956.164234] usb 1-1: new high-speed USB device number 36 using xhci_hcd
[3973961.660705] usb 1-1: new high-speed USB device number 37 using xhci_hcd
[3973967.153175] usb 1-1: new high-speed USB device number 38 using xhci_hcd
[3973972.645644] usb 1-1: new high-speed USB device number 39 using xhci_hcd
[3973978.138108] usb 1-1: new high-speed USB device number 40 using xhci_hcd
[3973983.630571] usb 1-1: new high-speed USB device number 41 using xhci_hcd
[3973989.123038] usb 1-1: new high-speed USB device number 42 using xhci_hcd
[3973994.615532] usb 1-1: new high-speed USB device number 43 using xhci_hcd
[3974000.107987] usb 1-1: new high-speed USB device number 44 using xhci_hcd
[3974005.600444] usb 1-1: new high-speed USB device number 45 using xhci_hcd
[3974011.092914] usb 1-1: new high-speed USB device number 46 using xhci_hcd
[3974016.586439] usb 1-1: new high-speed USB device number 47 using xhci_hcd
[3974022.069876] usb 1-1: new high-speed USB device number 48 using xhci_hcd
[3974027.562378] usb 1-1: new high-speed USB device number 49 using xhci_hcd
[3974033.054785] usb 1-1: new high-speed USB device number 50 using xhci_hcd
[3974038.547262] usb 1-1: new high-speed USB device number 51 using xhci_hcd
[3974044.039723] usb 1-1: new high-speed USB device number 52 using xhci_hcd
[3974049.532213] usb 1-1: new high-speed USB device number 53 using xhci_hcd
[3974055.024682] usb 1-1: new high-speed USB device number 54 using xhci_hcd
[3974060.517132] usb 1-1: new high-speed USB device number 55 using xhci_hcd
[3974066.013620] usb 1-1: new high-speed USB device number 56 using xhci_hcd
[3974071.506102] usb 1-1: new high-speed USB device number 57 using xhci_hcd
[3974076.998569] usb 1-1: new high-speed USB device number 58 using xhci_hcd
[3974082.491021] usb 1-1: new high-speed USB device number 59 using xhci_hcd
[3974087.983486] usb 1-1: new high-speed USB device number 60 using xhci_hcd
[3974093.475956] usb 1-1: new high-speed USB device number 61 using xhci_hcd
[3974098.968439] usb 1-1: new high-speed USB device number 62 using xhci_hcd
[3974104.460916] usb 1-1: new high-speed USB device number 63 using xhci_hcd
[3974109.953390] usb 1-1: new high-speed USB device number 64 using xhci_hcd
[3974115.445836] usb 1-1: new high-speed USB device number 65 using xhci_hcd
[3974120.938338] usb 1-1: new high-speed USB device number 66 using xhci_hcd
[3974126.430777] usb 1-1: new high-speed USB device number 67 using xhci_hcd
[3974131.923271] usb 1-1: new high-speed USB device number 68 using xhci_hcd
[3974137.415713] usb 1-1: new high-speed USB device number 69 using xhci_hcd
[3974142.908184] usb 1-1: new high-speed USB device number 70 using xhci_hcd
[3974148.400664] usb 1-1: new high-speed USB device number 71 using xhci_hcd
[3974153.893132] usb 1-1: new high-speed USB device number 72 using xhci_hcd
[3974159.385762] usb 1-1: new high-speed USB device number 73 using xhci_hcd
[3974164.878067] usb 1-1: new high-speed USB device number 74 using xhci_hcd
[3974170.370558] usb 1-1: new high-speed USB device number 75 using xhci_hcd
[3974189.313961] usb 1-1: new high-speed USB device number 76 using xhci_hcd
[3974194.806428] usb 1-1: new high-speed USB device number 77 using xhci_hcd
[3974200.298916] usb 1-1: new high-speed USB device number 78 using xhci_hcd
[3974205.791363] usb 1-1: new high-speed USB device number 79 using xhci_hcd
[3974211.283830] usb 1-1: new high-speed USB device number 80 using xhci_hcd
[3974216.776300] usb 1-1: new high-speed USB device number 81 using xhci_hcd
[3974222.268794] usb 1-1: new high-speed USB device number 82 using xhci_hcd
[3974227.761269] usb 1-1: new high-speed USB device number 83 using xhci_hcd

Something is going wrong here.
 
Old 08-18-2020, 05:17 PM   #11
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,597

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
That suggests to me a hardware issue. But I wouldn't bet the rent money on it.
 
Old 08-19-2020, 02:07 PM   #12
debianlearner
Member
 
Registered: May 2019
Posts: 56

Original Poster
Rep: Reputation: Disabled
Could the problem with the USB port possibly cause a problem if an attempt is made to reboot the system ?
 
Old 08-19-2020, 05:11 PM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,112
Blog Entries: 1

Rep: Reputation: 868Reputation: 868Reputation: 868Reputation: 868Reputation: 868Reputation: 868Reputation: 868
Sounds like a hardware issue.

# lsblk

$ cat /proc/partition

lsblk should show the UUID if if if if...

If the drive is partitioned, the partitions should show up in /proc/partitions. I have some quirky drives that require a powered usb hub to work. Laptops usb ports are notoriously under powered. I have two of those drives and each requires their OWN usb powered hub to work. Although once that condition is met they work fine on a raspberry pi as a ZFS mirrored pair.
 
Old 08-24-2020, 12:31 PM   #14
debianlearner
Member
 
Registered: May 2019
Posts: 56

Original Poster
Rep: Reputation: Disabled
I am still struggling to solve the problem with the malfunctioning USB 3 port on a desktop
running Debian.

I would be very grateful if someone could please give useful answers to the following questions :-

(1) Can the desktop be safely rebooted, if needed, given the USB 3 problem?

(2) Can the USB 3 problem be fixed in some way or is the port now permanently
unavailable?

(3) If the USB 3 port is unavailable, can the new portable hard drive be used to
do a back-up of the system from the USB 2 port currently occupied by a card reader
or is there any risk the card reader will be messed up again afterwards ?

(On a previous occasion, a portable hard drive was plugged into this USB 2 port
in place of the card reader. The system issued a message indicating the port was busy.
The card reader was plugged back into the USB 2 port and it was then found that
a card inserted into the card reader could not be mounted).
 
Old 09-02-2020, 01:25 AM   #15
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,112
Blog Entries: 1

Rep: Reputation: 868Reputation: 868Reputation: 868Reputation: 868Reputation: 868Reputation: 868Reputation: 868
hardware solutions I guess. Plug a usb2 hub into the usb3 port. Or a usb extension cable that is only usb 2.
 
  


Reply

Tags
usb 3


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] IPtables : ssh port forwarding one port to another port issue routers Linux - Networking 7 08-07-2018 08:41 AM
Hard drive not detected when plugged into usb 3.0 port but ok on a usb 2.0 port on CentOS 6.4 centguy Linux - General 11 07-13-2017 08:22 PM
Four-port KVM switch that sends keyboard data to PS2 port and mouse data to USB port Ulysses_ Linux - Hardware 5 06-20-2015 11:16 AM
Tomcat6 stops listening on port 80 when i change from port 8080 to port 80 trongthect Linux - Server 1 07-27-2012 05:41 PM
--destination-ports port[,port[,port...]] KevinGuy Linux - Networking 1 03-16-2004 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration