我需要在存储卡 (CompactFlash) 上创建一个分区。我买了一个USB 存储卡读卡器,并插入了一个 512MB CF。控制台消息(见下文)表明该卡被识别为 /dev/sda,但它没有挂载,并且“fdisk -l”和 gparted 都没有显示该设备。我是否必须先采取一些特殊措施?我正在运行 Ubuntu 22.04。
以下是我取出 CF 存储卡并重新插入读卡器后看到的消息。最后一行重复了很多次:
[ 403.765912] usb 1-2.4: new high-speed USB device number 13 using xhci_hcd
[ 403.891635] usb 1-2.4: New USB device found, idVendor=3207, idProduct=0300, bcdDevice= 1.00
[ 403.891651] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 403.891659] usb 1-2.4: Product: 816820090226
[ 403.891664] usb 1-2.4: Manufacturer: 816820090226
[ 403.891669] usb 1-2.4: SerialNumber: 816820090226
[ 403.897043] usb-storage 1-2.4:1.0: USB Mass Storage device detected
[ 403.897687] scsi host0: usb-storage 1-2.4:1.0
[ 406.940691] scsi 0:0:0:0: Direct-Access FNK TECH USB CARD READER 1.00 PQ: 0 ANSI: 0 CCS
[ 406.941066] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 406.943678] sd 0:0:0:0: [sda] Media removed, stopped polling
[ 406.944206] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 510.687666] usb 1-2.4: reset high-speed USB device number 13 using xhci_hcd
[ 541.874180] usb 1-2.4: reset high-speed USB device number 13 using xhci_hcd
我在启动时也看到了以下几行:
[ 79.946718] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 79.946730] sd 0:0:0:0: [sda] Sense not available.
[ 79.946742] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[ 79.946748] sd 0:0:0:0: [sda] 0-byte physical blocks
[ 79.946759] sd 0:0:0:0: [sda] Write Protect is off
[ 79.946765] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
[ 79.946775] sd 0:0:0:0: [sda] Asking for cache data failed
[ 79.946822] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 79.947617] sd 0:0:0:0: [sda] Attached SCSI disk
更新:我插入了另一个坏驱动器,它似乎产生了磁盘错误。我拔下它并重新插入我的存储卡读卡器,不再看到错误或重置消息,但我仍然无法访问该驱动器。我只看到:
[ 4982.445660] usb 1-2.4: USB disconnect, device number 13
[ 4991.829552] usb 1-1: new high-speed USB device number 14 using xhci_hcd
[ 4991.978100] usb 1-1: New USB device found, idVendor=3207, idProduct=0300, bcdDevice= 1.00
[ 4991.978117] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4991.978124] usb 1-1: Product: 816820090226
[ 4991.978130] usb 1-1: Manufacturer: 816820090226
[ 4991.978135] usb 1-1: SerialNumber: 816820090226
[ 4991.981478] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 4991.982072] scsi host0: usb-storage 1-1:1.0
[ 4994.984977] scsi 0:0:0:0: Direct-Access FNK TECH USB CARD READER 1.00 PQ: 0 ANSI: 0 CCS
[ 4994.985840] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 4994.988048] sd 0:0:0:0: [sda] Media removed, stopped polling
[ 4994.989148] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 5250.562148] nvme1n1: p1 p2 p3 p4 p5 p6
答案1
正如@Terrance 所说,问题出在适配器坏了。我买了另一个一模一样的,用起来没问题。