我正在尝试使用 USB 读卡器制作图像dd
。当我连接设备时,日志告诉我以下内容:
Aug 21 11:26:50 acid kernel: [ 1399.579168] usb 1-1: New USB device found, idVendor=0451, idProduct=9260
Aug 21 11:26:50 acid kernel: [ 1399.579171] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 21 11:26:50 acid kernel: [ 1399.579173] usb 1-1: Product: CU8871 CFast Card Reader
Aug 21 11:26:50 acid kernel: [ 1399.579174] usb 1-1: Manufacturer: XXX
Aug 21 11:26:50 acid kernel: [ 1399.579175] usb 1-1: SerialNumber: A69AB1E1201103290001088909A38A292
Aug 21 11:26:50 acid kernel: [ 1399.659152] scsi host9: uas
Aug 21 11:26:50 acid mtp-probe: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:0b.0/usb1/1-1"
Aug 21 11:26:50 acid mtp-probe: bus: 1, device: 8 was not an MTP device
Aug 21 11:26:50 acid kernel: [ 1399.661589] scsi 9:0:0:0: Direct-Access ATA CSS HSK72W002G 0123 PQ: 0 ANSI: 6
Aug 21 11:26:50 acid kernel: [ 1399.669680] sd 9:0:0:0: Attached scsi generic sg2 type 0
Aug 21 11:26:50 acid kernel: [ 1399.673337] sd 9:0:0:0: [sdb] 3863664 512-byte logical blocks: (1.97 GB/1.84 GiB)
Aug 21 11:26:50 acid kernel: [ 1399.682743] sd 9:0:0:0: [sdb] Write Protect is off
Aug 21 11:26:50 acid kernel: [ 1399.682747] sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
Aug 21 11:26:50 acid kernel: [ 1399.684793] sd 9:0:0:0: [sdb] No Caching mode page found
Aug 21 11:26:50 acid kernel: [ 1399.684796] sd 9:0:0:0: [sdb] Assuming drive cache: write through
Aug 21 11:27:21 acid kernel: [ 1429.864084] sd 9:0:0:0: uas_eh_abort_handler 0 uas-tag 1 inflight: CMD
Aug 21 11:27:21 acid kernel: [ 1429.864088] sd 9:0:0:0: CDB:
Aug 21 11:27:21 acid kernel: [ 1429.864089] Report supported operation codes: a3 0c 01 12 00 00 00 00 02 00 00 00
Aug 21 11:27:21 acid kernel: [ 1429.864107] scsi host9: uas_eh_bus_reset_handler start
Aug 21 11:27:21 acid kernel: [ 1430.132133] usb 1-1: reset high-speed USB device number 8 using ehci-pci
Aug 21 11:27:21 acid kernel: [ 1430.622732] scsi host9: uas_eh_bus_reset_handler success
sdb
但是,我在 中找不到任何东西/dev
。如何将此设备引用为块设备来制作图像?
UPD:更多调试信息
acid@acid:~$ sudo blkid
[sudo] password for acid:
/dev/sda1: UUID="7d39c5c7-28c5-41b5-b504-4d705380e7be" TYPE="ext4"
/dev/sda5: UUID="9ff9235f-3c91-4ace-851b-90a2ae868c6f" TYPE="swap"
甚至更多
acid@acid:~$ lsusb
Bus 001 Device 009: ID 0451:9260 Texas Instruments, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
更多的
acid@acid:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 8G 0 disk
├─sda1 8:1 0 6G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 2G 0 part [SWAP]
sr0 11:0 1 1024M 0 rom
连接/断开设备几次后,我收到以下错误框
Error mounting /dev/sdb1 at /media/acid/3008F94408F90A1C: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb1" "/media/acid/3008F94408F90A1C"' exited with non-zero exit status 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read of MFT, mft=6 count=1 br=-1: Input/output error
Failed to open inode FILE_Bitmap: Input/output error
Failed to mount '/dev/sdb1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
答案1
您可以使用命令blockdev
sudo blockdev --report /dev/mmcblk0
但是您可以.img
使用命令来创建没有块大小的
sudo dd if=/dev/mmcblk0 of=~/path/USB_image.img bs=512 count=1
答案2
内核目前不支持某些新读卡器。您可能需要使用更高版本甚至 rc 版本才能列出您的读卡器(可能类似于 /dev/mmcblk0)
您可以在 dmesg 中看到它未得到正确支持,并且调用了 uas_eh_bus_reset_handler。我不是内核消息专家,但它说 usb 已重置。
编辑:CFast 读卡器是支持 USB 3.0 的设备吗?VirtualBox(v 5.0)最近才更新为具有 USB 3.0 功能。检查您的版本