TechBuzzPro

USB Details & Port Info: How to Find Device Specs

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes—you can view USB device details and port information using built‑in OS tools like Device Manager, System Information, and command‑line utilities.

Knowing exactly which USB device is attached to which physical port helps with troubleshooting hardware conflicts, verifying that a device is running at the expected speed (USB 2.0 vs 3.0), and ensuring that power‑hungry peripherals are connected to a port that can supply enough amperage.

What You'll Need

  • A computer running Windows, macOS, or Linux
  • Administrative rights (required for some commands and for opening certain system utilities)
  • An internet connection only if you want to download optional helper tools such as Sysinternals USBDeview for Windows

Step-by-Step

  1. Determine which operating system you are using. The exact tools differ between Windows, macOS, and Linux, so follow the subsection that matches your platform.
  2. Windows
    1. Open Device Manager. Press Win+X and choose Device Manager from the menu.
    2. Expand the Universal Serial Bus controllers node. Each entry represents a USB host controller or a connected device.
    3. Right‑click the device you want to investigate and select Properties. Switch to the Details tab.
    4. From the Property drop‑down, choose Location Paths (or Device Instance Path). The value will contain a segment like USBROOT(0)/USBPORT(1) that tells you the exact port number on the root hub.
    5. For a more complete list, press Win+R, type msinfo32 and press Enter. In the System Information window navigate to Components > USB. The right pane lists every USB device, its Device ID, Location, and Port information.
    6. PowerShell provides a quick one‑liner: Get-PnpDevice -Class USB | Select-Object FriendlyName,InstanceId. The InstanceId string includes the same hub/port hierarchy shown in Device Manager.
    7. If you prefer a graphical third‑party view, download Microsoft's Sysinternals USBView (also called USBDeview). It shows vendor ID, product ID, serial number, and the exact port chain for each device.
  3. macOS
    1. Click the Apple menu , choose About This Mac, then click System Report. This opens the System Information app.
    2. In the sidebar under Hardware, select USB. A hierarchical tree appears, showing each USB bus, hub, and attached device.
    3. Select a device entry. The main pane displays fields such as Vendor ID, Product ID, Serial Number, and Location ID. The Location ID is a hexadecimal value that encodes the physical port (e.g., 0x14100000 means bus 1, port 4).
    4. For a command‑line view, open Terminal (Applications > Utilities > Terminal) and run system_profiler SPUSBDataType. The output lists each device with a Port line that mirrors the tree in System Information.
  4. Linux
    1. Open a terminal. Most distributions ship the usbutils package by default; if not, install it with your package manager (e.g., sudo apt install usbutils on Debian/Ubuntu).
    2. Run lsusb. The basic output shows bus and device numbers, vendor ID, product ID, and a short description, for example:
      Bus 002 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
    3. To see the exact port hierarchy, use the tree mode: lsusb -t. The tree prints hub numbers and port numbers, such as /: Bus 02.Port 1: Dev 2, Class=Hub followed by |__ Port 3: Dev 3, Class=Human Interface Device. The numbers after Port correspond to the physical connector.
    4. If you need full descriptor details, run lsusb -v -s 002:003 (replace 002:003 with the bus:device pair you got from the simple list). The verbose output includes fields like bcdUSB, iSerial, and Port.
    5. Kernel messages can also reveal port information when you plug a device. Execute dmesg | grep -i usb immediately after insertion; look for lines containing new high‑speed USB device number X using xhci_hcd and the subsequent USB device #X: New USB device found, idVendor=..., idProduct=.... The bus and port numbers are printed in parentheses.
    6. For scripts or persistent records, read the sysfs entries under /sys/bus/usb/devices/. Each device folder contains files named product, manufacturer, serial, and port. The port file shows the port number relative to its parent hub.
  5. Record the information you need. Typical fields are:
    • Vendor ID (hex, e.g., 0x046D)
    • Product ID (hex, e.g., 0xC534)
    • Serial number (if the device provides one)
    • Physical port path (e.g., USBROOT(0)/USBPORT(2)/USBPORT(1) on Windows or Bus 002 Port 3 on Linux)
    • Current speed (USB 1.1, 2.0, 3.0, or 3.1)
    Keeping a short spreadsheet makes future troubleshooting faster.

Common Mistakes

  • Looking at the Device Manager list only and assuming the order matches physical ports. The list is alphabetical, not positional.
  • Confusing the USB controller (e.g., "Intel(R) USB 3.0 eXtensible Host Controller") with the actual peripheral. Controllers are the hub hardware, not the device you are trying to identify.
  • Copying the Device Instance ID without the USBROOT(...) segment, which removes the port information.
  • Running lsusb without -t on Linux and then guessing the port based on bus numbers; bus numbers are assigned at boot and do not map directly to physical ports.
  • Forgetting to run commands with administrative/root rights, which can hide certain devices (especially those requiring elevated privileges to read descriptors).

Tips

  • Use a USB label sticker on each port of your PC or hub. When you later see Port 3 in the output, you can instantly match it to the physical socket.
  • On Windows, enable the "View > Devices by connection" option in Device Manager. This displays a tree that mirrors the hub hierarchy, making it easier to trace a device back to a specific port.
  • On macOS, the Location ID can be converted to a decimal port number with the command printf "%d\n" 0x14100000. The lower byte often represents the port index.
  • On Linux, add the usbcore.autosuspend=-1 kernel parameter if a device disappears from lsusb after a few seconds; autosuspend can hide idle devices.
  • When documenting, include the USB version (e.g., "USB 3.1 Gen 2") because it tells you the maximum bandwidth and power the port can provide.

Troubleshooting

If the expected device does not appear in any of the tools, follow these steps in order.

  1. Physically reconnect the device. A loose cable is the most common cause of a missing entry.
  2. Restart the computer. This forces the USB host controller to re‑enumerate all devices.
  3. Check that the USB port is not disabled in BIOS/UEFI. Some motherboards allow individual ports to be turned off.
  4. Update the USB controller driver. In Windows, right‑click the controller in Device Manager and choose Update driver. On macOS and Linux the driver is part of the OS, so ensure the system is fully updated.
  5. Test the device on a different port or another computer. If it still does not appear, the device itself may be faulty.
  6. For Linux, look at dmesg without filtering: dmesg | tail -n 30. Error messages such as "device not accepting address" indicate a hardware problem.
  7. On Windows, run the built‑in troubleshooter: Settings > Update & Security > Troubleshoot > Additional troubleshooters > "Hardware and Devices".

Frequently Asked Questions

Can I see the USB port number without third‑party software?

Yes. All three major operating systems expose the port hierarchy natively: Device Manager (Windows), System Information (macOS), and lsusb -t (Linux).

What does the "Location ID" on macOS actually represent?

It is a hexadecimal encoding of the device’s position on the USB bus. Converting it to decimal and reading the lower bytes reveals the hub and port numbers.

Why does my USB flash drive show as "USB 2.0" even though I plugged it into a USB 3.0 port?

The drive itself is limited to USB 2.0 speeds. The port can provide higher bandwidth, but the device will negotiate the highest speed it supports.

Is there a way to get the serial number of a USB mouse on Windows?

If the mouse reports a serial number, it appears in the "Details" tab under the property "Device Instance Path" or in PowerShell via Get-PnpDevice -Class USB | Where-Object {$_.FriendlyName -like '*Mouse*'}.

How can I export the list of USB devices to a text file?

On Windows, run msinfo32 /report usb_report.txt. On macOS, use system_profiler SPUSBDataType > usb_report.txt. On Linux, lsusb -v > usb_report.txt.