[Q] Create custom partition layout? - HD2 Android Q&A, Help & Troubleshooting and Genera

My TMOUS HD2 has bad blocks on NAND starting at about the 492MB boundary. This has (probably) been causing the Sleep of Death issues with my current MyMIUI ROM. I can cope with this in one of two ways:
1) Keep all partitions below the 492MB boundary -OR-
2) Put the /data partition at 492MB or below and use DataOnExt to relocate /data to SD card.
In the past I've used dmesg output to determine where my partitions are bounded, but the myMIUI ROM doesn't appear to support this function. Is there a tool I can use to inspect my partition boundaries and/or create a custom NAND partition layout?

Related

[Q] I/O Performance boost

Hy all!
I found a very interesting post over at samdroid.net
My question is its possible to port this mod for our hero?
Link:
http://forum.samdroid.net/f55/i-o-performance-boost-migrate-your-spica-ext2-2218/
Info:
What does it do?
Reformatting /data as ext4 (as it needs journaling for safety), and /system as ext2(as it is mounted ro all the time).
Thx for the answer.
Regards
Wenner
It gives performance boost on Samsung phones because Samsung has it's own filesystem which slows down whole system. Reformatting it to ext gives boost because ext is faster. HTC Android devices has ext partitions as default so it isn't needed.
Wrong, on all counts.
The storage partitions on the HTC Hero and other devices is nand memory, not a block device. ext filesystem is designed for block devices. The filesystems on /data /system /cache etc are all yaffs2, a filesystem designed specifically for Memory Technology Devices like the NAND in our phones.
Furthermore, even if you could format /data, /system etc as a filesystem other than yaffs2 you'd have to do it from outside the ROM, either via recovery or hboot somehow. A journalling filesystem is destructive to flash memory because flash memory has a finite number of writes before it fails. You'd also have to have a custom kernel if the default kernel doesn't support the filesystem you want to switch to.
If you use old style apps2sd and therefore have a partition for it on your sdcard, they're set up to emulate block devices and you should use ext2 for the reasons pointed out earlier. sdcards are still flash memory at heart and thus journalling is destructive.
Thanks for explanation, but i have question - why we don't use yaffs2 for app2sd (which is designed for flash memory)?
And which is faster - yaffs2 or ext2? On Samsung devices reformatting whole system to ext2 gives performance boost (in comparision to RFS).

[Q] what is app2sd and please can you help me activate it ? ?

what exactly is app2sd??
I am using RAFDROID ROM on a TMOUS HD2
in the instructions he said that if I am using a euro HD2 with 512 rom I should partition my sd card
so I did not do that and flashed the rom on my NAND
then when I started using apps I noticed that after two weeks usage I have only 50 MB left!!!!
so I want to activate app2sd and move my apps to the sd card..
so please I need some help from the experienced users on this great forum that can advise me about what exactly is this and how to activate and use it
thanks in advance!!
Apps2sd moves your apps to the sdcard, usually to an ext 3/4 partition. I don't know about the ROM you're using, but on the one I use (mdj's Cyanogen 2.6), you can move apps to external storage like this: settings --> applications --> manage applications. Then select an app and there is an option to move to sdcard.
@freeincolorado, the method you described is not A2SD+, that method is called move2sd.
A2SD+ puts the dalvik cache as well as the applications in a EXT2/3/4 partition, usually called the sd-ext partition. This method will still show you that the application is in the ROM. However, the sd-ext is used instead, depending on the chief implementing A2SD+ in their ROM, the remaining ROM space is suppose to report the partition "sd-ext" free space, however, certain ROMs are not properly done in my view, and will report the userdata partition free space instead. Such as MDJ's Cyanomodgen 7+ Gingerbread.
How to use A2SD+
Usually, they require you to partition your SD Card into 2 primary partition. The first partition is FAT32 where you store all your extras, such as music, ebook, etc (Like how your SD card is presently used). The 2nd partition is EXT2/3/4 depending on your preference, most people do not use EXT2 anymore as it does not support Journaling, since data can be easily corrupted with a battery pull. EXT3 and EXT4 contains journaling feature, so when battery is pulled, data corruption is minimal.
NOT ALL ROMS SUPPORT EXT4. This is a kernel thing, so if the rom uses a kernel that does not use EXT4, then it will not read the partition.
A2SD+ has a nice feature as well, when you switch ROM, you do not need to re-install all the applications, since all applications are placed in the sd-ext folder, including the dalvik cache. However, this also includes the system default applications which might not be compatible with another rom build.

[Q] Partitioning MAIN NAND internal memory to fit build and give more data space?

Hello everyone,
is it possible to partition the MAIN memory (I mean the phone memory, not sd card) to fit the build I'm using perfectly? Like setting best size for boot partition, for system partition etc..., in order to have more space available for data internal partition?
I've found http://www.enfeuman.com/2011/06/01/how-to-fix-abnormal-internal-storage-space-on-htc-hd2/
but I really couldn't find an option in CMR to partition main memory.
If this is possible, can anyone tell me how? (I'd like it for my NAND ACA GB2.3.7 build)
And is it necessary to wipe the whole phone and do (flash) everything over again?
matoflash said:
Hello everyone,
is it possible to partition the MAIN memory (I mean the phone memory, not sd card) to fit the build I'm using perfectly? Like setting best size for boot partition, for system partition etc..., in order to have more space available for data internal partition?
I've found http://www.enfeuman.com/2011/06/01/how-to-fix-abnormal-internal-storage-space-on-htc-hd2/
but I really couldn't find an option in CMR to partition main memory.
If this is possible, can anyone tell me how? (I'd like it for my NAND ACA GB2.3.7 build)
And is it necessary to wipe the whole phone and do (flash) everything over again?
Click to expand...
Click to collapse
Wipe data
to set the partition sizes, try clk 1.6 and use fastboot commands to resize the partitions.
When you do this, you will have to re flash the rom.
Thanks, ill try that.
-----------------------------------
HTC HD2
ACA GB 237 CM7
kernel 2.6.32.15
NAND Android ROCKS!

Connection between the size of the System partition and partitioning with clk, etc.

There is a huge thread on how to move data from the System partition to the SD, but I think it is still not very clear (at least to me) why the system partition gets so full when installing new modern ROMs on the HD2. Every installation guide starts with partitioning in clk or magldr. For instance, the HexusHD2 ICS ROM has to have at least 170mb system partition. I made it 300 just to be sure and android says I have a total of 105mb internal storage. (I barely have place to install new apps, since android takes around 75mb of those 105mb)
My question is what is what is the relation between the system partitioning in clk and the size I get after the ROM is flashed. Will i have more storage if I partition clk to a greater figure- 450mb? ...or will it be vice versa?
thanks
archibrid said:
There is a huge thread on how to move data from the System partition to the SD, but I think it is still not very clear (at least to me) why the system partition gets so full when installing new modern ROMs on the HD2. Every installation guide starts with partitioning in clk or magldr. For instance, the HexusHD2 ICS ROM has to have at least 170mb system partition. I made it 300 just to be sure and android says I have a total of 105mb internal storage. (I barely have place to install new apps, since android takes around 75mb of those 105mb)
My question is what is what is the relation between the system partitioning in clk and the size I get after the ROM is flashed. Will i have more storage if I partition clk to a greater figure- 450mb? ...or will it be vice versa?
thanks
Click to expand...
Click to collapse
You've got it completely the wrong way around, the /system partition is where the actual OS is installed, so the smaller the /system partition, the greater the internal storage which remains, which is thus usable for apps.
Smaller partition = more storage.

Samsung RFS partition on external SD

Hey folks,
I tried to put the /data folder onto an EXT2 partition on my SD Card - with some kind of success. I've somehow managed to edit the init.rc script, mounting mmcblk0p2 instead of stl11. This worked initially - but after some software crashes and sudden power losses (phone falling, loosing battery), the EXT2 partition / files on the partition got corrupted. (Maybe I used the wrong options to mount the EXT2 partition? Can't recall these) This caused many apps - including stock roms - crashing on phone startup, rendering the phone unusable. Tried this multiple times, with the same outgoing result after some weeks of usage. I came to the conclusion, that this has to be a issue with caching / write buffering of some sort. Well IDK why there is data corruption when using SD - but no data corruption when using internal NVRAM. (Also tried different SD Cards)
Well now I asked myself - "why not simply try to use RFS partition instead of EXT2" to possibly avoid data loss due to caching / write buffering.
Is there a way to create a RFS partition on SD Card ?
GT-S6102, stock ROM, stock Kernel, XXMA3

Categories

Resources