[Q] Need help recovering internal storage - Xperia Tablet Z Q&A, Help & Troubleshooting

My xtz go stuck in a boot loop so unfortunately I had to reflash ftf with the "wipe data" ticked.
Tablet is now back up and working, rooted with minimal apps and nothing in the internal storage.
I have seen this thread http://forum.xda-developers.com/showthread.php?t=1994705 regarding recovering the internal storage.
My question is are there any other methods and does anyone know which partition contains /data and/or internal storage?
I have a 64GB microsd so I'm thinking I could use the dd command to ouput the raw file on to the microsd

Related

How to use 'fdisk' command to recover lost NAND storage?

My tablet has an internal NAND media storage, which is mounted by the system as SD card.
Yesterday the storage cannot be mounted.
I heard that using linux command 'fdisk' can recover the storage without losing data on it, can anybody help me with the detail?
A lot of thanks!

[Q] Error mounting externalSD on CWM on SGSIII (i9300)

Hi,
Three weeks ago I had my SGSIII rooted and with a custom ROM and regular backup in the external SD card and everything was working OK.
I wanted to remove all the information form the internal memory and decided to format the internal memory, so using CWM (6.0.4.7) I made all the wipes and formatted:
/system
/cache
/preload
/data
I think that one of those formats was the source of the error, but I don't know which one!
Afterwards I tried to access the externalSD card from the restore menu to restore one of my NAND backups, but the extrenalSD card was not accessible (E: Can't mount /storage/sdcard1) neither from the install zip menu (same error). the SD card was OK because was workable in another phone. I tried to mount the external SD card from the mounts and storage menu but gave an error (Error mounting /storage/sdcard1!)
Since I could not restore my NAND backups, I restored the stock ROM (JB 4.3) using odin and afterwards I rooted the phone and install again CWM (6.0.4.7) but the problem persisted and now I am using the stock ROM and can access the external SD card from android normally.
I have looked about this error and all the cases I have found are using older versions of CWM and recommend to format the external SD card, so I did, but the problem persisted.
So my questions are:
- What have I done wrong?
- How can I fix it?
Afterwards I thought that I could copy the NAND backup from the external SD to the internal memory so I made NAND backup to see where it was stored, but using ultra explorer I cannot find the location (furthermore, according to the DiskUsage App the space is used but does not inform me where it is).
I have asked Google for the location of the backups in the internal memory (I can not recall such locations) but the folders did not exist or where empty. So:
- Is it possible to copy a backup from the external SD card into the internal memory?
- How can it be done?
Thanks in advance for your help and sorry for the lengthy post.

[Q] How to Format SD Card as Internal Storage?

I'm running low on internal storage, and also want to enable full-device encryption. The obvious solution is to format the SD Card as "Internal Storage" which in theory lets you move some apps and their data to a partition on the SD Card, while also allowing that partition to be encrypted.
That all sounds great, so I read a half-dozen blogs on how to do this. They all start with "insert the SD Card and choose Set Up." But even if I reformat the card or wipe the partition table completely, the only option I get is "format as portable storage" and never see any set up screen or option to pick internal storage. Am I missing something? Do I need to format the sd card on my desktop as a specific partition type? Do I need to run some adb incantation to enable the option? Is it just not an option in OOS 3.1.4 and I need to install a different ROM?
Eventually answered my own question. Basically, OnePlus disabled the feature, probably because the system is extremely fragile and confusing to users. However, it is possible to enable the feature via adb, using
Code:
adb shell sm set-force-adoptable true
Even then, while the option appeared, phone phone itself had all sorts of problems trying to format the SD Card:
- I could wipe the SD Card, insert it into the phone, format it (as external storage), and then be unable to format it a second time. Buh? Apparently android's external sdcard formatter is capable of screwing up the GPT/MBR distinction in such a way that it can't cope with formatting a card that it formatted itself?
- If I wiped the SD Card, inserted it into the phone and selected to format it as internal storage, it would format to 20%, stop, wait 180 seconds, and then time out, leaving me with a corrupted SD Card that required re-wiping. This is probably related to the first problem - the timeout is because the 'format internal' happens in a second thread, which ran into a similar error about GPT/MBR problems and then the parent thread didn't capture the error or do anything useful with it.
Finally, I tried doing the whole thing in adb, following instructions here: http://blog.sam.liddicott.com/2016/02/android-6-semi-adopted-storage.html
But even then, I ran into the timeout problem when trying to format mixed (50%), until I popped the card out, nuked all existing partitions, inserted the card and immediately started the adb process. Basically, if android's formatted ever touches the SD Card, it is screwed up until it is wiped again.
In the end, this process worked:
- Pop the card out of the phone, put it into a card reader, use MiniTool Partition Wizard Free to delete all partitions, wipe the partition table and set the card to GPT. Don't convert from MBR to GPT, wipe it until you get an option to put a completely fresh GPT table on.
- Pop the card into the phone. Do not touch any of the phone's menus - they are there to temp you into screwing the card up again.
- Connect the phone to computer via usb.
- Run:
Code:
adb shell sm list-disks adoptable
to get the sd card name. It'll be something like disk:179:128 but it will change every time you wipe it.
- Once you have the disk name, run
Code:
adb shell sm partition $DISKNAME mixed 50
but substitute your own disk name and what percentage of the sd card you want to use for external. If you don't want to use any, I think you do something like
Code:
adb shell sm partition $DISKNAME private
but I'm not sure.
So yeah, this is a complete mess and I understand why OnePlus didn't want to subject their users to it.
I recommend don't use adoptable storage, it's not worthed. Better use foldermount apps to move apps data from internal to ext. storage.
I want to do full-device encryption, including (most) of the apps data. Is there a better way to accomplish this without accepting the 16GB internal storage limit?
I wouldn't recommend ever using adoptable storage on the OPX. OnePlus used an incredibly slow microSD reader and it shows.

Creating SD card type partition on internal storage

Hi,
As less and less phones have SD Card option, which is very usefull for storing backups, images and so on when flashing ROMs, is there an option for creating such partition on internal storage so I would not worry about it being deleted for example on factory reset, flashing rom?
So of let's say 128GB total internal storage, I leave first 64GB for all system partitions and I need to remap last 64GB to my own partition and if it where shown as SD card, that would be awesome.
Doable or not? And would it even survive ROM flashing?
Thanks!

Non usable SD Card

I have just installed LOS 14.1 on my GTi9100. Before I started the install I partitioned my SD card with a 5GB Fat32 partition and a 3GB partition with no file type which my previous rooted system required to extend internal memory.
When Lineage installed it repartitioned the SD card and now I have a card with 6MB Fat32 partition and a 29GB partition of unknown type which cannot be used for external storage. I removed the card and tried to repartition using Mini Partition Tools but I cannot resize or change the 29GB partition.
As I have no external storage I cant install your fix for addons file or anything else. I cant use it for camera image storage either.
In TWRP if I select re-partition it says I will lose all data and I don't know if I should do that?
Don't know if this still is relevant. But yes, almost every storage issue (for example not accessible, not visible) I had in my past only got fixed by a full wipe. I don't know all those tools existing out there for data recovery, but if you have a more or less recent backup it isn't that painful to wipe everything.

Categories

Resources