[Q] How to mount internal sd card in usb storage mode (for data recovery)

Tutti-frutti

Senior Member
Nov 12, 2008
134
12
0
I made a mistake yesterday to wipe the internal sd-card in twrp recovery. There is some data on it which I want to recover (read: undelete). Data recovery itself won't be a problem, but I have troubles accessing the internal sd card from PC.

There is currently no rom installed on my tf (I don't want the internal sd being touched by anything until I recovered data).

I thought it was possible to set the tf101 in USB mass storage mode in the recovery, mounting the internal SD card, but that refuses to work.

What I've tried so far is enabling USB Mass storage mode in a variety of recoveries
- initially in TWRP recovery (v2.2.X.X not sure which version was installed, probably 2.2.2.0)
- cwm-6.0.1.4-notouch-hybrid.zip
- Rogue XM Touch Recovery v1.5.0-R1
- TWRP 2.2.2.1 (flashed by replacing the recoveryblob in a flashable zip from 2.2.0.0 version)

But it seems not possible, i.e. no drive is detected by Windows or Linux machine.

What is the correct way to access the internal sd card over USB?
 
Last edited:

Tutti-frutti

Senior Member
Nov 12, 2008
134
12
0
./adb connection will set you free. as long as you can get an adb connection this is not a problem. once youre connected just rtfm ./adb will pull up all the options.
Thanks for your reply.

I'm able to connect through adb. I can access the internal sd card through adb shell. However, I need to have access to it outside adb, so I can use a data recovery tool to access the internal sd.

I still cannot find a solution, not for ICS. (this solution doesn't work for ICS).

Is it possible to enable UMS from ADB or recovery at all?
 

haxin

Senior Member
Nov 25, 2011
258
49
0
las vegas
www.702wifi.com
Thanks for your reply.

I'm able to connect through adb. I can access the internal sd card through adb shell. However, I need to have access to it outside adb, so I can use a data recovery tool to access the internal sd.

I still cannot find a solution, not for ICS. (this solution doesn't work for ICS).

Is it possible to enable UMS from ADB or recovery at all?
when you access the sdcard in ./adb shell what do you see?
 

Tutti-frutti

Senior Member
Nov 12, 2008
134
12
0
Eventually I'm now dd-ing data from internal sd to a usb drive attached to dock USB. This way I can perform an ordinary data-recovery on the USB drive :cool:

What I did was:
- install a ROM with terminal emulator in it
- open terminal emulator (followed by the su command)
- dd with default blocksize (512) from interal to usb drive (after checking mounting points with mount command):
Code:
dd if=dev/block/mmcblk0p7 of=/dev/block/vold/8\:1
There is probably a more efficient way doing this (using ADB), but I'm finally able to recover the data, happy now :)
 
Last edited:

cell800

Member
May 31, 2005
7
1
0
S3 internal SD card

I have an Samsun S3 with JB update. Now the internal SD card is no longer visible as USB drive from the PC. It cannot be done based on other threads.

Can I use the following method to get around the UMS issue? Can I use a Terminal Emulator app? can I dump to external SD card and then run recovery SW on it?

My phone is rooted and after su on TE, I can see /mnt with both sdcard and extsdcard mount points..



Eventually I'm now dd-ing data from internal sd to a usb drive attached to dock USB. This way I can perform an ordinary data-recovery on the USB drive :cool:

What I did was:
- install a ROM with terminal emulator in it
- open terminal emulator (followed by the su command)
- dd with default blocksize (512) from interal to usb drive (after checking mounting points with mount command):
Code:
dd if=dev/block/mmcblk0p7 of=/dev/block/vold/8\:1
There is probably a more efficient way doing this (using ADB), but I'm finally able to recover the data, happy now :)
 

Tutti-frutti

Senior Member
Nov 12, 2008
134
12
0
I have an Samsun S3 with JB update. Now the internal SD card is no longer visible as USB drive from the PC. It cannot be done based on other threads.

Can I use the following method to get around the UMS issue? Can I use a Terminal Emulator app? can I dump to external SD card and then run recovery SW on it?

My phone is rooted and after su on TE, I can see /mnt with both sdcard and extsdcard mount points..
If you can see the mounting points, why not just try it?
In my case, it turned out that a lot of my data was already overwritten. I could recover some pictures and docs.
 

Alvera

Member
Dec 20, 2013
35
8
0
Hi. Beginner here, Please, how long this command will take to dumb about 29 GiB to a regular Micro SD card? I am waiting for minutes.
dd if=dev/block/mmcblk0p7 of=/dev/block/vold/8
Thanks.