Linux USB Not Detected or Not Working? 5 Common Issues and Fixes


You’ve hooked up a USB flash drive or a keyboard or mouse to your Linux PC. But nothing is happening.

What’s going on? Why is your pen drive not detected in Ubuntu 22.04 LTS or some other distro? Is it a Linux thing, or has your USB device stopped working? Here’s what to do on Linux if your USB drive is not detected or recognized.

Ignore “xvideoservicethief 2022 linux hdd usb port not working problem” Solutions

If you’re looking for fixes for your Linux system’s USB port issues, there is a strong chance that you will stumble across links prefaced with “xvideoservicethief” followed by a recent year (2019, 2020, 2021, 2022).

Sadly, these aren’t of any use to you. They’re spammy links designed to fool, either providing you with sub-par information for solutions or throwing you into websites with dangerous links and pop-ups. These sites will not give you a reliable solution and just add to the problem you’re facing.

Instead, prefer websites offering solutions without the “xvideoservicethief” term in the search results.

USB Device Not Working in Ubuntu?

Disk drives, card readers, phones, media players, and media peripherals… they’re all useful, but if there’s a problem with your system’s USB port or drivers, they’re not going to work. This can be particularly frustrating if you use a Bluetooth keyboard or mouse (with a USB dongle), as it means digging out wired USB alternatives.

However, it might not be the port that doesn’t work. Perhaps the USB device you’re using has developed a fault and cannot be detected. If you’re trying to connect your Android phone via a USB cable, here’s how to set up ADB and fastboot on Linux.

Dealing with USB issues can be tricky, but it’s not impossible to diagnose a fault and make the necessary fixes.

If USB is not detected on Linux, here's how to check your ports

There are five steps to follow to fix USB issues in Linux:

  1. Confirm the USB port is detected
  2. Make any necessary repairs to the port
  3. Fix or repair USB devices
  4. Reboot your Linux operating system
  5. Confirm the presence of device drivers

Let’s look at each of these in turn and learn how to deal with Linux not recognizing USB devices. While the following steps are based on a USB device not being detected in Ubuntu, they should work across Linux.

1. USB Device Not Detected by Linux

The first thing to check upon inserting your USB device into your Linux computer is whether it is being detected. If the USB drive is not showing up in Linux, you could troubleshoot the issue.

USB device detection is usually not as verbal or audible as it is on Windows or macOS, which means that you often need to manually check whether the device has been picked up by the operating system.

Fortunately, this is simple.

First, disconnect the USB device you’re querying. Then, open a terminal window and input the “list USB” command:

Check USB devices with lsusb

Make a note of the results, then connect the USB device, and run lsusb again.

This time, you should see an extra device listed, with a Bus ID, Device ID, USB ID, and a description. If you can’t work out what the extra device is (you may have an internal USB device, perhaps Ethernet), try a different command.

 dmesg | grep -i USB 

The dmesg command will list the connected USB devices on your system. It will also include non-USB hardware and, unfortunately, offers an overwhelming amount of information. To counter this, you can try the following:

 dmesg | less 

Finally, you could just rely on the more user-friendly:

Check all Linux devices

This is like a cross between the dmesg and lsusb commands, listing connected USB hardware with enough information to identify them.

So, is the USB you’ve connected listed here? If not, then perhaps the port is damaged, or there is a problem with the device. Equally, the device may not be compatible with your OS, which may be why the USB is not detected in Linux.

2. Linux Not Recognizing USB? How to Check Your USB Port

If the USB is not detected in Ubuntu or other distros, it could be due to an issue with the USB port.

The best way to check this quickly is to simply use a different USB port on the same computer. If the USB hardware is now detected, then you know you have a problem with the other USB port.

If another USB port is not available, you’ll need to try the USB device on another PC or laptop. This may not be ideal, however, as you may only have a Windows or macOS computer as an alternative. As you can’t use some USB devices on Linux, it will be difficult to ascertain whether it is the USB device or the USB port that is causing you problems.

For the best results, where possible, stick to Linux-compatible hardware when troubleshooting USB devices. This should resolve the issue of Ubuntu or other distros not recognizing your USB pen drive.

3. Ubuntu USB Device Not Showing Up? How to Fix Broken USB Hardware

If your USB drive is not showing up in Ubuntu and you suspect it is defective, you have two choices: fix or return.

A fix will typically involve checking the USB port as well as the device that is currently not working.

For peripheral devices, fixes will almost always center around the USB cable and the port on your computer. USB cables can usually be replaced, however, while ports can be repaired.

A physical check of USB equipment is a good idea. Cables should be sturdy, without any splits; the plugs should be solid, with the metal section firmly attached.

USB ports, meanwhile, should be checked with your PC switched off and disconnected from the main supply. Check if the ports are firmly seated; wobbly USB ports are an indication of hardware that is wearing out.

If the USB port is coming loose, you may be able to solder it back into place. Of course, you should already know the basics of soldering; never attempt DIY jobs without prior experience.

Also, check for dust and dirt in your USB ports, especially those around the back of your PC, where dust regularly collects. Dust is the enemy of PCs, so it is worth keeping your system in a dust-free environment to encourage performance.

As dust can work its way into your PC via USB slots, take the time to keep these ports clean. Use a can of compressed air to disperse dust and dirt.

Can you return your USB device? If it’s new, then probably. The problem is unless it is explicitly labeled as running under Linux, the retailer is unlikely to accept a return. You may need to be a little selective with the facts you share with them.

4. Restarting Linux to Fix a USB Port

Laptop USB ports

In some cases—such as if you’re using a laptop—power issues might be affecting its ability to detect USB devices. The autosuspend setting is designed to reduce power usage on Linux laptops, but it can prove counterproductive.

So, what can you do?

First, check whether autosuspend is causing the problem. You can do this by rebooting your computer; if the USB device works, then that USB port is receiving power. The problem occurs when the power management software decides to stop sending power to the USB port.

The next step is to ensure this doesn’t happen again. On Ubuntu 22.04 LTS, you can open a terminal and enter the following:

 udisksctl power-off -b /dev/sdX 

If you’re using an older version of Ubuntu, different commands are required.

Check for the correct steps for your preferred Linux distribution.

5. Checking USB Device Drivers on Linux

Once upon a time, USB devices didn’t often work in Linux. Only devices produced by OEMs with an interest in Linux (perhaps they used it for development) would offer a Linux driver.

These days, things are very different, with most manufacturers supporting Linux. In most cases, the driver will already be available in your Linux operating system via the kernel. You shouldn’t need to install any USB drivers.

If a driver is unavailable, you’ll probably be able to find it by contacting the USB device manufacturer.

USB Device Not Detected in Linux? Try This

For USB flash storage devices, troubleshooting is a different matter. Flash storage is prone to failure, especially if the device is dropped or used frequently.

In this case, try using the storage on a different computer; if it doesn’t work, try data recovery and reformatting. Here’s what to do if you’re unable to format your USB drive in Ubuntu.

A failed USB flash storage device may be a symptom of a damaged USB port on your computer, however. For example, a bad port could be overpowering your USB drives, with unsuitable power variations damaging data. As such, it is vital that you use the steps above to rule out an issue with your PC or laptop.

Most importantly, don’t rely on flash storage for data backups. While slower, mechanical hard disk drives are more reliable.

Troubleshooting USB Issues on Linux: Fixed!

With built-in drivers and wide support for many types of USB devices, it should be easy to diagnose issues with your computer’s USB hardware.

While broken hardware may need repairing or swapping, software fixes are also available.

If you’ve recently swapped from Windows, running into USB issues on Linux can be a problem. Fortunately, these problems are usually easily solved.


Source link

Leave a Reply

%d bloggers like this: