Cannot write to internal memory... why? - Moto G5 Plus Questions & Answers

Unsubsidized, bootloader unlocked, rooted (supersSU). Phone is brand new and has stock (137-35-5) with Vanche TWRP (3.1.1).
The phone is encrypted (out of the box that way) and TWRP shows 0MB on all storage media.
While I can save to the SD, no app can write to the internal memory. In fact, simply trying to change the global phone ringtone to a different (stock) selection doesn't work.
Any ideas how I can get this to work?

Related

Phone storage memory with Android 2.2

Hi guys
I have recently installed android 2.2 on my hd2. I am absolutely loving it.
The problem I have though is that it seems to take quite a lot of memory up in my phone storage memory. I cannot move maps, Facebook etc to the storage card. What can you recommend I do? I have about 20mb of memory free on the phone. The other problem I have is that when I link my phone to my laptop I can only see the storage card and not the phone memory?
Any help would be very much appreciated.
thanks.
Well to your first question, there is always the option to do Apps2sd, most roms come with a TMOUS version and a EUR version. The latter usually is set up to move the data partition to the sdcard (usually set to 512mb-1024mb depending on what you prefer). I would suggest partitioning your card, re-flashing the rom you are using and then you should be golden.
Now as to browsing memory contents, you will only ever be able to see your sdcard. Android's file system is not viewable by a PC as far as I am aware, you can always use adb but that doesn't give you a full browsing experience.
You can always download a file explorer that gives root access, Root Explorer is my personal fave. This will let you browse your internal memory.
Its no good just saying "Android 2.2", that doesnt mean anything. When asking for help you need to give relevant info like which specific rom you are using.
For example if you have a EU HD2 which im guessing you do then 99% of EU roms will come with a option to use sd-ext which is a partition on your sd card. This partition will be used for all apps/app data etc instead of you nand.
Partition yoru card using CWR>Advanced. Set partition to 1GB and swap to 0mb, wipe data/factory reset, wipe caches and then flash rom again.
Sorry, its the DFT LEO Nand Rom.
thanks for your advice guys, I will that out.

[Q] Format internal with TWRP

hello people, i need to know a thing, not a major bug or high damage stuff.
when i boot into recovery (twrp) and format everything, including internal, i need to reboot again into recovery to get internal memory access via MTP mount. thats ok, the thing is, after i reboot, get access, move my new rom to internal and flash it.
after first boot, when i go on internal memory i didnt see my ROM.ZIP file there, but the space that it ocuped is there, in other words, when i format internal i get all my ~10GB internal, after first boot into the rom i can see my internal memory as ~8GB free, but the ~2GB ROM.ZIP file isnt there.
is it a mapping/partition table bug? where can i find my file again?

TWRP Recovery consuming internal storage

I got the 16 gb model of the X Pure because I figured with the expandable memory with SD Card, it would be something I can deal with. So I unlocked the bootloader, flashed TWRP recovery. I configured TWRP to use the SD Card to store backups. While installing apps, I noticed that I was getting an out of storage message. The storage area in settings is telling me that the Miscellaneous category is consuming 4.51 gb and TWRP is listed as consuming all of it. I tried checking the box and deleting it, without success. I checked the internal storage areas for TWRP and all of the folders appear to be empty except for the external sd card. This is very frustrating. Any advice on this?
definitely something is not right with your device, i hope someone can help you soon
Sent from my XT1575 using XDA Free mobile app
Check your TWRP folder on your device and make sure it doesn't have the backup in it? It should be pretty small without a backup (mine says 0.0kb). I did a TWRP backup (Nandroid) after all my apps downloaded and it's just over 8gb.
Here's a shot of my internal storage.

How to decrypt android marshmellow formated sdcard

i was on twrp 2.8.7.0 and installed http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/rom-kushan-cm-marshmallow-rom-t3258489. then formatted my sd card as internal storage. today i wanted to update to the latest build of kushan rom, but in twrp my sd card was listed as 0 mb and i couldnt enter it. so i decided to flash latest cwm trough rom manager. after flashing cwm my internal sdcard was wiped(not by me-automaticly) and now marshmellow tells me that te sd card is not supportet...please format.....
i think that as the cwm wiped my sd card "the unique? encrpytion key?" got lost and therefor i cant axcess the sd card. im i right?
if yes i hope the encryption key is not unique and i can recover the files on the sd card
k2828 said:
i was on twrp 2.8.7.0 and installed http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/rom-kushan-cm-marshmallow-rom-t3258489. then formatted my sd card as internal storage. today i wanted to update to the latest build of kushan rom, but in twrp my sd card was listed as 0 mb and i couldnt enter it. so i decided to flash latest cwm trough rom manager. after flashing cwm my internal sdcard was wiped(not by me-automaticly) and now marshmellow tells me that te sd card is not supportet...please format.....
i think that as the cwm wiped my sd card "the unique? encrpytion key?" got lost and therefor i cant axcess the sd card. im i right?
if yes i hope the encryption key is not unique and i can recover the files on the sd card
Click to expand...
Click to collapse
As stated many many times. The only recovery you can use is TWRP. Your sdcard shows 0 mb because it became part of your internal storage. So reflash TWRP and try again.
after flashing cwm i did nothing but booting once the rom and notice that everything was wipped and then flash twrp.
the result is i cant axcess my sdcard as the rom sais that the sdcard needs to prepared.
so my question is, can i recover the data on the sd card?
Not if you're at the point where the card needs to be prepared. What you should have done if you wanted to decrypt the MicroSD, is pulled the data off both card and internal storage, then gone into Settings > Storage & USB and converted the card to portable storage.
One thing. With CWM running, did you have any nandroid backups? If you did, you likely will have to reinstall CWM to free up the internal storage reserved for the nandroid backups. CWM by default allocates space for its nandroid backups that cannot be touched by the system or TWRP. Once you do that, you can then reinstall TWRP.
OK THX. I just created a image of the SD card.maybe in the future there will be a toop to decrypt such SD cards. For the future:
Is the SD card lost everytime i update the Rom build?
Is the SD card lost Ehen i change the Rom to another Android 6 Rom?
What do i have to do when updating to a Newer build oft the same rom,vor change to another Android 6 rom? Pull everything from bouth cards? Really? Thats a pain in the ass even with a uhs 1 SD card.
Whats the best way for backing up the data, so i can cop them back without trouble? Maybe ADB?
Whats about changin the recovery? Thats a nogo i think and whats about updating twrp?
What is a absolut nogo? What i ahouldnt do to f*** up the card again?
So many questions, but I'm going to answer just the last two, as their answer covers every other question in your post.
What is an absolute no go? What shouldn't I do to f*** up the card again?
Click to expand...
Click to collapse
The answer to this is so easy it's astounding. The answer is to not combine the card with the internal storage. Here's why. If you switch ROMs regularly in order to try them out, every single time you combine the storage the card has to be prepared for use, which means all data on it gets wiped. If you do a clean install of your current ROM and combine the storage, all data on the card is wiped. The reason the card gets wiped is because Android 6.x creates a virtual volume which spans both internal storage and the MicroSD. In order to ensure the data is secure Android encrypts the volume. This encryption is part of the reason Google throws up a warning to restore the card if you pull it out of the device.
By not combining the storage, you avoid the encryption problems, but you do have to deal with the issue of apps not seeing the MicroSD card. Unless an app with this issue is no longer being updated, this problem will resolve itself. Developers have to adapt to the new setup.
The encryption also impacts performance, though on my tests with it I didn't notice anything. The one thing it will do is impact the ability to perform backups. In my tests, the encryption prevented TWRP from doing anything useful, meaning no ability to install flashable zips or updated TWRP recovery images from the storage and no ability to do nandroid backups. TWRP could see the directory structure of the combined storage but could not see any files within the folders to install. Nandroid backups instantly failed with an "out of storage" error, even though I had some 15GB of space available on the MicroSD. TWRP's developers will need to adapt to this and custom ROM developers will have to recommend that users not combine storage.
Strephon Alkhalikoi said:
So many questions, but I'm going to answer just the last two, as their answer covers every other question in your post.
The answer to this is so easy it's astounding. The answer is to not combine the card with the internal storage. Here's why. If you switch ROMs regularly in order to try them out, every single time you combine the storage the card has to be prepared for use, which means all data on it gets wiped. If you do a clean install of your current ROM and combine the storage, all data on the card is wiped. The reason the card gets wiped is because Android 6.x creates a virtual volume which spans both internal storage and the MicroSD. In order to ensure the data is secure Android encrypts the volume. This encryption is part of the reason Google throws up a warning to restore the card if you pull it out of the device.
By not combining the storage, you avoid the encryption problems, but you do have to deal with the issue of apps not seeing the MicroSD card. Unless an app with this issue is no longer being updated, this problem will resolve itself. Developers have to adapt to the new setup.
The encryption also impacts performance, though on my tests with it I didn't notice anything. The one thing it will do is impact the ability to perform backups. In my tests, the encryption prevented TWRP from doing anything useful, meaning no ability to install flashable zips or updated TWRP recovery images from the storage and no ability to do nandroid backups. TWRP could see the directory structure of the combined storage but could not see any files within the folders to install. Nandroid backups instantly failed with an "out of storage" error, even though I had some 15GB of space available on the MicroSD. TWRP's developers will need to adapt to this and custom ROM developers will have to recommend that users not combine storage.
Click to expand...
Click to collapse
thx for your very detailed answere. but whats about when i am using i.e. kushan rom build 07.12.2015 and i update to kushan rom build 11.12.2015. will the sd card have to be prepared to use also? and what about when i update twrp to a marshmellow support twrp. di i need prepare the sd card then again?
TWRP could see the directory structure of the combined storage but could not see any files within the folders to install. Nandroid backups instantly failed with an "out of storage" error, even though I had some 15GB of space available on the MicroSD.
Click to expand...
Click to collapse
This is the point where my trouble began. as so as the sd card is prepared as internal you cant even see files of the real internal storage. flashing zips you can still do with adb sideload. another question could we backup the internal flash inlcuding prepared sd card with this:
http://forum.xda-developers.com/showthread.php?t=1818321
?
If yes, is there also a way to restore the backup made?
To make things crystal clear, once the card is set for portable storage you will not have to reconfigure the card again unless you choose to combine the storage. Upgrading a ROM to a newer version will generate a message in the notification bar that you have to prepare the card, but you simply select the portable storage option and the notification goes away. Upgrading TWRP doesn't require doing anything to storage.
Should you choose to combine storage, upgrading a ROM may cost you whatever is on both the internal storage and microSD. Upgrading TWRP with combined storage would require you to flash it using Odin, because you wouldn't be able to copy the TWRP image to the device storage.
Backing up the internal storage doesn't require anything more than a copy operation from the S4 to the PC, so no special tools should be required. That applies regardless of whether the storage is combined or separate. However, for best results with TWRP, the storage should not be combined.
Sorry for reviving this old thread, but I've the same issue.
I flashed a new rom without getting the decryption code or backing anything up(No NANDs, no sd backup). Is there still currently no way to retrieve the files that are encrypted on this SD?
I've done exactly the same, I'm hoping theres a way to decrypt it.
k2828 said:
i was on twrp 2.8.7.0 and installed http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/rom-kushan-cm-marshmallow-rom-t3258489. then formatted my sd card as internal storage. today i wanted to update to the latest build of kushan rom, but in twrp my sd card was listed as 0 mb and i couldnt enter it. so i decided to flash latest cwm trough rom manager. after flashing cwm my internal sdcard was wiped(not by me-automaticly) and now marshmellow tells me that te sd card is not supportet...please format.....
i think that as the cwm wiped my sd card "the unique? encrpytion key?" got lost and therefor i cant axcess the sd card. im i right?
if yes i hope the encryption key is not unique and i can recover the files on the sd card
Click to expand...
Click to collapse
Have you found solution to decrypt the Sdcard.
I was facing this problem for almost 1 year I need only sdcard not data in it but I am unable to format it due to encryption but any device able to read the data and copy from that.
Even I can play Music out that SD card
Unless you're immortal, you're not decrypting the MicroSD card via brute force. Currently, the amount of time required to find the decryption key is longer than the current age of the universe.
If looking to simply format an existing card, use SDFormatter from http://www.sdcard.org.

Invalid partition selection for Internal Storage.

I am new to the world of tech and have a (what I believe anyway) is a massive issue with my S7 Edge. I successfully rooted the phone and then for some unknown reason I used TWRP to change the file system on Internal Storage to Fat32 or Fat. Cannot say for sure. Apologies. Now, I have a phone which suggests that I am using 31GB of the 32GB on the phone yet I know that when I use TWRP to look at the size DATA only has 4GB of which there is 141MB free? The other 28GB is there but is inaccessible. I had all my photos and videos on there and they have all disappeared. One thing to note is that when I changed the file system of Internal Storage it factory reset the phone but did show me that it was 25GB space wise so I lost everything but it was trying to restore from a backup which just failed as there was not enough space I think although I did not get an error. I am unable to (proper) factory reset the phone due to multiple mount issues and also because I think it has something to do with not being able to write to the correct partitions. I am using TWRP 3.0.0-0. I go to Wipe/Advanced Wipe/ select Internal Storage, then Repair or Change File System and get the Invalid Partition Selection in red. The same happens when I select Dalvik / ART Cache. I have the latest version of ODIN. I literally have ran out of ideas and have invested in a 128GB SD Card which I will use for mass storage by using adb shell. I am hopeful there is an answer.
forestfan said:
I am new to the world of tech and have a (what I believe anyway) is a massive issue with my S7 Edge. I successfully rooted the phone and then for some unknown reason I used TWRP to change the file system on Internal Storage to Fat32 or Fat. Cannot say for sure. Apologies. Now, I have a phone which suggests that I am using 31GB of the 32GB on the phone yet I know that when I use TWRP to look at the size DATA only has 4GB of which there is 141MB free? The other 28GB is there but is inaccessible. I had all my photos and videos on there and they have all disappeared. One thing to note is that when I changed the file system of Internal Storage it factory reset the phone but did show me that it was 25GB space wise so I lost everything but it was trying to restore from a backup which just failed as there was not enough space I think although I did not get an error. I am unable to (proper) factory reset the phone due to multiple mount issues and also because I think it has something to do with not being able to write to the correct partitions. I am using TWRP 3.0.0-0. I go to Wipe/Advanced Wipe/ select Internal Storage, then Repair or Change File System and get the Invalid Partition Selection in red. The same happens when I select Dalvik / ART Cache. I have the latest version of ODIN. I literally have ran out of ideas and have invested in a 128GB SD Card which I will use for mass storage by using adb shell. I am hopeful there is an answer.
Click to expand...
Click to collapse
Was this issue ever solved?

Categories

Resources