Invalid partition selection for Internal Storage. - Samsung Galaxy S7 Edge Questions and Answers

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?

Related

[Q] Can't mount internal storage TWRP

So, things have massively escalated today and my phone appears to be soft bricked. Joy. I'll run through what happened.
1. I encrypted my phone using the built in tool in Cyanogen Mod. After it rebooted, it was glitchy and I lost a load of apps, the phone really wasn't working well. Rebooted again, but no improvement.
2. I went into TWRP (2.8.x) to restore my old backup, which was on the SD card. After the initial wipe of the internal storage, the log showed
E: Can't mount storage
Click to expand...
Click to collapse
and the restore failed.
3. I reboot and phone goes straight into recovery mode as there is no OS installed (the recovery wipes the internal storage first). Internal Storage is now showing as '0 MB'. I cannot find a way of mounting this storage anymore. Have tried factory reset (doesn't work because file system isn't mounted), and rebooting a few times but no avail.
* There seem to be some options about flashing a .pit file using odin, but I do not have this file. My phone is the Note 4 SM-N910F Model. If I can do this through Odin then maybe this will resurrect the file structure and make this storage mountable?
* There may also be another option using ADB but I still don't know what commands to use.
Any help would really be appreciated as it seems there is some possibility of a fix. That being said my hopes are not that high...
I believe I may have fixed this. I would like to keep this up here in case in helps anyone in the future, I would imagine this is only useful for people who have encrypted their device. I'm not an Android expert so can't be responsible for any damage to devices or data loss etc.
It seems that the encryption must have gone wrong somewhat and this is likely to have impacted on the file system.
Although I couldn't wipe on the device, I was able in recovery to FORMAT data (not just wipe). Go to the wipe menu, then format. After this, reboot into recovery again and you should be able to mount again. It rebuilt the filesystem too.
This should be a quick fix that may help a few people with the issues with not being able to mount the file system. I hope this can help at least one person!
I managed to restore from my backup after and phone is now working. Thanks anyway!
Is there any way to set the default storage of play store apps to the sd card?

S4 running low on space

I have an S4 with OmegaRom v42 5.0.1 and as you can see below it is showing as internal memory almost full but I cannot find out where the space is.
when I updated from 4.3.1 to 5.0.1 I could still al ot of the old system files so I am guessing they are still around.
ES Explorer is not able to tell me where this wasted space is.
Is there anything I can do from recovery to clear some room?
Or another app which can tell me what exactly is taking up all this space?
Oh I also have FolderMount installed and I have some games which are stored on the SD card, that might be the reason for the erroneous size.
What recovery are you using?
I had a similar problem when going from GPE to CM roms and vice versa. Game data in the android/obb folder would disappear, but still use space. And I couldn't find it using a file explorer. Returning back to the previous rom (on which the game was downloaded) made the data reappear.
I also got the "system is running out of space" message from flashing a kernel (which was in beta).
TWRP
Pull all the data you can off internal storage and format the internal storage using TWRP's wipe option. Afterward, put all the items back on the internal storage.
Will I copy all internal data from within TWRP to memory card, wipe it, then copy back to internal also from within TWRP?
It's probably best to do it from within TWRP and its mount menu as that way none of your apps are running.
Post No. 3000. Yay me! LOL.

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.

Problems after extending SD Card as Internal memory- can't Backup (and others)

I have an unlocked bootloader, but I'm not rooted. I upgraded to MM via OTA and set my SD Card to be used as internal memory. I've had some problems since:
1) The first real issue is that Evernote is giving me a database read/write error and not working. It seems that to resolve that, I'll probably need to root. So, I went to do a MM nandroid before rooting
2) When i went into TWRP (i a had flashed 2.8.7.1-clark), and tried to create a backup, I received a Failure: E: Unable to mount storage (one note: the top of my screen shows TWRP 2.8.7.0, not .1, so i double-checked that i was using the correct version from https://dl.twrp.me/clark/, and I am. The file name is 2.8.7.1, but it appears on screen as .0. Is anyone else seeing this?)
3) When i go into the Mount screen and select storage, it is showing Internal as just 2+GB free (which is correct), but 0MB for my Micro SDCard. So, it can't mount it.
4) Looking around, the fixes for this seem to be a bit severe in terms of formatting the SD Card again, etc. (ex. http://forum.xda-developers.com/showthread.php?t=2354029)
So, my questions are:
1) If anyone knows of a solution to that Evernote issue, that would be great
2) More importantly, what my options are for fixing the Backup problems
3) Specifically, with my SDCard now supposedly acting as internal memory, if i format the card per the common fixes, will that cause other unexpected problems with apps and other functions that are now using my SD Card as usable storage?
How did you set SD card as internal storage. Me: stock, no root, MM
Sent from my XT1575 using Tapatalk
I'm giving up on combined storage until twrp is fixed.
You just go into settings, storage, then click on the SD card. I'm back to lollipop at the moment, so I cant say exactly what to do next, but I think from there it should be clear. It may be an option up in the overflow menu at the top right. It will make you reformat your card as part of the process .
Thanx Chuck! Need to b.u. before formatting as internal...
I had the same issue with the SD card set as internal, couldn't make a twrp backup, so I had to reformat as storage and it works. Only bad part is now I can't move apps to SD
Is there a twrp fix in the works??
chuck-fu said:
2) When i went into TWRP (i a had flashed 2.8.7.1-clark), and tried to create a backup, I received a Failure: E: Unable to mount storage (one note: the top of my screen shows TWRP 2.8.7.0, not .1, so i double-checked that i was using the correct version from https://dl.twrp.me/clark/, and I am. The file name is 2.8.7.1, but it appears on screen as .0. Is anyone else seeing this?)
Click to expand...
Click to collapse
I don't have MM installed, so I don't know about the rest of it. But I've flashed the 2.8.7.1 IMG twice now and my TWRP still says 2.8.7.0 on the top of the screen. So either we're both making the same mistake, or TWRP didn't update their version number in the recovery.
ScaryBugThing said:
I don't have MM installed, so I don't know about the rest of it. But I've flashed the 2.8.7.1 IMG twice now and my TWRP still says 2.8.7.0 on the top of the screen. So either we're both making the same mistake, or TWRP didn't update their version number in the recovery.
Click to expand...
Click to collapse
It's a known issue that the version displayed stays on 2.8.7.0 after updating.
Sent from my Moto XPE

Storage still full after clean install

I upgraded to the latest pure nexus rom last night and decided it's best to do a clean install. So I wiped everything but internal memory. Which only holds twrp backup (10gb) and ti backup (1.3gb) but after install out still shows I'm using almost 40gb on storage. Is there some sort of hidden folder that I'm not seeing that is holding a ton of stuff. I can only account for about less than 30gb being used. 10gb for OS, 10gb backup, and less than 5gb for ti backups and rom zips.
If you didn't wipe your /internal storage it would be logic everything is kept original.
Do a wipe of /internal storage and your storage space will lower.
therock3181 said:
If you didn't wipe your /internal storage it would be logic everything is kept original.
Do a wipe of /internal storage and your storage space will lower.
Click to expand...
Click to collapse
Right but even looking thru all my folders I don't see where it's adding up to 39gb being used. Only thing I have on it is twrp backup and ti backup and rom zips
r1nstang said:
Right but even looking thru all my folders I don't see where it's adding up to 39gb being used. Only thing I have on it is twrp backup and ti backup and rom zips
Click to expand...
Click to collapse
Did you download music from play music ?
therock3181 said:
Did you download music from play music ?
Click to expand...
Click to collapse
It's all cached never downloaded And I wipe cache anytime i flash a rom
r1nstang said:
It's all cached never downloaded And I wipe cache anytime i flash a rom
Click to expand...
Click to collapse
Then like I said. Do a internal storage format but do a backup of your TWRP and TI folder on your computer before.
Just a head ups. I always do an advanced format and check everything before doing a clean install. I don't restore/keep my backups. I am the type of guy that starts from scratch to limit the problems.
Any solution to your lost storage space issue? I've noticed that after copying my internal storage to my computer and then wiping internal storage in twrp it still show over 5.5gig storage used and I ain't talking about system use. When I plug my phone into my pc it shows 5.5gig used internal storage but when selecting all files and show properties only totals to less the 5meg. Now that's after performing an internal storage wipe in twrp.
I had experienced the same kind of issue on my tablet external storage. Sd was showing 8gig of 16gig used and when I plug that sd into my pc it would show the same. But after doing the select all files/properties it would show a total of less then 3gig. I moved all files to my pc, now showing over 5gig used but the SD is empty(no hidden files). Format my SD, now showing completely emplty, move my files back to SD, plug into tablet. Now showing less the 3gig used .
Obviously some lost/invisible data hiding somewhere that a quick format could fix but with the 6P you can't perform a true format. Twrp wipe does not format, just wipes.
StatikBlue said:
Any solution to your lost storage space issue? I've noticed that after copying my internal storage to my computer and then wiping internal storage in twrp it still show over 5.5gig storage used and I ain't talking about system use. When I plug my phone into my pc it shows 5.5gig used internal storage but when selecting all files and show properties only totals to less the 5meg. Now that's after performing an internal storage wipe in twrp.
I had experienced the same kind of issue on my tablet external storage. Sd was showing 8gig of 16gig used and when I plug that sd into my pc it would show the same. But after doing the select all files/properties it would show a total of less then 3gig. I moved all files to my pc, now showing over 5gig used but the SD is empty(no hidden files). Format my SD, now showing completely emplty, move my files back to SD, plug into tablet. Now showing less the 3gig used .
Obviously some lost/invisible data hiding somewhere that a quick format could fix but with the 6P you can't perform a true format. Twrp wipe does not format, just wipes.
Click to expand...
Click to collapse
Um, are you considering that you lose space for the os?
Also that 16gb card is right, you're not gonna get a full 16gb of storage. Most 16's end up being about 14gb after a format
Yes as mentioned in my post multiple time I am not talking about system storage use (OS). Especially when I refer to an external memory experiencing the same issue (completely wipe SD in twrp, plug same SD into PC, showing 5.5 gig still used on empty card, format SD, now showing completely empty on both PC and Android).
Not sure why, but somehow storage space gets lost, hard to explain. One would need to take the time to accurately compare what one has saved on internal storage and the amount Android says is used.

Categories

Resources