插入外部 DVD 驱动器会导致 ls、sudo、新的 SSH 连接被拒绝......发生了什么?

插入外部 DVD 驱动器会导致 ls、sudo、新的 SSH 连接被拒绝......发生了什么?

标题说明了一切。但我将外部 DVD 驱动器插入运行 Raspbian 的 Raspberry Pi。它说它兼容Linux

但是当我实际将其插入设备时。一切都以难以理解的方式出错。

SSH 说“kex_exchange_identification:读取:连接由对等方重置。连接由 192.168.50.2 端口 22 重置”

或者当我执行“ls”时,它显示“-bash:/ usr / bin / ls:输入/输出错误”

或者当我执行“sudo”时,它会显示“-bash:sudo:找不到命令”

插入后没有任何实际作用。

然而,当我重新启动 RaspberryPi 时,一切都很好......直到我插入 DVD 驱动器。

到底是怎么回事?鉴于如此多的命令被关闭,我该如何排除故障或修复它?可能发生了什么?

调查更新 $PATH 前后/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games - 相同,但这对我来说很奇怪。这是操作系统的新配置版本。为什么它指向游戏和所有其他东西?奇怪的?

DVD 驱动器“hyripe 外置 CD/DVD 驱动器”

另一件似乎可能相关的事情。设备正在启动并使用通过 USB 端口插入的外部 SSD 作为内存。

dmesg 输出

[   19.657310] Initializing XFRM netlink socket
[   87.772696] usb 2-2: USB disconnect, device number 2
[   87.775097] device offline error, dev sda, sector 135274584 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 2
[   87.775132] Buffer I/O error on dev sda2, logical block 16777227, lost async page write
[   87.775164] device offline error, dev sda, sector 177217664 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 2
[   87.775179] Buffer I/O error on dev sda2, logical block 22020112, lost async page write
[   87.775195] device offline error, dev sda, sector 177221200 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 2
[   87.775208] Buffer I/O error on dev sda2, logical block 22020554, lost async page write
[   87.775223] device offline error, dev sda, sector 177221456 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 2
[   87.775236] Buffer I/O error on dev sda2, logical block 22020586, lost async page write
[   87.775250] device offline error, dev sda, sector 177225992 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 2
[   87.775262] Buffer I/O error on dev sda2, logical block 22021153, lost async page write
[   87.775276] device offline error, dev sda, sector 177309888 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 2
[   87.775288] Buffer I/O error on dev sda2, logical block 22031640, lost async page write
[   87.775302] device offline error, dev sda, sector 1056768 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 2
[   87.775314] Buffer I/O error on dev sda2, logical block 0, lost async page write
[   87.775328] device offline error, dev sda, sector 1056840 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 2
[   87.775340] Buffer I/O error on dev sda2, logical block 9, lost async page write
[   87.775354] device offline error, dev sda, sector 1056856 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 2
[   87.775366] Buffer I/O error on dev sda2, logical block 11, lost async page write
[   87.776903] device offline error, dev sda, sector 123307176 op 0x1:(WRITE) flags 0x9800 phys_seg 3 prio class 2
[   87.776946] Aborting journal on device sda2-8.
[   87.777003] Buffer I/O error on dev sda2, logical block 15237120, lost sync page write
[   87.777038] JBD2: I/O error when updating journal superblock for sda2-8.
[   87.778325] EXT4-fs error (device sda2): ext4_journal_check_start:84: comm systemd-journal: Detected aborted journal
[   87.778377] EXT4-fs (sda2): previous I/O error to superblock detected
[   87.780733] EXT4-fs (sda2): I/O error while writing superblock
[   87.780759] EXT4-fs (sda2): Remounting filesystem read-only
[   87.932676] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[   87.946770] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm wf-panel-pi: error -5 reading directory block
[   87.960681] EXT4-fs warning (device sda2): dx_probe:822: inode #11752: lblock 0: comm wf-panel-pi: error -5 reading directory block
[   87.960788] EXT4-fs warning (device sda2): dx_probe:822: inode #11752: lblock 0: comm wf-panel-pi: error -5 reading directory block
[   87.996669] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm gvfs-udisks2-vo: error -5 reading directory block
[   87.996739] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm gvfs-udisks2-vo: error -5 reading directory block
[   87.997338] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm gvfs-udisks2-vo: error -5 reading directory block
[   88.036652] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=DRIVER_OK
[   88.036752] scsi 0:0:0:0: rejecting I/O to dead device
[   88.036853] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm gvfs-udisks2-vo: error -5 reading directory block
[   88.036936] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm gvfs-udisks2-vo: error -5 reading directory block
[   88.036961] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm gvfs-udisks2-vo: error -5 reading directory block
[   88.036980] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm gvfs-udisks2-vo: error -5 reading directory block
[   89.272857] usb usb2-port1: over-current change #1
[   89.347052] usb 1-1-port1: over-current change #1
[   89.488839] usb usb2-port2: over-current change #1
[   89.567467] usb 1-1-port2: over-current change #1
[   89.704835] usb usb2-port3: over-current change #1
[   89.785661] usb 1-1-port3: over-current change #1
[   89.920848] usb usb2-port4: over-current change #1
[   90.005647] usb 1-1-port4: over-current change #1
[   91.216972] usb usb2-port1: over-current change #2
[   91.432929] usb usb2-port2: over-current change #2
[   91.648944] usb usb2-port3: over-current change #2
[   91.864930] usb usb2-port4: over-current change #2
[   92.353317] usb 2-2: new SuperSpeed USB device number 3 using xhci_hcd
[   92.381049] usb 2-2: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=20.01
[   92.381060] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   92.381064] usb 2-2: Product: RTL9210
[   92.381068] usb 2-2: Manufacturer: Realtek
[   92.381071] usb 2-2: SerialNumber: 012345678904
[   92.386529] usb 2-2: Enable of device-initiated U1 failed.
[   92.387180] usb 2-2: Enable of device-initiated U2 failed.
[   92.396633] usb 2-2: Enable of device-initiated U1 failed.
[   92.397227] usb 2-2: Enable of device-initiated U2 failed.
[   92.400265] scsi host1: uas
[   92.403800] scsi 1:0:0:0: Direct-Access     Realtek  RTL9210 NVME     1.00 PQ: 0 ANSI: 6
[   92.434380] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   92.439587] sd 1:0:0:0: [sdb] 250069680 512-byte logical blocks: (128 GB/119 GiB)
[   92.441039] sd 1:0:0:0: [sdb] Write Protect is off
[   92.441052] sd 1:0:0:0: [sdb] Mode Sense: 37 00 00 08
[   92.444215] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   92.445600] sd 1:0:0:0: [sdb] Preferred minimum I/O size 512 bytes
[   92.445610] sd 1:0:0:0: [sdb] Optimal transfer size 33553920 bytes
[   92.456256]  sdb: sdb1 sdb2
[   92.456687] sd 1:0:0:0: [sdb] Attached SCSI disk
[   93.009059] EXT4-fs warning: 152 callbacks suppressed
[   93.009080] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm gmain: error -5 reading directory block
[   93.946572] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm wf-panel-pi: error -5 reading directory block
[   93.946708] EXT4-fs warning (device sda2): dx_probe:822: inode #11752: lblock 0: comm wf-panel-pi: error -5 reading directory block
[   93.946748] EXT4-fs warning (device sda2): dx_probe:822: inode #11752: lblock 0: comm wf-panel-pi: error -5 reading directory block
[   93.996856] usb 1-1.4: new high-speed USB device number 3 using xhci_hcd
[   94.097995] usb 1-1.4: New USB device found, idVendor=13fd, idProduct=1040, bcdDevice= 1.06
[   94.098020] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   94.098032] usb 1-1.4: Product: UJDA755 DVD/CDRW
[   94.098042] usb 1-1.4: Manufacturer: Initio
[   94.098050] usb 1-1.4: SerialNumber: 0000000000000000W
[   94.102518] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[   94.104036] scsi host2: usb-storage 1-1.4:1.0
[   94.947221] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm wf-panel-pi: error -5 reading directory block
[   94.947358] EXT4-fs warning (device sda2): dx_probe:822: inode #11752: lblock 0: comm wf-panel-pi: error -5 reading directory block
[   94.947400] EXT4-fs warning (device sda2): dx_probe:822: inode #11752: lblock 0: comm wf-panel-pi: error -5 reading directory block
[   95.009150] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm gmain: error -5 reading directory block
[   95.197299] scsi 2:0:0:0: CD-ROM            MATSHITA UJDA755 DVD/CDRW 1.00 PQ: 0 ANSI: 0
[   95.198097] scsi 2:0:0:0: Attached scsi generic sg1 type 5
[   95.198889] EXT4-fs warning (device sda2): htree_dirblock_to_tree:1082: inode #4195975: lblock 0: comm systemd-udevd: error -5 reading directory block
[   95.199149] EXT4-fs warning (device sda2): htree_dirblock_to_tree:1082: inode #11102: lblock 0: comm systemd-udevd: error -5 reading directory block
[   96.695423] usb usb2-port1: over-current change #3
[   96.909249] usb usb2-port2: over-current change #3
[   97.126132] usb 2-2: USB disconnect, device number 3
[   97.156984] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[   97.384973] sd 1:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=DRIVER_OK
[   97.685449] usb 2-2: new SuperSpeed USB device number 4 using xhci_hcd
[   97.713108] usb 2-2: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=20.01
[   97.713134] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   97.713147] usb 2-2: Product: RTL9210
[   97.713157] usb 2-2: Manufacturer: Realtek
[   97.713166] usb 2-2: SerialNumber: 012345678904
[   97.716723] usb 2-2: Enable of device-initiated U1 failed.
[   97.717440] usb 2-2: Enable of device-initiated U2 failed.
[   98.256005] usb 2-2: Enable of device-initiated U1 failed.
[   98.256581] usb 2-2: Enable of device-initiated U2 failed.
[   98.262045] EXT4-fs warning: 73 callbacks suppressed
[   98.262062] EXT4-fs warning (device sda2): htree_dirblock_to_tree:1082: inode #4195975: lblock 0: comm systemd-udevd: error -5 reading directory block
[   98.262332] EXT4-fs warning (device sda2): htree_dirblock_to_tree:1082: inode #11102: lblock 0: comm systemd-udevd: error -5 reading directory block
[   98.262441] EXT4-fs warning (device sda2): dx_probe:822: inode #4194305: lblock 0: comm systemd-udevd: error -5 reading directory block
[   98.262888] scsi host1: uas

答案1

这是一个猜测,但我怀疑如果您更改插头排列以使用 USB 集线器(而不是将 DVD 直接插入 RPi 上的 USB 端口),您的问题就会消失。

FWIW,您没有给我们太多信息:没有型号、没有操作系统版本、没有电源信息、没有 DVD 当前要求信息等。

相关内容