USB 安装失败,无任何错误

USB 安装失败,无任何错误

我有以下设置:

$ uname -a
Linux movieserver 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

问题是这样的:我连接了一个大型外部 USB 驱动器。它经常卸载。发生这种情况时,挂载点通常仍会列在 中df -h。然后我必须umount -l /big6tb让它消失。如果我再次尝试挂载它,命令运行没有问题,但它实际上并没有挂载。

# mount /dev/sde1 /big6tb/
# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.4G     0  1.4G   0% /dev
tmpfs           276M   29M  247M  11% /run
/dev/sda1       456G  404G   30G  94% /
tmpfs           1.4G     0  1.4G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.4G     0  1.4G   0% /sys/fs/cgroup
tmpfs           276M     0  276M   0% /run/user/1000
root@movieserver:/# umount -l /big6tb/
umount: /big6tb/: not mounted
root@movieserver:/#

我尝试使用以下命令更新 USB 设备列表:

lsusb -v 2>&1 1>/dev/null

然后:

ls -l /dev/sd*

该驱动器列在那里,但仍然无法安装。

我发现解决这个问题的唯一方法是重新启动服务器,这很愚蠢。

非常感谢大家提出任何想法。提前致谢!

编辑:添加来自 Waltinator 建议的信息。

root@movieserver:/usr/local/bin# journalctl /dev/sde1
-- Logs begin at Mon 2018-09-03 04:52:01 EDT, end at Mon 2018-09-03 22:27:03 EDT. --
Sep 03 22:22:43 movieserver kernel: usb 1-1: new high-speed USB device number 9 using ehci-pci
Sep 03 22:22:43 movieserver kernel: usb-storage 1-1:1.0: USB Mass Storage device detected
Sep 03 22:25:30 movieserver kernel: usb 1-1: new high-speed USB device number 10 using ehci-pci
Sep 03 22:25:30 movieserver kernel: usb 1-1: New USB device found, idVendor=1058, idProduct=25ee
Sep 03 22:25:30 movieserver kernel: usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Sep 03 22:25:30 movieserver kernel: usb 1-1: Product: My Book 25EE
Sep 03 22:25:30 movieserver kernel: usb 1-1: Manufacturer: Western Digital
Sep 03 22:25:30 movieserver kernel: usb-storage 1-1:1.0: USB Mass Storage device detected
Sep 03 22:25:30 movieserver kernel: scsi host13: usb-storage 1-1:1.0
Sep 03 22:25:31 movieserver kernel: scsi 13:0:0:0: Direct-Access     WD       My Book 25EE     4004 PQ: 0 ANSI: 6
Sep 03 22:25:31 movieserver kernel: sd 13:0:0:0: Attached scsi generic sg2 type 0
Sep 03 22:25:31 movieserver kernel: sd 13:0:0:0: [sde] Spinning up disk...
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] Very big device. Trying to use READ CAPACITY(16).
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] 11721043968 512-byte logical blocks: (6.00 TB/5.46 TiB)
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] 4096-byte physical blocks
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] Write Protect is off
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] Mode Sense: 47 00 10 08
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] No Caching mode page found
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] Assuming drive cache: write through
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] Very big device. Trying to use READ CAPACITY(16).
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] Very big device. Trying to use READ CAPACITY(16).
Sep 03 22:25:34 movieserver kernel: sd 13:0:0:0: [sde] Attached SCSI disk

需要澄清的是,重新启动时,设备将显示为 sdb1 并正常挂载。设备消失后,它将在 /dev 中显示为 sde1 或类似名称,并且 mount 命令不起作用。如果我使用 -v 运行它,它会显示它已挂载,但实际上并未挂载。

相关内容