How to find card reader block device?
I am trying to make an image from USB Card Reader using dd
. When I connect device, this is what the log tells me:
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
However, I can't find anything with sdb
in /dev
. How to refer to this device as block device to make an image?
UPD: some more debug info
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"
and even more
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
more
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
After few times connecting/disconnecting device I got the following error box
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.
Solution 1:
You can use command blockdev
sudo blockdev --report /dev/mmcblk0
But you can make .img
without block size with command
sudo dd if=/dev/mmcblk0 of=~/path/USB_image.img bs=512 count=1