@
allenforrest 我对比了断电重启挂不上U盘的dmesg日志和reboot后的dmesg日志,日志太长我不全贴了,区别如下:
一、断电重启不能挂载时候,关键日志行为:
[ 8.320000] usb 1-1: new full-speed USB device number 2 using ehci-platform
[ 8.480000] hub 1-0:1.0: unable to enumerate USB device on port 1
二、reboot后自动加载U盘,关键日志为:
[ 8.350000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 8.500000] scsi0 : usb-storage 1-1:1.0
[ 9.500000] scsi 0:0:0:0: Direct-Access Mass Storage Device 1.00 PQ: 0 ANSI: 0 CCS
[ 9.720000] sd 0:0:0:0: [sda] 7882752 512-byte logical blocks: (4.03 GB/3.75 GiB)
[ 9.730000] sd 0:0:0:0: [sda] Write Protect is off
[ 9.730000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 9.730000] sd 0:0:0:0: [sda] No Caching mode page present
[ 9.740000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 9.750000] sd 0:0:0:0: [sda] No Caching mode page present
[ 9.750000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 9.760000] sda: sda1
[ 9.760000] sd 0:0:0:0: [sda] No Caching mode page present
[ 9.770000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 9.770000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 31.420000] EXT4-fs (sda1): recovery complete
[ 31.430000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
可以看出reboot后,系统检测到了U盘,但是为什么显示为scsi0,是scsi设备,这个就不清楚了,请帮忙看下,谢谢,