I recently discovered a rather weird boot behaviour on my Raspberry. The filesystem check would return errors and then the filesystem has been mounted read-only. At first I suspected the SD card being defect and changed it for a new one, being glad that I had a backup. This didn’t do the trick. I had to dive deeper.
With the command “dmesg” you can get the current output of the kernel log, that is mostly the stuff you see on boot. So I did check the messages and found an error while checking the USB hub that is connected to my Raspberry. In fact the error was related to the keyboard that is attached. The messages read:
[ 86.513145] input: USB USB Keykoard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/input/input0 [ 86.524201] hid-generic 0003:1A2C:0021.0001: input,hidraw0: USB HID v1.10 Keyboard [USB USB Keykoard] on usb-bcm2708_usb-1.3.1/input0 [ 96.524435] hid-generic 0003:1A2C:0021.0002: usb_submit_urb(ctrl) failed: -1 [ 96.524473] hid-generic 0003:1A2C:0021.0002: timeout initializing reports [ 96.525204] input: USB USB Keykoard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.1/input/input1 [ 96.532824] hid-generic 0003:1A2C:0021.0002: input,hidraw1: USB HID v1.10 Device [USB USB Keykoard] on usb-bcm2708_usb-1.3.1/input1
Obviously there was something going wrong with the keyboard. So I decided to remove the powered USB hub and connect the keyboard directly to the Raspberry. The error remained.
Booting without the keyboard attached went well, no filesystem errors an more. But as soon as I plug in the keyboard, the above error messages appear. I have yet no idea why, but the cheap keyboard I bought seems to have some serious comaptibility issues.
It is a noname, really cheap keyboard, the lsusb command does not even give a name, just the ID. So if you have a cheap keyboard and experience trouble on boot, check if the keyboard reports as
Bus 001 Device 006: ID 1a2c:0021
Don’t buy too cheap…