Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Kernel version: 2.6.31-22

I wish to monitor the USB traffic to and from a device. I've searched, but different sites seem to give different information and I'm confused.

  1. Some sites suggest that I need to recompile the kernel, while others suggest that all I need to do is install the latest wireshark. Do I need to recompile?
  2. Can someone suggest a website describing the most recent approach to USB sniffing?
share|improve this question
What distribution are you running? Under Ubuntu 10.04 Wireshark has native support for doing a capture on the USB interfaces. – Mark Davidson Sep 23 '10 at 7:14
up vote 3 down vote accepted

You need to recompile kernel/load module. It is present in 2.6.32 (LTS) kernel - probably 2.6.31 as well. less /usr/src/linux/Documentation/usb/usbmon.txt. Format is "well known" and it acts like character devince. It can dump in text format as well.

Wireshark can provide live stream and/or read file from USB as far as GUI is concerned.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.