I have a Motorola G2 (Android 6.0, kernel 3.4.42-gef77327) with a micro SD card mounted as adoptable storage. The card is faulty (self-unmounted a couple of times), and I wanted to copy the (irreplacable holiday) pictures to another device. As I now know, this is not supposed to work by simply moving the card.
The problem: After some mucking around, the card is no longer recognized by the G2. Did I use the SD card's "forget" option? I don't think so, but it looks as if I did.
http://nelenkov.blogspot.de/2015/06/decrypting-android-m-adopted-storage.html looks promising, but it is a year old, and some things apparently have changed since then: If I insert the drive into a Linux box, it's not automounted, and gparted does not recognize it. The only option available seems to be a reformat.
So irrespective of what the website says, is there a way to read the contents of the SD card? Perhaps a way to tell the G2 to remount it as its original adoptable storage device?
Any ideas?
# cat usb-storage/5
Host scsi5: usb-storage
Vendor: Generic
Product: USB2.0-CRW
Serial Number: 20090815198100000
Protocol: Transparent SCSI
Transport: Bulk
Quirks:
# cat sg/device_strs
[...]
Generic- SD/MMC 1.00
From /var/log/syslog when the card is inserted into the Linux box:
Mar 27 19:11:19 thebox kernel: [ 8170.541304] usb-storage 1-2:1.0: USB Mass Storage device detected
Mar 27 19:11:19 thebox kernel: [ 8170.549622] scsi6 : usb-storage 1-2:1.0
Mar 27 19:11:19 thebox mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-2"
Mar 27 19:11:19 thebox mtp-probe: bus: 1, device: 7 was not an MTP device
Mar 27 19:11:20 thebox kernel: [ 8171.548982] scsi 6:0:0:0: Direct-Access Generic- SD/MMC 1.00 PQ: 0 ANSI: 0 CCS
Mar 27 19:11:20 thebox kernel: [ 8171.550943] sd 6:0:0:0: Attached scsi generic sg2 type 0
Mar 27 19:11:21 thebox kernel: [ 8172.289222] sd 6:0:0:0: [sdb] 124735488 512-byte logical blocks: (63.8 GB/59.4 GiB)
Mar 27 19:11:21 thebox kernel: [ 8172.290210] sd 6:0:0:0: [sdb] Write Protect is off
Mar 27 19:11:21 thebox kernel: [ 8172.290217] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
Mar 27 19:11:21 thebox kernel: [ 8172.291203] sd 6:0:0:0: [sdb] No Caching mode page found
Mar 27 19:11:21 thebox kernel: [ 8172.291211] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Mar 27 19:11:21 thebox kernel: [ 8172.298206] sd 6:0:0:0: [sdb] No Caching mode page found
Mar 27 19:11:21 thebox kernel: [ 8172.298215] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Mar 27 19:11:21 thebox kernel: [ 8172.313899] sdb: sdb1 sdb2
Mar 27 19:11:21 thebox kernel: [ 8172.320204] sd 6:0:0:0: [sdb] No Caching mode page found
Mar 27 19:11:21 thebox kernel: [ 8172.320214] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Mar 27 19:11:21 thebox kernel: [ 8172.320220] sd 6:0:0:0: [sdb] Attached SCSI removable disk
The problem: After some mucking around, the card is no longer recognized by the G2. Did I use the SD card's "forget" option? I don't think so, but it looks as if I did.
http://nelenkov.blogspot.de/2015/06/decrypting-android-m-adopted-storage.html looks promising, but it is a year old, and some things apparently have changed since then: If I insert the drive into a Linux box, it's not automounted, and gparted does not recognize it. The only option available seems to be a reformat.
So irrespective of what the website says, is there a way to read the contents of the SD card? Perhaps a way to tell the G2 to remount it as its original adoptable storage device?
Any ideas?
# cat usb-storage/5
Host scsi5: usb-storage
Vendor: Generic
Product: USB2.0-CRW
Serial Number: 20090815198100000
Protocol: Transparent SCSI
Transport: Bulk
Quirks:
# cat sg/device_strs
[...]
Generic- SD/MMC 1.00
From /var/log/syslog when the card is inserted into the Linux box:
Mar 27 19:11:19 thebox kernel: [ 8170.541304] usb-storage 1-2:1.0: USB Mass Storage device detected
Mar 27 19:11:19 thebox kernel: [ 8170.549622] scsi6 : usb-storage 1-2:1.0
Mar 27 19:11:19 thebox mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-2"
Mar 27 19:11:19 thebox mtp-probe: bus: 1, device: 7 was not an MTP device
Mar 27 19:11:20 thebox kernel: [ 8171.548982] scsi 6:0:0:0: Direct-Access Generic- SD/MMC 1.00 PQ: 0 ANSI: 0 CCS
Mar 27 19:11:20 thebox kernel: [ 8171.550943] sd 6:0:0:0: Attached scsi generic sg2 type 0
Mar 27 19:11:21 thebox kernel: [ 8172.289222] sd 6:0:0:0: [sdb] 124735488 512-byte logical blocks: (63.8 GB/59.4 GiB)
Mar 27 19:11:21 thebox kernel: [ 8172.290210] sd 6:0:0:0: [sdb] Write Protect is off
Mar 27 19:11:21 thebox kernel: [ 8172.290217] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
Mar 27 19:11:21 thebox kernel: [ 8172.291203] sd 6:0:0:0: [sdb] No Caching mode page found
Mar 27 19:11:21 thebox kernel: [ 8172.291211] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Mar 27 19:11:21 thebox kernel: [ 8172.298206] sd 6:0:0:0: [sdb] No Caching mode page found
Mar 27 19:11:21 thebox kernel: [ 8172.298215] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Mar 27 19:11:21 thebox kernel: [ 8172.313899] sdb: sdb1 sdb2
Mar 27 19:11:21 thebox kernel: [ 8172.320204] sd 6:0:0:0: [sdb] No Caching mode page found
Mar 27 19:11:21 thebox kernel: [ 8172.320214] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Mar 27 19:11:21 thebox kernel: [ 8172.320220] sd 6:0:0:0: [sdb] Attached SCSI removable disk