[Q] internal memory partition questions - Desire Q&A, Help & Troubleshooting

I've rooted and S-OFFed my desire GSM and i'm running CM7.0.2.1. i want to use the alpha-rev internal memory partition table for cm7 but i saw that it only has 5mb of cache.
I read somewhere that the cache limits the size of apps you can download (if you have a 5mb cache, you can't download things more than 5mb from the market). Is that true? I guess there'll be a drop in performance if you come from a 40mb cache system, correct?
*EDIT just found that thread about making your own custom partition sizes: http://forum.xda-developers.com/showthread.php?t=806321*
I'm also thinking of making a custom partition with 130mb system, 40mb cache (same as stock), the rest for storage.
in that post, it says, "Create mtdpartmap.txt on SD card with size of system & cache, the example provided sets system to 125MB and cache to 5MB, this will depend on your ROM: echo "mtd 125 5" > /sdcard/mtdpartmap.txt"
does that mean just make a .txt file and inside just write a line that reads "mtd 125 5" ?
Thanks in advance!

I have cm7 hboot and download big apps like angrybirds (over 10mb) without problem despite the 5mb cache, only limitation connected to small cache i know is inability to flash radio from Recovery(you must do it from fastboot)
Sent from my HTC Desire using XDA App

Have a look at the partitioning using CM-7.0.2.1 and cm7 partitioning:
--- cut here ---
# df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 207632 32 207600 0% /dev
tmpfs 207632 0 207632 0% /mnt/asec
tmpfs 207632 0 207632 0% /mnt/obb
/dev/block/mtdblock3 133120 132948 172 100% /system
/dev/block/mtdblock5 313088 114740 198348 37% /data
/dev/block/mtdblock4 5120 1564 3556 31% /cache
/dev/block/mtdblock5 313088 114740 198348 37% /cache/download
/dev/block/vold/179:1
31154688 23073632 8081056 74% /mnt/sdcard
...
--- cut here ---
as you can see: if you use cm7 partitioning it uses the same partition for download cache and data - so there is enough space.

thank you!
Is there any noticeable performance drop when you are going from a 40mb cache to a 5mb cache?

helpmeroot said:
thank you!
Is there any noticeable performance drop when you are going from a 40mb cache to a 5mb cache?
Click to expand...
Click to collapse
I went from stock (40) to oxygen (10) - there isn't any change to performance, if you mean speed, responsiveness etc. because of the partition itself.
My phone is faster because of the rom and kernel though!

thanks. I'll flash the CM7 partition tonight
*edit*
i feel that the alpharev's way is too complicated (installing fastboot and things) and i end up doing the custom partition size way
now i have:
130mb system
40mb cache
267mb data
restored my nandroid backup, and everything's working. HURRAY!!!
thanks again everyone!

Related

[Fixed]Market "Insufficient Storage" HELP!!

everytime i try to download an app from the market
i get a "installation unsuccessful" with
"Installation Error Insufficient storage available"
im using VR12, apps2sd 200mb free, internal 80mb free...
ANYone have solution?? HELP!!
# df -h
df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 95.8M 0 95.8M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 170.0M 161.0M 9.0M 95% /system
/dev/block/mtdblock5 165.8M 87.0M 78.8M 52% /data
/dev/block/mtdblock4 130.0M 122.4M 7.6M 94% /cache
/dev/block/mtdblock4 130.0M 122.4M 7.6M 94% /data/dalvik-cache
/dev/block/mmcblk0p2 457.4M 225.4M 207.6M 52% /system/sd
/dev/block//vold/179:1
6.9G 4.8G 2.1G 70% /sdcard
is this normal?? cache and dalvik is always >90%
how can i expand dalvik storage?? or reduce the used space?? URGENT!! SOME ONE HELP PLZ!!
Maybe did you tried to clear market data from app settings?? Also AFAIK you can increase delvik size from cm setting (villain setting i think)....
Sent from my HTC Hero using XDA App
i doubt 2.1 got villain settings?? btw...i notice my /data/dalvik and /cache/dalvik both have the same file, is this normal??
i have found the solution, it appears to be the cache storage is full!! i had apply dalvik2sd to fix the problem!!
mod plz close this thread thx!
cet90 said:
i have found the solution, it appears to be the cache storage is full!! i had apply dalvik2sd to fix the problem!!
mod plz close this thread thx!
Click to expand...
Click to collapse
Maybe you can use some cache clearing programmes... you can use system info pro and clear the cahe if the problem was just the cache
Sent from my HTC Hero using XDA App

[Q] Changing size of Partitions?

Currently my partitions look like this:
df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 206.5M 0 206.5M 0% /dev
/dev/block/mtdblock4 40.0M 8.5M 31.5M 21% /cache
/dev/block/mtdblock3 250.0M 120.9M 129.1M 48% /system
/dev/block/mtdblock5 147.6M 70.7M 76.9M 48% /data
But when I next boot, /data/dalvik-cache will balloon to ~60MB so I'll be stuck with 15MB left of my data partition.
I was thinking, if I could take 100MB or so from my system partition and add it to my data partition, this would make everything much more awesome. I'm prepared to reformat my phone (currently using CM7-RC3) to do this, but have no idea how I'd go about it.
Also it'd be great if my /system partition mounted RW on boot (I've got Alpharev, etc)
Have you visited this?
http://forum.xda-developers.com/showthread.php?t=806321 <<< Custom MTD partitions

sd-ext/a2sd - 128mb free /data: insufficient memory

Perhaps I don't understand the purpose of sd-ext/4ext/a2sd etc [I'm sure this is the case!]
I'm running the Aurora v3 rom - basically a sense2.1 with an ext partition. I cannot understand why I've 128mb free in /data after installing pretty much all my apps yet I'm getting insufficient storage errors; I can't install anything despite having a lot of /data free- it seems if my sd-ext if nearly full I can't use my /data?
1. The rom's files flash to /system, and a few to /data. As it's large, we partition the sd card with a 4ext part of say 342mb for overspill of the system/data files.
2. If we change the hboot (to cm7) such that the /system is smaller - overflowing into sd-ext - we get a larger /data partition for apps on the internal memory. (I've done this for for Oxygen/Redux roms and had over 340mb /data with no sd-ext.) Thus alpharev say's we'd get 287mb /data.
3. This rom installs apps to /sd-ext, and/or /data[?]; in Android's App usage I'm reporting 152mb used, 135mb free (the 287mb /data?); and 128mb free storage.
4. 4ext recovery reports 1.7mb free of 342mb for sd-ext - it's full. Which makes sense if apps install to /sd-ext, but why not fill the internal /data first? adb shell df -h gives:
Code:
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock4 5.0M 796.0K 4.2M 16% /cache
/dev/block/mmcblk0p1 7.1G 4.5G 2.6G 63% /sdcard
/dev/block/mtdblock5 287.6M 159.3M 128.3M 55% /data
/dev/block/mmcblk0p2 331.3M 329.6M 1.7M 99% /sd-ext
/dev/block/mtdblock3 145.0M 122.8M 22.2M 85% /system
5. To me this means /data has 128mb free for apps; sd-ext is full with system files and apps - seeming to me that apps take space up on both /data and /sd-ext, duplicating space usage. Obviously I'm wrong on this but that's how I see my space disappearing lol Yet I cannot install any apps as I've insufficient storage.
6. Clearly I'm misunderstanding things after installing just 150mb apps and thinking I'd have 287mb of apps /data, not just /sd-ext: why shrink hboot's /system to make a large /data if the apps go to sd-ext?
7. I've not moved dalvik cache to sd as I thought I'd not need to given the seemingly large /data, and it's free amount. Clearly I can do so but why isn't my /data space available?
Sorry for long post and sounding dumb, I'm really trying not to be!
These Roms use sdext for both Rom and part of the apps and possibly dalvik too. Traditionally it would just be apps and maybe dalvik.
With these bigger roms, you need bigger ext to get the same. Yes when ext is full, you can't install anything. Maybe you need a bigger ext partition
Sent from my HTC Desire using XDA App
Thanks for the reply.
That's what I thought - I just cannot understand why I cannot use the free /data though; what's the point of changing to the CM7 hboot when your /data is limited to that of the sd-ext? Isn't it doubling up on storage use by apps, placing them in sd-ext and /data, and when one is full you can't utilise the other?
Sorry for sounding stupid, it just makes no sense to me.
btw I checked out your dGB, looks great. I do love miinimalist roms but also prize my Sense-720p'd camera!
No its not doubling up. The point is that /data/app and /data/dalvik-cache are symlinked to /sd-ext/app and /sd-ext/dalvik-cache.
However, /data/data where the libs, preferences and databases are, remain on /data/data
So when you install an .apk, it installs the app to /sd-ext/app, the dalvik is created on /sd-ext/dalvik-cache and the libs & db's etc will install to /data/data
If sd-ext is full, there is no where for the apk to go.
Thanks for clearing that up for me, I feel kinda stupid - I just couldn't get my head around it: why the nand wasn't being used for apk placement but I see they are split up and components spread over the combined sd-ext and /data. Thanks!
No probs. Not seen you on AF for a while?
OT
Android Forum? = xda? I've been offline a lot recently as this Indian Summer has made for some prime ultrarunning weather, but also takes a ton of time (by definition) although I've been rocking Redux/Aurora roms recently. Just been perusing the Desire forum today and there's been a ton of awesome rom progress since my last visit. I remember your help and work on Redux/thread/pm, great stuff. Still a beginner but it's very interesting learning this stuff, just also takes a lot of time for a non programmer!
Of potential note, 'found' a bug in gnu parted trying to partition out a 512mb 4ext sd-ext via 4EXTRecovery (madmaxx82 located it, I merely experienced it!) Always feels good to in a tiny way contribute

[Q] Is it possible to resize the internal partitions on the Play?

Apologies if this has already been asked elsewhere, but I got no search results on it...
I was checking partition sizes using Root Explorer yesterday, and the following is what I was seeing:
Data: 380MB, 65.11MB free
System: 312.5MB, 83.02MB free
Cache: 225MB, 1.31MB used
This works out at around 1GB of internal storage, and on my phone, over 300MB wasted between system and cache partitions. Is the large cache partition there for downloading all that extra game data, because it seems needlessly large otherwise?
The big question though - is there any way to repartition the internal storage?
Yes there is but you would need some way to instruct s1 boot to use the new partition table, even with an unlocked bootloader we can't do this. Also in the 2.3.4 update /cache/ has been reduced to 100mb.
Sent from my R800i using Tapatalk
AndroHero said:
Yes there is but you would need some way to instruct s1 boot to use the new partition table, even with an unlocked bootloader we can't do this. Also in the 2.3.4 update /cache/ has been reduced to 100mb.
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
Thanks So if I flash any of the 2.3.4 ROMs, I'll have an extra 100MB on my data partition? I'd be happy enough with that...
As for instructing s1 boot to use the new partition table, do you mean there's no way to do this, full stop, or no way to do it YET? Because obviously the 2.3.4 ROMs can do it, so just wondering if it's something the devs may be able to figure out and do in future...
drunkenfcuk said:
Thanks So if I flash any of the 2.3.4 ROMs, I'll have an extra 100MB on my data partition? I'd be happy enough with that...
As for instructing s1 boot to use the new partition table, do you mean there's no way to do this, full stop, or no way to do it YET? Because obviously the 2.3.4 ROMs can do it, so just wondering if it's something the devs may be able to figure out and do in future...
Click to expand...
Click to collapse
Thats the thing, it's just disapeared this other 100mb, they didnt add it to /data/ or /system/ just hid it on a seperate partiton
Afaik there is no way full stop, although we have unlocked bootloaders, we dont have s-off like HTC devices, were unable to modify bootloader Sony on the other hand add diffrent bootloader versions to there stock roms, so it's the latest bootloader that comes with the 2.3.4 roms that has repartitioned /cache/
If you want to free up some space, you may want to try link2sd on the market, it works simlar to apps2sd+ i have over 300 apps on my phone and still have 235mb free thanks to link2sd
https://market.android.com/details?id=com.buak.Link2SD&hl=en
AndroHero said:
Thats the thing, it's just disapeared this other 100mb, they didnt add it to /data/ or /system/ just hid it on a seperate partiton
Afaik there is no way full stop, although we have unlocked bootloaders, we dont have s-off like HTC devices, were unable to modify bootloader Sony on the other hand add diffrent bootloader versions to there stock roms, so it's the latest bootloader that comes with the 2.3.4 roms that has repartitioned /cache/
If you want to free up some space, you may want to try link2sd on the market, it works simlar to apps2sd+ i have over 300 apps on my phone and still have 235mb free thanks to link2sd
https://market.android.com/details?id=com.buak.Link2SD&hl=en
Click to expand...
Click to collapse
maybe they added it into an ext recovery, so maybe we could use CWM with 2.3.4?
AndroHero said:
Thats the thing, it's just disapeared this other 100mb, they didnt add it to /data/ or /system/ just hid it on a seperate partiton
Afaik there is no way full stop, although we have unlocked bootloaders, we dont have s-off like HTC devices, were unable to modify bootloader Sony on the other hand add diffrent bootloader versions to there stock roms, so it's the latest bootloader that comes with the 2.3.4 roms that has repartitioned /cache/
If you want to free up some space, you may want to try link2sd on the market, it works simlar to apps2sd+ i have over 300 apps on my phone and still have 235mb free thanks to link2sd
https://market.android.com/details?id=com.buak.Link2SD&hl=en
Click to expand...
Click to collapse
Thanks, I'll take a look
Do you have 2.3.4? You can use ADB to list the partitions, so you might be able to see where that 100MB has gone...
adb shell
df -h
I get the following:
Code:
Filesystem Size Used Available Use% Mounted on
tmpfs 199.0M 76.0K 198.9M 0% /dev
tmpfs 199.0M 0 199.0M 0% /mnt/asec
tmpfs 199.0M 0 199.0M 0% /mnt/obb
/dev/block/mtdblock0 312.5M 190.8M 121.7M 61% /system
/dev/block/mtdblock3 380.0M 296.4M 83.6M 78% /data
/dev/block/mtdblock2 225.0M 1.3M 223.7M 1% /cache
/dev/block/mtdblock1 10.0M 1.5M 8.5M 15% /data/idd
Or just 'df -h' from a terminal window on your phone...
Code:
df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 177.3M 44.0K 177.3M 0% /dev
tmpfs 177.3M 0 177.3M 0% /mnt/asec
tmpfs 177.3M 0 177.3M 0% /mnt/obb
/dev/block/mtdblock0 312.5M 137.4M 175.1M 44% /system
/dev/block/mtdblock2 380.0M 123.3M 256.7M 32% /data
/dev/block/mtdblock1 101.5M 18.0M 83.5M 18% /cache
/dev/block/vold/179:1
1.9G 1.1G 773.4M 59% /mnt/sdcard
/dev/block/vold/179:1
1.9G 1.1G 773.4M 59% /mnt/secure/asec
/dev/block/dm-0 5.1M 3.6M 1.4M 71% /mnt/asec/com.mojang.miecraftpe.demo-1
This is from my phone running the latest CM.
I cant find the 100 MB here
Azeazezar said:
Code:
df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 177.3M 44.0K 177.3M 0% /dev
tmpfs 177.3M 0 177.3M 0% /mnt/asec
tmpfs 177.3M 0 177.3M 0% /mnt/obb
/dev/block/mtdblock0 312.5M 137.4M 175.1M 44% /system
/dev/block/mtdblock2 380.0M 123.3M 256.7M 32% /data
/dev/block/mtdblock1 101.5M 18.0M 83.5M 18% /cache
/dev/block/vold/179:1
1.9G 1.1G 773.4M 59% /mnt/sdcard
/dev/block/vold/179:1
1.9G 1.1G 773.4M 59% /mnt/secure/asec
/dev/block/dm-0 5.1M 3.6M 1.4M 71% /mnt/asec/com.mojang.miecraftpe.demo-1
This is from my phone running the latest CM.
I cant find the 100 MB here
Click to expand...
Click to collapse
I suppose if it's hidden from Android, then ADB wouldn't see it anyway. And it's actually more than 100MB. More like 123.5MB. Would love to know where it's gone!

[Q] Restoring backup from CM9 for CM10

So, I've been using CM9 for a while and I want to jump to CM10 nightlies. My question is that if I don't like CM10 for any reason can I just use the backup I made(before going to CM10) to go back to CM9, or do I have to Odin back.........?
samsungepicgeek said:
So, I've been using CM9 for a while and I want to jump to CM10 nightlies. My question is that if I don't like CM10 for any reason can I just use the backup I made(before going to CM10) to go back to CM9, or do I have to Odin back.........?
Click to expand...
Click to collapse
The partitions are different so you will have to use Odin to repartition and go back to CM9. I've gone back and forth a few times.
MrWBucket said:
The partitions are different so you will have to use Odin to repartition and go back to CM9. I've gone back and forth a few times.
Click to expand...
Click to collapse
Are you sure about that? Cuz I flashed cm10 and restored other backups... not specifically cm9 tho. So maybe you are right.
Sent from my SPH-D700 using xda app-developers app
I believe they just stay the same size (when you restore) as cm10 takes 75MB away from data and adds it's to the system
I'm not too sure though, you might want to wait for a developer`s view on your question.
Sent from my AT100 using xda app-developers app
Ok, I'll try and clear this up a little bit. ODIN is not technically necessary (I'll update the warning in the CM10 thread).
Background info
CM9 partition sizes: System = 268 MB, Data = 676 MB
CM10 partition sizes: System = 343 MB, Data = 601 MB
The partition sizes had to be modified because CM10 required more room in /system.
Short Story
You can restore a CM9 backup from CM10, because there is enough system space to hold your CM9 system files. WARNING: If the amount of data in your CM9 backup is greater than 601 MB, you will have data loss.
You should not directly restore a CM10 backup from CM9, because there will not be enough system space to hold all the CM10 backup's system files. You WILL have problems.
WORKAROUND: From CM9, you can do an Advanced Boot Restore of a CM10 backup's boot image, then immediately reboot to recovery. Now you have the proper partition sizes, and you can restore a CM10 backup.
Examples scenarios
Code:
[FONT="Courier New"]
[B]CM10, current running system.[/B]
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock2 [B]343.5M 331.4M[/B] 12.1M 96% /system
/dev/block/mtdblock3 601.5M 467.7M 133.8M 78% /data
*************************************************************************
[B]CM9, wipe everything, clean install.[/B]
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock2 [B]268.5M 215.6M[/B] 52.9M 80% /system
/dev/block/mtdblock3 676.5M 59.3M 617.2M 9% /data
**************************************************************************
[B]Restoring CM10 from stock CM9[/B] -> FC's all around from lack of sufficient
system space to restore ([B]trying to jam 331.4M into 268.5M[/B]).
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock2 [B]343.5M 268.6M[/B] 74.9M 78% /system
/dev/block/mtdblock3 601.5M 425.6M 175.9M 71% /data
**************************************************************************
[B]Restoring CM10 a second time after stock CM9[/B] -> everything working again.
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock2 [B]343.5M 331.4M[/B] 12.1M 96% /system
/dev/block/mtdblock3 601.5M 493.5M 108.0M 82% /data
**************************************************************************
[B]Restoring CM9 from CM10[/B] -> Everything works. [B]Possible data loss[/B] if your
backup contains more than 601.5M of data.
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock2 [B] 268.5M 215.6M[/B] 52.9M 80% /system
/dev/block/mtdblock3 676.5M 68.7M 607.8M 10% /data
**************************************************************************
[B]After Advanced CM10 Boot Restore from CM9, then Reboot to
Recovery -> Now there is enough space for a full CM10 restore.[/B]
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock2 [B] 343.5M 215.6M[/B] 127.9M 63% /system
/dev/block/mtdblock3 601.5M 68.7M 532.8M 11% /data
**************************************************************************
[B]Restoring CM10 after CM10 Boot restore.[/B]
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock2 [B]343.5M 331.4M[/B] 12.1M 96% /system
/dev/block/mtdblock3 601.5M 494.1M 107.4M 82% /data
[/FONT]

Categories

Resources