我在 VirtualBox VM(以 macOS 11.6.2 作为主机)中运行 Ubuntu 20.04。
我有一个 SSD,位于 USB 外置驱动器外壳(SIIG ASMT1053 USB 3.0 转 SATA 2.5 英寸外壳)中,连接到主机。我已完成以下步骤,以确保 VirtualBox 将 USB 设备传递到 Ubuntu 客户机。
当我将 USB 设备连接到主机时,Ubuntu 客户机可以检测到它。但是,/dev 下没有创建任何条目(例如 /dev/sdb),所以我无法对其进行分区或挂载。
我将非常感激任何能够帮助我确定为什么没有创建设备,并弄清楚如何格式化、分区和安装该驱动器的帮助。
dmesg
连接设备后的日志:
[ 51.495253] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 51.518957] usb 2-1: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[ 51.518960] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 51.518961] usb 2-1: Product: ASMT1053
[ 51.518963] usb 2-1: Manufacturer: asmedia
[ 51.518964] usb 2-1: SerialNumber: 123456789012
[ 51.540988] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
[ 51.540992] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 51.541138] usb-storage 2-1:1.0: Quirks match for vid 174c pid 55aa: 400000
[ 51.541167] scsi host3: usb-storage 2-1:1.0
[ 51.545275] usbcore: registered new interface driver usb-storage
[ 51.577561] usbcore: registered new interface driver uas
[ 52.687929] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 52.856207] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 73.623120] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
lsblk
驱动器连接后的输出:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 43.1M 1 loop /snap/certbot/1670
loop1 7:1 0 61.9M 1 loop /snap/core20/1270
loop2 7:2 0 99.4M 1 loop /snap/core/11993
loop3 7:3 0 55.5M 1 loop /snap/core18/2284
loop4 7:4 0 55.4M 1 loop /snap/core18/2128
loop5 7:5 0 70.3M 1 loop /snap/lxd/21029
loop6 7:6 0 67.2M 1 loop /snap/lxd/21835
loop7 7:7 0 43.3M 1 loop /snap/snapd/14295
loop8 7:8 0 32.3M 1 loop /snap/snapd/12704
sda 8:0 0 20G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 19G 0 part
├─ubuntu--vg-ubuntu--lv 253:0 0 10G 0 lvm /
├─ubuntu--vg-lv--0 253:1 0 2G 0 lvm [SWAP]
└─ubuntu--vg-lv--1 253:2 0 7G 0 lvm /home
sr0 11:0 1 1024M 0 rom
sr1 11:1 1 1024M 0 rom
lsusb
连接驱动器的输出- 第一个条目是外部驱动器外壳:
Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
usb-devices
连接驱动器的输出- 第一个条目是外部驱动器外壳:
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=05.04
S: Manufacturer=Linux 5.4.0-94-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:0c.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=80ee ProdID=0021 Rev=01.00
S: Manufacturer=VirtualBox
S: Product=USB Tablet
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 6
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev=05.04
S: Manufacturer=Linux 5.4.0-94-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:0c.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=174c ProdID=55aa Rev=01.00
S: Manufacturer=asmedia
S: Product=ASMT1053
S: SerialNumber=123456789012
C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=144mA
I: If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
答案1
解决了。驱动器外壳没有获得足够的电力。外壳的 USB 电缆分成两根电缆;我不得不将它们插入两个都插入 MacBook 上的单独 USB 插槽,然后驱动器才能启动并显示(在我的情况下为 /dev/sdb)。
我假设两根电缆中较窄的那根用于额外的电源,因此我先插入它。
dmesg
连接第二根电缆后重试,更新了输出:
[ 5021.219010] usb 2-1: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[ 5021.240592] usb 2-1: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[ 5021.240595] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 5021.240597] usb 2-1: Product: ASMT1053
[ 5021.240599] usb 2-1: Manufacturer: asmedia
[ 5021.240600] usb 2-1: SerialNumber: 123456789012
[ 5021.247710] usb 2-1: UAS is blacklisted for this device, using usb-storage instead
[ 5021.247713] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 5021.248012] usb-storage 2-1:1.0: Quirks match for vid 174c pid 55aa: 400000
[ 5021.248034] scsi host3: usb-storage 2-1:1.0
[ 5022.278849] scsi 3:0:0:0: Direct-Access asmedia ASMT1053 0 PQ: 0 ANSI: 6
[ 5022.279259] sd 3:0:0:0: Attached scsi generic sg3 type 0
[ 5022.284137] sd 3:0:0:0: [sdb] Spinning up disk...
[ 5023.301539] ....ready
[ 5026.376180] sd 3:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 5026.380215] sd 3:0:0:0: [sdb] Write Protect is off
[ 5026.380219] sd 3:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 5026.383386] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 5026.411042] sdb: sdb1 sdb2
[ 5026.440616] sd 3:0:0:0: [sdb] Attached SCSI disk