[Q] Understanding Partitions ROM and Recovery on Android - Android Q&A, Help & Troubleshooting

Hi, I have a lot of questions about Android Filesystem, ROM and recovery, i read a lot on internet but i couldnĀ“t understand everything, I appreciate if someone take a little time to teach me the following questions:
These are the partitions I read there are on Android:
/boot
/system
/data
/recovery
/cache
so my first question:
1) why i cannot see on ES File Explorer or Link2SD, recovery partition? where is it?
When i wanted to enter into recovery automatically my phone was restored to the manufacturer status, and no menu was showed, so I have two more questions:
2) Does recovery restore Data and System partition or only clear Data partition and system is not changed?
3) If I open 'ROM Manager' and click on 'Flash ClockworkMod Recovery', will I have the famous menu to save a copy of my actual ROM?
In case i want to learn more about customs ROM,
4) Why everybody talk about to install it on SD? To flash a new ROM do not format the internal memory, I mean the actual partitions system, data, etc...?
5) Is there any way to change the size of these partitions?
from already thank you very much!!

Related

[Q] Flash Kernel Using CWM

I am posting here as there is not sub-forum for Xperia Pro.
I want to flash kernel using CWM already installed on my phone. Is it possible? If so, how do I go about it?
PS: I found a thread which is for Samsung phones here.
I don't think so
There is no way to flash a Kernel for SE phones faik
Were is our moderator!
Sent from my MT15i using Tapatalk
Can anyone tell me why kernel cannot be flashed via flash_image and the like. Is it because /boot partition is locked in Xperia phones? Or because the there is no proper flash_image made for Xperia phones?
That's something like ; doing a bypass surgery while you're awake
Something like that ^
Qwerty123 \m/ said:
That's something like ; doing a bypass surgery while you're awake
Something like that ^
Click to expand...
Click to collapse
I am not a complete nooby. flash_image can be used on (at least) Samsung phones, to flash kernels.
I have a nokia n900(linux kernel)...and i can flash kernels from the phone itself...dual boot maemo OS and android...restore the whole system image on the phone itself...but on neoV...it is not possible.
dont know about other android phones because neoV is my first android.
On PC you can update BIOS, on some motherboards you can do it from Windows, on others you can use some utility in BIOS setup program, on another motherboards you need true DOS and use BIOS flash program, same is with PC video cards, with PDAs...
ameer1234567890 said:
Can anyone tell me why kernel cannot be flashed via flash_image and the like. Is it because /boot partition is locked in Xperia phones? Or because the there is no proper flash_image made for Xperia phones?
Click to expand...
Click to collapse
Because SE xperia phones DONT HAVE recovery partitsion!
taaviu said:
Because SE xperia phones DONT HAVE recovery partitsion!
Click to expand...
Click to collapse
Exactly what does flashing a kernel with flash_image have to do with recovery partition?
ameer1234567890 said:
Exactly what does flashing a kernel with flash_image have to do with recovery partition?
Click to expand...
Click to collapse
The phone's internal memory (not the SD card) is solid-state (flash) memory, AKA NAND. It can be partitioned much like a normal hard drive can be partitioned. The bootloader exists in its own partition. Recovery is another partition; radio, system, cache, etc are all partitions.
Here are the standard partitions on an Android phone:
/misc - not sure what this is for.
/boot - bootloader, kernel
/recovery - holds the recovery program (either clockworkmod or RA recovery for a rooted Evo)
/system - operating system goes here: Android, Sense, boot animation, Sprint crapware, busybox, etc
/cache - cached data from OS usage
/data - user applications, data, settings, etc.
The below partitions are not android-specific. They are tied to the hardware of the phone, but the kernel may have code allowing Android to interact with said hardware.
/radio - the phone's radio firmware, controls cellular, data, GPS, bluetooth.
/wimax - firmware for Sprint's flavor of 4G, WiMax.
During the rooting process, a critical piece of the process is disabling a security system built into the bootloader that protects these partitions from accidental (or intentional) modification. This is what's referred to as "unlocking NAND." The security system can be set to active or inactive. S-ON means the security is in place (NAND locked). S-OFF means the security is off (NAND unlocked). When S-OFF, you have the ability to modify all partitions. With S-ON, you only have write access to /cache and /data. Everything else is read-only.
When you flash a custom ROM, that ROM typically includes a kernel and an OS. That means the /boot and /system partitions will be modified at a minimum. Some ROMs require a clean install, so a format of the /data and /cache partitions is sometimes built into the .zip that you flash. This is essentially doing a factory reset. See next paragraph.
When you do a factory reset (AKA: wipe, hard reset, factory wipe, etc.), you are erasing the /data and /cache partitions. Note that a factory reset does NOT put your phone back to its factory state from an OS standpoint. If you've upgraded to froyo, you will stay on froyo, because the OS lives in /system, and that is not touched during a factory reset. So "factory data reset," as it says under Settings > SD & phone storage, causes confusion. It's not a factory reset. It's a factory DATA reset. Now you know the distinction.
The SD card can also be partitioned to include a section dedicated to storing user apps. To create the partition, your SD card needs to be formatted. Typically a user will copy all the contents in the SD card to a PC hard drive, wipe the card and partition it, and then copy everything back.
Original http://www.addictivetips.com/mobile...plained-boot-system-recovery-data-cache-misc/
taaviu said:
The phone's internal memory (not the SD card) is solid-state (flash) memory, AKA NAND. It can be partitioned much like a normal hard drive can be partitioned. The bootloader exists in its own partition. Recovery is another partition; radio, system, cache, etc are all partitions.
Here are the standard partitions on an Android phone:
/misc - not sure what this is for.
/boot - bootloader, kernel
/recovery - holds the recovery program (either clockworkmod or RA recovery for a rooted Evo)
/system - operating system goes here: Android, Sense, boot animation, Sprint crapware, busybox, etc
/cache - cached data from OS usage
/data - user applications, data, settings, etc.
The below partitions are not android-specific. They are tied to the hardware of the phone, but the kernel may have code allowing Android to interact with said hardware.
/radio - the phone's radio firmware, controls cellular, data, GPS, bluetooth.
/wimax - firmware for Sprint's flavor of 4G, WiMax.
During the rooting process, a critical piece of the process is disabling a security system built into the bootloader that protects these partitions from accidental (or intentional) modification. This is what's referred to as "unlocking NAND." The security system can be set to active or inactive. S-ON means the security is in place (NAND locked). S-OFF means the security is off (NAND unlocked). When S-OFF, you have the ability to modify all partitions. With S-ON, you only have write access to /cache and /data. Everything else is read-only.
When you flash a custom ROM, that ROM typically includes a kernel and an OS. That means the /boot and /system partitions will be modified at a minimum. Some ROMs require a clean install, so a format of the /data and /cache partitions is sometimes built into the .zip that you flash. This is essentially doing a factory reset. See next paragraph.
When you do a factory reset (AKA: wipe, hard reset, factory wipe, etc.), you are erasing the /data and /cache partitions. Note that a factory reset does NOT put your phone back to its factory state from an OS standpoint. If you've upgraded to froyo, you will stay on froyo, because the OS lives in /system, and that is not touched during a factory reset. So "factory data reset," as it says under Settings > SD & phone storage, causes confusion. It's not a factory reset. It's a factory DATA reset. Now you know the distinction.
The SD card can also be partitioned to include a section dedicated to storing user apps. To create the partition, your SD card needs to be formatted. Typically a user will copy all the contents in the SD card to a PC hard drive, wipe the card and partition it, and then copy everything back.
Original http://www.addictivetips.com/mobile...plained-boot-system-recovery-data-cache-misc/
Click to expand...
Click to collapse
As I had mentioned before, I am not a nooby.
ameer1234567890 said:
As I had mentioned before, I am not a nooby.
Click to expand...
Click to collapse
Then show us HOW to install kernel via recovery?
Dont talk about Samsung and HTC option to install kernel via recovery. I have HTC Desire my second phone and yes i know there is option install kernel via recover(also im tested ALL desire roms and kernel already).
SE xperia have just different partitions layout and we simply cant flash kernel via recovery.....BUT i dont want tell you its IMPOSSIBLE.
Be nice and show us how to do that
PS:im tottaly noob.
Boot holds kernel and initrd not the actual bootloader, that is what should be writable. Provided the actual bootloader is not damaged it should be possible, however because there is no recovery partition it is riskier, but s1tool can restore bootloader......
Hmm
Sent from my MT11i using Tapatalk
I have S2(of course i have and xperia neo) and i dont flash with CWM i flash with odin or heimdall; CWM method is not sure.
In my opinion,and i'm NOT an expert, it easy to flash a kernel for xperia with flashtool or using fastboot from adb.
OK guys, you might have misread it. I am looking for a way to flash kernel not just using CWM (eventhough the title says so), but using any method without having to connect to a PC. One such possible method is to use flash_image in terminal, which does not work in my phone.
PS: The fact that I am not a noob doesn't make me a pro.

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] Understanding Internal Storage and /Data Partition

Hi everybody. First time poster. After 4 hours scouring forums and other sites yesterday, I never saw this precise question asked or answered.
I have an HTC DNA that I'm selling on Swappa soon. Of course, I wanted to wipe the internal storage. [I promise this isn't going to be a "What's the best way to wipe my device" thread,]
I ultimately went with:
1. Encrypt device
2. Fastboot Erase Boot, System, Data, and Recovery
3. Flash CWM Recovery
4. Format all partitions in CWM Recovery
4. Sideload ViperDNA.zip
5. Install ViperDNA.zip
And so here comes the question, in the future, shouldn't I just be able to format the /Data/ partition and be done with it? After all, if internal storage--the /SDCard/ partition---is found at /Data/Media, shouldn't a format of /Data/ wipe the internal storage?
If the answer is "yes," then why is there a second option in CWM for "Format /Data and /Data/Media (/SDCard)"? The second option seems redundant of simply formatting /Data/ (which would include /Data/Media). However, when I run the second format option--the one that explicitly references /SDCard/, it takes noticeably longer than simply formatting /Data. And that suggests that there's more going on with the second option.
Perhaps the answer is that when you Format only /Data/, the phone leaves /Data/Media alone. If that's the answer, then that all makes sense. But I haven't seen that stated definitively anywhere.
Thanks in advance!!
ThisAndroidDude said:
Hi everybody. First time poster. After 4 hours scouring forums and other sites yesterday, I never saw this precise question asked or answered.
I have an HTC DNA that I'm selling on Swappa soon. Of course, I wanted to wipe the internal storage. [I promise this isn't going to be a "What's the best way to wipe my device" thread,]
I ultimately went with:
1. Encrypt device
2. Fastboot Erase Boot, System, Data, and Recovery
3. Flash CWM Recovery
4. Format all partitions in CWM Recovery
4. Sideload ViperDNA.zip
5. Install ViperDNA.zip
And so here comes the question, in the future, shouldn't I just be able to format the /Data/ partition and be done with it? After all, if internal storage--the /SDCard/ partition---is found at /Data/Media, shouldn't a format of /Data/ wipe the internal storage?
If the answer is "yes," then why is there a second option in CWM for "Format /Data and /Data/Media (/SDCard)"? The second option seems redundant of simply formatting /Data/ (which would include /Data/Media). However, when I run the second format option--the one that explicitly references /SDCard/, it takes noticeably longer than simply formatting /Data. And that suggests that there's more going on with the second option.
Perhaps the answer is that when you Format only /Data/, the phone leaves /Data/Media alone. If that's the answer, then that all makes sense. But I haven't seen that stated definitively anywhere.
Thanks in advance!!
Click to expand...
Click to collapse
I dont see the point to encrypt the device
and second in twrp there is a "wipe internal storage" option that wipes the internal storage, cwm i think they just call it data
.torrented said:
I dont see the point to encrypt the device
and second in twrp there is a "wipe internal storage" option that wipes the internal storage, cwm i think they just call it data
Click to expand...
Click to collapse
Thanks for the input. The reason I think encrypting is good, is that it serves the purpose of overwriting the sectors with data (in this case, encrypted data). Of course, I know solid state memory isn't necessarily as susceptible to data recovery for failure to overwrite as magnetic media, but I wanted to be safe.
With regards to TWRP's "wipe internal storage" option, I'm sure that works well. CWM has something similar in the "format /data and /data/media" option.
However, my main question still remains. If Internal Storage is found on the data partition at /data/media, then does a format of /data (in CWM or fastboot) take care of the internal storage? I don't think it does (based on the two different options in CWM and the fact that formatting /data/ and /data/media takes longer than simply formatting /data), and I'm just trying to understand why.
ThisAndroidDude said:
Thanks for the input. The reason I think encrypting is good, is that it serves the purpose of overwriting the sectors with data (in this case, encrypted data). Of course, I know solid state memory isn't necessarily as susceptible to data recovery for failure to overwrite as magnetic media, but I wanted to be safe.
With regards to TWRP's "wipe internal storage" option, I'm sure that works well. CWM has something similar in the "format /data and /data/media" option.
However, my main question still remains. If Internal Storage is found on the data partition at /data/media, then does a format of /data (in CWM or fastboot) take care of the internal storage? I don't think it does (based on the two different options in CWM and the fact that formatting /data/ and /data/media takes longer than simply formatting /data), and I'm just trying to understand why.
Click to expand...
Click to collapse
well, since the sdcard is not external, one wipes everything but the sdcard and then the other will wipe everything including data/media
if you are doing a fresh rom install, you dont want to wipe the sdcard if you have any backups or the rom you are installing. thats where the wipe data comes into play, however when you want to go ahead and restore it to stock or just clean out the sdcard thats where the second one takes over.
Thanks for the additional thoughts. In my case, since I wanted to wipe everything, it made sense to do the /data and /data/media wipe.
I think we both agree about the difference between the two wipes. I think it's just a bit confusing that CWM's option to wipe /data doesn't really wipe that entire partition--instead, it leaves /data/media alone.

Delete android recovery system and use the space otherwise?

Hello,
Would it theoretically possible to delete the recovery system of android and use the space for example for data?
I mean, if you have SPflashtool, you would not need the android recovery, becuase you can flash the phone over pc,
if something is broken on the firmware, so why not deleting it, and use the space the recovery takes normally for other purposes?
Is the recovery system only needed for recovery, or has it other functions too (Booting the normal system for example)?
@Rufus0700
Partitions aren't resizeable on Andoid A-only devices, hence by deleting the mentioned /recovery partition one doesn't gain storage space that can get added/merged to another partition, for example /data partition.
jwoegerbauer said:
@Rufus0700
Partitions aren't resizeable on Andoid A-only devices, hence by deleting the mentioned /recovery partition one doesn't gain storage space that can get added/merged to another partition, for example /data partition.
Click to expand...
Click to collapse
But I think it would be possible to edit the partition table BEFORE flashing the ROM on the phone?

How I can restore partition size to original?

When i was uploading new rom, partitions connect to one. Many roms have a problems with this. Second partition has a 0MB size. I try upload stock rom by flashtool and no results. I want to restore original size. How I can do this? My phone is sony xperia lt30p.
What ROM have you flashed? Have you done a clean install, means having wiped existing Android OS before?
What's the name of the mentioned 0MB partition?
BTW:
Android comes with standard partitons as
/boot
/system
/recovery
/data
/cache
/misc
and their sizes basically are hardcoded.
Never have noticed, heard or read that when a ROM gets flashed a partition with size of 0MB will be created.
Name se
jwoegerbauer said:
What ROM have you flashed? Have you done a clean install, means having wiped existing Android OS before?
What's the name of the mentioned 0MB partition?
BTW:
Android comes with standard partitons as
/boot
/system
/recovery
/data
/cache
/misc
and their sizes basically are hardcoded.
Never have noticed, heard or read that when a ROM gets flashed a partition with size of 0MB will be created.
Click to expand...
Click to collapse
The name second partition is ,,sdcard". Tt isn't sdcard it is internal memory for photos and the like things
jareczex said:
Name se
The name second partition is ,,sdcard". Tt isn't sdcard it is internal memory for photos and the like things
Click to expand...
Click to collapse
Don't confuse /sdard and sdcard.
With regards to /sdcard:
This is NOT a partition on the internal storage memory of the device but rather the ( external ) SD card.
With regards to sdcard:
This simply is a symbolic link to device's /data/media partition what is mounted as /storage/emulated/0
And How i Can restore default memory this partition? Partition with external sdcard has other name.
OK it's the partition named /data/media you're referring to.
If a partitition shows 0MB ( can't get mounted ) then this is because it probably is encrypted. Hence decrypt it. The common method is to perform a Factory Reset. If you've TWRP installed / at your fingertips then decrypting also can be done with TWRP.
This phone is other than many phones
For me, everything you post is crazy stuff: I can not understand what the problem really is.
Since Android is on the market, it has more or less the same partition layout as shown above. And I'm pretty sure your phone has this, too.
I mean about problem, when i am installing rom, show me comunicat ,,Error instaling zip file 'external_sd/android9 sony t/open_gapps-arm-9.0-pico-20201114.zip" and i wanna get rid of this problem, across restore this partition. Do you know, what i have a mean?
My last 2 cents here: Open Gapps isn't a ROM. It's merely a suite of re-compiled Google apps.
FYI: I no longer participate this thread. I hope for you others jump in.
ok, thank you for your help. Information for other people: I can't install apps on this roms, so i want to restore this partition

Categories

Resources