Question about deleting partitions and boot - LG G2 Mini

Hi!
- I have LG G2 mini D620r with stock 5.0.2 Android. Phone has unlocked bootloader, is rooted and TWRP 3.0.2 recovery is flashed.
Few days ago I installed CM13 just to try it and then returned to stock OS. Before flashing custom ROM i used to wipe dalvik, system, data and cache partitions. Now my question is what would happen if I add interal memory partition to list of 4 aforementioned partitions? I know that it would delete all the data in internal memory (and that's what I want to do, because I want my phone to be like it was before it was used for the first time), but would it be able to boot up to OS? I don't won't to flash a kdz file or something like that.
- Also, I can't seem to enter recovery through button combination. I tried all combinations I could find on the internet. When holding volume down + power button for a few seconds i gat an option to hard reset the phone. Only way to get into TWRP is to use QuickBoot app. Anyone having any ideas what could I do?

Triggering a hard reset with a custom recovery installed boots into that recovery.
Wiping internal memory will wipe everything under /sdcard. Not the external one. The built-in one.
To do a complete factory reset, in recovery choose /data and format it as ext4. Don't simply wipe it, or it will leave everything under /sdcard there, while a format will delete them.
Sent from my LG-D620 using XDA Labs

Vagelis1608 said:
Triggering a hard reset with a custom recovery installed boots into that recovery.
Wiping internal memory will wipe everything under /sdcard. Not the external one. The built-in one.
To do a complete factory reset, in recovery choose /data and format it as ext4. Don't simply wipe it, or it will leave everything under /sdcard there, while a format will delete them.
Sent from my LG-D620 using XDA Labs
Click to expand...
Click to collapse
Well you just keep on helping!
Thanks.
Just to be clear these are the steps:
TWRP> Wipe> Advanced Wipe> select partitions: Dalvik, Data, Internal Storage, Cache, System
After that I go to:
TWRP> Wipe> Format Data> type yes
Is that correct procedure?
After all this has been done will my phone boot up to stock Android 5.0.2 or would I have to flash some kdz or custom ROM?
Where can I find option to format /data partition as ext4?

1. Yes your steps are correct.
2. Your phone will not boot up to Android because you don't have ANYTHING on your phone. You just wiped the rom that was running on it. There are a few threads that have flashable stock Android that you can use. Worst case scenario you can always flash kdz. HERE under Custom Rom>lollipop you will see links to [stock] zips.
3. Pretty sure formatting data will format it by default to ext4.

mobiusm said:
1. Yes your steps are correct.
2. Your phone will not boot up to Android because you don't have ANYTHING on your phone. You just wiped the rom that was running on it. There are a few threads that have flashable stock Android that you can use. Worst case scenario you can always flash kdz. HERE under Custom Rom>lollipop you will see links to [stock] zips.
3. Pretty sure formatting data will format it by default to ext4.
Click to expand...
Click to collapse
Thank you. I'm gonna try that and see how it works.

Related

About my phone file system

Hye everyone, my name is toby and I have a question..
Long a go after I bought sgs2 I try to remember, I think I've formatted this phone once using my laptop via usb. I plugged the phone, right click on my computer and format, I think it was NTFS file system. do you guys think this will have impact on the phone performance r/w or ROM? or will the sd partition won't work at all?
I'm asking this because I have installed ROM's and It lag and crashed a few times.. I think maybe this two connected.
Thank you..
p/s:f5,f5,f5,f5 waiting for some rom to update.
Yes the two are likely to be connected. If you formatted your sdcard as ntfs then I would presume that it is using the ntfs support in the Linux kernel to access it. However, NTFS is not a light fs, it is intended for heavy duty file work, and definately not suited for mobile devices. I'm not surprised it's causing your phone to lag.
I suggest you enter your phone's recovery mode and reformat your /sdcard partition, and if you have CWM just to be sure, do a full factory wipe, and format ALL partitions in the advanced section.
So...
mrnaz said:
Yes the two are likely to be connected. If you formatted your sdcard as ntfs then I would presume that it is using the ntfs support in the Linux kernel to access it. However, NTFS is not a light fs, it is intended for heavy duty file work, and definately not suited for mobile devices. I'm not surprised it's causing your phone to lag.
I suggest you enter your phone's recovery mode and reformat your /sdcard partition, and if you have CWM just to be sure, do a full factory wipe, and format ALL partitions in the advanced section.
Click to expand...
Click to collapse
So... everytime I wipe cache partition in cwm recovery mode, it reformat my /sdcard? so, I have nothing to worry right, because I always do the 4 steps of cleaning before installing, sorry, flashing new rom.
No. Wiping the cache does exactly that, wipes the cache. If you do wipe the cache, you'll find the first boot after you do it will take a bit longer than normal while the cache is rebuilt.
If you want to format your /sdcard, you need to go into mounts & storage in CWM.
thegreatdead69 said:
So... everytime I wipe cache partition in cwm recovery mode, it reformat my /sdcard? so, I have nothing to worry right, because I always do the 4 steps of cleaning before installing, sorry, flashing new rom.
Click to expand...
Click to collapse
Hm...
MistahBungle said:
No. Wiping the cache does exactly that, wipes the cache. If you do wipe the cache, you'll find the first boot after you do it will take a bit longer than normal while the cache is rebuilt.
If you want to format your /sdcard, you need to go into mounts & storage in CWM.
Click to expand...
Click to collapse
Okkkaay... Thank you sir..
Need Help with cwm
Hye, I can't find format /sdcard option in cwm Mounts & Storage Menu..
only have this formatting option:
format cache, system, data, secondrom_cache, secondrom_data, secondrom_system, external storage, internal storage.
and I can't mount /sdcard it say Error mounting /sdcard!
I am using CWMR Touch 5.5.0.4 btw.
P/S:Im not using any external mmc.

Using CWM formats before flashing new roms?

Hi
When you want to do a clean install of Windows OS, you all know that the right way to go is to format the primary partition first..
I was wondering: why can't we do the "same" in Android?
I've noticed that in CWM recovery there are many format options in addition to just doing Wipes...
So what if instead of doing the old Wipe data/cache and factory reset before flashing new rom, especially when migrating from Sammy to AOSP, we use the FORMAT function of the CWM recovery console?
So this bring up my new line of questions:
Which Formats are safe (as in terms of not bricking only, since we all know that we must backup first)?
Is Format data safe and recommended before flashing?
Is Format system safe and recommended before flashing?
Is Format SD card safe and recommended before flashing?
Does Format system erases the entire OS, meaning the ROM with it's kernel? If kernel is wiped does it mean that CWM will be lost upon next boot?
Same goes for Format SDCARD. Will this erase the entire internal memory? So the new ROM.ZIP should be placed in the external SD first?
I'd really appreciate if someone could answer all of the above questions
Many thanks
EB
If you don't have bad chip then all are safe. If you have bad chip then make sure you have safe kernel.
General steps before flashing a new ROM.
1. Backup your present ROM just incase
1. Wipe data/ factory reset
2. Wipe cache partition
3. Wipe dalvik cache (under advanced)
4. Format /system (under mount)
5. Flash your desired Rom/zips
6. Fix permissions (under advanced)
Notes:
- If you are moving from from an AOSP ROM to Samsung (vice versa), perform all the steps above.
- If you are upgrading / downgrading from one android version to another e.g ICS to jellybean or 4.0.3 to 4.0.4, also perform all the steps above.
- If you are upgrading from a Samsung ROM to another wipe the same android version, you may skip step 1.
- if you are upgrading your Aosp/aokp Rom with another with the same android version e.g 4.0.4 Aosp to 4.0.4 aokp, you may also skip step 1.
*******Important******
If you are presently running a Samsung based 4.0.4 Rom that is using Samsung based kernel e.g CF-ROOT or stock kernel, please flash Siyah kernel before performing any of the above steps. You will end up with ash unusable device if you don't adhere to this important information.
Swyped from my Samsung Galaxy SII
Jokesy said:
General steps before flashing a new ROM.
1. Backup your present ROM just incase
1. Wipe data/ factory reset
2. Wipe cache partition
3. Wipe dalvik cache (under advanced)
4. Format /system (under mount)
5. Flash your desired Rom/zips
6. Fix permissions (under advanced)
Notes:
- If you are moving from from an AOSP ROM to Samsung (vice versa), perform all the steps above.
- If you are upgrading / downgrading from one android version to another e.g ICS to jellybean or 4.0.3 to 4.0.4, also perform all the steps above.
- If you are upgrading from a Samsung ROM to another wipe the same android version, you may skip step 1.
- if you are upgrading your Aosp/aokp Rom with another with the same android version e.g 4.0.4 Aosp to 4.0.4 aokp, you may also skip step 1.
*******Important******
If you are presently running a Samsung based 4.0.4 Rom that is using Samsung based kernel e.g CF-ROOT or stock kernel, please flash Siyah kernel before performing any of the above steps. You will end up with ash unusable device if you don't adhere to this important information.
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
Thanks
Just 2 more questions:
1. what about format Format SDcard (internal)? Is it also safe/recommended? What does it do exactly?
2. can any of the the above formats delete the IMIE? Where i it stored? On internal SDcard? Will formatting it delete it?
Thanks
EB10000 said:
Thanks
Just 2 more questions:
1. what about format Format SDcard (internal)? Is it also safe/recommended? What does it do exactly?
2. can any of the the above formats delete the IMIE? Where i it stored? On internal SDcard? Will formatting it delete it?
Thanks
Click to expand...
Click to collapse
Formatting the Internal Sd card wipes all your data (music, photos, videos) on the internal memory of the phone.
Doing all those wipes doesnt affect the IMEI as far as I know...
Sent from my Galaxy S2 GT i9100
EB10000 said:
Thanks
Just 2 more questions:
1. what about format Format SDcard (internal)? Is it also safe/recommended? What does it do exactly?
2. can any of the the above formats delete the IMIE? Where i it stored? On internal SDcard? Will formatting it delete it?
Thanks
Click to expand...
Click to collapse
1. You're first question has been answered in the post before mine.
2. About IMEI:
-Your IMEI is stored in your root folder /efs inn your system reserved partition.
-Flashing Roms and kernel shouldn't mess with this folder but sometimes it happens.
-most of the Roms Agnes kernels made by recognized developers will backup your efs folder before flashing.
-too be on a safer side though, you can visit the thread below to backup your efs (imei) folder yourself before messing with your phone.
Look here: forum.xda-developers.com/showthread.php?t=1308546
Swyped from my Samsung Galaxy SII
Jokesy said:
1. You're first question has been answered in the post before mine.
2. About IMEI:
-Your IMEI is stored in your root folder /efs inn your system reserved partition.
-Flashing Roms and kernel shouldn't mess with this folder but sometimes it happens.
-most of the Roms Agnes kernels made by recognized developers will backup your efs folder before flashing.
-too be on a safer side though, you can visit the thread below to backup your efs (imei) folder yourself before messing with your phone.
Look here: forum.xda-developers.com/showthread.php?t=1308546
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
Thanks again
My problem is that I keep thinking in MS Windows terms.. I was sure that "Format SDCARD" is the parallel to formatting the entire "Hard drive", just like to delete the system partition..
Know let me see if I got everything right:
Format system is like deleting the Windows folder - no more OS (ROM)
Format data is like deleting all user account = deleting the "Programs data" folder in Windows - no more app data
Formatting SDCARD is like deleting the "Users" folder including "my documents" - no more user private data
So by using the 3 above formats, there is no need to do a Factory reset. But what about Wipe cache and Dalvik? shouldn't System format take care of those two caches? Or perhaps Cache and Dalvik are to separate partitions?
And for the few last question, so I can finally declare myself an Android expert :
(1) Format boot is a very bad idea right? It will delete the bootloader, meaning one must flash a rom that includes one of it's own?
(2) Are all roms intended for CWM flashing come with their own boot partition?
(3) So if Format boot is risky, I can conclude that the CWM recovery must be part of the boot partition right?
Many thanks for all the help. Once I get all of this right, I will feel confidant to start flashing roms on my own for the first time (I already got my phone rooted and CWMed by flashing Siyah kernel using Odin
EB10000 said:
Thanks again
My problem is that I keep thinking in MS Windows terms.. I was sure that "Format SDCARD" is the parallel to formatting the entire "Hard drive", just like to delete the system partition..
Know let me see if I got everything right:
Format system is like deleting the Windows folder - no more OS (ROM)
Format data is like deleting all user account = deleting the "Programs data" folder in Windows - no more app data
Formatting SDCARD is like deleting the "Users" folder including "my documents" - no more user private data
So by using the 3 above formats, there is no need to do a Factory reset. But what about Wipe cache and Dalvik? shouldn't System format take care of those two caches? Or perhaps Cache and Dalvik are to separate partitions?
And for the few last question, so I can finally declare myself an Android expert :
(1) Format boot is a very bad idea right? It will delete the bootloader, meaning one must flash a rom that includes one of it's own?
(2) Are all roms intended for CWM flashing come with their own boot partition?
(3) So if Format boot is risky, I can conclude that the CWM recovery must be part of the boot partition right?
Many thanks for all the help. Once I get all of this right, I will feel confidant to start flashing roms on my own for the first time (I already got my phone rooted and CWMed by flashing Siyah kernel using Odin
Click to expand...
Click to collapse
1) As far as I know, the boot partition is reserved for kernel. So, if you format it, phone won't be able to boot further than the initial Sgs2 logo. But it will still be flashable in Download mode.
2) If kernel is a part of boot partition, and most roms come with their own kernels, the you could say that the come with their own boot data.
3) If you format boot, you will also loose Cwm as it is a part of the kernel. Download mode would be still accessible as it is a part of the (secondary) bootloader which can be only overriden with Odin.
But again, I'm not 100% sure about this.
Sent from my Galaxy S2 GT i9100
Thanks
Jokesy said:
General steps before flashing a new ROM.
1. Backup your present ROM just incase
1. Wipe data/ factory reset
2. Wipe cache partition
3. Wipe dalvik cache (under advanced)
4. Format /system (under mount)
5. Flash your desired Rom/zips
6. Fix permissions (under advanced)
Notes:
- If you are moving from from an AOSP ROM to Samsung (vice versa), perform all the steps above.
- If you are upgrading / downgrading from one android version to another e.g ICS to jellybean or 4.0.3 to 4.0.4, also perform all the steps above.
- If you are upgrading from a Samsung ROM to another wipe the same android version, you may skip step 1.
- if you are upgrading your Aosp/aokp Rom with another with the same android version e.g 4.0.4 Aosp to 4.0.4 aokp, you may also skip step 1.
*******Important******
If you are presently running a Samsung based 4.0.4 Rom that is using Samsung based kernel e.g CF-ROOT or stock kernel, please flash Siyah kernel before performing any of the above steps. You will end up with ash unusable device if you don't adhere to this important information.
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
You saved a noob a whole lot of troble:cyclops:
I want to erase all my previous data in internal storage. More specifically, erase the OS and data (app data, user data, media, etc), then I'm gonna flash new ROM.
But of course, I don't want to erase boot system and recovery system.
1. Can I do above by using CWM - Mounts : format /sdcard ?
2. Does format /sdcard include format /system, /data, /cache, and wipe dalvik cache?
3. Is format /sdcard safe to do?
The answer !!!
immanuel77 said:
I want to erase all my previous data in internal storage. More specifically, erase the OS and data (app data, user data, media, etc), then I'm gonna flash new ROM.
But of course, I don't want to erase boot system and recovery system.
1. Can I do above by using CWM - Mounts : format /sdcard ?
2. Does format /sdcard include format /system, /data, /cache, and wipe dalvik cache?
3. Is format /sdcard safe to do?
Click to expand...
Click to collapse
I've found the answer here:
http ://www .addictivetips. com/mobile/android-partitions-explained-boot-system-recovery-data-cache-misc/
(eliminate all spaces, as I cannot post URL yet)
Now we know what to wipe or format (and what to not format)
immanuel77 said:
I want to erase all my previous data in internal storage. More specifically, erase the OS and data (app data, user data, media, etc), then I'm gonna flash new ROM.
But of course, I don't want to erase boot system and recovery system.
1. Can I do above by using CWM - Mounts : format /sdcard ?
2. Does format /sdcard include format /system, /data, /cache, and wipe dalvik cache?
3. Is format /sdcard safe to do?
Click to expand...
Click to collapse
To install a new rom, you don't have to wipe the internal sdcard, just wipe data & cache and navigate to advanced and wipe dalvik cache, and then to mount and format system, then flash your rom, or use TWRP it's easier, press wipe then advanced wipe and mark (data, cache, dalvik cache, system) and swipe to wipe, then flash your rom.
Ps: all app data is removed from internal storage (data in sdcard\android) when you wipe data, so you don't have to wipe internal storage

[Q] Completely reset i9100

Hello,
i really tried to find answers around before asking.
I have tryed different roms on my i9100, cm7, cm9, rr, miui. Now i have a tonn of folders from apps that are not even installed on my phone. Now what i want is to get rid of all the trash in my phone, like leftovers from apps i installed with previous roms and make a clean install of cyanogenmod 9.1.
How do i do that?
I would really appreciate any help. Tutorials, links, everything you guys can give to help me out.
Thank you
full wipe, install cm9, erase internal sd card
I normally do the wipes in cwm and format usb storage.
do the following and nothing of the old files will be left.
reboot to recovery
wipe data
wipe cache
mount and storage
format cache
format system
format data
mount cache
mount system
mount data
flash the rom
wait for the installation
Flash a samsung stock rom, keyin the following code using phone keypad *2767*3855# . Is a master factory format code.
Sent from my GT-I9100 using xda premium
Do this step by step :
1. to format internal and external mmc, connect your phone in mass storage mode and format each drive with windows format tool (right click on drive icon -> format)
2. to format flash memory go to recovery wipe data, wipe cache, wipe dalviq cache
3. Install rom
Cosmic Blue said:
do the following and nothing of the old files will be left.
reboot to recovery
wipe data
wipe cache
mount and storage
format cache
format system
format data
mount cache
mount system
mount data
flash the rom
wait for the installation
Click to expand...
Click to collapse
Thank yo very much! I didn't notice those formats in recovery before. That solved my problem.
/thread

Blowing in the cartridge

How much of the ritual of rom management is actually necessary and how much is just passed on wisdom based ultimately on nothing? Is there really any benefit to wiping a partition more than once, fo example? Some people suggest all sorts of voodoo to make sure a rom gets installed right and everyone is quick to blame a failure to follow the ritual perfectly for any shortcomings of the rom.
Just curious. Either way - it is interesting to have these flashing rituals. The ritual is different for each device.
Steps to flashing ROM -
1. Wipe all partitions ONCE (but make sure you wipe them all).
2. Flash ROM first, flash gapps if not included, then flash any other zips of apps/mods/whatever else that you need.
3. Done.
A lot of the tips that people give are misleading. You DO NOT need to wipe more than once. When you format a flash drive on your computer, do you format it 2-3 times just 'to make sure everything is wiped' or do you just format it once? Same thing for the NAND flash memory of phones/tablets. One format of the partitions will wipe them clean.
There's no such thing as a wait time for 'letting the ROM settle in'. You flash a ROM, reboot, wait for dalvik cache to rebuild, wait a minute or two after boot for all the auto-start apps to load (especially if you have a single core phone with low RAM) and use away.
You don't have to wipe cache+dalvik cache each time you flash an update of your ROM. Android automatically detects which apks have changed and rebuilds the dalvik cache only for them, rather than unnecessarily deleting the whole dalvik cache and rebuilding the same stuff again. Google 'android auto dexopt-ing' for more info.
You don't have to wipe cache+dalvik after flashing a new kernel, because those are for apps and aren't related to kernel.
The correct wiping order is -
1. Format /boot
2. Format /system
3. Format /data
4. Format /cache
Some devices have additional partitions so you would need to format them too if necessary, but for most devices these are the standard partitions to wipe. Some recoveries have a 'format all partitions (except SD card)' option which does all this at once, most recoveries require you to format them manually. In most recoveries, the option for formatting data is called 'Format data/Factory Reset'. This does the same thing as running Factory Reset in the phone settings, i.e. it formats /data and /cache. So depending on your recovery, you might not need to format /cache after formatting /data. Many people advise to format dalvik cache after formatting data. This is completely unnecessary. Dalvik cache is just a folder in /data and in /cache, so when you format /data and /cache or do a factory reset, it is wiped too. If you wipe dalvik cache after formatting those partitions already, you're doing nothing other than deleting a non-existent folder.
You don't need to 'calibrate' the battery after a new ROM flash. Battery calibration as it is called does nothing but delete a system file called batterystats.bin which contains info about the running apps, percent of battery they use and the battery history. This file is anyway reset whenever you charge the device fully, so you're essentially 'calibrating' your device each time you fully charge it.
https://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT
Last one, you don't need to fix permissions each time you flash a ROM/ROM update. Only run it if you're getting a lot of app FCs.
Sent from my Desire HD using xda premium
I agree with Sashank, use the order but personally (again my own personal preference) I boot the ROM first after flashing ROM /or GApps then I reboot back into recovery to flash anything that needs to be flashed. Also when using 4EXT Recovery (preferred/best recovery for our Desire HD) there's an option to wipe all partitions except for SD Crad, I usually use that 3 time to make sure my device is as clean as possible

[Q] No ADB from Recovery, hesitant to wipe /data

I currently have CM10.2 on my DNA. I had soft-bricked my phone previously and recovered it using RUU; from there I did the CM10.2 install.
I'd like to wipe my /data partition then push what's necessary to install CM11M8 because of the way it divides up the profiles, but I can't ADB from recovery even after trying the numerous driver fixes that have been mentioned in the forum (naked drivers, etc).
If I wipe /data, there's no OS to boot into and I can no longer ADB to push the files. What are my options?
Wiping data should not wipe out the OS.
You should just be able to put the file on internal storage, wipe and flash cm11.
Not sure I understand the dilemma.
santod040 said:
Wiping data should not wipe out the OS.
You should just be able to put the file on internal storage, wipe and flash cm11.
Not sure I understand the dilemma.
Click to expand...
Click to collapse
When I do "Format /Data" it wiped the OS. Am I missing something? Or am I only supposed to do "Wipe Data/Factory Reset?"

Categories

Resources