Managed, due to clumsyness, to overwrite pictures on my local disk AND delete them on the sdcard0 storage. Never ever click Yes to merging folders
Is there any way, without root and with the .253 stock fw, that I can make a full image dump of the sdcard partition to be able to tinker with data restoration tools?
Do I need to downgrade the ROM and root before proceeding?
Can I in some way push down dd and make an image?
sidenote: Why in the name of all reasonable things did Google choose MTP as preferred and making it impossible to mount the internal SD as storage???
Any suggestions welcome!
Related
Nandroid backup works for all the NAND partitions on the Bionic, dumping them to /sdcard-ext where they can be safely archived offline.
I'm looking for a way to perform a backup of the Bionic' internal sdcard (/sdcard). When the phone is fully booted, I can use tar, cpio, cp -Rp and so forth, but aren't some of the folders "live"? Is there a way to add something to the Nandroid backup script which executes a tar command for /sdcard?
Thanks!
Unless I'm missing something here; Can't you just plug it into your computer and copy the contents of your sd card?
Hi,
After upgrading to 4.2, i soon realised that the files that were once in sdcard/ are now inaccessible and i can't delete any of them, i have a few roms in there and would like to use that space for other things.
I can see the files when i'm in CWM but not when i'm in the phone.
The path to the SDCard when on 4.2 is sdcard0 and the files are in sdcard, any ideas as to how to get to them to remove them? Cheers.
I think TWRP recovery allows deletion of files from recovery, not too sure, i'll look into it but if anyone else know's of a way could you let me know ?
Cheers.
Regarding the Moto X Verizon Developer Edition, not having an actual removable SD card, when making a backup, (or Nandroid after I root), is that backup file safe from a wipe? Or do I just save the backup to my PC to put back after? Is it possible to partition the drive to protect an area from wiping, as if it was a removable SD card?
Thanks in advance!
As long as you don't wipe the internal sdcard in recovery you'll be fine. You also can keep a copy of the backup on your pc. For TWRP the backups are stored in a TWRP folder on the internal sd. There's no reason to wipe this partition when going between roms.
Sent from my XT1060 using Tapatalk
spunker88 said:
As long as you don't wipe the internal sdcard in recovery you'll be fine. You also can keep a copy of the backup on your pc. For TWRP the backups are stored in a TWRP folder on the internal sd. There's no reason to wipe this partition when going between roms.
Sent from my XT1060 using Tapatalk
Click to expand...
Click to collapse
So, forgive me if I am stupid here, but when I observe the file structure in Root Explorer, I see in the root directory a folder called "sdcard" and a folder called "storage". The folder called "sdcard" looks like the "sdcard" folder which was on my GNEX (but it was an actual sdcard), and the folder called "storage" has a folder called "sdcard0" and "sdcard1", with the "sdcard0" folder looking like the other "sdcard" folder and the "sdcard1" folder is empty. So, is the "sdcard" folder in the root directory partitioned? if not, how is it protected from wiping?
Again, sorry if this is a stupid question...
amajamar said:
So, is the "sdcard" folder in the root directory partitioned? if not, how is it protected from wiping?
Click to expand...
Click to collapse
SDCARD is not a partition on the Moto X, it is within the /DATA partition.
In TWRP, when wiping /DATA, it will show on the screen "wiping DATA without wiping Internal Storage" (or words to that effect.) If you want to wipe the SDCARD, you would select Internal Storage on the advanced wipe menu. I think the answer to your question is that if you were to just wipe /DATA from a terminal, you could probably lose your SDCARD data; however, the properly written recoveries handle this properly and won't wipe SDCARD unless you specifically ask it to.
I'm panicking very much right now.
I did a big, big stupid and accidentally wiped my entire /data partition, including /sdcard (!!) in TWRP 3.0.4.1 while attempting to change the filesystem of my /data partition from F2FS to EXT4. I did a full backup of my phone, including /data partition (but excluding /data/media/0/ which is the location for /sdcard of course) on my phone prior to attempting to change the filesystem.
I didn't think that this would also wipe /sdcard, and ALL MY FILES INCLUDING MY BACKUP...
I'm frantically searching through Google as we speak for guides to clone these formatted sectors over USB (I'd imagine using ADB shell) to a PC and use Windows file or partition recovery tools to try and save every, if not most files.
Please lend me your knowledge and links to fixing this issue, Android community. <3
In older Android versions the /sdcard partition was it's own partition, which is why I didn't think of copying all my files over to a PC before making changes to /data.
well, when you wipe data from any partition in twrp it sort of resets all space to be overwritten. The data that is marked for overwrite doesn't remain when you full wipe. Since you changed the file system, the data was removed and overwritten by the wipe with blank space.... i hope you had at least some of it backed up on your pc. I never use those apps personally, i always hard backup all my things with a drag and drop onto my pc. I highly recommend it, saves you a disaster. Im very sorry.... i hope you didnt lose anything really important.
OcazPrime said:
well, when you wipe data from any partition in twrp it sort of resets all space to be overwritten. The data that is marked for overwrite doesn't remain when you full wipe. Since you changed the file system, the data was removed and overwritten by the wipe with blank space.... i hope you had at least some of it backed up on your pc. I never use those apps personally, i always hard backup all my things with a drag and drop onto my pc. I highly recommend it, saves you a disaster. Im very sorry.... i hope you didnt lose anything really important.
Click to expand...
Click to collapse
Heh, that's exactly what happened. I'm gonna attempt this guide: https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
Basically try to use "dd" to make a RAW copy of "dev/block/dm-0" which according to the mount command I ran in TWRP's terminal shell, is what block /data is used on OnePlus 3T (OOS 4.1.3).
Wish me luck.
Is it possible to mount data partition on PC or USB to recover data?
Edit: I meant userdata partition
I have tried backing up data partition using TWRP, but it prompted me that pictures and downloads will not be backed-up!
Isn't the data partition that holds my camera and download folder?
I am looking for a tool or and app that can let me take a disk image of internal SD partition, or create a whole image of my phone; so that I can use data recovery in my PC.
Making Dump Files Out of Android Device Partitions
have u try this
Thanks I have tried it but when I execute
Code:
noblelte:/ # dd if=/dev/block/sda17 of=/sda17.img
Gives me
Code:
dd: /sda17.img: Read-only file system
Just to be sure : I ran the adb code while the phone is on normally not in TWRP.
I also ran the code in TWRP terminal, while connecting a USB and mounting it.
It created the image inside the USB , however it stopped at 4GB saying the file is too large.
SilverDove said:
I also ran the code in TWRP terminal, while connecting a USB and mounting it.
It created the image inside the USB , however it stopped at 4GB saying the file is too large.
Click to expand...
Click to collapse
Are you just wanting to back up pictures, download folder, etc etc? Backing up the data partition the way you are is pointless as you're just accomplishing what twrp already does. Data partition is apps, system configurations, texts, calls, etc. Not pictures you've taking, download folder, etc.
And is there a reason you want an img file? Seems pointless to me when you can just copy it all over by drag and drop or adb pull the internal storage lol
I want to make a userdata partition image because it holds the camera album I deleted by mistake. I want to take the image and try to recover the deleted files using PC recovery software.
I found out that my problem was the 4GB limit of FAT32, so I formatted my USB flash memory using both exFat and ext4 and recovered the partition using TWRP terminal with the code above.
However I am still unable to read the image through Linux Reader and I can't attach the image as VHD.
Is what I am doing is useless? Because it came to my mind that if the recovered userdata partition is encrypted I will not be able to opened it, however, TWRP can browse the files so I guess it is not encrypted.
SilverDove said:
I want to make a userdata partition image because it holds the camera album I deleted by mistake. I want to take the image and try to recover the deleted files using PC recovery software.
I found out that my problem was the 4GB limit of FAT32, so I formatted my USB flash memory using both exFat and ext4 and recovered the partition using TWRP terminal with the code above.
However I am still unable to read the image through Linux Reader and I can't attach the image as VHD.
Is what I am doing is useless? Because it came to my mind that if the recovered userdata partition is encrypted I will not be able to opened it, however, TWRP can browse the files so I guess it is not encrypted.
Click to expand...
Click to collapse
You may need to convert the file type of the img using simg2img, make_ext4fs, etc
You can see what the file system type of the img you have by running:
file blahblah.img
But still don't think you're going to recover them but possibly lol never tried as I sync everything to a cloud
SilverDove said:
Is it possible to mount data partition on PC or USB to recover data?
Edit: I meant userdata partition
Click to expand...
Click to collapse
For backing up app data, I'm more of a Titanium Backup person myself and for backing up partitions I generally prefer TWRP, but there are also apps for backing up all the different partitions as well. This is just one. Never tried it, but Wanam is a much trusted developer in the XDA community for Samsung devices.
https://play.google.com/store/apps/details?id=ma.wanam.partitions
NOTE: You can always save these backups to a USB OTG device if you need to as well. That's what I do with my Titanium Backup app data files and the information is with me all the time hanging on my key chain.(More info about that under "No SD Card Slot" on this post HERE.) This information can of course always be copied to a PC too.