Ticket #779 (closed enhancement: fixed)

Opened 19 months ago

Last modified 18 months ago

USB keyboard stop responding during mondorestore

Reported by: loic Owned by: bruno
Priority: normal Milestone: 3.2.2
Component: mindi Version: 3.2.1
Severity: minor Keywords:
Cc:

Description

Hi Bruno,

From a Backup mondoarchive of a Debian 8.2 system on a Dell T110 II server, when i boot with mondorescue iso, I can hit at the keyboard "expert", then when I get the shell prompt, my usb keyboard stops responding.

As it is mentioned in various old tickets, I try to add the missing modules (compared to mindi Version 2.1.7 revision 3184) in /usr/sbin/mindi file, USB_MODS variable, without success :

1/ ehci_hcd
2/ ehci_hcd usbcore
3/ ehci_hcd usbcore ehci_pci
4/ ehci_hcd usbcore ehci_pci libusual
5/ ehci_hcd usbcore ehci_pci libusual usb_common usb-common

On the same T110 II box, I can boot from a Debian 7 mondoarchive version 3.0.4 iso with no problem.

Versions on the saved server:

 mondoarchive v3.2.220150910110122-r3463
 Paquet libmondorescue-perl : 3.2.220150910110122-0
 Paquet mindi : 3.0.220150910110122-0
 Paquet mindi-busybox : 1.21.1-1
 Paquet mondo : 3.2.220150910110122-0
Linux gx1 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux

lsusb on the saved server :

lsusb
Bus 002 Device 004: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 002 Device 003: ID 2101:020f ActionStar
Bus 002 Device 005: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 2: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbfs, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M

I can read at boot :

Activating a potential USB keyboard/mouse
ACPI : bus type USB registered
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
hidraw: raw HID events driver (C)Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver

Restoring to a sytem without ps2 keyboard is no longer possible. Can you please help me ?

Regards

Joel Girot

Attachments

mindi.log Download (294.7 KB) - added by loic 19 months ago.
mondorestore_debian_7.log Download (89.6 KB) - added by loic 19 months ago.
mondorestore_debian_8.log Download (84.4 KB) - added by loic 19 months ago.

Change History

Changed 19 months ago by loic

comment:1 Changed 19 months ago by bruno

  • Status changed from new to assigned

Clearly there is a missing module in your case (which probably changed due to diffs between the kernel of Debian 7 and the one of Debian 8).

Looking at your lsmod result, I'm questioning the utility of the following:

-------------
lsmod result:
-------------
Module                  Size  Used by
mpt3sas               148132  0 
dell_rbu               12727  0 

Also unsure of the ipmi even if I doubt they could play a role.

lpc_ich                20768  0 
mfd_core               12601  1 lpc_ich

You should probably also add mpt3sas, which I just added myself to mindi.

Let me know how it progresses. The real debug approach here is to try all the different drivers mentionned in lsmod between deb7 and deb8 and see which one is needed.

comment:2 Changed 19 months ago by bruno

  • Type changed from defect to enhancement

comment:3 Changed 19 months ago by bruno

  • Component changed from mondo to mindi
  • Severity changed from normal to minor

comment:4 Changed 19 months ago by loic

I did not find missing modules related to usb in debian 8. However I change to /usr/sbin/mindi this line : FORCE_MODS="mpt3sas dell_rbu mfd_core lpc_ich" and I try : no success.

Then I redo my tests with an HP Proliant ML350 G6 which has a ps2 port. With the mondobackup.iso for Debian 7 the usb keyboard work. With Debian 8 the usb keyboard does not work.

The presence of a ps2 keyboard allows me to retrieve mondorestore logs for debian 7 and 8. See attached files.

the result of lsmod in these two files shows no missing usb modules:

Debian 7

ehci_hcd               40249  0 
ohci_hcd               26563  0 
uhci_hcd               26865  0 
cp210x                 21155  0 
usbserial              32061  1 cp210x
ums_cypress            12534  0 
usb_storage            43870  2 ums_cypress
scsi_mod              162321  54 usb_storage,ums_cypress,tmscsim,scsi_transport_spi,sym53c8xx,st,sr_mod,sg,sd_mod,scsi_transport_sas,scsi_transport_iscsi,scsi_tgt,scsi_transport_fc,qlogicfas408,qla2xxx,qla1280,osst,megaraid_sas,megaraid_mbox,megaraid,libiscsi,iscsi_tcp,initio,hpsa,gdth,dmx3191d,scsi_dh,scsi_dh_emc,scsi_dh_alua,dc395x,libcxgbi,BusLogic,bnx2i,be2iscsi,atp870u,arcmsr,aic7xxx,aic79xx,advansys,aacraid,a100u2w,3w_xxxx,3w_9xxx,mptscsih,mptspi,mptsas,mptfc,mptctl,cciss,libata,raid_class,mpt2sas,ppa,imm
usbhid                 36418  0 
hid                    81372  1 usbhid
usbcore               128741  9 usbhid,usb_storage,ums_cypress,usbserial,cp210x,uhci_hcd,ohci_hcd,ehci_hcd
usb_common             12354  1 usbcore

Debian 8

cp210x                 21166  0 
usbserial              36293  1 cp210x
ums_cypress            12484  0 
xhci_hcd              148881  0 
ohci_pci               12808  0 
ohci_hcd               42982  1 ohci_pci
uhci_hcd               43499  0 
ehci_pci               12512  0 
ehci_hcd               69837  1 ehci_pci
usb_storage            56215  2 ums_cypress
scsi_mod              191405  52 sg,st,gdth,hpsa,osst,qla1280,qla2xxx,megaraid_mbox,scsi_transport_fc,scsi_transport_sas,scsi_transport_spi,3w_9xxx,cciss,bnx2i,3w_xxxx,mptfc,qlogicfas408,scsi_dh,scsi_transport_iscsi,ums_cypress,usb_storage,arcmsr,dc395x,scsi_tgt,BusLogic,tmscsim,mpt2sas,mpt3sas,initio,aacraid,libata,mptctl,mptsas,mptspi,sym53c8xx,be2iscsi,vmw_pvscsi,aic79xx,aic7xxx,sd_mod,sr_mod,mptscsih,advansys,atp870u,libcxgbi,libiscsi,dmx3191d,a100u2w,raid_class,megaraid,megaraid_sas,virtio_scsi
usbhid                 44460  0 
hid                   102264  1 usbhid
usbcore               195340  11 uhci_hcd,ums_cypress,usb_storage,cp210x,usbserial,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid,xhci_hcd
usb_common             12440  1 usbcore

the result of dmesg in these two files shows USB keyboard is detected in Debian 7 and 8, but with no "input" and "generic-usb" line in Debian 8. That is the problem ?

Debian 7

[    8.905030] usb 5-1: New USB device found, idVendor=03f0, idProduct=1027
[    8.905035] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    8.905038] usb 5-1: Product: Virtual Keyboard
[    8.905040] usb 5-1: Manufacturer: HP
[    8.907603] Loading Adaptec I2O RAID: Version 2.4 Build 5go
[    8.907606] Detecting Adaptec I2O RAID controllers...
[    8.915282] input: HP Virtual Keyboard as /devices/pci0000:00/0000:00:1e.0/0000:01:04.4/usb5/5-1/5-1:1.0/input/input0
[    8.915401] generic-usb 0003:03F0:1027.0001: input,hidraw0: USB HID v1.01 Keyboard [HP Virtual Keyboard] on usb-0000:01:04.4-1/input0
[    8.924991] input: HP Virtual Keyboard as /devices/pci0000:00/0000:00:1e.0/0000:01:04.4/usb5/5-1/5-1:1.1/input/input1
[    8.925320] generic-usb 0003:03F0:1027.0002: input,hidraw1: USB HID v1.01 Mouse [HP Virtual Keyboard] on usb-0000:01:04.4-1/input1

Debian 8

[   12.418095] usb 5-1: New USB device found, idVendor=03f0, idProduct=0024
[   12.418100] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   12.418103] usb 5-1: Product: HP Basic USB Keyboard
[   12.418106] usb 5-1: Manufacturer: CHICONY
[   12.820789] usb 6-1: New USB device found, idVendor=03f0, idProduct=1027
[   12.820794] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   12.820797] usb 6-1: Product: Virtual Keyboard
[   12.820799] usb 6-1: Manufacturer: HP

Changed 19 months ago by loic

Changed 19 months ago by loic

comment:5 Changed 18 months ago by bruno

The Debian 8 list has more drivers listed than Debian 7 and nothing missing. So contrzary to what I thought it may not be a module missing :-(

So maybe there is a daemon to launch in order to initiate the USB devices on Debian 8. Could you look at your process list to check that ?

comment:6 Changed 18 months ago by loic

Others usb devices like usb key or cdrom works on mondorescue shell system

But same keyboard,

connected to mondorescue shell system don't work:

 # dmesg
... 
[ 1245.741384] usb 5-1: new low-speed USB device number 2 using uhci_hcd
[ 1245.917284] usb 5-1: New USB device found, idVendor=03f0, idProduct=0024
[ 1245.917289] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1245.917292] usb 5-1: Product: HP Basic USB Keyboard
[ 1245.917294] usb 5-1: Manufacturer: CHICONY
...

# lsusb -t -v
lsusb: cannot open "/var/lib/usbutils/usb.ids", No such file or directory
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 2, If 0, Class=, Driver=usbhid, 12M
    |__ Port 1: Dev 2, If 1, Class=, Driver=usbhid, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 2, If 0, Class=, Driver=usbhid, 1.5M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
    |__ Port 5: Dev 2, If 0, Class=, Driver=usb-storage, 480M
    |__ Port 8: Dev 4, If 0, Class=, Driver=usb-storage, 480M

    
# mount -t debugfs none /sys/kernel/debug/
# cat /sys/kernel/debug/usb/devices
...    
T:  Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=0024 Rev= 3.00
S:  Manufacturer=CHICONY
S:  Product=HP Basic USB Keyboard
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
...

connected to debian 8 system :

# tail /var/log/syslog
...
Sep 29 11:40:29 gx1 kernel: usb 2-1.1: new low-speed USB device number 7 using ehci-pci
Sep 29 11:40:29 gx1 kernel: usb 2-1.1: New USB device found, idVendor=03f0, idProduct=0024
Sep 29 11:40:29 gx1 kernel: usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Sep 29 11:40:29 gx1 kernel: usb 2-1.1: Product: HP Basic USB Keyboard
Sep 29 11:40:29 gx1 kernel: usb 2-1.1: Manufacturer: CHICONY
Sep 29 11:40:29 gx1 kernel: input: CHICONY HP Basic USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:03F0:0024.0007/input/input7
Sep 29 11:40:29 gx1 kernel: hid-generic 0003:03F0:0024.0007: input,hidraw0: USB HID v1.10 Keyboard [CHICONY HP Basic USB Keyboard] on usb-0000:00:1d.0-1.1/input0

# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 1: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbfs, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M

# cat /sys/kernel/debug/usb/devices
...
T:  Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  7 Spd=1.5  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=0024 Rev= 3.00
S:  Manufacturer=CHICONY
S:  Product=HP Basic USB Keyboard
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
...

process on mondorescue shell :

[root@(none) /]# ps -l
S   UID   PID  PPID   VSZ   RSS TTY   STIME TIME     CMD
S     0     1     0  7660  1860 0:0   11:15 00:00:00 init
S     0     2     0     0     0 0:0   11:15 00:00:00 [kthreadd]
S     0     3     2     0     0 0:0   11:15 00:00:00 [ksoftirqd/0]
S     0     5     2     0     0 0:0   11:15 00:00:00 [kworker/0:0H]
S     0     6     2     0     0 0:0   11:15 00:00:00 [kworker/u64:0]
S     0     7     2     0     0 0:0   11:15 00:00:00 [rcu_sched]
S     0     8     2     0     0 0:0   11:15 00:00:00 [rcu_bh]
S     0     9     2     0     0 0:0   11:15 00:00:00 [migration/0]
S     0    10     2     0     0 0:0   11:15 00:00:00 [watchdog/0]
S     0    11     2     0     0 0:0   11:15 00:00:00 [watchdog/1]
S     0    12     2     0     0 0:0   11:15 00:00:00 [migration/1]
S     0    13     2     0     0 0:0   11:15 00:00:00 [ksoftirqd/1]
S     0    15     2     0     0 0:0   11:15 00:00:00 [kworker/1:0H]
S     0    16     2     0     0 0:0   11:15 00:00:00 [watchdog/2]
S     0    17     2     0     0 0:0   11:15 00:00:00 [migration/2]
S     0    18     2     0     0 0:0   11:15 00:00:00 [ksoftirqd/2]
S     0    20     2     0     0 0:0   11:15 00:00:00 [kworker/2:0H]
S     0    21     2     0     0 0:0   11:15 00:00:00 [watchdog/3]
S     0    22     2     0     0 0:0   11:15 00:00:00 [migration/3]
S     0    23     2     0     0 0:0   11:15 00:00:00 [ksoftirqd/3]
S     0    25     2     0     0 0:0   11:15 00:00:00 [kworker/3:0H]
S     0    26     2     0     0 0:0   11:15 00:00:00 [khelper]
S     0    27     2     0     0 0:0   11:15 00:00:00 [kdevtmpfs]
S     0    28     2     0     0 0:0   11:15 00:00:00 [netns]
S     0    29     2     0     0 0:0   11:15 00:00:00 [khungtaskd]
S     0    30     2     0     0 0:0   11:15 00:00:00 [writeback]
S     0    31     2     0     0 0:0   11:15 00:00:00 [ksmd]
S     0    32     2     0     0 0:0   11:15 00:00:00 [khugepaged]
S     0    33     2     0     0 0:0   11:15 00:00:00 [crypto]
S     0    34     2     0     0 0:0   11:15 00:00:00 [kintegrityd]
S     0    35     2     0     0 0:0   11:15 00:00:00 [bioset]
S     0    36     2     0     0 0:0   11:15 00:00:00 [kblockd]
S     0    38     2     0     0 0:0   11:15 00:00:00 [kworker/1:1]
S     0    39     2     0     0 0:0   11:15 00:00:00 [kworker/2:1]
S     0    40     2     0     0 0:0   11:15 00:00:00 [kworker/3:1]
S     0    41     2     0     0 0:0   11:15 00:00:00 [kswapd0]
S     0    42     2     0     0 0:0   11:15 00:00:00 [fsnotify_mark]
S     0    48     2     0     0 0:0   11:15 00:00:00 [kthrotld]
S     0    49     2     0     0 0:0   11:15 00:00:00 [ipv6_addrconf]
S     0    51     2     0     0 0:0   11:15 00:00:00 [deferwq]
S     0    52     2     0     0 0:0   11:15 00:00:00 [kworker/u64:1]
S     0    53     1 12328  3260 0:0   11:15 00:00:00 {rcS} /bin/bash /etc/init.d/rcS
S     0    63    53 12212  2168 0:0   11:15 00:00:00 {rcS} /bin/bash /etc/init.d/rcS
S     0    64    53 12212  2168 0:0   11:15 00:00:00 {rcS} /bin/bash /etc/init.d/rcS
S     0    65    63  7660  1756 0:0   11:15 00:00:00 tee -a /var/log/mondorestore.log
S     0    67    64  7660  1840 0:0   11:15 00:00:00 tee -a /var/log/mondorestore.log
S     0    82     2     0     0 0:0   11:15 00:00:00 [khubd]
S     0   196     1 36564  3140 0:0   11:15 00:00:00 /sbin/udevd --daemon
S     0   746     1 15924  2704 tty2  11:15 00:00:00 /bin/sh
S     0   750     1 15924  2696 tty3  11:15 00:00:00 /bin/sh
S     0   752     1 15924  2688 tty4  11:15 00:00:00 /bin/sh
S     0   754     1 15924  2724 tty5  11:15 00:00:00 /bin/sh
S     0   756     1 15924  2652 tty6  11:15 00:00:00 /bin/sh
S     0   760     1  7660   888 tty8  11:15 00:00:00 /usr/bin/tail -f /var/log/mondorestore.log
S     0  1422     2     0     0 0:0   11:15 00:00:00 [ata_sff]
S     0  1431     2     0     0 0:0   11:15 00:00:00 [scsi_eh_0]
S     0  1432     2     0     0 0:0   11:15 00:00:00 [scsi_tmf_0]
S     0  1433     2     0     0 0:0   11:15 00:00:00 [scsi_eh_1]
S     0  1434     2     0     0 0:0   11:15 00:00:00 [scsi_tmf_1]
S     0  1459     2     0     0 0:0   11:15 00:00:00 [kworker/3:2]
S     0  1525     2     0     0 0:0   11:15 00:00:00 [kworker/2:2]
S     0  1746     2     0     0 0:0   11:15 00:00:00 [kworker/0:3]
S     0  1865     2     0     0 0:0   11:15 00:00:00 [cciss_scan]
S     0  1876     2     0     0 0:0   11:15 00:00:00 [scsi_eh_2]
S     0  1877     2     0     0 0:0   11:15 00:00:00 [scsi_tmf_2]
S     0  1900     2     0     0 0:0   11:15 00:00:00 [kworker/0:1H]
S     0  1924     2     0     0 0:0   11:15 00:00:00 [kworker/1:1H]
S     0  1940     2     0     0 0:0   11:15 00:00:00 [exec-osm]
S     0  1941     2     0     0 0:0   11:15 00:00:00 [block-osm]
S     0  1982     2     0     0 0:0   11:15 00:00:00 [iscsi_eh]
S     0  1987     2     0     0 0:0   11:15 00:00:00 [scsi_eh_3]
S     0  1988     2     0     0 0:0   11:15 00:00:00 [scsi_tmf_3]
S     0  1989     2     0     0 0:0   11:15 00:00:00 [usb-storage]
S     0  2003     2     0     0 0:0   11:15 00:00:00 [cxgb4]
S     0  2312     2     0     0 0:0   11:15 00:00:00 [rpciod]
S     0  2313     2     0     0 0:0   11:15 00:00:00 [nfsiod]
S     0  2365     2     0     0 0:0   11:15 00:00:00 [cnic_wq]
S     0  2390     2     0     0 0:0   11:15 00:00:00 [bnx2i_thread/0]
S     0  2391     2     0     0 0:0   11:15 00:00:00 [bnx2i_thread/1]
S     0  2392     2     0     0 0:0   11:15 00:00:00 [bnx2i_thread/2]
S     0  2393     2     0     0 0:0   11:15 00:00:00 [bnx2i_thread/3]
S     0  2632     2     0     0 0:0   11:15 00:00:00 [md]
S     0  2653     2     0     0 0:0   11:15 00:00:00 [kmpathd]
S     0  2654     2     0     0 0:0   11:15 00:00:00 [kmpath_handlerd]
S     0  2687     2     0     0 0:0   11:15 00:00:00 [jfsIO]
S     0  2688     2     0     0 0:0   11:15 00:00:00 [jfsCommit]
S     0  2689     2     0     0 0:0   11:15 00:00:00 [jfsCommit]
S     0  2690     2     0     0 0:0   11:15 00:00:00 [jfsCommit]
S     0  2691     2     0     0 0:0   11:15 00:00:00 [jfsCommit]
S     0  2692     2     0     0 0:0   11:15 00:00:00 [jfsSync]
S     0  2751     2     0     0 0:0   11:15 00:00:00 [ocfs2_wq]
S     0  2991     1  7660    92 0:0   11:15 00:00:00 klogd -c 2
S     0  2993     1  7660   100 0:0   11:15 00:00:00 syslogd
S     0  3275    53 16028  3128 tty1  11:16 00:00:00 sh
S     0  3287     2     0     0 0:0   11:17 00:00:00 [scsi_eh_4]
S     0  3288     2     0     0 0:0   11:17 00:00:00 [scsi_tmf_4]
S     0  3289     2     0     0 0:0   11:17 00:00:00 [usb-storage]
S     0  3309     1 50976  2804 0:0   11:19 00:00:00 /usr/sbin/sshd
R     0  3315  3309 53412  5776 0:0   11:24 00:00:00 sshd: root@pts/0
S     0  3316  3315 16028  3092 pts0  11:24 00:00:00 -bash
S     0  3332     2     0     0 0:0   11:36 00:00:00 [kworker/0:0]
S     0  3366     2     0     0 0:0   12:15 00:00:00 [kworker/1:2]
S     0  3367     2     0     0 0:0   12:20 00:00:00 [kworker/1:0]
R     0  3368  3316  7664   972 pts0  12:23 00:00:00 ps -l

Process on debian 8 system :

# ps -el
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
4 S     0     1     0  0  80   0 -  7362 -      ?        00:00:04 systemd
1 S     0     2     0  0  80   0 -     0 -      ?        00:00:00 kthreadd
1 S     0     3     2  0  80   0 -     0 -      ?        00:00:41 ksoftirqd/0
1 S     0     5     2  0  60 -20 -     0 -      ?        00:00:00 kworker/0:0H
1 S     0     7     2  0  80   0 -     0 -      ?        00:02:24 rcu_sched
1 S     0     8     2  0  80   0 -     0 -      ?        00:00:00 rcu_bh
1 S     0     9     2  0 -40   - -     0 -      ?        00:00:00 migration/0
5 S     0    10     2  0 -40   - -     0 -      ?        00:00:01 watchdog/0
5 S     0    11     2  0 -40   - -     0 -      ?        00:00:01 watchdog/1
1 S     0    12     2  0 -40   - -     0 -      ?        00:00:00 migration/1
1 S     0    13     2  0  80   0 -     0 -      ?        00:00:04 ksoftirqd/1
1 S     0    15     2  0  60 -20 -     0 -      ?        00:00:00 kworker/1:0H
5 S     0    16     2  0 -40   - -     0 -      ?        00:00:01 watchdog/2
1 S     0    17     2  0 -40   - -     0 -      ?        00:00:00 migration/2
1 S     0    18     2  0  80   0 -     0 -      ?        00:00:38 ksoftirqd/2
1 S     0    20     2  0  60 -20 -     0 -      ?        00:00:00 kworker/2:0H
5 S     0    21     2  0 -40   - -     0 -      ?        00:00:01 watchdog/3
1 S     0    22     2  0 -40   - -     0 -      ?        00:00:00 migration/3
1 S     0    23     2  0  80   0 -     0 -      ?        00:00:14 ksoftirqd/3
1 S     0    25     2  0  60 -20 -     0 -      ?        00:00:00 kworker/3:0H
5 S     0    26     2  0 -40   - -     0 -      ?        00:00:01 watchdog/4
1 S     0    27     2  0 -40   - -     0 -      ?        00:00:00 migration/4
1 S     0    28     2  0  80   0 -     0 -      ?        00:00:32 ksoftirqd/4
1 S     0    30     2  0  60 -20 -     0 -      ?        00:00:00 kworker/4:0H
5 S     0    31     2  0 -40   - -     0 -      ?        00:00:01 watchdog/5
1 S     0    32     2  0 -40   - -     0 -      ?        00:00:00 migration/5
1 S     0    33     2  0  80   0 -     0 -      ?        00:00:07 ksoftirqd/5
1 S     0    35     2  0  60 -20 -     0 -      ?        00:00:00 kworker/5:0H
5 S     0    36     2  0 -40   - -     0 -      ?        00:00:01 watchdog/6
1 S     0    37     2  0 -40   - -     0 -      ?        00:00:00 migration/6
1 S     0    38     2  0  80   0 -     0 -      ?        00:00:25 ksoftirqd/6
1 S     0    40     2  0  60 -20 -     0 -      ?        00:00:00 kworker/6:0H
5 S     0    41     2  0 -40   - -     0 -      ?        00:00:01 watchdog/7
1 S     0    42     2  0 -40   - -     0 -      ?        00:00:00 migration/7
1 S     0    43     2  0  80   0 -     0 -      ?        00:00:05 ksoftirqd/7
1 S     0    45     2  0  60 -20 -     0 -      ?        00:00:00 kworker/7:0H
1 S     0    46     2  0  60 -20 -     0 -      ?        00:00:00 khelper
5 S     0    47     2  0  80   0 -     0 -      ?        00:00:00 kdevtmpfs
1 S     0    48     2  0  60 -20 -     0 -      ?        00:00:00 netns
1 S     0    49     2  0  80   0 -     0 -      ?        00:00:00 khungtaskd
1 S     0    50     2  0  60 -20 -     0 -      ?        00:00:00 writeback
1 S     0    51     2  0  85   5 -     0 -      ?        00:00:00 ksmd
1 S     0    52     2  0  99  19 -     0 -      ?        00:00:00 khugepaged
1 S     0    53     2  0  60 -20 -     0 -      ?        00:00:00 crypto
1 S     0    54     2  0  60 -20 -     0 -      ?        00:00:00 kintegrityd
1 S     0    55     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0    56     2  0  60 -20 -     0 -      ?        00:00:00 kblockd
1 S     0    58     2  0  80   0 -     0 -      ?        00:01:36 kswapd0
1 S     0    59     2  0  80   0 -     0 -      ?        00:00:00 fsnotify_mark
1 S     0    65     2  0  60 -20 -     0 -      ?        00:00:00 kthrotld
1 S     0    66     2  0  60 -20 -     0 -      ?        00:00:00 ipv6_addrconf
1 S     0    67     2  0  60 -20 -     0 -      ?        00:00:00 deferwq
1 S     0   111     2  0  60 -20 -     0 -      ?        00:00:00 acpi_thermal_pm
1 S     0   113     2  0  80   0 -     0 -      ?        00:00:00 scsi_eh_0
1 S     0   114     2  0  60 -20 -     0 -      ?        00:00:00 scsi_tmf_0
1 S     0   116     2  0  60 -20 -     0 -      ?        00:00:00 fw_event0
1 S     0   124     2  0  60 -20 -     0 -      ?        00:00:00 poll_0_status
1 S     0   131     2  0  60 -20 -     0 -      ?        00:00:02 kworker/2:1H
1 S     0   132     2  0  60 -20 -     0 -      ?        00:00:00 kworker/0:1H
1 S     0   133     2  0  60 -20 -     0 -      ?        00:00:11 kworker/5:1H
1 S     0   134     2  0  60 -20 -     0 -      ?        00:00:04 kworker/1:1H
1 S     0   135     2  0  60 -20 -     0 -      ?        00:00:16 kworker/3:1H
1 S     0   162     2  0  60 -20 -     0 -      ?        00:00:01 kworker/6:1H
1 S     0   163     2  0  60 -20 -     0 -      ?        00:00:00 kdmflush
1 S     0   164     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0   170     2  0  60 -20 -     0 -      ?        00:00:00 kdmflush
1 S     0   171     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0   189     2  0  60 -20 -     0 -      ?        00:00:01 kworker/4:1H
1 S     0   194     2  0  80   0 -     0 -      ?        00:00:00 jbd2/dm-0-8
1 S     0   195     2  0  60 -20 -     0 -      ?        00:00:00 ext4-rsv-conver
1 S     0   196     2  0  60 -20 -     0 -      ?        00:00:07 kworker/7:1H
1 S     0   204     2  0  60 -20 -     0 -      ?        00:00:00 kdmflush
1 S     0   205     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0   222     2  0  80   0 -     0 -      ?        00:00:00 jbd2/dm-2-8
1 S     0   223     2  0  60 -20 -     0 -      ?        00:00:00 ext4-rsv-conver
1 S     0   252     2  0  80   0 -     0 -      ?        00:00:00 kauditd
4 S     0   256     1  0  80   0 -  8240 -      ?        00:00:01 systemd-journal
4 S     0   269     1  0  80   0 - 10207 -      ?        00:00:00 systemd-udevd
1 S     0   322     2  0  60 -20 -     0 -      ?        00:00:00 ata_sff
1 S     0   328     2  0  80   0 -     0 -      ?        00:00:00 scsi_eh_1
1 S     0   329     2  0  60 -20 -     0 -      ?        00:00:00 scsi_tmf_1
1 S     0   330     2  0  80   0 -     0 -      ?        00:00:00 scsi_eh_2
1 S     0   331     2  0  60 -20 -     0 -      ?        00:00:00 scsi_tmf_2
1 S     0   332     2  0  80   0 -     0 -      ?        00:00:00 scsi_eh_3
1 S     0   333     2  0  60 -20 -     0 -      ?        00:00:00 scsi_tmf_3
1 S     0   334     2  0  80   0 -     0 -      ?        00:00:00 scsi_eh_4
1 S     0   335     2  0  60 -20 -     0 -      ?        00:00:00 scsi_tmf_4
1 S     0   336     2  0  80   0 -     0 -      ?        00:00:00 scsi_eh_5
1 S     0   337     2  0  60 -20 -     0 -      ?        00:00:00 scsi_tmf_5
1 S     0   338     2  0  80   0 -     0 -      ?        00:00:00 scsi_eh_6
1 S     0   339     2  0  60 -20 -     0 -      ?        00:00:00 scsi_tmf_6
1 S     0   348     2  0  80   0 -     0 -      ?        00:00:00 khubd
1 S     0   559     2  0  60 -20 -     0 -      ?        00:00:00 kdmflush
1 S     0   560     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0   562     2  0  60 -20 -     0 -      ?        00:00:00 kdmflush
1 S     0   563     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0   565     2  0  60 -20 -     0 -      ?        00:00:00 kdmflush
1 S     0   566     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0   567     2  0  60 -20 -     0 -      ?        00:00:00 kdmflush
1 S     0   569     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0   573     2  0  60 -20 -     0 -      ?        00:00:00 kdmflush
1 S     0   574     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0   577     2  0  60 -20 -     0 -      ?        00:00:00 kdmflush
1 S     0   578     2  0  60 -20 -     0 -      ?        00:00:00 bioset
1 S     0   583     2  0  80   0 -     0 -      ?        00:00:00 jbd2/sda1-8
1 S     0   584     2  0  60 -20 -     0 -      ?        00:00:00 ext4-rsv-conver
1 S     0   653     2  0  80   0 -     0 -      ?        00:00:00 jbd2/dm-8-8
1 S     0   654     2  0  60 -20 -     0 -      ?        00:00:00 ext4-rsv-conver
1 S     0   656     2  0  80   0 -     0 -      ?        00:00:05 jbd2/dm-3-8
1 S     0   657     2  0  60 -20 -     0 -      ?        00:00:00 ext4-rsv-conver
1 S     0   661     2  0  80   0 -     0 -      ?        00:00:00 jbd2/dm-7-8
1 S     0   662     2  0  60 -20 -     0 -      ?        00:00:00 ext4-rsv-conver
1 S     0   680     2  0  80   0 -     0 -      ?        00:00:01 jbd2/dm-4-8
1 S     0   681     2  0  60 -20 -     0 -      ?        00:00:00 ext4-rsv-conver
1 S     0   683     2  0  80   0 -     0 -      ?        00:00:00 jbd2/dm-6-8
1 S     0   684     2  0  60 -20 -     0 -      ?        00:00:00 ext4-rsv-conver
1 S     0   686     2  0  80   0 -     0 -      ?        00:00:04 jbd2/dm-5-8
1 S     0   687     2  0  60 -20 -     0 -      ?        00:00:00 ext4-rsv-conver
4 S     0   881     1  0  80   0 - 13791 -      ?        00:00:00 sshd
4 S     0   882     1  0  80   0 -  6559 -      ?        00:00:00 cron
4 S     0   883     1  0  80   0 - 20039 -      ?        00:00:01 syslog-ng
4 S     0   884     1  0  80   0 -  6144 -      ?        00:00:00 smartd
4 S     0   888     1  0  80   0 -  4962 -      ?        00:00:00 systemd-logind
4 S   108   899     1  0  80   0 - 10529 -      ?        00:00:00 dbus-daemon
5 S   107   919     1  0  79  -1 - 16247 -      ?        00:00:00 ulogd
0 S     0   940     1  0  80   0 -  1062 -      ?        00:00:00 acpid
1 S   109   941     1  0  80   0 -  4258 -      ?        00:03:45 usbhid-ups
4 S     0   949     1  0  80   0 -  3250 -      ttyS0    00:00:00 agetty
5 S     0   962     1  0  80   0 -  4817 -      ?        00:00:25 irqbalance
5 S   106   966     1  0  80   0 -  7257 -      ?        00:00:14 ntpd
1 S   109   981     1  0  80   0 -  9408 -      ?        00:00:18 upsd
1 S     0   984     1  0  80   0 -  9404 -      ?        00:00:00 upsmon
5 S   109   985   984  0  80   0 - 11338 -      ?        00:00:13 upsmon
1 S     0  1042     1  0  80   0 - 10764 -      ?        00:00:51 sec
4 S     0  1100     1  0  80   0 -  1082 -      ?        00:00:00 mysqld_safe
1 S     0  1133     1  0  80   0 -  6616 -      ?        00:00:00 dhcpd
4 S   110  1561  1100  0  80   0 - 665396 -     ?        00:04:05 mysqld
5 S     0  1720     1  0  80   0 - 49875 -      ?        00:00:27 nmbd
5 S     0  1848     1  0  80   0 - 69281 -      ?        00:00:09 smbd
5 S     0  1970     1  0  80   0 - 233950 -     ?        00:02:25 dsm_sa_datamgrd
5 S   111  2336     1  0  80   0 - 51346 -      ?        00:00:00 freeradius
5 S   105  2350     1  0  80   0 - 13309 -      ?        00:00:00 exim4
1 S     0  2504     1  0  80   0 - 48774 -      ?        00:00:00 dsm_sa_eventmgr
1 S     0  2564     1  0  80   0 - 84420 -      ?        00:02:47 dsm_sa_snmpd
1 S     0  4498     2  0  80   0 -     0 -      ?        00:00:00 kworker/2:1
5 S     0  4839  1848  0  80   0 - 77309 -      ?        00:00:00 smbd
4 S     0  5517   881  0  80   0 - 20667 -      ?        00:00:00 sshd
4 S     0  5519  5517  0  80   0 -  3174 -      ?        00:00:00 sftp-server
4 R     0  6039   881  0  80   0 - 20667 -      ?        00:00:00 sshd
4 S     0  6041  6039  0  80   0 -  6023 -      pts/0    00:00:00 bash
4 S     0  6262     1  0  80   0 -  3295 -      tty1     00:00:00 agetty
1 S     0  6265     2  0  80   0 -     0 -      ?        00:00:00 kworker/6:0
1 S     0  6275     2  0  80   0 -     0 -      ?        00:00:00 kworker/u16:1
1 S     0  6380     2  0  80   0 -     0 -      ?        00:00:00 kworker/7:1
1 S     0  6382     2  0  80   0 -     0 -      ?        00:00:00 kworker/0:1
5 S     0  6409  1848  3  80   0 - 79948 -      ?        00:00:29 smbd
1 S     0  6444     2  0  80   0 -     0 -      ?        00:00:00 kworker/u16:0
0 R     0  6477  6041  0  80   0 -  2356 -      pts/0    00:00:00 ps
1 S     0 14005     2  0  80   0 -     0 -      ?        00:00:01 kworker/7:2
1 S     0 14496     2  0  60 -20 -     0 -      ?        00:00:00 md
1 S     0 14504     2  0  60 -20 -     0 -      ?        00:00:00 raid5wq
1 S     0 15331     2  0  80   0 -     0 -      ?        00:00:06 kworker/3:1
1 S     0 18802     2  0  80   0 -     0 -      ?        00:00:00 kworker/1:2
1 S     0 19145     2  0  80   0 -     0 -      ?        00:00:00 kworker/4:2
1 S     0 19203     2  0  80   0 -     0 -      ?        00:00:00 kworker/0:0
1 S     0 19604     2  0  80   0 -     0 -      ?        00:00:00 kworker/5:2
1 S     0 20425     2  0  80   0 -     0 -      ?        00:00:00 kworker/3:0
1 S     0 20540     2  0  80   0 -     0 -      ?        00:00:00 kworker/5:1
1 S     0 20559     2  0  80   0 -     0 -      ?        00:00:00 kworker/4:0
1 S     0 20561     2  0  80   0 -     0 -      ?        00:00:00 kworker/1:0
1 S     0 20866     2  0  80   0 -     0 -      ?        00:00:00 kworker/2:2
1 S     0 22052     2  0  80   0 -     0 -      ?        00:00:00 kworker/6:2

comment:7 Changed 18 months ago by loic

I notice that, on mondorescue shell, the lsusb command does not work properly, and the directory /dev/bus/usb is missing. Is this may explain the keyboard problem ?

# export LIBUSB_DEBUG=9
# lsusb
lsusb: cannot open "/var/lib/usbutils/usb.ids", No such file or directory
libusb: debug [libusb_init] created default context
libusb: debug [libusb_init] libusb v1.0.19.10903
libusb: error [op_init] could not find usbfs
unable to initialize libusb: -99

# ls -l /dev/bus
ls: /dev/bus: No such file or directory

on a debian 8 system :

# export LIBUSB_DEBUG=9
root@gx1:~# lsusb
libusb: debug [libusb_init] created default context
libusb: debug [libusb_init] libusb v1.0.19.10903
libusb: debug [find_usbfs_path] found usbfs at /dev/bus/usb
libusb: debug [op_init] bulk continuation flag supported
libusb: debug [op_init] zero length packet flag supported
libusb: debug [op_init] sysfs can relate devices
libusb: debug [op_init] sysfs has complete descriptors
libusb: debug [linux_udev_event_thread_main] udev event thread entering.
libusb: debug [linux_get_device_address] getting address for device: usb1 detached: 0
libusb: debug [linux_get_device_address] scan usb1
libusb: debug [linux_get_device_address] bus=1 dev=1
libusb: debug [linux_enumerate_device] busnum 1 devaddr 1 session_id 257
libusb: debug [linux_enumerate_device] allocating new device for 1/1 (session 257)
libusb: debug [linux_get_device_address] getting address for device: 1-1 detached: 0
libusb: debug [linux_get_device_address] scan 1-1
libusb: debug [linux_get_device_address] bus=1 dev=2
libusb: debug [linux_enumerate_device] busnum 1 devaddr 2 session_id 258
libusb: debug [linux_enumerate_device] allocating new device for 1/2 (session 258)
libusb: debug [linux_get_parent_info] Dev 0x9d2850 (1-1) has parent 0x9d2790 (usb1) port 1
libusb: debug [linux_get_device_address] getting address for device: usb2 detached: 0
libusb: debug [linux_get_device_address] scan usb2
libusb: debug [linux_get_device_address] bus=2 dev=1
libusb: debug [linux_enumerate_device] busnum 2 devaddr 1 session_id 513
libusb: debug [linux_enumerate_device] allocating new device for 2/1 (session 513)
libusb: debug [linux_get_device_address] getting address for device: 2-1 detached: 0
libusb: debug [linux_get_device_address] scan 2-1
libusb: debug [linux_get_device_address] bus=2 dev=2
libusb: debug [linux_enumerate_device] busnum 2 devaddr 2 session_id 514
libusb: debug [linux_enumerate_device] allocating new device for 2/2 (session 514)
libusb: debug [linux_get_parent_info] Dev 0x9d2540 (2-1) has parent 0x9d2930 (usb2) port 1
libusb: debug [linux_get_device_address] getting address for device: 2-1.1 detached: 0
libusb: debug [linux_get_device_address] scan 2-1.1
libusb: debug [linux_get_device_address] bus=2 dev=7
libusb: debug [linux_enumerate_device] busnum 2 devaddr 7 session_id 519
libusb: debug [linux_enumerate_device] allocating new device for 2/7 (session 519)
libusb: debug [linux_get_parent_info] Dev 0x9d2600 (2-1.1) has parent 0x9d2540 (2-1) port 1
libusb: debug [linux_get_device_address] getting address for device: 2-1.4 detached: 0
libusb: debug [linux_get_device_address] scan 2-1.4
libusb: debug [linux_get_device_address] bus=2 dev=4
libusb: debug [linux_enumerate_device] busnum 2 devaddr 4 session_id 516
libusb: debug [linux_enumerate_device] allocating new device for 2/4 (session 516)
libusb: debug [linux_get_parent_info] Dev 0x9d4610 (2-1.4) has parent 0x9d2540 (2-1) port 4
libusb: debug [usbi_add_pollfd] add fd 6 events 1
libusb: debug [usbi_add_pollfd] add fd 8 events 1
libusb: debug [usbi_io_init] using timerfd for timeouts
libusb: debug [usbi_add_pollfd] add fd 10 events 1
libusb: debug [libusb_get_device_list]
libusb: debug [libusb_get_device_descriptor]
Bus 002 Device 004: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
libusb: debug [libusb_get_device_descriptor]
Bus 002 Device 007: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
libusb: debug [libusb_get_device_descriptor]
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
libusb: debug [libusb_get_device_descriptor]
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
libusb: debug [libusb_get_device_descriptor]
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
libusb: debug [libusb_get_device_descriptor]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
libusb: debug [libusb_exit]
libusb: debug [libusb_exit] destroying default context
libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
libusb: debug [handle_events] poll() 3 fds with timeout in 0ms
libusb: debug [handle_events] poll() returned 0
libusb: debug [usbi_remove_pollfd] remove fd 6
libusb: debug [usbi_remove_pollfd] remove fd 8
libusb: debug [usbi_remove_pollfd] remove fd 10
libusb: debug [linux_udev_event_thread_main] udev event thread exiting

# find /dev/bus/usb
/dev/bus/usb
/dev/bus/usb/002
/dev/bus/usb/002/007
/dev/bus/usb/002/004
/dev/bus/usb/002/002
/dev/bus/usb/002/001
/dev/bus/usb/001
/dev/bus/usb/001/002
/dev/bus/usb/001/001

On mondorescue shell, "udevadm test /bus/usb/devices/5-1" reports: can not stat() node '/dev/bus/usb/005/002' (No such file or directory)

# udevadm test /bus/usb/devices/5-1
calling: test
version 215
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

load module index
Network interface NamePolicy= disabled on kernel commandline, ignoring.
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
read rules file: /lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /lib/udev/rules.d/50-firmware.rules
read rules file: /lib/udev/rules.d/50-udev-default.rules
specified group 'dialout' unknown
specified group 'input' unknown
specified group 'video' unknown
read rules file: /lib/udev/rules.d/52-nut-usbups.rules
specified group 'nut' unknown
read rules file: /lib/udev/rules.d/55-dm.rules
read rules file: /lib/udev/rules.d/56-lvm.rules
read rules file: /lib/udev/rules.d/60-cdrom_id.rules
read rules file: /lib/udev/rules.d/60-drm.rules
read rules file: /lib/udev/rules.d/60-fuse.rules
read rules file: /lib/udev/rules.d/60-gnupg.rules
read rules file: /lib/udev/rules.d/60-keyboard.rules
read rules file: /lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /lib/udev/rules.d/60-persistent-input.rules
read rules file: /lib/udev/rules.d/60-persistent-serial.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /lib/udev/rules.d/60-persistent-storage.rules
read rules file: /lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /lib/udev/rules.d/61-accelerometer.rules
read rules file: /lib/udev/rules.d/64-btrfs.rules
read rules file: /lib/udev/rules.d/69-lvm-metad.rules
read rules file: /etc/udev/rules.d/70-persistent-net.rules
read rules file: /lib/udev/rules.d/70-power-switch.rules
read rules file: /lib/udev/rules.d/70-uaccess.rules
read rules file: /lib/udev/rules.d/71-seat.rules
read rules file: /lib/udev/rules.d/73-idrac.rules
read rules file: /lib/udev/rules.d/73-seat-late.rules
read rules file: /lib/udev/rules.d/75-net-description.rules
read rules file: /lib/udev/rules.d/75-persistent-net-generator.rules
read rules file: /lib/udev/rules.d/75-probe_mtd.rules
read rules file: /lib/udev/rules.d/75-tty-description.rules
read rules file: /lib/udev/rules.d/78-sound-card.rules
read rules file: /lib/udev/rules.d/80-drivers.rules
read rules file: /lib/udev/rules.d/80-net-setup-link.rules
read rules file: /lib/udev/rules.d/80-networking.rules
read rules file: /lib/udev/rules.d/85-hwclock.rules
read rules file: /etc/udev/rules.d/95-dataeng-udev.rules
read rules file: /lib/udev/rules.d/95-udev-late.rules
read rules file: /lib/udev/rules.d/99-systemd.rules
rules contain 49152 bytes tokens (4096 * 12 bytes), 13039 bytes strings
2394 strings (26891 bytes), 1627 de-duplicated (14620 bytes), 768 trie nodes used
IMPORT builtin 'usb_id' /lib/udev/rules.d/50-udev-default.rules:9
IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:9
MODE 0664 /lib/udev/rules.d/50-udev-default.rules:41
RUN '/bin/sh -c '[ -x /opt/dell/srvadmin/sbin/dataeng.hotplug ] && /opt/dell/srvadmin/sbin/dataeng.hotplug usb'' /etc/udev/rules.d/95-dataeng-udev.rules:34
handling device node '/dev/bus/usb/005/002', devnum=c189:513, mode=0664, uid=0, gid=0
can not stat() node '/dev/bus/usb/005/002' (No such file or directory)
ACTION=add
BUSNUM=005
DEVNAME=/dev/bus/usb/005/002
DEVNUM=002
DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb5/5-1
DEVTYPE=usb_device
DRIVER=usb
ID_BUS=usb
ID_MODEL=HP_Basic_USB_Keyboard
ID_MODEL_ENC=HP\x20Basic\x20USB\x20Keyboard
ID_MODEL_FROM_DATABASE=KU-0316 Keyboard
ID_MODEL_ID=0024
ID_REVISION=0300
ID_SERIAL=CHICONY_HP_Basic_USB_Keyboard
ID_USB_INTERFACES=:030101:
ID_VENDOR=CHICONY
ID_VENDOR_ENC=CHICONY
ID_VENDOR_FROM_DATABASE=Hewlett-Packard
ID_VENDOR_ID=03f0
MAJOR=189
MINOR=513
PRODUCT=3f0/24/300
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=565120
run: '/bin/sh -c '[ -x /opt/dell/srvadmin/sbin/dataeng.hotplug ] && /opt/dell/srvadmin/sbin/dataeng.hotplug usb''
unload module index
Unloaded link configuration context.

find /dev/bus
find: /dev/bus: No such file or directory

comment:8 Changed 18 months ago by loic

If I boot on a mondorescue.iso backup of debian 7 system, at mondorescue shell, usb keyboard and lsusb working properly, and /dev/bus/usb is present :

lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 03f0:1027 Hewlett-Packard Virtual keyboard and mouse
Bus 006 Device 002: ID 04c5:2028 Fujitsu, Ltd
Bus 006 Device 004: ID 0781:5580 SanDisk Corp. SDCZ80 Flash Drive
Bus 004 Device 002: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard

# find /dev/bus
/dev/bus
/dev/bus/usb
/dev/bus/usb/006
/dev/bus/usb/006/004
/dev/bus/usb/006/002
/dev/bus/usb/006/001
/dev/bus/usb/005
/dev/bus/usb/005/002
/dev/bus/usb/005/001
/dev/bus/usb/004
/dev/bus/usb/004/002
/dev/bus/usb/004/001
/dev/bus/usb/003
/dev/bus/usb/003/001
/dev/bus/usb/002
/dev/bus/usb/002/001
/dev/bus/usb/001
/dev/bus/usb/001/001

List of process (Debian 7 mondorescue) :

# ps
  PID USER       VSZ STAT COMMAND
    1 root      7080 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW   [migration/0]
    7 root         0 SW   [watchdog/0]
    8 root         0 SW   [migration/1]
    9 root         0 SW   [kworker/1:0]
   10 root         0 SW   [ksoftirqd/1]
   11 root         0 SW   [kworker/0:1]
   12 root         0 SW   [watchdog/1]
   13 root         0 SW   [migration/2]
   15 root         0 SW   [ksoftirqd/2]
   16 root         0 SW   [watchdog/2]
   17 root         0 SW   [migration/3]
   19 root         0 SW   [ksoftirqd/3]
   20 root         0 SW   [watchdog/3]
   21 root         0 SW<  [cpuset]
   22 root         0 SW<  [khelper]
   23 root         0 SW   [kdevtmpfs]
   24 root         0 SW<  [netns]
   25 root         0 SW   [sync_supers]
   26 root         0 SW   [bdi-default]
   27 root         0 SW<  [kintegrityd]
   28 root         0 SW<  [kblockd]
   29 root         0 SW   [kworker/1:1]
   30 root         0 SW   [kworker/2:1]
   31 root         0 SW   [kworker/3:1]
   32 root         0 SW   [khungtaskd]
   33 root         0 SW   [kswapd0]
   34 root         0 SWN  [ksmd]
   35 root         0 SWN  [khugepaged]
   36 root         0 SW   [fsnotify_mark]
   37 root         0 SW<  [crypto]
   40 root         0 SW   [kworker/0:2]
   41 root      9812 S    /bin/sh /etc/init.d/rcS
   63 root         0 SW   [khubd]
  157 root     17352 S    /sbin/udevd --daemon
  712 root     13532 S    /bin/sh
  716 root     13532 S    /bin/sh
  718 root     13532 S    /bin/sh
  720 root     13532 S    /bin/sh
  722 root     13532 S    /bin/sh
  724 root      9248 S    /bin/sh /sbin/wait-for-petris
  727 root      7080 S    /usr/bin/tail -f /var/log/mondorestore.log
 2006 root         0 SW<  [rpciod]
 2051 root         0 SW   [kworker/u:1]
 2112 root         0 SW<  [nfsiod]
 2477 root         0 SW<  [iscsi_eh]
 2698 root         0 SW   [scsi_eh_0]
 2700 root         0 SW   [hpsa]
 2876 root         0 SW<  [cnic_wq]
 2877 root         0 SW<  [bnx2i_thread/0]
 2878 root         0 SW<  [bnx2i_thread/1]
 2879 root         0 SW<  [bnx2i_thread/2]
 2880 root         0 SW<  [bnx2i_thread/3]
 3024 root         0 SW   [scsi_eh_1]
 3025 root         0 SW   [usb-storage]
 3287 root         0 SW<  [bnx2x]
 3377 root         0 SW<  [exec-osm]
 3389 root         0 SW<  [block-osm]
 3622 root         0 SW   [cciss_scan]
 3634 root         0 SW<  [ata_sff]
 3789 root         0 SW   [scsi_eh_2]
 3790 root         0 SW   [scsi_eh_3]
 3847 root         0 SW   [kworker/2:2]
 3885 root         0 SW   [kworker/3:2]
 6711 root         0 SW<  [xfs_mru_cache]
 6712 root         0 SW<  [xfslogd]
 6713 root         0 SW<  [xfsdatad]
 6714 root         0 SW<  [xfsconvertd]
 6737 root         0 SW   [jfsIO]
 6738 root         0 SW   [jfsCommit]
 6739 root         0 SW   [jfsCommit]
 6740 root         0 SW   [jfsCommit]
 6741 root         0 SW   [jfsCommit]
 6742 root         0 SW   [jfsSync]
 7127 root         0 SW<  [kmpathd]
 7128 root         0 SW<  [kmpath_handlerd]
 7140 root         0 SW<  [md]
 7318 root         0 SW<  [edac-poller]
 9363 root      7080 S    klogd -c 2
 9365 root      7080 S    syslogd
 9696 root     13636 S    sh
 9730 root         0 SW   [scsi_eh_4]
 9731 root         0 SW   [usb-storage]
 9738 root     17348 S    /sbin/udevd --daemon
 9739 root     17348 S    /sbin/udevd --daemon
 9826 root     45744 S    /usr/sbin/sshd
 9931 root     48188 R    sshd: root@pts/0
 9932 root     13632 S    -bash
10063 root     48000 S    sshd: root@notty
10066 root     13456 S    -bash
10172 root     48000 S    sshd: root@notty
10174 root     13456 S    -bash
10590 root      6948 S    sleep 2
10591 root     11308 R    ps

Now the question is : why /dev/bus/usb is missing when I boot with a mondorescue.iso backup of a debian 8 system ?

comment:9 Changed 18 months ago by loic

I start udev in debug mode, I disconnect and reconnect the USB keyboard. Log from udev :

timestamp of '/etc/udev/rules.d' changed
validate module index
Check if link configuration needs reloading.
unload module index
Unloaded link configuration context.
seq 2003 queued, 'remove' 'hid'
=== trie on-disk ===
tool version:          215
file size:         6449966 bytes
header size             80 bytes
strings            1666046 bytes
nodes              4783840 bytes
load module index
Network interface NamePolicy= disabled on kernel commandline, ignoring.
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
read rules file: /lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /lib/udev/rules.d/50-firmware.rules
read rules file: /lib/udev/rules.d/50-udev-default.rules
specified group 'dialout' unknown
specified group 'input' unknown
specified group 'video' unknown
read rules file: /lib/udev/rules.d/52-nut-usbups.rules
specified group 'nut' unknown
read rules file: /lib/udev/rules.d/55-dm.rules
read rules file: /lib/udev/rules.d/56-lvm.rules
read rules file: /lib/udev/rules.d/60-cdrom_id.rules
read rules file: /lib/udev/rules.d/60-drm.rules
read rules file: /lib/udev/rules.d/60-fuse.rules
read rules file: /lib/udev/rules.d/60-gnupg.rules
read rules file: /lib/udev/rules.d/60-keyboard.rules
read rules file: /lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /lib/udev/rules.d/60-persistent-input.rules
read rules file: /lib/udev/rules.d/60-persistent-serial.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /lib/udev/rules.d/60-persistent-storage.rules
read rules file: /lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /lib/udev/rules.d/61-accelerometer.rules
read rules file: /lib/udev/rules.d/64-btrfs.rules
read rules file: /lib/udev/rules.d/69-lvm-metad.rules
read rules file: /etc/udev/rules.d/70-persistent-net.rules
read rules file: /lib/udev/rules.d/70-power-switch.rules
read rules file: /lib/udev/rules.d/70-uaccess.rules
read rules file: /lib/udev/rules.d/71-seat.rules
read rules file: /lib/udev/rules.d/73-idrac.rules
read rules file: /lib/udev/rules.d/73-seat-late.rules
read rules file: /lib/udev/rules.d/75-net-description.rules
read rules file: /lib/udev/rules.d/75-persistent-net-generator.rules
read rules file: /lib/udev/rules.d/75-probe_mtd.rules
read rules file: /lib/udev/rules.d/75-tty-description.rules
read rules file: /lib/udev/rules.d/78-sound-card.rules
read rules file: /lib/udev/rules.d/80-drivers.rules
read rules file: /lib/udev/rules.d/80-net-setup-link.rules
read rules file: /lib/udev/rules.d/80-networking.rules
read rules file: /lib/udev/rules.d/85-hwclock.rules
read rules file: /lib/udev/rules.d/95-udev-late.rules
read rules file: /lib/udev/rules.d/99-systemd.rules
rules contain 49152 bytes tokens (4096 * 12 bytes), 12708 bytes strings
2380 strings (26407 bytes), 1619 de-duplicated (14461 bytes), 762 trie nodes used
seq 2003 forked new worker [6494]
seq 2004 queued, 'remove' 'usb'
seq 2005 queued, 'remove' 'usb'
seq 2003 running
no db file to read /run/udev/data/+hid:0003:03F0:0024.0007: No such file or directory
IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:11
device 0x7fd17284a2d0 has devpath '/devices/pci0000:00/0000:00:1d.3/usb5'
device 0x7fd172862830 has devpath '/devices/pci0000:00/0000:00:1d.3'
device 0x7fd172864760 has devpath '/devices/pci0000:00'
IMPORT builtin 'hwdb' returned non-zero
passed -1 bytes to netlink monitor 0x7fd17284d990
seq 2003 processed with 0
passed 306 bytes to netlink monitor 0x7fd17284a2d0
seq 2004 running
device 0x7fd172853bc0 filled with db file data
IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:11
passed -1 bytes to netlink monitor 0x7fd17284d990
seq 2004 processed with 0
passed 291 bytes to netlink monitor 0x7fd17284a2d0
seq 2005 running
device 0x7fd17284d780 filled with db file data
IMPORT builtin 'usb_id' /lib/udev/rules.d/50-udev-default.rules:9
error opening USB device 'descriptors' file
No USB vendor information available
IMPORT builtin 'usb_id' returned non-zero
passed -1 bytes to netlink monitor 0x7fd17284d990
seq 2005 processed with 0
cleanup idle workers
validate module index
Check if link configuration needs reloading.
unload module index
Unloaded link configuration context.
worker [6494] exit
worker [6494] cleaned up
seq 2006 queued, 'add' 'usb'
seq 2006 forked new worker [6495]
seq 2006 running
no db file to read /run/udev/data/c189:518: No such file or directory
seq 2007 queued, 'add' 'usb'
seq 2008 queued, 'add' 'hid'
device 0x7fd17284ad60 has devpath '/devices/pci0000:00/0000:00:1d.3/usb5'
device 0x7fd172853c90 has devpath '/devices/pci0000:00/0000:00:1d.3'
device 0x7fd1728604f0 has devpath '/devices/pci0000:00'
IMPORT builtin 'usb_id' /lib/udev/rules.d/50-udev-default.rules:9
IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:9
MODE 0664 /lib/udev/rules.d/50-udev-default.rules:41
device 0x7fd17284ad60 filled with db file data
handling device node '/dev/bus/usb/005/007', devnum=c189:518, mode=0664, uid=0, gid=0
can not stat() node '/dev/bus/usb/005/007' (No such file or directory)
created db file '/run/udev/data/c189:518' for '/devices/pci0000:00/0000:00:1d.3/usb5/5-2'
passed -1 bytes to netlink monitor 0x7fd17284dda0
seq 2006 processed with 0
passed 303 bytes to netlink monitor 0x7fd17284a2d0
seq 2007 running
no db file to read /run/udev/data/+usb:5-2:1.0: No such file or directory
device 0x7fd17284ad60 has devpath '/devices/pci0000:00/0000:00:1d.3/usb5/5-2'
device 0x7fd172851350 has devpath '/devices/pci0000:00/0000:00:1d.3/usb5'
device 0x7fd1728523a0 has devpath '/devices/pci0000:00/0000:00:1d.3'
device 0x7fd17284d940 has devpath '/devices/pci0000:00'
IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:11
device 0x7fd17284ad60 filled with db file data
RUN 'kmod load $env{MODALIAS}' /lib/udev/rules.d/80-drivers.rules:5
created db file '/run/udev/data/+usb:5-2:1.0' for '/devices/pci0000:00/0000:00:1d.3/usb5/5-2/5-2:1.0'
execute 'load' 'usb:v03F0p0024d0300dc00dsc00dp00ic03isc01ip01in00'
inserted 'usbhid'
passed -1 bytes to netlink monitor 0x7fd17284dda0
seq 2007 processed with 0
passed 342 bytes to netlink monitor 0x7fd17284a2d0
seq 2008 running
no db file to read /run/udev/data/+hid:0003:03F0:0024.0008: No such file or directory
IMPORT builtin 'hwdb' /lib/udev/rules.d/50-udev-default.rules:11
device 0x7fd17284ad60 has devpath '/devices/pci0000:00/0000:00:1d.3/usb5/5-2/5-2:1.0'
device 0x7fd1728604f0 has devpath '/devices/pci0000:00/0000:00:1d.3/usb5/5-2'
device 0x7fd1728523a0 has devpath '/devices/pci0000:00/0000:00:1d.3/usb5'
device 0x7fd17284dff0 has devpath '/devices/pci0000:00/0000:00:1d.3'
device 0x7fd172854c30 has devpath '/devices/pci0000:00'
IMPORT builtin 'hwdb' returned non-zero
device 0x7fd17284ad60 filled with db file data
RUN 'kmod load $env{MODALIAS}' /lib/udev/rules.d/80-drivers.rules:5
execute 'load' 'hid:b0003g0001v000003F0p00000024'
failed to insert 'hid_generic'
passed -1 bytes to netlink monitor 0x7fd17284dda0
seq 2008 processed with 0
cleanup idle workers
validate module index
Check if link configuration needs reloading.
unload module index
Unloaded link configuration context.
worker [6495] exit
worker [6495] cleaned up

I notice this :

...
failed to insert 'hid_generic'
...

The "hid_generic" module is already in the USB_MODS variable of the /usr/sbin/mindi file. But, for that the usb keyboard works properly, we must also add the module "hid-generic".

Please can you add the "hid-generic" module in the /usr/sbin/mindi file ?

comment:10 Changed 18 months ago by bruno

  • Status changed from assigned to closed
  • Resolution set to fixed

Done with rev [3474]. Thanks for tracking this down ! Will be in 3.2.2

Last edited 13 months ago by bruno (previous) (diff)
Note: See TracTickets for help on using tickets.