[Q] Custom MTD Partitions - General Questions and Answers

I was reading in the desire forums and saw this thread.
[DEV][S-OFF] Custom MTD Partitions (resize data, system, and cache)
I've always been disappointed with the small amount of space the Aria has for internal storage. Would it be possible to change the partition size of the aria to allow for more internal storage?

KillerBeaver said:
I was reading in the desire forums and saw this thread.
[DEV][S-OFF] Custom MTD Partitions (resize data, system, and cache)
I've always been disappointed with the small amount of space the Aria has for internal storage. Would it be possible to change the partition size of the aria to allow for more internal storage?
Click to expand...
Click to collapse
just use s2e or darktremors apps2sd and have all the internal storage you want lol

I had heard that battery life and r/w speed could be better on the internal. Is that incorrect? I thought it could be done relatively simply with a hex editor, but i'm not very knowledgeable in that specific department. So, that's why i wanted to ask.

Related

Internal Storage

I finally decided to apply a lag-fix to my phone. I used the RyanZA fix available in the market. I'm not exactly sure on the stock partition configuration on the Captivate but if I understand the lag-fix, an ext2 partition is created and the system files are moved to that partition.
Thinking ahead for when Froyo areives, I'm wondering if I can format all of my internal storage and reinstall a ROM. If I format the internal storage, do the necessary partitions need to be created manually or does installing a ROM create the needed partitions?
I hope this question makes sense. I'm fairly new to Android so execuse me if my terminology is off.
Thanks.

[Q] What are the benefits of formating the sd to ext/swap etc?

I'm a Linux user so I know what swap, ext2, ext3 etc technically means. What I don't understand is what are the *actual* benefits of formating my SD Card to these formats. I've run into a lot of guides and how-tos but no one cares to explain why to do it.
So to sum up:
Does the Android System actually cares if I create these formats?
If it does, will I notice actual increase in performance?
What about apps2SD?
What kind of format do you recomend?
I have an HTC Desire and I'm using CyanogenMod, Oxygen and MIUI in rotation (means I replace one with another every couple months).
Thanks in advance!
aventinus said:
I'm a Linux user so I know what swap, ext2, ext3 etc technically means. What I don't understand is what are the *actual* benefits of formating my SD Card to these formats. I've run into a lot of guides and how-tos but no one cares to explain why to do it.
So to sum up:
Does the Android System actually cares if I create these formats?
If it does, will I notice actual increase in performance?
What about apps2SD?
What kind of format do you recomend?
I have an HTC Desire and I'm using CyanogenMod, Oxygen and MIUI in rotation (means I replace one with another every couple months).
Thanks in advance!
Click to expand...
Click to collapse
Faster SD Card speeds for app2sd, thats mainly it. If you don't use A2SD there isnt much point to it, but if you do it can be very useful. What some people do though are format their System and Data partitions to EXT2 or EXT4 so then the whole system is faster all around and is a large improvement over stock rfs.
fowenati said:
Faster SD Card speeds for app2sd, thats mainly it. If you don't use A2SD there isnt much point to it, but if you do it can be very useful. What some people do though are format their System and Data partitions to EXT2 or EXT4 so then the whole system is faster all around and is a large improvement over stock rfs.
Click to expand...
Click to collapse
Ok so if make an ext partition, the apps that are stored in this partition will run faster. That sounds fair. Should I have both ext and FAT partions? And if I do, how does Android know where to put the apps? Also how about swap?
aventinus said:
Ok so if make an ext partition, the apps that are stored in this partition will run faster. That sounds fair. Should I have both ext and FAT partions? And if I do, how does Android know where to put the apps? Also how about swap?
Click to expand...
Click to collapse
No need for swap, and yes EXT is automatically recognized by android for a2sd, but make sure your ROM supports it. You would have an EXT partition between 256mb-2gb max, and then the rest would be FAT.
fowenati said:
No need for swap, and yes EXT is automatically recognized by android for a2sd, but make sure your ROM supports it. You would have an EXT partition between 256mb-2gb max, and then the rest would be FAT.
Click to expand...
Click to collapse
Ok! That was really eye-opening! Thank you so much!
no problem!

[Q] Internal memory?

I've been reading into this topic for two days now, and I still did not have what I need.
From the installer scripts, and such, I saw that almost every partition is mounted as /dev/block/mmcblk0p[n]. But teardown images show that the Transformer actually got a built in NAND memory(Kingston 16/32GB), not an internal SD.
So, my question is, which one is correct? Is it an SD card, a NAND chip, or what?
I think both are correct. I think there are 2 partitions on the nand, one for the os and the other one acts as an internal sdcard. Because when you wipe and factory reset the system, all the data on the internal storage are preserved.
Then why is the system partition referred as /dev/block/mmcblk0p1, and such? Staging can be understood, as it is the easiest to refer as such partition, but system, etc, are totally unnecessary, mtd partitions would be the most AOSP way :S
I mostly need this info as I'm setting up a CyanogenMod device tree, and for that there is a new switch (BOARD_HAS_INTERNAL_SD), and for that I have to decide how to go with...
Sorry I can't help you more. I'm just assuming. Hope someone can help you better.
RK3066 data sheet brief
fonix232 said:
I've been reading into this topic for two days now, and I still did not have what I need.
From the installer scripts, and such, I saw that almost every partition is mounted as /dev/block/mmcblk0p[n]. But teardown images show that the Transformer actually got a built in NAND memory(Kingston 16/32GB), not an internal SD.
So, my question is, which one is correct? Is it an SD card, a NAND chip, or what?
Click to expand...
Click to collapse
Could this help maybe?
HyperTextTransferProtocol://tabreview.ru/content/pdf_docs/RK3066_datasheet_brief.pdf

Custom parition size?

Hi all,
I have searched for an answer to this question for a couple days now and cannot seem to find an answer anywhere; at least one that relates to this device.
What I would like to know is if it is possible to resize the partitions on the my phone. I am looking to mod the size of the rom, cache, and data.
For instance I have cyanogenmod 7 installed (with latest tiamat kernel if that matters) and CM7 is only taking up about 152MB out of the system roms size of 575MB. I do not know how big my cache partition is but would be curios as to what tool could show me that too.
What i want to do then is shrink the amount of rom availible to CM7 to something closer to 170MB which would free up a fair amount of rom for cache and data.
Any ideas?
Thanks
You would have to make some major changes to the ROM and kernel. The easier way would be to get a large SD card and create SD ext partitions and use an apps2sd ROM. There is plenty of space though on our phones for apps and storage. The data partition is 1.1 GB and most roms will let you move apps to SD without extra partitions on card. Creating those partitions on SD will allow the phone to treat them like /data though.
Sent from my Inspire 4G using xda premium
Using Titanium Backup, you could also convert some user apps to system apps. This would move them to the rom storage.
Sent from my HTC Inspire 4G using Tapatalk

[Q] How to resize/recreate /system and /data partitions?

With all the lighter custom ROMs we have today, the default huge /system partition we have in the O3D is a waste of space. Same with the /data partition. For those who don´t know, both /system and /data (and other smaller ones) are actual internal SD Card space!
That´s why we have LG specs saying we have 8GB of internal flash storage, when in fact we have just 5.5GB available.
So my question is: is there a (safe) way to wipe all internal SD partitions and then recreate them with more appropriate sizes, earning back all the wasted space?
Thanks a lot!
Marcovecchio said:
With all the lighter custom ROMs we have today, the default huge /system partition we have in the O3D is a waste of space. Same with the /data partition. For those who don´t know, both /system and /data (and other smaller ones) are actual internal SD Card space!
That´s why we have LG specs saying we have 8GB of internal flash storage, when in fact we have just 5.5GB available.
So my question is: is there a (safe) way to wipe all internal SD partitions and then recreate them with more appropriate sizes, earning back all the wasted space?
Thanks a lot!
Click to expand...
Click to collapse
Have you read about data2ext? I think it would be a very good solution to us.
Sent from my LG-P920 using XDA App
Thanks for the reply, ThiaiZ!
However, I think I´m looking for something different: as far as I know, data2ext changes the /data partition pointer to external memory (SD Card), so the original /data partition will never be used by the OS, and it´s space will be wasted, right?
I would like to find a way to get this wasted space back! If we could repartition /system, /data, /cache, to smaller sizes, we would have more storage space for stuff on the internal SD. Does it make sense? Thanks!
Well, since I had no solutions here, I would like to post some examples of this for other phone models:
MyTouch 3G Slide - http://forum.xda-developers.com/showthread.php?t=893706
LG GT540 - http://forum.xda-developers.com/showthread.php?t=1171531
The MyTouch 3G Slide thread is particularly good because it explains in detail how to check the partition sizes, and shows how much space is wasted on the /system partition.
Marcovecchio said:
Well, since I had no solutions here, I would like to post some examples of this for other phone models:
MyTouch 3G Slide - http://forum.xda-developers.com/showthread.php?t=893706
LG GT540 - http://forum.xda-developers.com/showthread.php?t=1171531
The MyTouch 3G Slide thread is particularly good because it explains in detail how to check the partition sizes, and shows how much space is wasted on the /system partition.
Click to expand...
Click to collapse
Don't we have to be s-off to be able to resize the partitions ?
I did it a lot on my HTC Desire.
BTW do you have any idea in which block data and sd-ext are mounted on our device ?
I believe the S-OFF flag exists only in HTC devices. I read that somewhere here, at XDA. The guy seemed to know what he was talking about, and he said LG never implemented any kind of protection like S-ON / S-OFF.
About the block names, I believe you can list the blocks and the partition names they´re mounted as, with the "df" command. I know almost nothing about Linux, and even less about how Android manage it´s partitions, but that would be nice to be able to tweak their sizes...
LG GT540's partitions can easily be resized by flashing an MBN file. Don't know if this phone can get that done too
http://forum.xda-developers.com/showthread.php?t=1171531
Don't try resizing partitions.
You'll brick your phone.

Categories

Resources