how to format internal memory? - Galaxy S II Q&A, Help & Troubleshooting

I have some corrupt files on my internal memory,
first i tried to delete them from solid explorer but it cant
then i tried format usb storage and also format from cwm. it deleted all folders but except the corrupt files and the hidden folders so it is not a true full format.
I need to fully wipe the internal to get rid of these files, how do i do it?

You haven't mentioned whether you are rooted and/or running a cusROM or not. But to answer your question, flashing a firmware in Odin overwrites the phone partitions (afaik) and should format the affected partition.......
Edit....just seen you mentioned CWM....so I guess you are at least rooted....
So you have another option. In CWM go to mounts and storage....you'll find options to format various partitions....preload, cache, dalvic, data and eMMc if my memory serves me.....just remember to stay clear of any wiping if you are running ICS 4.0.4 and a basic (not included in a custom kernel) CWM. ....see eMMc brickbug....aka paperweight creator....
Sent from my Rooted, De bloated Stock JB powered S2 via PhilZ kernel and Tapatalk 2....

Hi, I have a similar problem with my phone : first a problem of dynamic langage with swiftkey, just after an error message about the database of root uninstaller, and then impossible to open the photo galery, with a message like "insuffisant memory space, etc..."
However there are 5Go of free space ....
So I run Avast and moved all important files from internal memory to the sdcard.
When I expected to move the backup files of MyBackup Root that the file manager looked like frozen. Impossible to move not to delete any file any more, and I can see plenty of corrupted files with very strange non alphabetic names inside the MyBackup Root directory.
I tried with no success :
- to delete all files in internal memory from a pc connected by usb, nor from terminal emulator, I get the message that it is read only (in su)
- to format from android parameter
- to reboot in recovery mode, then to format with CWM (v3.15)
- to perform a fsck_msdos
- to reboot in recovery mode, to run a e2feck
the fsck sees those corrupted files but cannot delete with error message like I/O Error
My Galaxy S2 works fine, except the internal memory that cannot be written.....
my questions is : How can a unfreeze my internal memory ?
Thanks.
GT-I9100 Android 4.1.2
base I9100XXLS8
Kernel [email protected] #57
version JZO54K.I9100XWLS8

Ok...sounds like you have a real problem there....
Now I'm not the most experienced Android user here, but to me, that sounds like a NAND read/write corruption (somebody correct me if I'm wrong)
My advice would be to read this thread thoroughly. ...
http://forum.xda-developers.com/showthread.php?t=1449771
and maybe ask your question there, but don't do anything else to your phone until someone there can confirm or deny the accuracy of what I've suggested......
Sent from my Rooted, De bloated Stock JB powered S2 via PhilZ kernel and Tapatalk 2....

Thank you very much for giving this wonderfull thread !
I wanted to be sure that a new flash with a partition will solve my problem.
Best regards.

No problem mate. ...just remember. ...don't do anything else to your phone until someone there has answered your questions.....
Sent from my Rooted, De bloated Stock JB powered S2 via PhilZ kernel and Tapatalk 2....

how to repair the corrupted internal memory after pit partition?
Dear senior members
i am using S2 Gt-9100g. Recently i tried to re-partition the internal memory by pit file of 6-8 gb via Odin and CWM recovery installed via PDA,simultaneously. i got 6 gb internal space for apps. then with the help of custom CWM recovery i successfully flashed the cm13 ROM and gaaps pico zip, then i reboot the system then i found out that my internal memory is corrupted so i hastily tried to format from my phone. This is where i made the mistake... now my phone runs smoothly but no internal memory . I tried to repair the internal memory by CWM recovery to format the internal memory but it won't detect any. I know it is wrongly formatted but it is there!
please senior members, help to regain the internal memory.
Thank you

tzn4free said:
Dear senior members
i am using S2 Gt-9100g. Recently i tried to re-partition the internal memory by pit file of 6-8 gb via Odin and CWM recovery installed via PDA,simultaneously. i got 6 gb internal space for apps. then with the help of custom CWM recovery i successfully flashed the cm13 ROM and gaaps pico zip, then i reboot the system then i found out that my internal memory is corrupted so i hastily tried to format from my phone. This is where i made the mistake... now my phone runs smoothly but no internal memory . I tried to repair the internal memory by CWM recovery to format the internal memory but it won't detect any. I know it is wrongly formatted but it is there!
please senior members, help to regain the internal memory.
Thank you
Click to expand...
Click to collapse
Format your internal sd or sdcard0 in "exFAT" format and try again, recommend use recovery TWRP or Isorec

Related

How can I erase the internal storage of my Tab?

Hi xda,
I'm not a typical android user and this was one of my firsts in messing around with my Tab 10.1. I have GTP7500 which I recently loaded up with CM10 and it's working fine except for the camera. Leave that and what I was going to say is that I'd like to remove my entire Internal Storage ( all the downloads, music, videos ) and stuff, i.e, like formatting the sd card. I'd like to know a way to format the internal storage of my Tab without affecting the system files as I don't want to create any troubles here. So, my questions are:-
1. Whether I can delete all the stuff shown inside the internal storage from my PC directly and would it affect the system? I cannot see any format option when I connect my tab to my PC so, I was hoping if I could manually delete all the files inside the storage and then doing a factory reset from cwm and installing the rom once again?
2. Or is there any app to do this?
3. Or if it is quite simple to do it the hard way, well, entering the fastboot and wiping the whole system (Read it somewhere before) and installing all the stuff again, then please do tell me that too. Otherwise, I'd go with the easy method, i.e, just format the internal storage.
Also, what about the format /sdcard option in the mounts and storages menu in CWM? I'm using CWM 5.5.0.4.
I think doing the "format /sdcard" in CWM should do what you are looking for as I have done that in the past. I would also temporarily back up the /sdcard contents onto your computer as a precaution in case an app was depending on any folders there, but I think it should be fine.
Thanks but still...
astrojo3 said:
I think doing the "format /sdcard" in CWM should do what you are looking for as I have done that in the past. I would also temporarily back up the /sdcard contents onto your computer as a precaution in case an app was depending on any folders there, but I think it should be fine.
Click to expand...
Click to collapse
Thanks for the quick reply. But would it remove other stuff including the boot files and other core files of Android? I've somewhere seen similar posts and whom did the format /sdcard but they proclaimed they lost whole files and had to do bootloader and install cwm and other stuff all over again to gain access. I've already managed to do format the sd card while installing the ICS official ROM for my tab but I did that via Samsung's recovery menu, i.e, one you get when installing their official ROMs and did a factory reset which erased all my internal storage files. But the same option won't remove internal storage in cwm. So, is format /sdcard the option to do this? I'd be glad to get a clear answer.
sangeeth96 said:
Thanks for the quick reply. But would it remove other stuff including the boot files and other core files of Android? I've somewhere seen similar posts and whom did the format /sdcard but they proclaimed they lost whole files and had to do bootloader and install cwm and other stuff all over again to gain access. I've already managed to do format the sd card while installing the ICS official ROM for my tab but I did that via Samsung's recovery menu, i.e, one you get when installing their official ROMs and did a factory reset which erased all my internal storage files. But the same option won't remove internal storage in cwm. So, is format /sdcard the option to do this? I'd be glad to get a clear answer.
Click to expand...
Click to collapse
Yep, format sdcard in CWM. It will only wipe the data stored there. Your bootloaders and ROM will remain unaffected, however I would still backup the sdcard to your computer before doing this just in case.
bkress said:
Yep, format sdcard in CWM. It will only wipe the data stored there. Your bootloaders and ROM will remain unaffected, however I would still backup the sdcard to your computer before doing this just in case.
Click to expand...
Click to collapse
I was wondering about this, too. Thanks for helping!
Sent from my GT-P7500 using XDA Premium HD app
The method above does work. However, if you really want to wipe the whole device completely clean, using Odin to flash stock firmware will blow it all out and make you factory-fresh in one operation.

[Q] Safely formatting internal storage

After some 2+ years of constantly changing ROMs, I've noticed that my i9100 shows more often than not the message of "your storage is getting full" or whatever it says. It does not work by clearing apps' data or even removing some of them because it ends up showing the warning soon. Also, factory reset has proved not to do much, since it just does a data wipe.
So I have decided to proceed with a format by entering Recovery > Mounts & storage > Format sdcard.
I just want to check first wether I will be able, after the format has finished, to flash CyanogenMod back from the same recovery (having placed it in the external SD card, which I understand is not formatted together with the internal storage) and have it working all ok, or the format will disable me from doing something else.
So my questions are:
That 'format sdcard' option in the Recovery means the internal storage, right?
The external SD card (the actual physical one) is not affected by the format, right?
Will I be able to flash CyanogenMod back again from the same Recovery after the format?
In case yes, any reboot in between the format and the flashing would brick my phone?
Help is much appreciated! :laugh:
jago84 said:
After some 2+ years of constantly changing ROMs, I've noticed that my i9100 shows more often than not the message of "your storage is getting full" or whatever it says. It does not work by clearing apps' data or even removing some of them because it ends up showing the warning soon. Also, factory reset has proved not to do much, since it just does a data wipe.
So I have decided to proceed with a format by entering Recovery > Mounts & storage > Format sdcard.
I just want to check first wether I will be able, after the format has finished, to flash CyanogenMod back from the same recovery (having placed it in the external SD card, which I understand is not formatted together with the internal storage) and have it working all ok, or the format will disable me from doing something else.
So my questions are:
That 'format sdcard' option in the Recovery means the internal storage, right?
The external SD card (the actual physical one) is not affected by the format, right?
Will I be able to flash CyanogenMod back again from the same Recovery after the format?
In case yes, any reboot in between the format and the flashing would brick my phone?
Help is much appreciated! :laugh:
Click to expand...
Click to collapse
well as i had flashed a lot of Roms too, maybe i can help you...i'll try!
after formatting sdcard, u wont lose ROM. u will just format your sdcard(12 gb i think).
1) i think the "format sdcard" option is supposed to mean the internal storage. but in some roms that i flashed, sometimes the sdcard mean the external sdcard and EMMC means the internal sdcard...so first take a look. go to install zip and select install from internal sdcard or external sdcard and look up in the screen, if it shows that u are in /sdcard or in /emmc, so u can know what sdcard are u really going to format
2) if u select to format the internal sdcard, it will only format the internal sdcard. nothing else.
3)well, as i said in the beginning, you won't lose rom in the format...u just formated sdcard, the rom and its stuff are still there, in the device storage(not sdcard or external sdcard, but in a card that is only for system/phone stuff(its like the phone has 2 cards. one u can use and send stuff(12gb) and the other one is for system files(2gb))
4) i think it would not brick it, since u just formated the sdcard, the rom is still on your phone but in the device storage, like i said above.
the ROM files arent stored in internal sdcard or external sdcard(those u can send files by usb), they are stored in the storage of the device that is only for system files. so if u do a format it wont affect Rom or Recovery.
hope it helped a little...cheers
Short notice from my side: I doubt formatting your sdcard will help to solve your original problem (low memory). This message appears if the /data space (those 2GB where all the system settings and application data are stored) is almost used completely. The easiest way to clean up this data is a system reset (which will make you loose all your data) or you need to look whether there are applications occupying much data there and remove these apps / tell them to store their data on /sdcard (if this is possible) or to selectively remove some log files / temp data. But in this you should be very careful, because removing the wrong data might cause strange system behaviour.
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
Short notice from my side: I doubt formatting your sdcard will help to solve your original problem (low memory). This message appears if the /data space (those 2GB where all the system settings and application data are stored) is almost used completely. The easiest way to clean up this data is a system reset (which will make you loose all your data) or you need to look whether there are applications occupying much data there and remove these apps / tell them to store their data on /sdcard (if this is possible) or to selectively remove some log files / temp data. But in this you should be very careful, because removing the wrong data might cause strange system behaviour.
Click to expand...
Click to collapse
I think that is not quite the problem I am faceing now. I explain myself: when I get that "storage almost full" message, if I check on Settings > Storage, the Internal Storage section (1,97 GB in total) shows an availability of only 205 MB and the bar is half full (see attached). First incoherence. I try to update any small app such as, for example, Bitcoin Wallet (1.3 MB) and it says it can't be updated because there is not enough space. Incoherent with the bar shown. Also, if I navigate to /data, it shows there is an amount of 2.31 GB inside that directory (incoherent with the amount shown by the Storage Manager. Other data folders, such as the one in /sdcard/data or the one in /data/data, are always smaller (3 MB and 425 MB respectively, also don't match any of the figures shown by the Storage Manager).
Some ROM installs ago, I remember I was able to install around 190 apps and no problem at all, and now I'm 160 and have to keep removing apps when I want to install more.
That's why I think my problem is not related to data, or fixed by a data wipe or factory reset. I understand there are too many files inside that are just lost from ROM to ROM, and not even the system know where do they belong to. It is running everything but fluent. I don't even remember what Project Butter is :silly:
RonDelonge182 said:
well as i had flashed a lot of Roms too, maybe i can help you...i'll try!
after formatting sdcard, u wont lose ROM. u will just format your sdcard(12 gb i think).
1) i think the "format sdcard" option is supposed to mean the internal storage. but in some roms that i flashed, sometimes the sdcard mean the external sdcard and EMMC means the internal sdcard...so first take a look. go to install zip and select install from internal sdcard or external sdcard and look up in the screen, if it shows that u are in /sdcard or in /emmc, so u can know what sdcard are u really going to format
2) if u select to format the internal sdcard, it will only format the internal sdcard. nothing else.
3)well, as i said in the beginning, you won't lose rom in the format...u just formated sdcard, the rom and its stuff are still there, in the device storage(not sdcard or external sdcard, but in a card that is only for system/phone stuff(its like the phone has 2 cards. one u can use and send stuff(12gb) and the other one is for system files(2gb))
4) i think it would not brick it, since u just formated the sdcard, the rom is still on your phone but in the device storage, like i said above.
the ROM files arent stored in internal sdcard or external sdcard(those u can send files by usb), they are stored in the storage of the device that is only for system files. so if u do a format it wont affect Rom or Recovery.
hope it helped a little...cheers
Click to expand...
Click to collapse
Thanks for your help, dude! Much appreciated.
Anyway, I feel that, if formatting sdcard does not wipe everything, maybe then what I need is to go Recovery > Mounts and storage > format /system, format /data, etc. All of them except for the actual physical sdcard (wether it is /emmc or /sdcard) and the directory in which the recovery "lives".
So I have new questions now:
If I formatted /system, would the phone be bricked or the Recovery would still allow me to install a CM ROM stored in the sd card?
Is there any of the directories shown in Recovery > Mounts and Storage that represents the actual Recovery partition/space?
There's no recovery partition you can format.
You can format system, preload, and data partition.
But flash a ROM right after.
There are flashable scripts (ROM wipe or ROM nuke) you can use. It does all the formats and wipes, and even back up some of your folders.
Envoyé depuis mon Nexus 10 avec Tapatalk
jago84 said:
I think that is not quite the problem I am faceing now. I explain myself: when I get that "storage almost full" message, if I check on Settings > Storage, the Internal Storage section (1,97 GB in total) shows an availability of only 205 MB and the bar is half full (see attached).
Click to expand...
Click to collapse
It's a known bug, that Android's performance is decreasing very much as soon as there is less than 10% free on /data. Additionally I wouldn't trust the graphics you see, because especially if you have man small files, the space occupied on "disk" is much higher than the file size. If they are only adding the file size of the files stored there this will be misleading. As far as I know the block size is 4kb, so each file takes at least 4kb of the memory. You can try to move some apps to /sdcard, but this works only to an external one, so you can free some space. Otherwise have a look on /data/system/dropbox or /data/system/usagestats if you can find some files which can be removed.
jago84 said:
Thanks for your help, dude! Much appreciated.
Anyway, I feel that, if formatting sdcard does not wipe everything, maybe then what I need is to go Recovery > Mounts and storage > format /system, format /data, etc. All of them except for the actual physical sdcard (wether it is /emmc or /sdcard) and the directory in which the recovery "lives".
So I have new questions now:
If I formatted /system, would the phone be bricked or the Recovery would still allow me to install a CM ROM stored in the sd card?
Is there any of the directories shown in Recovery > Mounts and Storage that represents the actual Recovery partition/space?
Click to expand...
Click to collapse
well, as Sergeileduc said, u can't format Recovery. so answering your questions:
1) yes, you would still be able to flash any other Rom, since formatting /system does not affect recovery. Wiping this partition will remove Android from the device without rendering it unbootable, and you will still be able to put the phone into recovery or bootloader mode to install a new ROM.
2) i dont think so...u can't format recovery...
hope it helped you...cheers!
well the 4rth question is no it wouldent brick your phone it will just hang at the galaxy s logo p.s thanks for helpin me on the other fourm
Just to add my own experience.....
Some months ago, my phone was suffering from poor performance (I was running CM10.1 at the time)
I decided to do a full format to totally "pristine" wipe my phone and start fresh. I copied a fresh version of the rom and gapps to my removable micro SD card and rebooted into CWM. I formatted cache, dalvic, preload, emmc and sd.....then just to be certain, I factory reset too.....
After that and while still in CWM, I flashed the rom and gapps and rebooted without issue......I believe this is what you want to do, so to answer your question. ...yes it is safe and possible to do this.....my phone is proof of that.....
Sent from my Rooted, De bloated Stock JB powered S2 via PhilZ kernel and Tapatalk 2....
keithross39 said:
Just to add my own experience.....
Some months ago, my phone was suffering from poor performance (I was running CM10.1 at the time)
I decided to do a full format to totally "pristine" wipe my phone and start fresh. I copied a fresh version of the rom and gapps to my removable micro SD card and rebooted into CWM. I formatted cache, dalvic, preload, emmc and sd.....then just to be certain, I factory reset too.....
After that and while still in CWM, I flashed the rom and gapps and rebooted without issue......I believe this is what you want to do, so to answer your question. ...yes it is safe and possible to do this.....my phone is proof of that.....
Click to expand...
Click to collapse
Thanks! Great feedback.
Just to complete my question, did you notice a significant performance improvement after the wipe-and-reinstall process?
It seemed to help a bit, but not as much as I'd anticipated. ..
Sent from my Rooted, De bloated Stock JB powered S2 via PhilZ kernel and Tapatalk 2....

[Q] Format EMMC by mistake - Please help!

I am a complete noob and got my lesson for messing up with my phone. I have an already rooted SGH i777 and was trying to flash OMNI Rom for 4.4. I wiped emmc by mistake. Although I did back my stuff up, they are no where to be found.I get cannot mount SD card error through CWM v6. I read somewhere that this is resultant of having no operating system in my phone anymore.
My phone is not recognised by computer. But I can access an external microSD card while booting recovery using CWM. Please help me as I am completely lost without my phone. You patience is deeply appreciated.
stupidnoob1 said:
...but I can access an external microSD card while booting recovery using CWM.
Click to expand...
Click to collapse
If that's the case, you should be able to put a rom on the micro SD card and simply flash it in recovery. You may have lost your backups, but if you can flash a rom via the SD card you ought to be fine.
Let us know if you need any more help,
sent from the i777
I'm not clear what you mean by "I wiped EMMC." Can you please describe exactly what you did, and describe the options you used if it was through recovery, which I assume it would have been.
If you put the phone into download mode while Odin3 is open on the desktop, does Odin3 recognize the phone?
FYI: TWRP file browser sees internal memory as "emmc". From the advanced wipe menu of TWRP, exists the option to wipe internal memory.
edit: really annoyed that I am limited to eight thanks at a PC, which has a much more comfortable interface than the XDA app, where I have unlimited thanks to offer my peers.
This is what happened
Dear all,
Thank you for your help. This is what I did. I tried to install Omni ROM for 4.4. I I downloaded the .zip file for the ROM and Gapps package zip and SuperUser zip. I went to CWM based recovery mode and wiped data/factory reset and wipe cache partition and in advanced wipe dalvik cache.( I did not run any wipe script as mentioned in this forum. I would have avoided all this if i actually paid attention and read the correct way of flashing here.)
I then went on to mounts and storage and did format/cache , system, data and preload. But also format /emmc
After that no ROM could be flashed and I could not access any recoveries. I realised my error when I saw the log that No files are found and couldnt open directory.
Update :
My phone is not recognized by Odin v1.85 and I also put a SAMSUNG_UCLE5.zip for SGHi777 given by a friend on to a microSD card and tried flashing that ROM from external microSD.
The log says:
I:Can't partition unsafe device: /dev/block/mmcblk1p1
I tried to partition just to see if it works. This time the log says
I:Can't format unknown volume :/external_sd. I never had an external sd card, but I gather that the system was partitioned in such a way that one chunk is considered external_sd.
Odin doesnt recognise it in download mode. I tried every USB port, changed data cables, tried different drivers available on Samsung website.
Please tell me I didn't ruin my phone. Any help is deeply appreciated.
stupidnoob1 said:
Dear all,
Thank you for your help. This is what I did. I tried to install Omni ROM for 4.4. I I downloaded the .zip file for the ROM and Gapps package zip and SuperUser zip. I went to CWM based recovery mode and wiped data/factory reset and wipe cache partition and in advanced wipe dalvik cache.( I did not run any wipe script as mentioned in this forum. I would have avoided all this if i actually paid attention and read the correct way of flashing here.)
I then went on to mounts and storage and did format/cache , system, data and preload. But also format /emmc
After that no ROM could be flashed and I could not access any recoveries. I realised my error when I saw the log that No files are found and couldnt open directory.
Update :
My phone is not recognized by Odin v1.85 and I also put a SAMSUNG_UCLE5.zip for SGHi777 given by a friend on to a microSD card and tried flashing that ROM from external microSD.
The log says:
I:Can't partition unsafe device: /dev/block/mmcblk1p1
I tried to partition just to see if it works. This time the log says
I:Can't format unknown volume :/external_sd. I never had an external sd card, but I gather that the system was partitioned in such a way that one chunk is considered external_sd.
Odin doesnt recognise it in download mode. I tried every USB port, changed data cables, tried different drivers available on Samsung website.
Please tell me I didn't ruin my phone. Any help is deeply appreciated.
Click to expand...
Click to collapse
This is beyond my level of understanding. I'm not sure what block 1p1 is. All of the partitions are designated as 0px where x is a number 1-15~.
I assume you've tried all the variables to get Odin to recognize the phone in download mode. Since Odin doesn't recognize download mode, I don't know of anything else to do but send it to someone with jtag equipement. It'll cost you maybe 40 or 50 bucks, but at least you can get your phone back. The person most trusted in the forums here for this sort of repair is Josh at Mobile Tech Videos.

[MOD][GUIDE][NOOB-FRIENDLY]Increase system partition size

Increasing system partition size
Since there is no official thread for increasing the system partition size (not data partition size as there is one already), I've decided to make a thread.
Disclaimer:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this tool
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Click to expand...
Click to collapse
This process will wipe all of your data off your phone. This includes all of your apps, system storage and internal sd card. It doesn't wipe your external sd card. Make sure to backup all of your apps and data to the cloud, micro sd card or onto a computer
Make a backup!! Why am I saying this again? Because there is always a few careless people who do this process and complain how they lost all of their data.
If you try to use the modified system partition with stock rom, your rom will not boot! You must revert to stock system partition sizes first then install stock rom!
What you need:
- A Samsung Galaxy S2 i9100 16GB International variant. You must have this model otherwise you will brick your device! Other models can use the lanchon repit tool.
- A kernel in .tar format. I highly recommend gustavo kernel as it doesn't suffer the formatting problem that dorimanx (using default recovery) or apolo kernel (TWRP) does. Pre-made files Update: DorimanX kernel supports isorec recoveries in the newest builds. Flashing a isorec recovery will remove this formatting limit and will be usable in all partition sizes.
- System pit files (Provided in the attachments)
- A PC (preferably Windows, if using OS X or linux, use JOdin instead!)
- A archiving/compression utility such as 7-zip or winrar. I recommend 7-zip because it is for free and it is open source.
- ODIN (to flash the kernel of course, again use JOdin for linux and OS X). Also, I have made ODIN installation easier with fewer options!
Benefits
Why do people increase the partition sizes? Here are some reasons why:
- Can allocate more storage space for more apps (removes the need for moving apps to sd card)
- Allows people to upgrade to android lollipop or marshmallow easier (if you don't want to go through any messages saying that there isn't enough space)
- Since it will delete everything, this will restore all lost space taken up by apps and other programs
- Gapps (Google Apps) will be much easier to install (you can choose larger gapps file if you want, only if you increase system partition). For CM12.1 and CM13, re-partitioning has become a necessity before flashing current gapps packages.
- Can fix soft bricks. However hard bricks can not be solved this way!
- Can fix problems with partition errors
Please note that this guide requires a PC and a working USB jack. If you don't meet these requirements, use lanchon's tool instead!
CM13 Nightlies have been released. Please note that the link to the premade .tar kernels are compatible up to Android Lollipop. You will still be able to repartition your device using Lollipop kernel! Since you will be reflashing or restoring CM13 during the process, marshmallow kernels are not required!
Instructions
Make a recovery backup (CWM or TWRP) onto your external sd card or PC (VERY IMPORTANT!!! All backups in internal sd card will be deleted so move them!)
Download the system pit files (attached in OP)
Extract the pit zip file
Open ODIN (Attached in the OP, JOdin for linux and OS X)
Connect your phone to your PC via USB while in download mode (make sure your phone is detected on ODIN, it should say COM:{number})
Click on the PIT button and locate and select your desired pit file
Click on PDA or AP and select your kernel .tar file (look at this post if you don't have one: Pre-made kernel tar Link)
Make sure that re-partition has been ticked then click start. If your phone successfully flashes, move onto the next step. If not, try changing usb ports, changing ODIN version, changing pit files or seeing if your device has a corrupt nand (or broken). If your memory chip is corrupt or broken, you won't be able to flash with ODIN (and you will need to buy a new motherboard). If you are still unsure what to do, look at the screenshot in the attachments.
Disconnect the USB cable. Take out your phone battery, then re-insert it.
Press and hold button combinations (home button + power button + volume up) to boot into recovery. You only need to hold for about 5 seconds.
If you have CWM recovery, go to mounts and storage then select format /sd card0 or /internal sd card. Select default and your internal sd card should successfully format. If not, try ext4 format. If you have TWRP recovery, you will need to go to wipe>advanced and select format emmc or /sd card0, then swipe to confirm . If you can successfully format your phone here, skip steps 11, 12, 13, 14. Note: DorimanX kernel doesn't support ext4 formatted sd cards. You will need to format your sd cards to vfat or fat32 for DorimanX kernel to detect.
----IF FORMATTING FAILS IN RECOVERY----
Connect your phone back to your PC.
If formatting sd card in recovery fails, connect your phone to your PC. While still in recovery (CWM), go to mounts and storage and select mount mass storage. If you have TWRP recovery, go to mount and select mount sd card. It should prompt you that the storage isn't ready yet and you need to format. If your PC still doesn't detect your phone, check if the proper drivers are installed (in attachments). Also, if your phone doesn't get detected and you've done everything in this step, try changing usb ports, computers and even usb cables.
Click format
You can leave all of the settings to default, I personally like to change the allocation size to 4KB (4KB is good if you want to make the most out of your phone's storage while having enough speed)
Click format.
----AFTER SUCCESSFULLY FORMATTING----
Go back to your phone. You can choose to restore from your backup or install a new rom. If you choose to restore from a backup, skip all of the remaining steps. (Note: DorimanX kernel recoveries can not format /data partition more than 2gb, use an alternative first when restoring a backup then flash back if needed)
In mounts and storage, choose format /data, /cache and /system (Note: DorimanX kernel recoveries can not format /data partition more than 2gb, use an alternative first then flash back if needed)
Now you can flash a ROM as you normally would
Huge thanks to ElGamal for providing the modified pit files and metalgearhathaway for providing the stock pit file and the.gangster for providing the 1.5GB system pit files.
I have included pit files that will resize your system partition to 1GB or 1.5GB (depending on your choice).
Data partition sizes range from 3GB up to 6GB. The rest is for your internal data storage.
Everything has been nicely labeled so please pay attention to which pit file you select!
I don't recommend using the 32MB Preload pits because they can cause problems with some ROMs.
If you get bootloops, flash a pit with a smaller data partition size!
Click to expand...
Click to collapse
I've also included ODIN and Samsung drivers in the attachments
Too difficult for you? Try Lanchon's flashable repartition zip
Followed this guide to step 10 (formatting with Apolo's kernel) but I was not prompted to format the SD... Windows does not recognize the phone anymore even though the phone boots to TeamWin's recovery just fine. Any ideas?
UPDATE: I flashed Gustavo's kernel as well and have the same problem: Windows does not recognize the device. It does make the beep-beep indicating a connection is being established and it does suggest that it's installing drivers (though they're already installed), and then tells me that it can't find the drivers for a GT-I9100 . I tried the same process on a completely separate machine with no joy. All help very, very welcome.
buddy1234567 said:
Followed this guide to step 10 (formatting with Apolo's kernel) but I was not prompted to format the SD... Windows does not recognize the phone anymore even though the phone boots to TeamWin's recovery just fine. Any ideas?
Click to expand...
Click to collapse
Have you tried formatting via recovery? Can you mount the sd cards manually? Try cwm recovery instead of twrp.
buddy1234567 said:
Followed this guide to step 10 (formatting with Apolo's kernel) but I was not prompted to format the SD... Windows does not recognize the phone anymore even though the phone boots to TeamWin's recovery just fine. Any ideas?
UPDATE: I flashed Gustavo's kernel as well and have the same problem: Windows does not recognize the device. It does make the beep-beep indicating a connection is being established and it does suggest that it's installing drivers (though they're already installed), and then tells me that it can't find the drivers for a GT-I9100 . I tried the same process on a completely separate machine with no joy. All help very, very welcome.
Click to expand...
Click to collapse
You know you can format sd card in recovery. Try that first. If your PC doesn't detect drivers for your phone, you will have to install them manually with the samsung USB drivers (in attachments). I've also updated the guide.
Thanks for the help! A couple of quick things:
- I installed the samsung drivers above before I started the process, I tried uninstalling them and re-installing and still no joy. At the moment, when I plug in the phone via USB cable I get three quick successive beeps (previously, running Lysergic's LP 5.0.2 this process was working fine and windows recognized the storage folder)
- what type should /sdcard0 be formatted to (ext2/ext4/ntfs...?)
- how does one mount the sdcard manually? I have looked around and there dosen't seem to be a 'guide' per se...
UPDATE: I formatted /data, /cache, /system, /sd card (using 'default' for formatting type) and couldn't find /datadata or /emmc... Windows still gives me three quicks successive beeps and does not recognize the device...
UPDATE2: After mounting both /sdcard and /usb connection in CWM recovery using Gustavo's kernel, Windows recognized the device and I was able to copy rom and gapps and then flash. I didn't realize there was an option to mount /usb connection (!).
i become the message: "E:Unable to mount '/emmc'
ok, I wanted to change my partition so that I can test lollipop.
But now I would rather do have the kitkat.
Now I have the problem that I can not access my internal memory. I can not load the EMMC. I urge you to help.
I have the pit file taken 1GB 3GB. What can I tuen to reload KitKat can. Also, I have since re these yellow triangle.
How can I register these unregistering.
Working <flawless>
Hi
This worked for my i9100P
Now i got 4Go for my apps
Running CM12 Beta13 from Lysergic Acid
All good for now
Many thanks
I followed all the steps and it worked. Now I have 1GB system, 4GB Data. There were a couple of bumps on the road:
- At first, Odin would show Fail!, but after I connected the phone in a different USB port, it worked.
- The first kernel I used was Apollo 8.3 TWRP but I couldn't either format or mount the internal storage in that recovery.
- So I repeated the procedure but this time using this Gustavo's CWM kernel for ODIN created by the OP, and in recovery I was able to format internal storage without issues (by the way, I selected default from the formatting options).
Thanks for the guide.
---Quote
I don't include pit files with modified preload partition as it can cause some phones to bootloop.
eoq---
Since only stock ROM is using preload partition, i quess it's safe... could you direct me to PIT file of (1GB system, 3 GB DATA, 45MB or less preload)?
thanks
nevermind...
when should I flash this mod? at stock ROM or at Lollipop
hey guys
because of the problems that my phone has at the moment I have to install the stock ROM and work my way up to Lollipop. When is it better to use this mod. Right after I go to stock or can I wait untill after I Have installed Lollipop?
gigley said:
hey guys
because of the problems that my phone has at the moment I have to install the stock ROM and work my way up to Lollipop. When is it better to use this mod. Right after I go to stock or can I wait untill after I Have installed Lollipop?
Click to expand...
Click to collapse
Best before installing LP as it will wipe data and SD 0
Please help, can't enter recovery
Edit: All seems to be ok. Maybe I was to stupid to press the buttons the right way... :silly: Maybe the Odin screenshot helps somebody, so I only hide my post instead of erasin it.
Hi folks,
I have read the tutorial more then once and I was sure that i can do all steps the right way. But now, after I clicked "Go" in Odin, I can't get my S2 to work. My phone booted up and I wanted to enter the recovery with Vol up, Home and Power, but it doesn't work.
I entered the download mode again an started the procedere for another time, but again, I can't enter the recovery.
Here is a Screenshot from my Odin
Thx in advance!
I've updated the guide a bit so it is easier to understand and so the formatting isn't as confusing as it was before.
Thnx
it was as easy as pie
any chance that the OP can provide or will do
a 1 or 2GB /system partition in addition to a 8GB /data partition?
vakkah said:
any chance that the OP can provide or will do
a 1 or 2GB /system partition in addition to a 8GB /data partition?
Click to expand...
Click to collapse
I honestly think there is no rom or gapps that will completely use the 1gb system partition. If you want 8gb data, you will need to flash the 8gb pit. I could make a pit like that but the chances are it may screw up people's phones.
no problem at all, much appreciated..
I have just over 300 apps installed and not enough space left on the 6GB /data partition..
if you can make me a 1 or 2GB /system partition with a 8GB /data partition, i will test/use it on my phone..
i am not worried about not having much internal /sdcard0 storage as i have a 32GB external /sdcard1 for pics, movies etc.
the more, the merrier for me..
just let me know when..
A little help please
I just followed the steps to increase my partition size and I flashed the 1gb_6gb pit file. All went good, I even managed to format all in CWM, I flashed my rom (which was stored in my external SD) and now, when I try to see my internal storage (with any file manager) I cannot see it. I checked under settings->storage and I have only 6 GB total storage..but I can't see it with any file explorer and even in Windows. And now, my camera doesn't work (on lollipop) saying that no SD has been found. It may be other things that do not work, but I didn't test more. Is it normal to be like this? Thank you for your great work
cardynal said:
I just followed the steps to increase my partition size and I flashed the 1gb_6gb pit file. All went good, I even managed to format all in CWM, I flashed my rom (which was stored in my external SD) and now, when I try to see my internal storage (with any file manager) I cannot see it. I checked under settings->storage and I have only 6 GB total storage..but I can't see it with any file explorer and even in Windows. And now, my camera doesn't work (on lollipop) saying that no SD has been found. It may be other things that do not work, but I didn't test more. Is it normal to be like this? Thank you for your great work
Click to expand...
Click to collapse
Not normal at all. What did you format sdcard0 as in CWM?
Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
Acid0057 said:
Not normal at all. What did you format sdcard0 as in CWM?
Sent from my GT-I9100 flowing on SwiftKey in Tapatalk
Click to expand...
Click to collapse
Yes, I did formatted sdcard0 in cwm as default. And I flashed again a new pit file 1gb_4gb and I followed again the steps, I also mounted usb and I formatted sdcard0 in windows and now it works. My internal storage is visible. Thanks!

[SOLVED]Low memory messages (Installing/updating apps)

Hi. I own a i9100 with a custom ROM. After I installed some apps i got the "Low Memory" message.Not a persistent one in the notification bar,only messages when i try to update/install apps. I get this on other roms too. As i searched the internet i saw that all of them have 2 internal storages (and SD card) and the first one always had 1.97GB free space. I have this problem with a 16GB i9100. My question is why my phone takes the first internal storage as primary and why are there 2 internal storages?
I did searched the forum and i found some threads with the *#9900# option but i get a message and can't enter. I will attach some screenshots.
Maybe a repartition will solve my problem with the 2 internal storages and low memory?
Thank you.
alexarg98 said:
Hi. I own a i9100 with a custom ROM. After I installed some apps i got the "Low Memory" message.Not a persistent one in the notification bar,only messages when i try to update/install apps. I get this on other roms too. As i searched the internet i saw that all of them have 2 internal storages (and SD card) and the first one always had 1.97GB free space. I have this problem with a 16GB i9100. My question is why my phone takes the first internal storage as primary and why are there 2 internal storages?
I did searched the forum and i found some threads with the *#9900# option but i get a message and can't enter. I will attach some screenshots.
Maybe a repartition will solve my problem with the 2 internal storages and low memory?
Thank you.
Click to expand...
Click to collapse
Welcome to XDA alexarg98!
There are two internal storages because the 2GB one is for apps, the rest is for personal usage (the one you can access with a file manager). This is so that the device makes sure that you have adequate space for apps, otherwise people will start complaining that they have no space because all of the storage is taken up by personal files. A repartition will certainly fix your problems with insufficient space, just make sure to follow the instructions carefully from this thread: http://forum.xda-developers.com/gal...es/mod-partition-internal-memory-app-t2538947 or this thread: http://forum.xda-developers.com/gal...ivatives/mod-increase-partition-size-t3011162
Note: You will lose all of your apps and you will need to reformat your internal storage so make sure to backup onto your PC or external sd card.
The *#9900# dial code is not available because you are using a custom rom, only stock based roms can access these *secret* menus.
regards, gsstudios
Thank you for your time and detailed answer. I will do the repartition and I will come back with the result.
Hey @gsstudios . I did try your way of repartition but when i formatted the sdcard,i got some errors like "unable to mount /emmc" . I wiped the /data /cache and /system and i proceed to the next steps. I did recovered my backup in recovery and again i got the "unable to mount /emmc" . Anyways my phone booted and now in the storage I have only one internal memory (6Gb) and my SDcard. My question is,do i have the other 10Gb for data? Or only my 6Gb. As long as my storage shows only that.
Thanks.
EDIT: I cannot put anything on my SD card or internal memory.. And Files app doesn't see my internal memory.
Although I can install apps.
I tried another .pit file / tried to format with CWM (succesfully) but i got the same problem with internal memory not recognizable in Files app or storage info in settings.
@alexarg
When did u format it ?
After or before flashing costom PIT file ?
U need to format it after flashing costom PIT file using costom recovery.
MikiGry said:
@alexarg
When did u format it ?
After or before flashing costom PIT file ?
U need to format it after flashing costom PIT file using costom recovery.
Click to expand...
Click to collapse
I flashed the .pit first and then i formatted. I followed the tutorial step by step.
alexarg98 said:
I flashed the .pit first and then i formatted. I followed the tutorial step by step.
Click to expand...
Click to collapse
What about using a different pit file? Which kernel did you use to format your internal partition? Did you try mounting your storage manually in the mounts and storage menu and format via your PC?
regards, gsstudios
gsstudios said:
What about using a different pit file? Which kernel did you use to format your internal partition? Did you try mounting your storage manually in the mounts and storage menu and format via your PC?
regards, gsstudios
Click to expand...
Click to collapse
Ok. So yesterday i did some tests and I found something to work out.
I used the 8GB .pit file , gustavo kernel and CWM Recovery.
Last time I flashed the CWM after the .pit and kernel, and yesterday i started all over and installed CWM and after .pit and kernel because i saw that CWM is able to format sdcard (internal). And so I was able to repartition my device.
Seems like TWRP can't repartition (at least for me).
So I wanna thank you @gsstudios for your time and guidance. And @MikiGry for helping too.
Have a good day.

Categories

Resources