Answer the question
In order to leave comments, you need to log in
Assuming drive cache: write through (how to disable a faulty card reader)?
Есть лэптоп с физически неисправным alcor micro corp. multi flash reader, а проблема состоит в том, что при заходе в tty1-6, экран забивается постоянными сообщениями вида:
sd 2555:0:0:0: [sdb] Assuming drive cache: write through
sd 2555:0:0:0: [sdb] Asking for cache data failed
Просто выдернуть шлейф картридера нельзя - он расположен прямо на мат. плате. Пересобрал ядро, отключив «MMC, SD, SDIO card support» и «Sony MemoryStick card support», но ничего не изменилось. Что еще можно предпринять?
Пример вывода из dmesg:
[ 4319.755848] usb-storage 1-1.5:1.0: USB Mass Storage device detected
[ 4319.756091] scsi host1775: usb-storage 1-1.5:1.0
[ 4320.883373] scsi 1775:0:0:0: Direct-Access Multiple Card Reader 1.00 PQ: 0 ANSI: 0
[ 4320.883949] sd 1775:0:0:0: Attached scsi generic sg2 type 0
[ 4321.131618] usb 1-1.5: USB disconnect, device number 39
[ 4321.138947] sd 1775:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 4321.138957] sd 1775:0:0:0: [sdb] Sense not available.
[ 4321.139051] sd 1775:0:0:0: [sdb] Write Protect is off
[ 4321.139062] sd 1775:0:0:0: [sdb] Mode Sense: 2e 2e 2f 2e
[ 4321.139119] sd 1775:0:0:0: [sdb] Asking for cache data failed
[ 4321.139127] sd 1775:0:0:0: [sdb] Assuming drive cache: write through
[ 4321.139488] sd 1775:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 4321.139495] sd 1775:0:0:0: [sdb] Sense not available.
[ 4321.139524] sd 1775:0:0:0: [sdb] Attached SCSI removable disk
[ 4321.362837] usb 1-1.5: new high-speed USB device number 40 using ehci-pci
[ 4321.456902] usb 1-1.5: New USB device found, idVendor=058f, idProduct=6366
[ 4321.456911] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4321.456917] usb 1-1.5: Product: Mass Storage Device
[ 4321.456922] usb 1-1.5: Manufacturer: Generic
[ 4321.456927] usb 1-1.5: SerialNumber: 058F63666433
Answer the question
In order to leave comments, you need to log in
В общем, справился:
dmesg –n emerg отключает логи, после чего можно коннектиться к tty
echo 1 | sudo tee /sys/bus/usb/devices/usb1/1–1/1-1.5/remove удаляет устройство до перезагрузки
и наиболее правильное решение - это правило для udev в /etc/udev/rules.d
ACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh –c 'echo 0 >/sys/bus/usb/devices/usb1/1–1/1–1.5/authorized; done'"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question