[Q] can you recover photos and vids after conducting a format on you asus tf700t? - Asus Transformer TF700

I want to find an way on how to turn my asus tf700t into a storage mass usb so that i can run a recovery data software on my laptop and hope to recover photos and videos that i accidentally lost after I did a factory reset and wiped all my info!!!
Can you guys let me know if there is another way?

If your device is rooted and you have a microSD or SD card that is at least as big as the device's internal storage, you can make a full image of the data partition and try running your data recovery software on that image. The partition to copy is /dev/block/mmcblk0p8.

I do have root access and the sd card to conduct such procedure! now I need to figure out how to get to that particular file partition and copy it into my sd card.
/dev/block/mmcblk0p8.

manga\\//Colombia said:
I do have root access and the sd card to conduct such procedure! now I need to figure out how to get to that particular file partition and copy it into my sd card.
/dev/block/mmcblk0p8.
Click to expand...
Click to collapse
Run this in adb shell:
Code:
su (if you are not already root)
dd if=/dev/block/mmcblk0p8 of=/Removable/MicroSD/data.ext4 bs=32k
For the full size SD card in the dock, adjust the output path appropriately. It will take a while, as it needs to copy almost 32 or 64 GB.
If the image is only 4 GB, that's because of a limitation in your dd commmand and you need to find a version with large file support. Of course you should not install any apps as this reduces your chance for data recovery.

Thank you for your time.! I will let you know what happens. if it works, it can help those who are in the same shoes. as of today, I havent really found an answer. Although I am not an expert on using adb shell. I see I need the SDK android install in my laptop to run a cmd and then the adb shell.
once I run the code you mentioned above. how do i manage to copy/ mirror that file into my sd card? any codes I need to know? sorry
_that said:
Run this in adb shell:
Code:
su (if you are not already root)
dd if=/dev/block/mmcblk0p8 of=/Removable/MicroSD/data.ext4 bs=32k
For the full size SD card in the dock, adjust the output path appropriately. It will take a while, as it needs to copy almost 32 or 64 GB.
If the image is only 4 GB, that's because of a limitation in your dd commmand and you need to find a version with large file support. Of course you should not install any apps as this reduces your chance for data recovery.
Click to expand...
Click to collapse

manga\\//Colombia said:
once I run the code you mentioned above. how do i manage to copy/ mirror that file into my sd card? any codes I need to know? sorry
Click to expand...
Click to collapse
The "dd" command with the given parameters copies an image of your /data partition into a file on the sd card.

help
View attachment 2478723
I am kind of lost--figuring out how to do that! sorry
I have connected my asus tablet to my laptop. I ran cmd and input the data! nothing happens..

manga\\//Colombia said:
View attachment 2478723
I am kind of lost--figuring out how to do that! sorry
I have connected my asus tablet to my laptop. I ran cmd and input the data! nothing happens..
Click to expand...
Click to collapse
Your screenshot does not show what you typed. When you run "adb shell", you should get a prompt from your TF700 where you can run the su and dd commands (type Ctrl+D or "exit" and Enter to exit).

manga\\//Colombia said:
View attachment 2478723
I am kind of lost--figuring out how to do that! sorry
I have connected my asus tablet to my laptop. I ran cmd and input the data! nothing happens..
Click to expand...
Click to collapse
You may want to check out this guide on adb and adb shell:
http://forum.xda-developers.com/showthread.php?t=2141817

_that said:
Your screenshot does not show what you typed. When you run "adb shell", you should get a prompt from your TF700 where you can run the su and dd commands (type Ctrl+D or "exit" and Enter to exit).
Click to expand...
Click to collapse
I followed the instructions..bernblb provided below... here it is a picture of what i got.
Am I supposed to run this adb shell command with a terminal emulator...install one and run the code?

manga\\//Colombia said:
I followed the instructions..bernblb provided below... here it is a picture of what i got.
Am I supposed to run this adb shell command with a terminal emulator...install one and run the code?
Click to expand...
Click to collapse
That does not look as if you have root on your tablet. Here's what it looks like when I start an adb shell on mine:
Code:
C:\android-sdk\sdk\platform-tools>adb devices
List of devices attached
C9OKAS062039 device
C:\android-sdk\sdk\platform-tools>adb shell
[email protected]:/ #
Here is where you would run the dd command.
What do you get if you type:
adb shell - then hit <enter>
su <enter>

manga\\//Colombia said:
I followed the instructions..bernblb provided below... here it is a picture of what i got.
Click to expand...
Click to collapse
You forgot to run "su" before "dd".

I do have root access!!! check out my picture....
berndblb said:
That does not look as if you have root on your tablet. Here's what it looks like when I start an adb shell on mine:
Code:
C:\android-sdk\sdk\platform-tools>adb devices
List of devices attached
C9OKAS062039 device
C:\android-sdk\sdk\platform-tools>adb shell
[email protected]:/ #
Here is where you would run the dd command.
What do you get if you type:
adb shell - then hit <enter>
su <enter>
Click to expand...
Click to collapse

okay.. after i typed su i got [email protected]:/ #... then i copy paste then dd command and i got this!!! i have a 32 gb micro sd card inserted in the asus tablet keyboard dock...

manga\\//Colombia said:
okay.. after i typed su i got [email protected]:/ #... then i copy paste then dd command and i got this!!! i have a 32 gb micro sd card inserted in the asus tablet keyboard dock...
Click to expand...
Click to collapse
It's hard to help you if you don't read carefully what I wrote:
_that said:
For the full size SD card in the dock, adjust the output path appropriately.
Click to expand...
Click to collapse
I assume you have the microSD card in a microSD to SD adapter, so you have to treat it as a full size SD card - change MicroSD to SD in the dd command line.

_that said:
Run this in adb shell:
Code:
su (if you are not already root)
dd if=/dev/block/mmcblk0p8 of=/Removable/MicroSD/data.ext4 bs=32k
For the full size SD card in the dock, adjust the output path appropriately. It will take a while, as it needs to copy almost 32 or 64 GB.
If the image is only 4 GB, that's because of a limitation in your dd commmand and you need to find a version with large file support. Of course you should not install any apps as this reduces your chance for data recovery.
Click to expand...
Click to collapse
Hello _That
I did run the command with the proper SD path! but I got 4 gb image!!
in your response--regarding to find a version with a large file support? you mean maybe a 64 gb sd card?
I am gonna try to see if I can run a data recovery on that SD card and see what I can recover from there!! what data recovery for ext4 files software do you recommend??

manga\\//Colombia said:
I did run the command with the proper SD path! but I got 4 gb image!!
in your response--regarding to find a version with a large file support? you mean maybe a 64 gb sd card?
Click to expand...
Click to collapse
No - as I wrote this is a limitation of the dd implementation. I think Busybox comes with a better dd, but you'd need to push it via adb to a temporary filesystem to avoid overwriting anything in /data. Try playing with the truncated image you have now - if you can recover any files from it, it's worth trying to make a complete image.
manga\\//Colombia said:
I am gonna try to see if I can run a data recovery on that SD card and see what I can recover from there!! what data recovery for ext4 files software do you recommend??
Click to expand...
Click to collapse
I have no experience with any data recovery tools. Try googling "recover formatted ext4" or so. Note that the software must be able to work with an image file, not only a raw partition.

Free and open source recovery software that I can recomend. http://www.cgsecurity.org/

after running a recovery data soft on that external sd card where i copy the image of that 4 gb (partition) i wasnt able to recover the data i was looking for!!!! any ideas how to do step by step pushing that partition to a temp file system via adb

manga\\//Colombia said:
after running a recovery data soft on that external sd card where i copy the image of that 4 gb (partition) i wasnt able to recover the data i was looking for!!!!
Click to expand...
Click to collapse
You have to run the recovery software on the image file, not on the card. If you can recover *any* files from the image, it makes sense to try the next steps with a complete image.

Related

Can't access SD card, halp!

Hi everyone, looking for a little guidance.
Phone: Android G1 (Rogers Canada Dream) running Cyanogen 4.2.15.1, been running fine since 4.2.6.1
Removed SD card while it was on and it rebooted... when it restarted it showed no applications and said the SD card was inaccessible and required a format. After rebooting a few times with no success I bit the bullet and formatted it... all apps are gone except for the ones that are on that image for Cyanogen. I have no market app to download new apps and when I plug it into my PC and mount it I don't see it show up as a drive like it did so I have no way to get the apps back on.
Has anyone had this happen before? Phone still works but I need to get it back to a state where I can get access to the SD and install the market... Any suggestions appreciated!!
There is a thread on the HERO section of Modaco site called "no adb, no sd". I think the 1st post on the last page MIGHT help. There are adb commands you can run to see if the phone has randomly stopped accessing the SD. Worth a shot.
PM me if you have trouble finding the thread n I'll have a look when I'm at my laptop.
Sent from my HTC Hero using XDA App
I misunderstood I think.
So it is now showing an sd present? Have you tried formatting in a pc?
Tried reboot without the sd in, then insert once fully booted again?
Sent from my HTC Hero using XDA App
I remove the SD Card, formatted it in my PC put it back in the phone and I can store pics and vids on it and access them but cant see or access it from the PC when in the phone. I also have no file browser so I cant install any apps or even access the market icon is gone).
D RoiD said:
Hi there! I had posted on the forum with the G1 issue where my SD card seemed to have died.
http://forum.xda-developers.com/showthread.php?t=738105
I have since removed the SD card and reformatted it, I can store pics and vids and replay them so the card is fine. I tried letting it boot up then adding the SD card when booted, that caused it to reboot, same issue...
Not having access to the card, I cant install any apps or browse the SD to install from there... really sucks
I'd be willing to blow it away and restart too and install CyanogenMod-5.0.8 but I need some guidance.
Click to expand...
Click to collapse
I got your message pal....
Ok,.... So pictures and videos taken with your phone camera DO save to your SD?.... and you CAN access them on your phone OR if you put your SD into your PC/Lappy?... But not when trying to "mount SD"?
Or have I got that completely wrong?.... Did you put pics&vids onto it through your PC, and thats the only access you get to it?
ddotpatel said:
I got your message pal....
Ok,.... So pictures and videos taken with your phone camera DO save to your SD?.... and you CAN access them on your phone OR if you put your SD into your PC/Lappy?... But not when trying to "mount SD"?
Or have I got that completely wrong?.... Did you put pics&vids onto it through your PC, and thats the only access you get to it?
Click to expand...
Click to collapse
Pics taken DO save to me SD. I Can access them from a PC is I remove the SD and put it in the PC. Not when I plug the phone in via USB then tell it to mount.
I just did a low level format, same issue.
UPDATE: Just tried the Android System Recovery and Toggle USB-MS and it shows on my laptop now! Going to try the recovery backup now.
aha,... so its just a mounting issue, not that the hardware has turned itself off.
Once when using an older ROM (maybe Villain 10?) we had this same issue, not able to mount SD,... going into Settings --> Connect to PC --> and turning off Notify/ask me solved the problem.
I just partitionned it using:
parted /dev/block/mmcblk0
print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 7500
mkpartfs primary ext2 7500 7948
quit
upgrade_fs
reboot recovery
Then put CyanogenMod-5 For Dream/Magic on the SD and renamed it update.zip
I'm in Android System recovery now and just did a nandroid backup.
I should be able to WIPE then FLASH UPDATE IMAGE right?
D RoiD said:
I just partitionned it using:
parted /dev/block/mmcblk0
print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 7500
mkpartfs primary ext2 7500 7948
quit
upgrade_fs
reboot recovery
Then put CyanogenMod-5 For Dream/Magic on the SD and renamed it update.zip
I'm in Android System recovery now and just did a nandroid backup.
I should be able to WIPE then FLASH UPDATE IMAGE right?
Click to expand...
Click to collapse
Yes, if you have the ROM image on the SD Card (FAT32 partition), you can go flash the image.
akapoor said:
Yes, if you have the ROM image on the SD Card (FAT32 partition), you can go flash the image.
Click to expand...
Click to collapse
Stupid question but when I wipe will it delete my contacts as well?
I assume yes but...
D RoiD said:
Stupid question but when I wipe will it delete my contacts as well?
I assume yes but...
Click to expand...
Click to collapse
If your contacts are saved in the phone's memory, then yes. Any settings, apps, configurations that are stored on the phone will all be gone.
A wipe pretty much gives you the factory settings. (As if you just bought the phone) So you'll have to re-signin into your Google Account and let the Contacts Sync, etc..
EDIT: Depending on what you are flashing (flashing and wiping are two different things), you may not even need to wipe.
Hmmm I tried flash update image and got:
E: Cant open /sdcard/update.zip (No such file or directory)
When I mount it in system recovery I see the LOST.DIR and update.zip
D RoiD said:
Hmmm I tried flash update image and got:
E: Cant open /sdcard/update.zip (No such file or directory)
When I mount it in system recovery I see the LOST.DIR and update.zip
Click to expand...
Click to collapse
Try this:
-Confirm the Image-
1) Make sure you have the full image you are going to flash. (Compare MD5 Hashes and/or just redownload the image)
2) Make sure the image you are flashing is the in the ROOT directory of your SDCard. In other words, it shouldn't be in any folder.
-Flash the Image-
1) When in Recovery, choose to flash an image.
2) Depending on what recovery you have, you may have to select/find the Image you want to flash.
3) Flash the image
-Wipe (Depends)-
1) If you are coming from a different ROM base (ie anything -> cyan), you'll want to wipe.
2) After the phone successfully flashes the image, wipe the phone.
Reboot.
Let me know how it goes.
I pulled the new image from: Latest version: 5.0.8-DS - 06/19/2010
Download: http://cyanogen-upda...8-DS-signed.zip
but it says no such file or DIR... weird...
The only partition I can see on my PC to put it on is the main partition...
I just downloaded the file and renamed it update.zip
D RoiD said:
I pulled the new image from: Latest version: 5.0.8-DS - 06/19/2010
Download: http://cyanogen-upda...8-DS-signed.zip
but it says no such file or DIR... weird...
The only partition I can see on my PC to put it on is the main partition...
I just downloaded the file and renamed it update.zip
Click to expand...
Click to collapse
I just realized the main reason that you posted this topic. From what I am assuming, either:
a) Your SD Card reader is dead
b) The software isn't recognizing the SD Card reader.
Best bet at this point is to setup ADB (ADB For Dummies) and flash the image from your computer. It can get a slight bit complicated, but just slowly go through each step for installing ADB.
Once ADB is set up, you can flash the image from the computer.
akapoor said:
I just realized the main reason that you posted this topic. From what I am assuming, either:
a) Your SD Card reader is dead
b) The software isn't recognizing the SD Card reader.
Best bet at this point is to setup ADB (ADB For Dummies) and flash the image from your computer. It can get a slight bit complicated, but just slowly go through each step for installing ADB.
Once ADB is set up, you can flash the image from the computer.
Click to expand...
Click to collapse
The SD card reader in my phone? It has to work if I can read an write to it ( tested photos and videos) and in recovery I was able to make a backup.
If its the software I need to flash it then right? ADB does make me nervous as I only used it once... I just tried using the terminal emulator on the phone to flash a recovery image I had made while back:
cd /sdcard
flash_image recovery /sdcard/recovery-backup.img
and got the message "error writing recovery: Permission denied"
D RoiD said:
If its the software I need to flash it then right? ADB does make me nervous as I only used it once... I just tried using the terminal emulator on the phone to flash a recovery image I had made while back:
cd /sdcard
flash_image recovery /sdcard/recovery-backup.img
and got the message "error writing recovery: Permission denied"
Click to expand...
Click to collapse
If you can view the pictures that you saved on the SD card from the phone, then both the software and hardware are functioning correctly.
Regarding the permission denied:
1) What happens if you "su - " in terminal?
2) First try one(1) ^ and then try to reinstate the permissions. (In recovery, go to console and type : fix_permissions)
Not sure otherwise.
akapoor said:
If you can view the pictures that you saved on the SD card from the phone, then both the software and hardware are functioning correctly.
Regarding the permission denied:
1) What happens if you "su - " in terminal?
2) First try one(1) ^ and then try to reinstate the permissions. (In recovery, go to console and type : fix_permissions)
Not sure otherwise.
Click to expand...
Click to collapse
Ok I did a wipe and now I see the SD when mounted on the PC with the phone on.
I have my market icon back so I can reinstall my crap.
I'll leave it as is for a bit but appreciate everyones input!!!

SD card adb parted not found

guys
im trying to partition my sd card
first i started adb shell, all good so far
until this line parted /dev/block/mmcblk0
i get bash: parted not found
why?? whats going on?
any1 help?
You need a execute file named "parted" . Find it and copy to your system/bin folder.
For a easily way is install a software called "Rom Manager"
It contains the "parted". and you can just part your sdcard via GUI.
Do not use adb shell command If you are a linux/android newbie
K9998 said:
You need a execute file named "parted" . Find it and copy to your system/bin folder.
For a easily way is install a software called "Rom Manager"
It contains the "parted". and you can just part your sdcard via GUI.
Do not use adb shell command If you are a linux/android newbie
Click to expand...
Click to collapse
can u please be clear... coz im a newbie to adb shell i dont know how it works..even i get the same error when i try to partition my sd card... i get parted not found when hit this command (parted /dev/block/mmcblk0)... plzz help
im.saradi said:
can u please be clear... coz im a newbie to adb shell i dont know how it works..even i get the same error when i try to partition my sd card... i get parted not found when hit this command (parted /dev/block/mmcblk0)... plzz help
Click to expand...
Click to collapse
just in case anybody still reading this...
the best thing to do is to flash new recovery, remember ur bootloader needs to be unlocked or S-off.
once u flashed new recovery u simply go to ur recovery > mounts and storage > format storage, it should ask how big ur ext partition suppose to be

[Q] Sony Xperia L - increase internal storage

Hi, I have Sony Xperia L (C2105) with Android 4.2.2 and it is rooted. My phone should have 8 GB of internal memory. Only 5.57 GB is usable but it would not matter. 4 GB of 5.57 GB is separated and marked as "sdcard0". So I can't install applications there but I can only move data of applications there. Remaining 1.57 GB is used as internal storage and all aplications are installed to this small storage. My memory card is marked as "sdcard1". Is there any way to increase internal storage or merge internal storage and sdcard0 to one big internal storage?
Donald750 said:
Hi, I have Sony Xperia L (C2105) with Android 4.2.2 and it is rooted. My phone should have 8 GB of internal memory. Only 5.57 GB is usable but it would not matter. 4 GB of 5.57 GB is separated and marked as "sdcard0". So I can't install applications there but I can only move data of applications there. Remaining 1.57 GB is used as internal storage and all aplications are installed to this small storage. My memory card is marked as "sdcard1". Is there any way to increase internal storage or merge internal storage and sdcard0 to one big internal storage?
Click to expand...
Click to collapse
If someone could make this Guide for Xperia L!!!
http://forum.xda-developers.com/showthread.php?t=2712253
Till then you could use FolderMount if you have root access and mount obb and app data folders to external storage!
I think i got em
david pro said:
If someone could make this Guide for Xperia L!!!
http://forum.xda-developers.com/showthread.php?t=2712253
Till then you could use FolderMount if you have root access and mount obb and app data folders to external storage!
Click to expand...
Click to collapse
check this out, guys
http://forum.xda-developers.com/xperia-s/s-development/tutorial-increase-data-partition-t2821058
david pro said:
If someone could make this Guide for Xperia L!!!
http://forum.xda-developers.com/showthread.php?t=2712253
Till then you could use FolderMount if you have root access and mount obb and app data folders to external storage!
Click to expand...
Click to collapse
Please look into this post I made a few weeks ago...the thread's name it's posted in doesn't help in finfing it I must admit.
So here it is for our Xperia L:
Open a command window: CMD, then get into shell:
adb shell
Once in shell, type:
umount /storage
parted /dev/block/mmcblk0
print
This prints out the partition information of your phone's memory chip
You will see the partition numbers in the first column, partition names in the last one,
in between you have the start/end memory index and the partition size
------start---end---size
...
31---1795---3506---1711---userdata
32---3506---7818---4312---sdcard​In the above output, consider the values indicated in italic as not to be changed !
Now calculate (open a spreadsheed if you like) the new value for the end of the userdata partition,
and use the same value for the start of the sdcard partition
On your sheet it should look something like this if you added 2048 to the userdata size
------start---end---size
31---1795---5554---3759---userdata
32---5554---7818---2264---sdcard​
Remove userdata and sdcard partitions:
rm 31
rm 32
Create the new userdata and sdcard partitions:
mkpartfs logical ext2 1795 5554
name 31 userdata
mkpartfs logical fat32 5554 7818
name 32 sdcard
Exit parted to go to the adb shell again:
quit
userdata partition (31) needs to have ext4 file system
The following will do the ext2->ext4 conversion:
cd /storage/sdcard1/fs-utils
tune2fs -j /dev/block/mmcblk0p31
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p31
e2fsck -fpDC0 /dev/block/mmcblk0p31
Now you can go to recovery and format the sdcard partition (default)
Then you can restore the backup you made before all this or do a clean install
I'm waiting for this phone which bought few days ago. Do we need to have firmware file for doing that? Could you please explain for dumbs the "
Now you can go to recovery and format the sdcard partition (default)
Then you can restore the backup you made before all this or do a clean install" thing??
My knowledge on this is reduced to flashtool and some root stuff. Thanks in advance
SoulFury said:
I'm waiting for this phone which bought few days ago. Do we need to have firmware file for doing that? Could you please explain for dumbs the "
Now you can go to recovery and format the sdcard partition (default)
Then you can restore the backup you made before all this or do a clean install" thing??
My knowledge on this is reduced to flashtool and some root stuff. Thanks in advance
Click to expand...
Click to collapse
That means: If you have made a backup, use the backup. If not, flash some software (and wipe cache/data == clean install)
So I connect phone to pc, do the thing using ADB, then flash it with stock firmware(for example) wiping cache,huh? Seems easy. Many thanks
I'm trying it but adb won't let me do umount /storage, it sais "invalid argument" :S
SoulFury said:
So I connect phone to pc, do the thing using ADB, then flash it with stock firmware(for example) wiping cache,huh? Seems easy. Many thanks
Click to expand...
Click to collapse
Hey man I just realized that after repartitioning you should better not flash stock firmware as I heard many cases in which the phone was bricked afterwards (with CM there is no problem)
Sent from my C2105 using XDA Free mobile app
I've read about it too, but it seems to happen randomly :S. But my first problem is the "umount" thing
Up this guys, I really would like to do this thing
Kahana82 said:
Open a command window: CMD, then get into shell:
adb shell
Once in shell, type:
umount /storage
parted /dev/block/mmcblk0
print
Click to expand...
Click to collapse
Did you do that first step?
Sent from my C2105 using XDA Free mobile app
GreyLDroid said:
Did you do that first step?
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
Did you try that with adb connected tot the phone within CWM recovery mode (not from your Android OS) ?
I've tried different ways
First of all, I have the phone with "usb debug" enabled, with my sdcard out and normally connected. If I do "adb devices" it launches daemon and show me my device connected
But when I enter the shell, if I do the same thing, devices is not showed, but I can access and do "ls" and navigate through the directories.
I can't either adb pull /dev/block/mmcblk0 mmcblk0.img, it sais that "remote object is not a file or directory", but it is.
I'm running Windows 7 SP1 with last version of Android Studio(SDK) and manually added my phone to android_winusb.inf
any idea? Thanks in advance
SoulFury said:
I've tried different ways
First of all, I have the phone with "usb debug" enabled, with my sdcard out and normally connected. If I do "adb devices" it launches daemon and show me my device connected
But when I enter the shell, if I do the same thing, devices is not showed, but I can access and do "ls" and navigate through the directories.
I can't either adb pull /dev/block/mmcblk0 mmcblk0.img, it sais that "remote object is not a file or directory", but it is.
I'm running Windows 7 SP1 with last version of Android Studio(SDK) and manually added my phone to android_winusb.inf
any idea? Thanks in advance
Click to expand...
Click to collapse
Try to navigate to the directory and then just use adb pull mmcblk0.img (without the path)
Sent from my C2105 using XDA Free mobile app
Well, something is going wrong. If I do adb devices at first, it shows my phon, but when I do adb shell, althoug I apparently have acces to my phone directories, adb devices is empty :S
SoulFury said:
Well, something is going wrong. If I do adb devices at first, it shows my phon, but when I do adb shell, althoug I apparently have acces to my phone directories, adb devices is empty :S
Click to expand...
Click to collapse
ah come on guys dont touch this if you are kinda that rookie... want to hardbrick your device?
i will explain you:
you do : adb devices
you do that ON PC
pc looks for devices and show you
then you do : adb shell
you will switch from PC to PHONE comand prompt
then you do again: adb devices
you do that ON PHONE ...
and on your phone there isnt another phone conected
Sent from my C2105 using XDA Free mobile app
Ooooook thanks. First of all, only starting to be a rookie you'll become master XDDD. Until now, I've only flashed,rooted and modded some firmware on all of my xperias since x10 mini pro, and I hope I'll learn more and more.
Next, still having the thing about the umounting of storage.I've tried with sdcard out. Even pull command(out of the shell xD) doen'ts work with dev/block/mmcblk0
SoulFury said:
Ooooook thanks. First of all, only starting to be a rookie you'll become master XDDD. Until now, I've only flashed,rooted and modded some firmware on all of my xperias since x10 mini pro, and I hope I'll learn more and more.
Next, still having the thing about the umounting of storage.I've tried with sdcard out. Even pull command(out of the shell xD) doen'ts work with dev/block/mmcblk0
Click to expand...
Click to collapse
adb devices
adb pull /dev/block/mmcblk0 c:/users/bla/mmcblk0.img
you have to do that ON PC command prompt.... dont switch to shell
Sent from my C2105 using XDA Free mobile app
That's exatcly what I do and I get always "remote object '/dev/block/mmcblk0' not a file or directory"(and I've verified that it exist)

How to dump /sdcard/ partition as .img to recover lost precious photos

I have a Moto G falcon and unlocked bootloader. I then installed twrp and then CM 11. I had taken pics of my childs 16th bday on the stock rom and screwed up big time.
I would like to dump the 5.5 gig partition to sd card to try and run recovery software on it to recover photos.
so far I have been given the following advice, I dont know how to implement it however.
If you don't use the phone's internal SD storage - there is still a chance you can recover the photos.
You can dump the /sdcard/ partition as a .img and use data recovery software on it.
I would make a backup of this partition asap, before attempting anything else.
To make this backup you will need a usb OTG cable and some external storage (sdcard or pen.) The .img will be around 5.5GB.
You will need root and the command is: dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/<external_storage>/userdata.img
Do not accidentally dump the .img onto /sdcard/ (internal storage)
After making a backup - you can explore your options.
There are undelete apps for android such as DiskDigger undelete.
Click to expand...
Click to collapse
I have my Moto G connected to PC with otg cable and a 16 gig sd card in PC and usb debugging is on. I am in fastboot
Appreciate your help. thanks
Holysmoke99 said:
I have a Moto G falcon and unlocked bootloader. I then installed twrp and then CM 11. I had taken pics of my childs 16th bday on the stock rom and screwed up big time.
I would like to dump the 5.5 gig partition to sd card to try and run recovery software on it to recover photos.
so far I have been given the following advice, I dont know how to implement it however.
I have my Moto G connected to PC with otg cable and a 16 gig sd card in PC and usb debugging is on. I am in fastboot
Appreciate your help. thanks
Click to expand...
Click to collapse
What does "I don't know how to implement it" mean, exactly?
Do you need help following the quoted instructions?
thenookieforlife3 said:
What does "I don't know how to implement it" mean, exactly?
Do you need help following the quoted instructions?
Click to expand...
Click to collapse
sadly, yes
Holysmoke99 said:
sadly, yes
Click to expand...
Click to collapse
Ah.
I'm busy with school at the moment, but I will give you in-depth instructions in a few hours.
Sound good?
thenookieforlife3 said:
Ah.
I'm busy with school at the moment, but I will give you in-depth instructions in a few hours.
Sound good?
Click to expand...
Click to collapse
absolutely!
Okay, so let's get started!
from previous post said:
If you don't use the phone's internal SD storage - there is still a
chance you can recover the photos.
You can dump the /sdcard/ partition as a .img and use data
recovery software on it.
I would make a backup of this partition asap, before attempting
anything else.
To make this backup you will need a usb OTG cable and some
external storage (sdcard). The .img will be around 5.5GB.
You will need root and the command is:
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of= <external_storage>/userdata.img
(the above is all one line)
Do not accidentally dump the .img onto /sdcard/ (internal storage)
After making a backup - you can explore your options.
Click to expand...
Click to collapse
To follow the above instructions, follow my steps:
1. Root your phone!
2. Download and install the attached terminal app.
3. Plug in your empty sdcard.
4. Open the terminal app and execute the following command:
Code:
su
5. Now, execute the command found in the quote above.
• This should create a file called userdata.img on your sdcard.
6. Eject your sdcard from your phone, plug it into your PC, and extract the userdata.img file with an archive manager (7zip, WinRAR).
7. Retrieve your photos!
Hope this helps!
thanks so much for your reply...
I am using an OTG cord. Do the same instructions apply?
Holysmoke99 said:
thanks so much for your reply...
I am using an OTG cord. Do the same instructions apply?
Click to expand...
Click to collapse
What are you using an OTG cable for?
Why do you need one?
thenookieforlife3 said:
What are you using an OTG cable for?
Why do you need one?
Click to expand...
Click to collapse
my phone doesnt have an sd slot
Holysmoke99 said:
my phone doesnt have an sd slot
Click to expand...
Click to collapse
Okay, and yes, it's the same procedure.
thenookieforlife3 said:
Okay, and yes, it's the same procedure.
Click to expand...
Click to collapse
I will report back tomorrow how this goes. thanks!
thenookieforlife3 said:
Okay, so let's get started!
To follow the above instructions, follow my steps:
1. Root your phone!
2. Download and install the attached terminal app.
3. Plug in your empty sdcard.
4. Open the terminal app and execute the following command:
Code:
su
5. Now, execute the command found in the quote above.
• This should create a file called userdata.img on your sdcard.
6. Eject your sdcard from your phone, plug it into your PC, and extract the userdata.img file with an archive manager (7zip, WinRAR).
7. Retrieve your photos!
Hope this helps!
Click to expand...
Click to collapse
do you know what to put for the red part?
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/<put_correct_location_for_external_storage_here>/userdata.img
Holysmoke99 said:
do you know what to put for the red part?
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/<put_correct_location_for_external_storage_here>/userdata.img
Click to expand...
Click to collapse
300TH POST! :laugh:
Yes, you put the exact directory on the USB stick you've got plugged into your OTG cable where you want to dump the .img.
thenookieforlife3 said:
300TH POST! :laugh:
Yes, you put the exact directory on the USB stick you've got plugged into your OTG cable where you want to dump the .img.
Click to expand...
Click to collapse
thanks, but how do I determine what the directory is named?
Holysmoke99 said:
thanks, but how do I determine what the directory is named?
Click to expand...
Click to collapse
You need to first be sure your USB stick is mounted on your device.
Then, you use a file explorer app to find out where the stick actually is. I don't know for sure, but try looking for a /mnt in the root of your device.
After you find where it's mounted, it's all easy from there. Just go into the stick's filesystem, and create a folder like "images".
Lastly, the directory name you put into the dd command will look something like this:
Code:
/mnt/usb/images
Please note that it may not be exactly like that.

Make a Debrick Image?

Hey, I'm hardbricked on my tab2 (sch-i705) and so have a few others because of loading this aboot.img at http://forum.xda-developers.com/showthread.php?t=1942674
I was thinking that someone with a working bootloader could run this script:
Code:
#!/sbin/sh
mkdir -p /sdcard/Unbrick_Files/;
dd if=/dev/block/mmcblk0 of=/sdcard/Unbrick_Files/200MB.img bs=4096 count=50000;
busybox gzip /sdcard/Unbrick_Files/*;
mv /sdcard/Unbrick_Files/200MB.img.gz /sdcard/Unbrick_Files/Unbrick_IMG.gz;
chmod -R 777 /sdcard/Unbrick_Files
and post the output so we can have an unbrick image here.
Nine days have gone by and nobody has a working tab 2 of any variant? Is it possible to take a similar debrick.img and overwrite each partition with the partitions in an odin tar?
Update: Ordered a replacement motherboard so I can make one myself.
How does this solve hardbrick may I ask?
Well, the tab 2 like similar devices allows for booting from sdcard when it is partitioned the same way as the emmc, containing bootloader, SBL, etc. With this script we copy the first 200mb of the emmc to an image file. When the image file is written to sdcard the sdcard is partitioned like emmc (but not complete) so the tab boots from it but only allows entering download mode. Thus we are able to fix hardbrick caused by corrupt emmc.
I've been very busy but the replacement board came in and I installed it yesterday. So I'll have an image for y'all to test soon.
Okay, now everyone posting that they're bricked can try this...
https://drive.google.com/file/d/0B9vvBRDZ3jJFVTlVakFadF9UdHM/view?usp=sharing
Download this image and copy it to a microsd (supposed to be >8GB class 10) using dd in osx/linux or Roadkil's Disk Image in Windows http://www.roadkil.net/program.php/P12/Disk Image
If it works for you feel free to donate.
in need of help with bricked device
hi will this work for my Samsung galaxy tab 2 GT-P3110 as all it is able to do at min is show me an empty grey looking battry bar once plugged into a charger and that's it.. if so would you please help me in detail as i am new too all of this.. would be appreciated.. cheers
mudtub said:
Okay, now everyone posting that they're bricked can try this...
https://drive.google.com/file/d/0B9vvBRDZ3jJFVTlVakFadF9UdHM/view?usp=sharing
Download this image and copy it to a microsd (supposed to be >8GB class 10) using dd in osx/linux or Roadkil's Disk Image in Windows http://www.roadkil.net/program.php/P12/Disk Image
If it works for you feel free to donate.
Click to expand...
Click to collapse
Have you or anybody else used this and successfully restored an i705?
Have a hardbricked Tab 2 and am familiar with SD unbricking as Sammys are MOSTLY unbrickable. But seriously, a definitive answer here would be nice...
Last note, writing a bootable img to SD is always best done through Linux Terminal dd commands. Windows applications don't write the partition table. Roadkil only wrote the files into a folder called "image". When properly done in Linux, a windows PC won't recognize the SD card.
So any answers here please?
mudtub said:
Okay, now everyone posting that they're bricked can try this...
https://drive.google.com/file/d/0B9vvBRDZ3jJFVTlVakFadF9UdHM/view?usp=sharing
Download this image and copy it to a microsd (supposed to be >8GB class 10) using dd in osx/linux or Roadkil's Disk Image in Windows http://www.roadkil.net/program.php/P12/Disk Image
If it works for you feel free to donate.
Click to expand...
Click to collapse
I tried this method with a micro-sd 16gb class 4, used roadkil, without results, the device not turning on or going to download mode, and if i go to device settings in windows i see qloader 9008 in the com section.
Could the cause of not working be class of the sd card that it's 4 instead of 10?
Thanks in advance.
mudtub said:
Okay, now everyone posting that they're bricked can try this...
https://drive.google.com/file/d/0B9vvBRDZ3jJFVTlVakFadF9UdHM/view?usp=sharing
Download this image and copy it to a microsd (supposed to be >8GB class 10) using dd in osx/linux or Roadkil's Disk Image in Windows http://www.roadkil.net/program.php/P12/Disk Image
If it works for you feel free to donate.
Click to expand...
Click to collapse
then what? plug into charger/boot into twrp/boot into download mode?? what should i do
fhope93 said:
in need of help with bricked device
hi will this work for my Samsung galaxy tab 2 GT-P3110 as all it is able to do at min is show me an empty grey looking battry bar once plugged into a charger and that's it.. if so would you please help me in detail as i am new too all of this.. would be appreciated.. cheers
Click to expand...
Click to collapse
Even I'm getting the same problem... Do you have a solution for this?

Categories

Resources