Table of Contents

SD Card : Flash

transcend : 150X Secure Digital Card | TS2GSD150 | 2GB

mmc0: new SD card at address b368
mmcblk0: mmc0:b368 SMI-S 2031104KiB
mmcblk0: unknown partition table
sudo time dd if=/dev/zero of=/dev/mmcblk1
dd: writing to `/dev/mmcblk0': Input/output error
1245961+0 records in
1245960+0 records out
637931520 bytes (638 MB) copied, 305.017 s, 2.1 MB/s
lost page write due to I/O error on mmcblk0
__ratelimit: 4130 callbacks suppressed
fdisk /dev/mmcblk0p1
mkfs.vfat -F 16 -n mmc2gb /dev/mmcblk0p1
[ 3753.793901] mmc0: card lacks mandatory switch function, performance might suffer.
[ 3753.795294] mmc0: new SD card at address b368
[ 3753.797821] mmcblk1: mmc0:b368 SMI-S 2031104KiB
[ 3753.798758]  mmcblk1: unknown partition table
Logical sector size (3582 bytes) is not a multiple of the physical sector size.

micro sd

Adapter : SanDisk Micromate
lsusb
# Bus 005 Device 002: ID 0781:a7a8 SanDisk Corp.
sudo apt-get install sg3-utils
sg_scan -i
dmesg
usb 5-8: new high speed USB device using ehci_hcd and address 2
usb 5-8: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
Vendor: SanDisk   Model: SDDR-113          Rev: 1.00
Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sdb: 4019200 512-byte hdwr sectors (2058 MB)
sdb: Write Protect is on
sdb: Mode Sense: 03 00 80 00
sdb: assuming drive cache: write through
SCSI device sdb: 4019200 512-byte hdwr sectors (2058 MB)
sdb: Write Protect is on
sdb: Mode Sense: 03 00 80 00
sdb: assuming drive cache: write through
 sdb: sdb1
sd 4:0:0:0: Attached scsi removable disk sdb
usb-storage: device scan complete
Recover
DEST=${TMPDIR}/tmp/dump.img
ddrescue -r1 /dev/sdb1 $DEST $DEST.txt
mount -o loop  $DEST /mnt/loop
mount: you must specify the filesystem type
mount -o loop  $DEST /mnt/loop -t vfat
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
dmesg
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev loop0.

How to guess a FAT partition ?

testdisk $DEST

Did not find anything

Anway recovering files is possible :

photorec $DEST
Disk /dev/sdb1 - 2055 MB / 1960 MiB (RO)
   Partition                  Start        End    Size in sectors
   D empty                    0   0  1  1011  63 62    4015616 [Whole disk]

MISC

MORE

mmc.txt · Last modified: 2022/04/16 12:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki