Recover images from internal sdcard - AT&T, Rogers, Bell, Telus Samsung Galaxy S III

Is it possible to recover deleted images from the internal sdcard?
I deleted my images/videos by mistake (using Gallery). I haven't touch the internal sdcard since so hopfully I can still recover most of the deleted files. Since the internal card cannot be mounted as UMS, tools such as "recuva" won't work. Can I use "dd" to create an image of my internal card then use recuva to recover from the image dump?
My mount points:
/dev/fuse on /mnt/sdcard type fuse (rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/block/vold/179:97 on /mnt/extSdCard type vfat (rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
I am not familiar with file system type "fuse" so I don't know if dd would work. Any help would be greatly appreciated.
Thanks.

Most it in a computer or laptop with sd adaptor and download pandora recovery. It's free and I've used it for in the past with sd cards. Works great
Sent from my SAMSUNG-SGH-I747 using xda premium

waiters said:
Most it in a computer or laptop with sd adaptor and download pandora recovery. It's free and I've used it for in the past with sd cards. Works great
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
I think this only works if I deleted files from the external sdcard. For the internal scard, I don't think this is possible.
I have tried to do dd if=/dev/fuse of=/mnt/extSdCard/image.img but dd says that it cannot work with file system type "fuse". I have tried to use dd with other partition (user, data, system) and can confirm that it is possible to recover from the DD image.
As long as I can get the DD image of the /dev/fuse then I would be all set I think.

Just a quick update to say that it is possible to recover the files. All you have to do is to do
dd if=/dev/block/mmcblk0p15 of=/mnt/extSdCard/file.img
This is because from what I understand, the fuse partition is just a write-through for /data (which is ext4) with some security restrictions. If you have root access then you can dump the /data and mount it. Once it is mounted, you can use PhotoRec to recover stuffs.

Related

I screwed up, now every ROM is effected!

I hated the 128MB partition that mounts with the internal 8GB and my sdcard, so I used gparted via ubuntu to remove it and expand the linux-swap partition to fill the 128MB of unallocated space. Now no ROMs I use can mount the internal or external storage, nor can I mount it via USB- unless I'm in recovery. From recovery I can read the sdcard and mount it to browse via USB. Anyone have a solultion for this? I've wiped data and system and tried other ROMs, but each one is affected with the same issue.
Try a hard reset
Sent from my ADR6300 using XDA App
jdkoreclipse said:
Try a hard reset
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Meaning to remove root, nand unlock, etc and start fresh?
No...its the clear storage option in the bootloadwr
Sent from my ADR6300 using XDA App
jdkoreclipse said:
No...its the clear storage option in the bootloadwr
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
My mistake. I just did that, waiting for results now.
xvenom89 said:
My mistake. I just did that, waiting for results now.
Click to expand...
Click to collapse
Nope, that did not work. My sdcard and internal storage are not mounting. Anyone else have an idea?
try a method posted in the cm6 thread
Sent from my ADR6300 using XDA App
jdkoreclipse said:
try a method posted in the cm6 thread
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
This?
http://forum.xda-developers.com/showpost.php?p=7319333&postcount=753
I don't see that as a solution. I need it to detect my storage like it does out of the box, as it did before I deleted one of the partitions. There has to be a way to restore it to factory defaults; I don't mind having to start from scratch at this point.
My only idea that might work is to flash a PB31IMG.zip from the bootloader... Anyone else have an insight?
Just an update, this fixed it:
http://androidforums.com/all-things...ideo-howto-unroot-incredible-downgrading.html
Update2:
I can get my phone running the original 2.2 leaked ota, but trying to upgrade to skyraider 2.5.2 from there brings me back to square one...
I can only access them while booted using the original 2.1 ROM or the first 2.1 OTA. When I upgrade to ANY Froyo ROM, the internal storage and sdcard disappear. I wish someone here would help me out so I can move on with my life; it's been this way for 24 hours now and I can't take it anymore.
Have you tried to just remake the partitions as they were?
lamerto said:
Have you tried to just remake the partitions as they were?
Click to expand...
Click to collapse
I cannot figure out how. Clue me in? I've used clockworkmod recovery to format each partition manually, but that didn't help.
I restored completely to stock as described here, followed by using unrevoked to root. From the stock 2.1 OS, I can read from the SD Card and Internal storage just fine. I then upgrade the radio to 2.15.00.07.28, as described here; everything still works at this point. Then I choose any 2.2-based ROM (skyraider, pmf, stock, cyanogenmod, etc) to upgrade to and install it via clockworkmod recovery. At that point, the booted system no longer reads from the SD Card or Internal Storage (BOTH are declaired "Unavailable" under Menu -> Settings -> SD & Phone Storage). From recovery I can still mount the SD Card via USB.
Before this mess I was running Skyraider 2.2 almost flawlessly, then I was picky and chose to use gparted via Ubuntu to delete the smaller ~128MB partition that mounted along side the SD Card and Internal Storage because it annoyed me. After deleting it, I expanded the linux-swap partition to fill the unallocated space. I did all this while the system was booted (after applying unrevoked-forever, so it would actually take effect). I then downloaded and installed the Skyraider 2.5.2 upgrade and that is when I first discovered this problem.
I think it MIGHT be fixable if I could figure out how to manually edit configurations to mount both partitions at boot.
I hope what happened is now clear to you all, because I'm dying here without my Incredible. I can't use it properly without the SD Card mounted, so I'm using a Palm Pre Plus for the time being. I could use a 2.1 ROM, but I became too in love with Froyo to part so soon. Please, if anyone has suggestions I would love to hear them. Thanks..
Since it seems nobody else has a clue how to work with this, I'm trying more things. I don't know why I didn't think of it before, but I'm editing the phone's fstab.
What was included:
/dev/block/mtdblock5 /cache auto rw
/dev/block/mmcblk0p1 /data auto rw
/dev/block/mtdblock6 /datadata yaffs2 rw
/dev/block/mtdblock3 /system yaffs2 rw
/dev/block/mmcblk1 /sdcard vfat rw
/dev/block/mmcblk1p2 /sd-ext auto rw
I added "/dev/block/mmcblk0p3 /emmc auto rw" for the internal storage and it worked once after I rebooted, but the sd card issue hasn't changed at all. It's already defined in the fstab, so why isn't it mounting?
So now sometimes the internal storage mounts and sometimes it doesn't. Anyway, with the sd card, now I found another interesting detail: the phone recognizes a different 2GB micro sd card while booted, but not the 16GB one I've been using for ages, the one that mounts fine in clockworkmod recovery and in 2.1 ROMs. It used to mount fine in Froyo, now it is "Unavailable". Why is this?
Xvenom89,
Wished I could help. But being a noob.....
If nothing else, at least I've bumped the thread for you. (-:
Just in case it helps, if the file you're referring to is vold.fstabs, the only entries in mine are;
dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
dev_mount emmc /mnt/emmc 3 /
devices/platform/msm_sdcc.3/mmc_host/mmc2
Maybe you could PM one of the more friendly devs and ask if they'd mind making a suggestion.
________________________________
Unrevoked forever
SkyRaider 2.5.2 Sense
Hrdra kernel ocuv_ov_v10 (#2)
I'm having the same issue with the OTA Froyo update. So I was wondering, did you figure out a way to fix this issue?
xvenom89 said:
I cannot figure out how. Clue me in? I've used clockworkmod recovery to format each partition manually, but that didn't help.
Click to expand...
Click to collapse
Uh, if you can't figure out how, how did you manage to delete one?
Methinks you should have at least written down the details from the removed partitions before you removed them
It just seems sane.
I'm sorry to sound harsh, but, what were you thinking? It's a few megabytes that you risked the usability of your phone for.
That said, I think only recreating them yourself would fix it properly - possibly given the partition map of another Incredible (heck, maybe just dumping the first 512 bytes of the emmc device, assuming it's MBR, from a working incredible and having you patch that in would fix it.).
Yea what were you thinking, you don't just delete partitions randomly >.

External SD CWM backup?

Hi guys,
I have my clockwork mod folder on my external SanDisk 16gb sdhc...does anyone know how to be able to restore this way? Does the backup have to be on internal storage? I don't see a "mount ext sd" option in mounts...
While I'm asking this..
When you move apps to external do they no longer show up in your app drawer...? I'm using go launcher but it seems they disappear when I move them to external sd card.
Sent from my SAMSUNG-SGH-I927R using xda premium
I would like to know about using the external sd card for cwm instead of internal as well....
by default from what I read CWM uses the internal SD card but I believe I heard some people mentioning on the forums that you can modify something in the kernel or a config file somewhere to change this. Unfortunately I do not know how sorry.
dudejb said:
by default from what I read CWM uses the internal SD card but I believe I heard some people mentioning on the forums that you can modify something in the kernel or a config file somewhere to change this. Unfortunately I do not know how sorry.
Click to expand...
Click to collapse
Ive looked through every kernel thread and just about every rom thread and dont see anything about being able to switch it over to using your external sd card for backups....it sux but guess its not possible yet
There is a few posts in the CWM thread that talk about swapping the internal SD for the External SD.
romanr said:
Can you please mount external sdcard instead of internal one.
/etc/fstab:
Code:
#/dev/block/mmcblk0p4 /sdcard vfat rw
/dev/block/mmcblk1p1 /sdcard vfat rw
Click to expand...
Click to collapse
then he says he did it like this below:
romanr said:
Thanks, but not needed. I swapped my internal/external storage and this recovery now perfectly fits for me - my .android_secure is backed up by backup tool now - that's only why I asked.
How about adding
Code:
/dev/block/mmcblk1p1 /sdcard/external_sd vfat rw
/dev/block/mmcblk1p2 /sd-ext ext4 rw
to the fstab ?
Click to expand...
Click to collapse
This may do what you want?
dudejb said:
There is a few posts in the CWM thread that talk about swapping the internal SD for the External SD.
then he says he did it like this below:
This may do what you want?
Click to expand...
Click to collapse
Ill have to give it a try, kinda scared too cuz im a noob at that kinda stuff but i appreciate the help!
ok so im using root explorer, opened up the fstab file to edit and am stuck there, not really sure where to add those commands at...i think it would just be easier to leave it on internal storage lol
Yes it would be easier to leave it as it is. Lol. I have modified the fstab in Linux but not on my phone. If it is the same type of file you need to make sure you are opening it as root and there should already be a line with your current file system being mapped and simply replace it with the new line.

[Howto] mount any directories from extSdCard to under /sdcard/

So I found a million threads asking about why they can't ln -s or mount the /mnt/extSdCard to /mnt/sdcard or various forms of that. The motivation here is to allow certain apps that can't get about /sdcard/ to be able to see the additional 64GB of SDHC.
What helped was this realization that the android mount command supports bind and one of a few dozen other threads, mostly this one:
http://forum.xda-developers.com/showthread.php?t=1825494
So it appears there are a half dozen ways to make mounts, from using /dev/block/vold/179:97 to using the vold.fstab which mentions a serial or parallel sdcard scheme, which they chose parallel, to all these init.rc monitoring scripts that have to unmount on USB mode, and crazy stuff and a million Directory Bind apps, and int2SD binder / linker apps. It appears this app might do what I am suggesting but I don't think /emmc/ works anymore and I haven't looked into the .apk.
Ok....
1) ODIN over a root injected stock ROM, or otherwise get root.
2) (A) Get yourself any Terminal program like Terminal Emulator and if you are smart you will also get Hacker's Keyboard.
or
2) (B) From any of the programs that will run scripts, you can just make a script.
3)
Code:
$ su -
# mkdir /mnt/sdcard/external
# mount -o bind /mnt/extSdCard /mnt/sdcard/external
Now you can name it whatever you want but since the home is /sdcard/ it has to be under that.
Or, instead of mounting the whole thing, just mount Movies and Music directory
Code:
# mkdir /mnt/sdcard/Music/extMusic
# mount -o bind /mnt/extSdCard/Music /mnt/sdcard/Music/extMusic
Etc.
Now for those wanting to make a script or app to sell for $1.99... There may be real problems depending on where a backup program chooses to backup and it could be recursive.
And just FYI, this ends up inheriting all the same properties from the extSdCard mount params,
ie. /dev/block/vold/179:97 /mnt/sdcard/Music/extMusic vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
Any mounted directory all look identical in mount and the vold must map them out.
Anyways you can write a simple script and hopefully you are mindful of any backups you do if you save backups to the external sdcard and you mount the entire thing. The safest way would be to mount one directory to transfer files or only mount the large media.
It also means you could copy everything from /sdcard/Music to the external and then mount /sdcard/Music to be a directory on the external card. You could remove the ext SDHC and copy files that way and have everything in one place and not worry about wiping it out.
However, I have benchmarked the internal SD appears to be faster on bandwidth benchmarks versus an external Class 10/UHS. On the stock rom the internal is also fuse versus fat32 for the external SDHC (or exFAT for a SDXC card). There is also something in the SD2.0 spec about the 2nd SD only one can have a higher clock bandwidth.
Types in step 3 exactly. But nothing happened
Sent from my SGH-T999 using xda app-developers app
fateownzyou3 said:
Types in step 3 exactly. But nothing happened
Click to expand...
Click to collapse
Did you get an error? There is no output of mount unless there is an error.. Did you look in a file browser to see if that folder is now mounted? This only works until reboot, until someone makes an app or script.
Hi,
@joederp thank you very much ! Your tip in so usefull to me with my galaxy note on CM10 ParanoidAndroid ROM.
The only thing I try now to get work is : automaticaly run the script at phone boot. I'm pretty sure I can get it with Tasker, but did not find the trick.
Just use the directory bind app... It works fine on my galaxy tab 2 7.0
Sent from my SGH-T999 using xda premium
Directory bind is a whole different thing that uses CPU and monitors the system and does who knows what.
You can just use any scripting program or I think edit init.rc and add the extra mount commands. copy init.rc to a .bak and edit it.
Thank to all of you !
I found something more appropriate to my needs in this thread : http://forum.xda-developers.com/showthread.php?t=1593615
Anyway thanks

[Q] How to access external-sd with adb in recovery mode?

I can't seem to find/access my external sd card in adb shell when my phone is in recovery mode. Going to /sdcard gives me the internal location where CWM backups are kept. Nothing is listed in /external_sd and when I choose 'mount external sd' from the menu in clockworkmod I get an error in CWM. I need to access it because that's where I keep backups of files I'm messing with.
ThisThing said:
I can't seem to find/access my external sd card in adb shell when my phone is in recovery mode. Going to /sdcard gives me the internal location where CWM backups are kept. Nothing is listed in /external_sd and when I choose 'mount external sd' from the menu in clockworkmod I get an error in CWM. I need to access it because that's where I keep backups of files I'm messing with.
Click to expand...
Click to collapse
What format is the SD Card in? If its exFAT then CWM wont be able to recognize it. If its FAT or FAT32 then try this in adb shell
su
mount /external_sd
Sent from my ASUS Transformer Pad TF300T using Tapatalk 2
su shows up as an unrecognized command, oddly enough (even though it works when I'm not in recovery.) I've found another way to move the files around so I'm not going to worry about it.
My problem now is the framework-res.apk that I replaced some sounds in causes boot to get stuck on the end of the t-mobile animation. I'm finding threads all over the place about how to replace it, but if anyone has a guaranteed method for this device now I'd appreciate it.

[Instructions included] Need Internal Partitions (mmcblk0p1 to mmcblk0p5)

I've been trying to partition my External SD card so I can use it for Link2SD. I don't have an SD card reader so I tried using the adb + parted command. I was following this tutorial but then I realised that /dev/block/mmcblk0 was my Internal Storage and not my external SD. I deleted the first 5 partitions on there and my phone isn't charging nor turning on even though it's fully charged. Have I completely broken my phone?
Edit: phone shows up as QHSUSB_BULK in device manager.
Could someone please upload the first 5 partitions as imgs? I'm trying to use Ubuntu to try and replace the partitions I deleted. I'm running 4.16.1540.8 as my firmware and CM12 nightlies.
Use this command to save partitions as imgs on SD.
dd if=/dev/block/mmcblk0p5 of=/sdcard/dump/mfg.img
Just replace the mmc number with 1,2,3,4,5 and the image name to something that lets me know which partition it's on.
Thanks
bump
did you have any joy getting the mmcblk0 and if so can you upload it please

Categories

Resources