[FIX] Low internal storage w/ CM10, Slimbean, Hellybean due to Partition Error - Vibrant Q&A, Help & Troubleshooting

Note: This post has been updated with the solution. Please see end of post for original.
Warning: This following instructions are provided “AS IS” with no warranties. Please continue at your own risk.
Following the return of the datadata partition in Jellybean for the Vibrant (and Galaxy S variants), there have been a number of cases where users are faced with a low internal storage notification after a fresh install even with a full wipe. Due to a corrupted partition table, the /data partition formats to ~80mb instead of 1gb. This guide provides a fix to this issue. Following these steps will remove every partition from your internal SD, so Odin can make fresh ones from scratch.Doing so will completely wipe all data on internal sd (music, pictures, etc.), please make backups accordingly. Remove external sd before starting.
REQUIREMENTS
Working Galaxy S drivers on computer
Odin3 v1.85 that recognizes your phone
Stock JDF .tar image and stock .pit file: Please see Woodrube's sticky @ dev section.
Eugene_2E_JK2_Froyo.tar image: Please see Woodrube's sticky @ dev section.
Android SDK (only adb is required)
Access to CWM on current ROM
Make sure all drivers, adb, and Odin is set up prior to proceeding!
PROCEDURE:
Perform all necessary nandroid backups, internal sd backups, etc.
Connect phone to computer via USB, then reboot phone to recovery (cwm).
On your computer open up an elevated command prompt, and browse to the adb directory.
In command prompt type each of the following lines and press enter:
Code:
adb shell
parted /dev/block/mmcblk0
print
rm 1
rm 2
rm 3
This will remove all the partitions on your internal SD. To make sure, type "print" again, and check if there are any more partitions left. If there are, type "rm X", where 'X' is the number of the partition that is left.
Close command prompt and open up Odin.
On your phone enter download mode, and let Odin recognize the device.
On Odin, add the Eugene_2E_JK2_Froyo.tar file in the PDA slot, and hit start.
After the flash has succeed, the phone will reboot into recovery and warn you about internal storage not being ready. This is expected.
Pull the battery, and enter download mode again. Reconnect phone to your PC via USB if you have disconnected it.
On your computer, close and re-open Odin, and this time add the stock JDF .tar in the PDA slot, and the stock .pit file in the PIT slot. Make sure re-partition is checked, and hit start.
After the flash your phone will be running stock JFD will newly created internal SD partitions.
From here it is the usual matter of flashing cwm, then flashing whichever ROM you choose!
Major thanks to samsgun357, demetris_I, and 4x4fiend, for helping me to fix this issue.
Original:
---3rd October 2012---
Howdy folks,
So I updated from CM10 Nightly 9/16 to 10/3 on my T-959. When I check Settings>>Storage, Internal Storage shows total space as only 82.66MB. Available in said storage is a mere 19.85MB. It's a fresh install with the default kernel; I haven't even updated any of the apps yet. Is this to be expected?
I understand there has been some sort of partition remapping in the last few nightlies. But scouring through the official CM10 thread in the dev section, people are saying they have around 400MBs in theirs.
I flashed a couple of times with CM10 10/3 as well as SlimBean 2.6 (both have the same partitioning, I believe). Nothing really changes the total internal storage. When the updated start rolling in from the Play Store, for example for the YouTube app, I'm faced with the insufficient storage error.
Any help is appreciated. I'm new to the forum and this is my first post. If this is a n00b issue, please educate this poor soul.
Click to expand...
Click to collapse

Did you do a full wipe and format system?
Paranoid, sitting in a deep sweat...

samsgun357 said:
Did you do a full wipe and format system?
Paranoid, sitting in a deep sweat...
Click to expand...
Click to collapse
Sure did. I flashed it again, rebooting to recovery. I reverted to CM10 9/24. Total space under internal storage in Setting>>Storage shows 422MB. Is that the right amount for the older partitions? What am I doing wrong?
Alvi

CM10 roms now use that partition scheme, with ~400MB system partition.

eksasol said:
CM10 roms now use that partition scheme, with ~400MB system partition.
Click to expand...
Click to collapse
But see that's the problem. With the latest nightlies I am not seeing it. On CM10 10/3 I am getting a measly ~80MB of total internal storage, according to Storage in Settings. I'm seeing the ~400MB in nightlies before 9/26. Thanks for the reply.
Alvi

Same problem, i think
I've been having the same issue. Suddenly one day my phone couldn't mount the internal storage or the /mnt/emmc in cwm. Been trying everything, but nothing seems to work. My PC can only see the extSDcard too. Help! All my apps and photos were on the internal!

WeWantWok said:
I've been having the same issue. Suddenly one day my phone couldn't mount the internal storage or the /mnt/emmc in cwm. Been trying everything, but nothing seems to work. My PC can only see the extSDcard too. Help! All my apps and photos were on the internal!
Click to expand...
Click to collapse
Your situation seems a little different than op, what ROM and setup were you using when this started.
Paranoid, sitting in a deep sweat...

samsgun357 said:
Your situation seems a little different than op, what ROM and setup were you using when this started.
Paranoid, sitting in a deep sweat...
Click to expand...
Click to collapse
I'm using stock CM10 nightly. Keeping it up to date almost everyday. Please correct me, if I'm in a wrong thread, I'm quite new to xda, rooting and ROMs. If I'm at the wrong place, would you mind sending me to the right one?

WeWantWok said:
I'm using stock CM10 nightly. Keeping it up to date almost everyday. Please correct me, if I'm in a wrong thread, I'm quite new to xda, rooting and ROMs. If I'm at the wrong place, would you mind sending me to the right one?
Click to expand...
Click to collapse
You are fine, in the right section etc. I was just saying your issue with internal SD not mounting is different than the op having a "low storage error".
Anyway you are continuing to update with cm10 so your internal SD is okay. When I first read your post I thought you couldn't access the internal SD at all like with the EU bug.
Paranoid, sitting in a deep sweat...

samsgun357 said:
You are fine, in the right section etc. I was just saying your issue with internal SD not mounting is different than the op having a "low storage error".
Anyway you are continuing to update with cm10 so your internal SD is okay. When I first read your post I thought you couldn't access the internal SD at all like with the EU bug.
Paranoid, sitting in a deep sweat...
Click to expand...
Click to collapse
I don't know if it's the same and I'm not sure what the EU bug is. Updates doesn't seem to solve the issue.. Could you have a look on my thread and maybe see if you could help me out?
http://forum.xda-developers.com/showthread.php?t=1924932
thanks

Obviously your internal SD isn't corrupt or you wouldn't be able to flash cm10 nightly. In recovery /emmc is the external SD card I believe. So try to mount the /sdcard and see what happens.
The encryption unsuccessful (EU) bug is an issue galaxy s variant devices have experienced on ICS that completely locks/makes the internal SD card unusable. They have a work around to allow the device to use ext SD as the internal SD.
Paranoid, sitting in a deep sweat...
---------- Post added at 03:16 AM ---------- Previous post was at 02:47 AM ----------
Looking at your thread again I noticed an issue. You posted 1.97gb internal storage. It should be .98gb based on the latest cm10 partition scheme. Do a full wipe and flash a different JB ROM and see what happens or reflash cm10. Again wipe data factory reset, cache, dalvik cache, and format system then flash.
*don't try and format SD card or emmc in recovery, you will lose everything*
Paranoid, sitting in a deep sweat...

samsgun357 said:
Obviously your internal SD isn't corrupt or you wouldn't be able to flash cm10 nightly. In recovery /emmc is the external SD card I believe. So try to mount the /sdcard and see what happens.
The encryption unsuccessful (EU) bug is an issue galaxy s variant devices have experienced on ICS that completely locks/makes the internal SD card unusable. They have a work around to allow the device to use ext SD as the internal SD.
Paranoid, sitting in a deep sweat...
---------- Post added at 03:16 AM ---------- Previous post was at 02:47 AM ----------
Looking at your thread again I noticed an issue. You posted 1.97gb internal storage. It should be .98gb based on the latest cm10 partition scheme. Do a full wipe and flash a different JB ROM and see what happens.
Paranoid, sitting in a deep sweat...
Click to expand...
Click to collapse
I tried to boot in recovery, went to "mount" options and pressed the "mount sdcard" but it didn't change anything when i rebooted. My galley and camera app still says "no external storage available". And the "storage" setting still can't "mount SD card".
So full darvik cache and cache wipe and then which ROM?

I'm not sure if I asked but do you have a front facing camera?
I think you might have to Odin to stock and start over. Also my camera app stores to internal SD not ext SD. ????
Paranoid, sitting in a deep sweat...

samsgun357 said:
I'm not sure if I asked but do you have a front facing camera?
I think you might have to Odin to stock and start over. Also my camera app stores to internal SD not ext SD. ????
Paranoid, sitting in a deep sweat...
Click to expand...
Click to collapse
Yeah, I have the i9100, Galaxy SII model with front facing camera.
Hmm.. I was worried about having to full wipe or factory reset etc... guess I'll have to try.
And yeah, I've noticed that most ROMs can't use the extSD for saving pictures and downloads etc. You have to move to the extSD manually.

You have a gs2......then why are you in the vibrant threads?
You should do a factory data reset from recovery when flashing a new ROM....well at least with the vibrant. I'm not real familiar with the GS2.
Sorry....pm your rom dev or ask in your dev section.
Paranoid, sitting in a deep sweat...

Back on the OP, i face the same issue on a Captivate trying to run Slimbean 2.8 and 2.9 (haven't tried earlier versions).
Same 82.66mb internal, however "usb storage" accounts for the remaining space on the internal SD. I can install a few apps using Link2SD, but the internal still fills up with (what I assume to be) fragments of each app used for loading/cache (could be entirely wrong, fwiw)

Weird Partitioning
4x4fiend said:
Back on the OP, i face the same issue on a Captivate trying to run Slimbean 2.8 and 2.9 (haven't tried earlier versions).
Same 82.66mb internal, however "usb storage" accounts for the remaining space on the internal SD. I can install a few apps using Link2SD, but the internal still fills up with (what I assume to be) fragments of each app used for loading/cache (could be entirely wrong, fwiw)
Click to expand...
Click to collapse
I have the same problem when flashing Helly Bean (latest version). My partinions are somehow messed up and I aswell only have 82,66mb space for apps :S Tried reflashing, wiping system, flashing stock cm10. Every rom with the new partition layout seems to suffer from this.
Thanks in advance for help

Next time you flash, go to mounts and storage and format /system,
/data and /datadata.
I'm assuming you have a vibrant.
You should have almost 3gb of space between these partitions and the ROM itself with gapps shouldn't be much larger than 250mb if that.
I approve this message.

Messed up partitioning
samsgun357 said:
Next time you flash, go to mounts and storage and format /system,
/data and /datadata.
I'm assuming you have a vibrant.
You should have almost 3gb of space between these partitions and the ROM itself with gapps shouldn't be much larger than 250mb if that.
I approve this message.
Click to expand...
Click to collapse
I tried reflashing Helly Bean after formating /system /data and /datadata , the result was nonetheless the same as before :/ Also I own a SGS I9000, Looking at others on same rom I should have about 400 mb of storage for apps. Any idea what could have gone wrong?
Also I'm running Fishears version of CM10 now, it uses the old partition layout and that gives me ~400 mb storage, which actually according to a screenshot on the thread should be about 1,8gb.
Seems like all roms allocate most of my inbuild memory on usb-storage for some reason...
Thx for the help

Download storage analyser from the market and see what's in the partitions.
I approve this message.

Related

[Q] Completly wipe phone...

How do I Completly whipe my phone? I've cleared the cache, and done a factory reset, i've re-flashed with Odin to the stock rom, and yet, when I reboot, and go look under "My Files" , there is still crap there from before ( Most notably, 4 or 5 diffrent folders for Go Locker, Go STore.. etc ).
How do i clean this thing out for a 100% restart?
are the things your seeing on an external SD card?
No. The Directories are ( And i'm ommitting quite a few here, just to give you the idea ).
Android
Application
bluetooth
camera360
...
...
DCIM
external_sd
...
...
...
etc ad nausium..
So since i have the external_sd mount there in the middle, this must be the internal right? WHen I select the external_sd directory, that does contain my external card, and that's fine. I expected that to have stuff on it since i've not formatted it yet.
My DCIM dir still has all the pictures etc in it as well.... ( which I would not have expected since I did a factory wipe, yet there they are too ).
Any idea?
timgt said:
are the things your seeing on an external SD card?
Click to expand...
Click to collapse
He's saying he wants to wipe his internal SD because it has all his app data from previous ROMs/installations (such as stock). He's probably going to a new ROM and wants maximum storage space and getting rid of all the leftover trash.
Exactly. Just want to make sure the wipe is complete or previous issues will just haunt me.
Look in those folders they should be empty.....The phone creates the folders upon turning on (by factory),,those are the essential folders needed...check it out let us know...they should be empty
They all have stuff in them, and many are not from the os. GoLocker, GoLauncher, etc all have dir's there with data in them, all some , those in particular, i don't have loaded. I've not re-loaded anything yet.
Try going here; Settings > Storage > Format USB Storage
Thats the ticket Thank you.
Or in cwm recovery, go to mounts and storage, and format sdcard
clockcycle said:
Try going here; Settings > Storage > Format USB Storage
Click to expand...
Click to collapse
Can doing this cause any unwanted and/or unexpected problems?
Nope. It just wipes sdcard storage, like you just took it out of the box
studacris said:
Nope. It just wipes sdcard storage, like you just took it out of the box
Click to expand...
Click to collapse
I think I'm confused about erasing external sdcard storage and/or internal storage.
"Formatting USB Storage" is which one of these?
And which storage location can you get yourself into trouble with "wiping/formatting?
Maybe neither?
Thank you!
Neither as far as I could tell. I did both. The SD Card is just that, your external memory card. The USB is the "user" storage on the phone, so nothing critical there either. Wipe away safely
Neither as mentioned. As long as youre doing it do from the storage settings from within the stock rom's menus. It only wipes your user data on the external sd and internal storage, if you chose to do so. You may lose any programs installed/moved to sd card also.
Going into CWM youre opening yourself a whole 'nother can of worms. I highly do not recommend going this route if you are not 100% sure of what youre doing. You can seriously render your device useless, aka brick (a term used too lightly).
Sent from my SAMSUNG-SGH-I717 using Tapatalk
Incorrect.
All you could do in cwm is wipe the os.. In which case just button combo into recovery and flash a ROM.
A Brick is missing or corrupted bootloaders. you cannot format bootloaders in cwm.
And avoiding something because it could be dangerous...instead of taking the maybe 5 minutes to understand what's happening add ya know, actually learn something is just not in the spirit of xda AT ALL.
Read. learn. Try. Share.

[CLOSED]Format data/media (sdcard internal memory)

I apologize if this has been answered somewhere else here before. I have been searching for days and have not found the full answers to my questions anywhere.
Recently I updated my GT-P7510 CM9 to an experimental CM10 from by pershoot. After getting it up and running I was looking at my internal storage usage and numbers didn't seem to add up (must have done a dirty flash at some point in the past to cause this). My internal storage in root explorer showed 8.93gb in use and 28.01 total storage. I copied everything to a USB drive to back it up and noticed there was only 7.45gb actually on the internal storage. I have seen this problem before on my S2, and I always just reformat the internal SD card (emmc) to regain the missing space. However, since the tab does not have a micro SD slot, I have no way of wiping the internal sdcard (data/media) without wiping out the rom too from how I understand it. Somebody correct me if I am wrong...
So, does anybody know of a way to successfully wipe/format the sdcard (data/media directory) in CWM or other method that will not wipe out the rom and send the device straight to cwm with no way to install a new rom? Or do I have to revert back to stock to accomplish the format of sdcard like I have read for a few other similar situations? Everything works fine (CM10 & CM9 both run awesome), I just want that extra 1.48gb of missing/phantom storage back. And, without mass storage mode, I cannot perform a disk check in win7. This has really got me frustrated to find a solution without having to start over. I wish this tab had a micro SD slot!
Currently I am running CM9 nightlies (7-31) for p4wifi (gt-p7510). My cwm recovery is version 6.0.1.0. Any help is greatly appreciated, and I do apologize if this has been covered before. Thanks in advance to those of you smarter than I.
Click to expand...
Click to collapse
Ok, I seemed to have figured this one out and now feel pretty stupid for not digging a bit further before asking.
After I decided to go ahead with the sdcard format using CWM, I noticed that the space was still being used somewhere. After I started to dig a bit, I noticed that all of my apps still worked after the format. Basically, the extra space is being consumed by the /data/app folder housing all user apps. CWM must be designed to ignore this directory when formatting the internal sdcard which is why there was still some storage being used.
I feel like an ubernoob for asking this, but my S2's internal sdcard is not mapped to data/media, so I had to learn a bit better about how this thing works I suppose. Anyways, I hope this information can be useful to someone out there having similar questions.
bkress said:
I apologize if this has been answered somewhere else here before. I have been searching for days and have not found the full answers to my questions anywhere.
Recently I updated my GT-P7510 CM9 to an experimental CM10 from by pershoot. After getting it up and running I was looking at my internal storage usage and numbers didn't seem to add up (must have done a dirty flash at some point in the past to cause this). My internal storage in root explorer showed 8.93gb in use and 28.01 total storage. I copied everything to a USB drive to back it up and noticed there was only 7.45gb actually on the internal storage. I have seen this problem before on my S2, and I always just reformat the internal SD card (emmc) to regain the missing space. However, since the tab does not have a micro SD slot, I have no way of wiping the internal sdcard (data/media) without wiping out the rom too from how I understand it. Somebody correct me if I am wrong...
So, does anybody know of a way to successfully wipe/format the sdcard (data/media directory) in CWM or other method that will not wipe out the rom and send the device straight to cwm with no way to install a new rom? Or do I have to revert back to stock to accomplish the format of sdcard like I have read for a few other similar situations? Everything works fine (CM10 & CM9 both run awesome), I just want that extra 1.48gb of missing/phantom storage back. And, without mass storage mode, I cannot perform a disk check in win7. This has really got me frustrated to find a solution without having to start over. I wish this tab had a micro SD slot!
Currently I am running CM9 nightlies (7-31) for p4wifi (gt-p7510). My cwm recovery is version 6.0.1.0. Any help is greatly appreciated, and I do apologize if this has been covered before. Thanks in advance to those of you smarter than I.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1804824 Here's a topic about same problem,could say,U'll finde in replays all the information u need!
Vinchenzo13 said:
http://forum.xda-developers.com/showthread.php?t=1804824 Here's a topic about same problem,could say,U'll finde in replays all the information u need!
Click to expand...
Click to collapse
Although that is a similar problem, I asked if there is a way to fix it without going that route? I appreciate your reply, but I already knew it could be resolved by going back to stock (2nd paragraph of my post).
bkress said:
Although that is a similar problem, I asked if there is a way to fix it without going that route? I appreciate your reply, but I already knew it could be resolved by going back to stock (2nd paragraph of my post).
Click to expand...
Click to collapse
Ow sorry didnt notice few words,i think u could just flash a cwm via odin wich can wipe/reset all data if im not mistaking,
I'll chek this out is there any cwm'ds who can do that,coz i rememba reading one forum where guy was complaining that he did wipe and everything was formated!
Vinchenzo13 said:
Ow sorry didnt notice few words,i think u could just flash a cwm via odin wich can wipe/reset all data if im not mistaking,
I'll chek this out is there any cwm'ds who can do that,coz i rememba reading one forum where guy was complaining that he did wipe and everything was formated!
Click to expand...
Click to collapse
I can accomplish a full format of the internal sdcard on my galaxy s2 without it affecting the rom in any way whatsoever and it is running cwm 6.0.1.0 also. From how I understand it, the partitions are set up differently on the s2 and this device. The s2 has a separate partition for the internal sdcard making it possible to format via cwm. On this device, the sdcard is part of the data partition meaning wiping it will leave you with no rom installed and no storage on the sdcard. I think all versions of cwm can wipe the slate clean, it is just a matter of everything else being wiped clean also. But, if you are aware of a cwm that let's me accomplish this, I would love to find it. Thanks again.
galaxy s2
bkress said:
I can accomplish a full format of the internal sdcard on my galaxy s2 without it affecting the rom in any way whatsoever and it is running cwm 6.0.1.0 also. From how I understand it, the partitions are set up differently on the s2 and this device. The s2 has a separate partition for the internal sdcard making it possible to format via cwm. On this device, the sdcard is part of the data partition meaning wiping it will leave you with no rom installed and no storage on the sdcard. I think all versions of cwm can wipe the slate clean, it is just a matter of everything else being wiped clean also. But, if you are aware of a cwm that let's me accomplish this, I would love to find it. Thanks again.
Click to expand...
Click to collapse
I have the same issue .. I was manually formatted using my windows 7 laptop.. flash back to old stock samsung firmware.. still 4.11 GB internal USb storage instead of 11.8 GB.. Any help please..
I think it's possible with adb shell (the android sdk for Windows)
Have you seen that : http://forum.xda-developers.com/showthread.php?t=1003645
Sent with my GT-P7500 CM10

Internal SD card partition lost, help!

SOLVED - did a factory reset from inside CM9 and checked the box to format the sd card (god knows why this worked but the one in recovery didn't..also, why the hell didn't i think of this sooner? could have saved myself a week of searching)
while i was tinkering around trying to fix "mediaserver" (was killing my battery) i started to format my internal sd card memory (after backing it up)...for whatever reason i choose to do this via windows with the quick format off (wanted to scan for bad sectors and crap) then i forgot it was still running and unplugged my phone :facepalm:
novice mistake, i know.
anyhow, i've got adb up and running again, but i haven't been able to find a guide to fix it, or the info to bring up the partition tables, most sites give me specific commands to deal with the external card, but not ones to figure out how CM9\sgs2 is partitioned
ideally i'd like to just restore the partition, I do have backups if that's not possible though.
Phone is up and running fine minus that partition (which of course many apps rely on to store data, most don't have options to redirect it to my sd card.
any info on how CM9\sgs2 is partitioned or how to use ADB to find out would be greatly appreciated
Boot into your recovery and format your SD from within the recovery. That should fix it.
Lennyz1988 said:
Boot into your recovery and format your SD from within the recovery. That should fix it.
Click to expand...
Click to collapse
already tried that, the partition fails to mount, when i put my external sd card in the "sd card" partition mounts, but emmc doesn't (the sd card partition now being my external instead of my internal memory)
anyone even have a idea where i can find info on partitioning the internal memory? i've been searching as much as i can but i mostly only get link2sd pages, nothing on how to actually partition the internal memory
::edit:: i've made some progress, i've managed to install and operate parted via adb, but the version i have doesn't seem to support fat 32, i deleted then remade the partition but the phone still won't recognize it. cwm recovery is telling me "failed to mount /dev/block/mmcblk11 (invalid argument)" other pages seemed to imply that if i can get the partition to fat32 with a block size of 4096 it might work.
a factory reset from inside CM9 with the sd card format box checked did the trick, not sure why it took me a week of googling to figure that out :/ (wtb a facepalm emoticon)
"CM" you mean ?
CM = CyanogenMode?
CyanogenMod Kernel for Galaxy ?
"CyanogenMode" by installin from default ClockWorkMode? section of "Install ZIp from SD" ?
I need to re-partition Internal Memory too.
searched & found this your Topic.
would you please tell me what exactly has been done to fix re-partitioning internal memory?
maybe it can be so Important and Sticky.
Reza_Sadeghi said:
"CM" you mean ?
CM = CyanogenMode?
CyanogenMod Kernel for Galaxy ?
"CyanogenMode" by installin from default ClockWorkMode? section of "Install ZIp from SD" ?
I need to re-partition Internal Memory too.
searched & found this your Topic.
would you please tell me what exactly has been done to fix re-partitioning internal memory?
maybe it can be so Important and Sticky.
Click to expand...
Click to collapse
Actually, I have had the same problem, and if your device is not recognizing/mounting your internal SDcard, Bad news! You`ve lost it...
See this post for more details: http://forum.xda-developers.com/showthread.php?t=1665123
Next time think on a HTC or (even) Nokia, when you are about to purchase a new gadget (samsung, never ever more...:crying.
SociedadePsicopata said:
Actually, I have had the same problem, and if your device is not recognizing/mounting your internal SDcard, Bad news! You`ve lost it...
See this post for more details: http://forum.xda-developers.com/showthread.php?t=1665123
Next time think on a HTC or (even) Nokia, when you are about to purchase a new gadget (samsung, never ever more...:crying.
Click to expand...
Click to collapse
it's been a while, but it wasn't lost, i just had to repartition it, i described how i did this a few posts up.
i'm quite happy with my samsung sgsII, i'm not familiar with some of the other devices but i haven't run into any issues i can blame samsung for.
CM9 is exactly what i said it was, cyanogenmod 9. it's a whole rom package, not just a kernal

[Q] SGS2: Internal sdcard is not mounted after upgrade to 4.1.2

Hi,
Background story. It's long, and I am supposed to be brief, but maybe the stages I have been through trying to solve this matter (due to mishaps in upgrade process perhaps?) - so I'm giving it in full. Sorry in advance. I will note that I have done tens of Google searches on this problem, and the common denominator between all my findings were bugs in Custom ROMs such as CyanogenMod etc - where they have fixed it later. But I did not use any custom ROM, only original Samsung ROMs (at least as advertised). My device in Odin mode still claims to have an original Samsung FW, so I am guessing that assertion is correct?
So here goes.
I have been using 4.0.3 for quite some time. Then Samsung released an OTA upgrade, which failed to me during the reboot phase. I had a hunch (really a hunch, no proof), that this is somehow related to the fact that my device is encrypted, a feature that I have enabled after it was first supported, when I upgraded from 2.3 to 4.0.3 (OTA...).
Long story short, I tried to decrypt the device using the same menu I used to encrypt it. You would think that this would work, right? Well, it didn't. Just like the install, it got stuck at the very beginning, rebooted again, and the system was back as before (no data lost).
Last night, I felt lucky (oh, I was wrong), and tried the Decrypt again, probably the 10th time I'm doing it. This time it got stuck differently, eventually rebooting and giving me the 'swipe to unlock' screen (instead of 'enter decryption key'...). I though 'cool, it unencrypted the device...'. Wrong. After the swipe, got a blank screen. After some time, when I realized the thing is simply stuck, I rebooted through the power button.
Then I got Samsung's S changing colors... forever. Waited hours to no avail.
So I said, OK, let's try to just upgrade to 4.1.2, as this is what I wanted to do in the first place... at first I downloaded the "latest firmware" as advised by sammobile.com/firmwares/#firmware - which was from "Taiwan" and flashed it in download mode with Odin 3.0.7, by clicking on "PDA", selecting the MD5 file, seeing the verification was a success, and clicking "Start". . That seemed to work, and passed the "stuck S" stage, however I got a request for some password... in Chinese... couldn't really understand what it means, so:
I downloaded the I9100XWLSJ, which I understood is the latest for a European country (so I assumed it will be in English), which also succeeded the same way, and now I could understand the question - it was asking for my decryption password. I did actually guess this what the Chinese said, but alas, my decryption password did NOT work. And so it didn't on the English version as well.
I gave up my data. Went into bootloader, and wipe/factory default. Restart. Welcome to Android 4.1.2.
All seems to work well (OK, couldn't test the camera...), except for... the SD Card! It simply refuses to mount it as "USB Storage", as has always been. I tinkered with it for many hours (and even rooted my device for the first time...), and this is what I can say:
* The SD card is seen by the system, as external. Even though the SGS2 does not have an external SD port (unless I'm blind?). With a file browser, I can browse to it, play files from it, etc.
* Android seems to insist on using the internal card for everything. Opening the gallery. Opening the Camera. etc. Thus all those features currently do not work for me. I am merely guessing here that this is the reason, because apps say things like "Turn off USB storage before using camera" - as if the mountpoint is busy. And also - like I said - previously it was "USB Storage", for the best of my memory...
* The SD card seems to be mounted on /mnt/extSdCard or /storage/extSdCard
* The mount point /storage/sdcard0 seems to exist, and is symlinked from /mnt/sdcard, FWIW
* The SD Card is 8GB, from an old Nokia N85 phone
* Formatting the SD Card from the SGS2 didn't have any noticeable effect.
* A different SD Card [32GB] from an SGS3 running 4.1.2 shows the same symptoms
* I checked out /system/etc/vold.fstab, and in there I can see that:
Code:
# internal sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
secure_format = enable
discard = enable
supported_exfat = disable
}
dev_mount sdcard /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file
android_secure_containers = enable
}
dev_mount sdcard1 /storage/extSdCard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
Questions:
* Is my assumption correct, that this should be mounted as /storage/sdcard0? If not, and extSdCard is correct behavior, any suggestion why any app that needs the SD card says it does not exist, even though it's accessible to file explorers?
* If it is correct, any idea WHY this is happening, or, a workaround?
Much obliged!
-- Shimi
System is usb. Don't mess with this.
Int sd or sd card 0. Is what you save to internally. Most apps camera save to this. Ext sd is the removable sd card. S2 has prob moving things to ext sd. Try Apps2sd to do that.
Gt i9100
Alliance v7.2
Dorimanx8.11.1
Xxls8
OK...
ansrewwrightt said:
System is usb. Don't mess with this.
Int sd or sd card 0. Is what you save to internally. Most apps camera save to this. Ext sd is the removable sd card. S2 has prob moving things to ext sd. Try Apps2sd to do that.
Click to expand...
Click to collapse
I'm not trying to move things to the external sd card, actually. If what you say is true, let's forget the SD card altogether. After all, the device has a few GB's of internal memory, right?
I basically started scratch with 4.1.2. I click on "Camera", I get an error about USB. Why?
Have you wiped delv/cache. Try that first. Or try settings, apps, camera, clear data.
Gt i9100
Alliance v7.2
Dorimanx8.11.1
Xxls8
ansrewwrightt said:
Have you wiped delv/cache. Try that first. Or try settings, apps, camera, clear data.
Click to expand...
Click to collapse
Not sure what delv/cache is. Google doesn't show any reasonable stuff.
If you mean Wiping the cache partition in bootloader mode. I believe I had, at the same time I did Wipe Data/Factory Reset. But to make sure, I did it again now. That, did not help.
Clearing data on the camera did not help either. I will re-iterate that the problem is not solely with Camera, rather than anything that tries to use storage. Camera, screenshot, gallery, Waze (navigation app).
Maybe there's something wrong with partition that causes it to not be able to be mounted?
I have no problem with re-doing the partition table with Odin, but the FW did not seem to come with a PIT file, which is required for that...
Do you have a custom recovery? If so go into it and wipe cache and then advanced settings the wipe delv cache. May help. Tryed flash how many times? Some take two or three to work prop I read. May help.
Gt i9100
Alliance v7.2
Dorimanx8.11.1
Xxls8
ansrewwrightt said:
Do you have a custom recovery? If so go into it and wipe cache and then advanced settings the wipe delv cache. May help. Tryed flash how many times? Some take two or three to work prop I read. May help.
Click to expand...
Click to collapse
Apparently the root I did to the device did change the recovery ROM
So I wiped that cache partition (for the 3rd time ) - saw the newly added Advanced option, found what you were talking about (it's actually 'Dalvik cache' - Dalvik is I think the VM Android uses to run apps?) - cleared that too. There was also an option to fix permissions there, so I did that, and also to partition the internal SD card, I went for that too.
All did not help. I guess I'll go to re-flash.
So, the re-flash didn't help
So I went and re-wiped the /data partition.
Went through all the first time wizard again, and then I had a notification that the internal SD card is not ready, and if I want to format it (maybe due to the 10 things we did since the first install? )
Anyways, I of course confirmed, and now Camera works (and detects the external SD, and suggested to move to it automatically. Funny that they don't do that automatically when internal is not available?)
So, thanks dude! (assuming you're a male)
Yes male lol. No problem you sorted it.
Gt i9100
Alliance v7.2
Dorimanx8.11.1
Xxls8
I am also having this problem after upgrading my stock T-Mobile SGSII T989 from ICS to the Factory build of 4.1.2 Jelly Bean.
Now my SD card will never auto mount. I must go to Settings>Storage>Mount SD Card anytime I reboot my phone.
I just wanted to clarify what you did in the end and did it completely fix the problem. Was it that you re-formatted your SD card? Or did you have to wipe and re-install the OS?
ocdavid said:
I am also having this problem after upgrading my stock T-Mobile SGSII T989 from ICS to the Factory build of 4.1.2 Jelly Bean.
Now my SD card will never auto mount. I must go to Settings>Storage>Mount SD Card anytime I reboot my phone.
I just wanted to clarify what you did in the end and did it completely fix the problem. Was it that you re-formatted your SD card? Or did you have to wipe and re-install the OS?
Click to expand...
Click to collapse
Hi,
I believe your problem is NOT like mine. I didn't have an auto-mount problem. I couldn't mount at all - the card was not even recognized.
The solution appears to be re-formatting the /data partition, like I said. Because numerous firmware re-flashes with Odin didn't fix it, and immediately after the wipe and a reboot, it asked me if I want to re-format it. This may be due to remainings from my encryption ordeal... so I can't tell for sure, but the circumstances suggest that was it.

Android 4.3 storage issue

I installed various Android 4.3 ROMs (Carbon, SliemBean, PA, CM), and in all of them the internal and external storage did not work, but I saw that other people it does not happen anymore.
Is there a solution for this?
Is this a common problem for the 4.3 ROMs? Common among xt910 and xt912? Affecting both internal and external storage? Always? At random? Or any rhyme or reason?
Sent from my MB865 using XDA Premium 4 mobile app
I am also having issues with when I mount my phone as a USB storage device on my PC. The phone abruptly unmounts whenever I start file transfer. I am using PA 3.99 JB 4.3 rom. I will appreciate any help.
I also need help on this thread. Thank you all: http://forum.xda-developers.com/showthread.php?p=45217945#post45217945
"insufficient storage" after ROM flash
I just flashed android 4.3 ROM on my phone (phone is Infuse 4g, ROM is CM10.2 - 8/30/2013 - Butter)
after I have restored most of my apps w/ data using Titanium Backup, I don't have any storage left (according to notifications and phone storage information - couldn't update apps, and several apps couldn't be restored (restore process stopped at 94%)
when I go to settings > storage, there's message "Storage space is running out", Total space shown for internal storage is 1.28GB, Available is 9.44MB,
however, when I connect to computer it shows that I still have more then 9GB available on the internal storage.
when I was flashing ROM, I had to go back to ICS ROM, (I've lost root access ), then 4.2 Rom, then 4.3. it warned me that it will re-partition my storage, and I may lose any data - I agreed, as I had everything backed up. now I don't really have a storage
I assume it has something to do with partitioning, but I have no Idea how to fix it, or what is the best way go around it. please help.
http://forum.xda-developers.com/showthread.php?t=2456532
http://forum.xda-developers.com/showthread.php?t=2464308
I have a xt910 umts_spyder, internal sd card works on first boot
after the second boot the internal sd card stops working, external sd is working normal
happens with every 4.3 ROM, I already tried to reformat the internal Storage using a 4.3 ROM
Also note that they don't mount in /mnt anymore but in /storage as sdcard0 and sdcard1.
kattzenfleisch said:
http://forum.xda-developers.com/showthread.php?t=2456532
http://forum.xda-developers.com/showthread.php?t=2464308
I have a xt910 umts_spyder, internal sd card works on first boot
after the second boot the internal sd card stops working, external sd is working normal
happens with every 4.3 ROM, I already tried to reformat the internal Storage using a 4.3 ROM
Click to expand...
Click to collapse
thanks. I didn't see that same problem was listed already. will try to wipe cache/dalvic cache as it is suggested there. will report results later
it's really weird that nobody mentioned this problem on the developer's forum.
atyusha said:
I just flashed android 4.3 ROM on my phone (phone is Infuse 4g, ROM is CM10.2 - 8/30/2013 - Butter)
after I have restored most of my apps w/ data using Titanium Backup, I don't have any storage left (according to notifications and phone storage information - couldn't update apps, and several apps couldn't be restored (restore process stopped at 94%)
when I go to settings > storage, there's message "Storage space is running out", Total space shown for internal storage is 1.28GB, Available is 9.44MB,
however, when I connect to computer it shows that I still have more then 9GB available on the internal storage.
when I was flashing ROM, I had to go back to ICS ROM, (I've lost root access ), then 4.2 Rom, then 4.3. it warned me that it will re-partition my storage, and I may lose any data - I agreed, as I had everything backed up. now I don't really have a storage
I assume it has something to do with partitioning, but I have no Idea how to fix it, or what is the best way go around it. please help.
Click to expand...
Click to collapse
I've been using PACman V06 for a week or so now, no problems whatsoever. ext SD and USB mounting have been flawless.
As for the internal storage issue, when using Stock rom slot, or using a completely unaltered phone, the stock rom recognizes the entire internal storage, as the only partitioning are the internal storage, and the stock system partition. When you create a new slot, that rom only recognizes the partition it was created on as valid storage. This is to prevent changes to other rom slots inadvertently, I believe.
I have this issue only with some apps, titanium backup, root explorer are able to identify my intetnal. Last night I connect my phone to pc and the pc sometimes see my internal and sometimes the pc doesnt recognizes my internal...I use Slimbean for a week now. Its been doing great exept this internal thing. External storage is well recognized
Hello me...its me again...
are there any news on that problem?
kattzenfleisch said:
are there any news on that problem?
Click to expand...
Click to collapse
I have wiped cache/dalvic cache as it was suggested before... twice... didn't help at all
also, in the CWM Recovery I saw that sdcard0, sdcard1, datadata, system and data are "unmounted"... I have mounted them all, but it didn't make any difference either (I'm not sure if it would even make any difference, or these mount/unmount setting is only for CWM Recovery, because on the next boot into CWM everything but cache is unmounted again
any other idea on what can be done to fix it?
here's another update.
I've flashed different 4.3 ROM ([ROM][JellyBean][4.3][Official]BeanStalk Build 4.3.1015 - Updated 10/27/2013 - 4.3) - same issue. next day I went back to stock, and formatted everything I could (all but "android secure") - it didn't help either. Now I have Ginger Bread, with same partitioning problem - about 1.2 GB for system and apps, and about 13 GB for everything else (I removed microSD card for now.)
I used to have all apps in one spot, and they would take a lot more space then 1.2 GB... now I cannot restore all of them from backup (Titanium Backup Pro), as there is not enough space.
I don't remember having such partitioning before I flashed it with 4.3 ROM
any suggestion? have I missed anything?
atyusha said:
here's another update.
I've flashed different 4.3 ROM ([ROM][JellyBean][4.3][Official]BeanStalk Build 4.3.1015 - Updated 10/27/2013 - 4.3) - same issue. next day I went back to stock, and formatted everything I could (all but "android secure") - it didn't help either. Now I have Ginger Bread, with same partitioning problem - about 1.2 GB for system and apps, and about 13 GB for everything else (I removed microSD card for now.)
I used to have all apps in one spot, and they would take a lot more space then 1.2 GB... now I cannot restore all of them from backup (Titanium Backup Pro), as there is not enough space.
I don't remember having such partitioning before I flashed it with 4.3 ROM
any suggestion? have I missed anything?
Click to expand...
Click to collapse
there seems to be no update on that problem
here's good reply on this problem from another forum:
The Jack of Clubs said:
the infuse is older than the galaxy nexus so theres no datamedia or mtp. the 16gb storage is typically called the internal sdcard (nonremovable) because it acts more like an sdcard and doesnt share partition and storage with the data partition. the data partition is called internal storage, which on the infuse is about 2gb, though a little less on cm10.2 because the system partition was made bigger for newer versions of android. if your having low storage issues on the data partition, youre going to probably have to move some of your apps to the internal 16gb sdcard by going into settings > apps > on sd card and moving some of them over. i would not recommend moving over apps that sync or run in the background, but if you have a lot of games, those typically move fine. i would do that until you have atleast 400mb of the internal storage free. ive talked to araemo in irc how hard it would be to setup datamedia on the infuse to combine the internal sdcard and data partition. long story short, rather difficult and it would be too big a hit on performance.
Click to expand...
Click to collapse
to support this, here's my story: I have already went back to Froyo, and saw that internal storage is 1.8 GB, now I'm back to 4.3 ROM, and it's 1.26 again
looks like I always had it all partitioned, but I haven't noticed it until system partition got changed and internal storage became smaller.
it might not be true for all other phones, as they can be partitioned differently, but it's true for samsung infuse, and probably for a number of other samsung phones.
I have tried CM10.2 , PA RC-2 , slimbean , and even carbon 4.3 but none of these roms detect my internal storage
Gautam Padirooted said:
I have tried CM10.2 , PA RC-2 , slimbean , and even carbon 4.3 but none of these roms detect my internal storage
Click to expand...
Click to collapse
the problem also appears on CM11 (Android 4.4)
i need to wipe the /cache partition bevore every boot
then it mounts the storages, but if i don't wipe it it won't mount the internal storage
so the problem has to be on the /cache partition?
Hi,
I though this issue was happening only with the 4.3 based ROMs but that still happens even with CM 10.2 ROM.
That failure is not happening all the time, sometimes you just need to wait after the boot and there is the ext-sd again.
yes i think it happens very sporadically
I've got the sdcard unmounted issue with all android4.3 roms that i've tried. Device is XT910 and recovery was BMM 0.3.4. I will use the phone with safestrap 3.65 for a while to check if it's a rom or recovery thing.
Semseddin said:
I've got the sdcard unmounted issue with all android4.3 roms that i've tried. Device is XT910 and recovery was BMM 0.3.4. I will use the phone with safestrap 3.65 for a while to check if it's a rom or recovery thing.
Click to expand...
Click to collapse
I've tried SS, but nothing changed.,

Categories

Resources