Why "lsusb" return nothing?

TJ linux at tjworld.net
Sun Sep 30 18:49:13 EDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29/09/12 02:42, Peter Teoh wrote:
> I entered "lsusb" at the command line (as root) and nothing is return, not even any error message.
> 
> Doing a strace the last few lines are:
> 
> open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/proc/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file
> or directory)
> 
> What happened?
> 
> This is Ubuntu 10.04 (it used NOT to be like that, not sure I what did wrong last time).

Ubuntu 10.04 Lucid uses kernel version 2.6.32. This was the first kernel version used in Ubuntu
that uses devtmpfs for /dev/.

$ grep DEVTMPFS /boot/config-2.6.32-37-generic
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

Your system appears to be missing the /dev/ structures created by the kernel in devtmpfs. Check that the kernel version is 2.6.32 or later.

$ uname -a

See: http://lwn.net/Articles/345480/




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBozGkACgkQ7+w3pCnNYIBWEwCgjrCU06IOo+rZV00gIWuZkiGV
Y0EAoONSj9CMHwGC5LAUAAPVb71sh585
=fCgu
-----END PGP SIGNATURE-----



More information about the Kernelnewbies mailing list