yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] cordell12:
Just curious if mine looks right? Running cm6.1 extremely blue, sprint. Thanks :)

$ export PATH=/data/local/bin:$PATH

$df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 95.2M 0 95.2M 0% /dev

tmpfs 95.2M 0 95.2M 0% /mnt/asec

/dev/block/mtdblock3 105.0M 91.3M 13.7M 87% /system

/dev/block/mtdblock5 345.1M 151.4M 193.7M 44% /data

/dev/block/mmcblk0p2 457.4M 8.0M 424.9M 2% /sd-ext

/dev/block/mmcblk0p2 457.4M 8.0M 424.9M 2% /cache

/dev/block/mtdblock4 10.0M 1.1M 8.9M 11% /dev/cache

/dev/block/vold/179:1

6.9G 2.7G 4.2G 39% /mnt/sdcard

df: /mnt/secure/asec: Permission denied

/dev/block/dm-0 3.1M 1.5M 1.6M 48% /mnt/asec/com.google.android.stardroid-1

$
[Hero CDMA Android Development] Firerat:
looks ok to me

couple of notes

a system size of 92mb would fit your current system, and give you an extra 11mb on data

your 'real' cache ( mtdblock4 ) is not really doing anything you can get a further 8mb by reducing it to 2mb

( people have been advising the larger /cache sizes as their ROMs have not been running the boot script 06BindCache , which juggles stuff about, but since you have a cm based rom, the script runs fine )

but, I guess you don't *really* need the extra 19mb just yet :)

Oh, and move your fat apps to internal .. you don't need a2sd :D
[Hero CDMA Android Development] cordell12:
Thanks for the info! When I did the mod everyone was posting about bigger cache, I think someone even stated they made it 100 Mb, I just reflashed everything today or I would edit system and cache down now, I know where I can get a little extra if I need it down the line :) I dont use the app2sd anymore but for some reason google sky map keeps ending up on my sd card, even after formating sdext.

Thanks again
[Hero CDMA Android Development] danaff37:
Google sky map goes to native a2sd. Go to settings/applications/manage and find it, then you can move back to phone. Also go to cm settings/applications and set to internal and they won't install like that again.
[Hero CDMA Android Development] cordell12:
Thanks! :)
[Hero CDMA Android Development] mrinehart93:
Firerat, I gotta hand it to ya. This mod you've come up with is amazing. I have 300MB free on Data now, and that's without resizing cache or anything.

Because of this, we're going to use your mod to get our WebOS port into the internal flash memory on our phone instead of the SD card... so this wouldn't be possible without this mod :D
[Hero CDMA Android Development] Firerat:
with a little modification, you could get this mod to do dual booting

basically you create a new partition, and replace the standard recovery with a new kernel that has an init.rc to boot with the other partition.

you do then need fastboot to boot a recovery though

or , you could keep recovery, and just use some script to reflash boot

or, as long as the kernel is compatible, have a new init.rc loaded ( which you moved/linked with some script )

might be a few other ways

still need to get round to trying this with the g1, but space is a little too tight on g1
[Hero CDMA Android Development] mrinehart93:
Hmm, I see what you're saying. Would you be able to help me out with that tomorrow or sometime this weekend? You may be the key to getting the WebOS port to boot!
[Hero CDMA Android Development] :
How do I remove the mod ?

I used it for CM6 and now im back on 2.1
[Hero CDMA Android Development] mrinehart93:
Read the original thread made by Firerat. I don't have enough time to find it myself, but there are 2 commands you can run if you mess up your phone while installing this that will remove the mod for you.
[Hero CDMA Android Development] :
Okay I fixed it.

Is it just me or does this also increase the speed of your phone?
[Hero CDMA Android Development] Pyr0TeK:
I am running AOSP FroYo 0.9.6 and I think I have successfully setup the Firerat MTD but can someone tell me how I can tell? If I ADB SHELL and df -h it tells me no such file or directory.
[Hero CDMA Android Development] mrinehart93:
Can you post a log/screenshot of the what you're typing in to check the partitions?

Because unless you wiped all the partitions off your phone somehow, you shouldn't be getting "No such file or directory".
[Hero CDMA Android Development] igtheactt1:
It's busybox df -h
[Hero CDMA Android Development] Firerat:
yeap, we all got lazy with CM6 as it dosn't install toolbox links when busybox's are better

busybox df -h

or just df, but toolbox's df is ugly as hell
[Hero CDMA Android Development] crazyd1721:
I've got a quick question.. Every time I try to flash a new theme, all I get is a black screen nothing happens..
[Hero CDMA Android Development] mrinehart93:
Did you reflash the script you are supposed to flash?
[Hero CDMA Android Development] Firerat:
and your question is?
[Hero CDMA Android Development] danbula:
Hey guys,

I am having rhe Insufficient storage notification after trying to download some app updates from the market on the Nfinite .7 rom with more than 50 mb available on internal storage. I ran the df command in terminal emulator and this is what I got:

export PATH=/data/local/bin:$PATH

sh-3.2$ export PATH=/data/local/bin:$PATH

sh-3.2$ df

/dev: 97816K total, 0K used, 97816K available (block size 4096)

/sqlite_stmt_journals: 4096K total, 4K used, 4092K available (block size 4096)

/system: 186368K total, 144956K used, 41412K available (block size 4096)

/data: 280704K total, 221488K used, 59216K available (block size 4096)

/cache: 4096K total, 2080K used, 2016K available (block size 4096)

/sdcard: 14481920K total, 14064544K used, 417376K available (block size 8192)

sh-3.2$

Appreciate your suggestions for me to be able to run my updates and apps installations.
[Hero CDMA Android Development] danaff37:
wipe cache and dalvik, then try. I had a similar situation and that freed up some space and fixed the reporting low storage space when there is plenty
[Hero CDMA Android Development] crazyd1721:
Yes I did.. I even started from scratch... Wiped everything flashed recovery, rom, gapps, boot then reboot, back to recovery flash theme, boot, then reboot.. Nothing happens just stats on a black screen..
[Hero CDMA Android Development] danbula:
Already done. Still the same notification. I'm trying to update Qik and FB. Thanks for your input though.
[Hero CDMA Android Development] bigboidomo:
AutoPatcher

Is there a certain way that we need to apply the autopatcher (via linux) to stop the need to flash boot everytime we change something that has to do with kernal or recovery?
[Hero CDMA Android Development] mrinehart93:
I bet there is a way to do put the script inside of the ROM, and then have a script run it on each boot.
[Hero CDMA Android Development] Firerat:
no

new boot.img = MUST ADD THE MTDPARTS CMDLINE

the AutoMTD does is add the boot patcher to the ROM
[Hero CDMA Android Development] Firerat:
no, because the boo.img does not know how your MTD partitions are setup, therefore it can not mount /syatem, cach or data

please take sometime to understand the concept
[Hero CDMA Android Development] Firerat:
set a much larger cache, or use a rom that sux less and runs scripts in /system/etc/init.d on boot
[Hero CDMA Android Development] igtheactt1:
Sucks less? What do you suggest cm6... lol
[Hero CDMA Android Development] abadasstanker69:
I'm thinking maybe I have the wrong recovery. I have clockwork installed but for some reason I am unable to reboot recovery from inside recovery. I can do it from the home screen with no problem. Is there something I'm missing? When in recovery I type "adb shell" I get in then I type "reboot recovery" and I get "/sbin/sh not found" What am I doing wrong? I can verify that reboot recovery from inside clockwork does NOT work. I know it needs to be done from adb. I just can't seem to get it working.

Edit: Strange.......I got it to work using Amon Ra recovery 1.6 but the clockwork wouldn't allow it? That's strange. I always thought clockwork was waaaaaay more able to handle customizations such as this. Oh well. I'm booting LiquidSense 2.1 stable and I'm bootlooping now. I gotta play with this some more.

Last Edit: OK I'm feeling like such a freaking noob right now. I got it. The part about re-flashing the rom never dawned on me. I don't know what the crap I was thinking but I got this thing rolling now. Awesome work. Running LiquidSense I have almost 300 internal free. Awesome. I feel like I got a new ninja phone! lol Thanks dev!
[Hero CDMA Android Development] crazyd1721:
Could the size of the mtd txt be the reason I can't flash a theme?
[Hero CDMA Android Development] Firerat:
if ROM + theme = too big for system

then yes

it could also be that the theme is just broken
[Hero CDMA Android Development] crazyd1721:
I'm using 110 3 should that be enough?
[Hero CDMA Android Development] Firerat:
I have no idea, is it?

why not reset the system size to its original size and see if your theme works

the only reason that theme is not working for you is

system is too small, make it bigger

or the theme is broken, give up
[Hero CDMA Android Development] crazyd1721:
Ok thanks.
[Hero CDMA Android Development] crazyd1721:
Still no luck.. tried everything I have no idea what the problem could be..
[Hero CDMA Android Development] Firerat:
the theme,

I guess it could be that the flash put stuff in /cache and then patches on next boot, I haven't looked at it

Open up the theme zip and have a look at what it is trying todo
[Hero CDMA Android Development] crazyd1721:
What should I be looking for..
[Hero CDMA Android Development] Firerat:
link the theme, I will look at it myself
[Hero CDMA Android Development] teedo757:
I am sure this has been asked before and I did search but came up with nothing. When I go into adb shell I get ~# which I am not sure if its that's the root prompt or if I need to be root but I typed in reboot recovery I get/sbin/sh reboot: not found. Any thoughts?

using CM6

clockwork recovery
[Hero CDMA Android Development] mrinehart93:
I get the "reboot not found" as well. It IS the root prompt though. # = Root, $ = user.

EDIT

For the guy trying to get the theme working: Adjust the script so that you have about 10 extra MB. Then you want to extract the theme, extract the framework-res stuff and manually copy the PNG's into your ROM. Now, flash the edited ROM onto your phone, and then install the script again.
[Hero CDMA Android Development] Firerat:
Some recoveries DO NOT HAVE REBOOT COMMAND

use the recovery menu on the phone to reboot
[Hero CDMA Android Development] teedo757:
Tried to use clockworks reboot recovery but it did not work. I will try it again.
[Hero CDMA Android Development] abadasstanker69:
It doesn't work. Well it didn't for me. I had download the amon ra boot img to perform this little hack. It works great. But I swear I couldn't get it to work with clockwork
[Hero CDMA Android Development] Firerat:
must be something wrong with the hero clockwork then
[Hero CDMA Android Development] abadasstanker69:
I have to agree. I absolutely couldn't get it to work with clockwork due to the fact I couldn't adb in to the phone in recovery at all. I kept getting the same error reported earlier. It just dawned on me to try another recovery (amon ra) and BAM! Been good since.
[Hero CDMA Android Development] danaff37:
worked fine on clockwork for me. I've even undone and redone it a couple of times to update prl, and no issues for me
[Hero CDMA Android Development] mrinehart93:
If there is enough demand, I'll compile a ClockworkMod recovery that has the reboot command in it...
[Hero CDMA Android Development] Vandelay007:
I use clockwork to do this and never use adb....I am always able to reboot to recovery after the second set of wipes....so it can definitely be done
[Hero CDMA Android Development] Firerat:
a 95 system will get you an extra 85mb data

95 system, 2 cache will get you an extra 88mb data
[Hero CDMA Android Development] Pyr0TeK:
So set my text file to 102 2 would be ok... do I have to wipe everything and reload my rom etc to make this change?
[Hero CDMA Android Development] Pyr0TeK:
Thanks! The original post should be updated a bit to reflect the clarity!
[Hero CDMA Android Development] hexskrew:
Well... Actually I hadn't read the main page before I posted this (been a while since I read it) He has actually cleaned it up and clarified it a lot, but the whole pizza thing, I could see where people could get confused on exactly what it is doing and where it is pulling space from.
[Hero CDMA Android Development] Pyr0TeK:
How does this look since I reapplied a new mtdpartmap.txt this morning?

I am using: mtd 110 10

Should I make any changes? I am running AOSP FroYo
[Hero CDMA Android Development] teedo757:
Used cm6 to install Clockwork...Do I just download ra boot and install it via the recovery console or is there a special way to install it.

I have tried serveral times and different ways to get it to work with clockwork however when I go to reboot recovery it does not work, it reboots 2x and then automatically starts to install cm6 and since I cant reboot via adb I figure I will try ra boot.
[Hero CDMA Android Development] Pyr0TeK:
Easier to install ROM Manager from the market and flash the clockwork recovery straight through that to the device.
[Hero CDMA Android Development] flipfone:
I too had a problem with clockwork. if you adb shell then you cant reboot recovery. so, from the cmdline of your pc simply......

adb reboot recovery <enter>

this works fine im using clockwork 2.5.0.1 on a hero
[Hero CDMA Android Development] teedo757:
Ok I figured I would try one more thing. I let it reinstall CM6 and after the setup I rebooted into recovery where I applied the other zip file and rebooted. Checked it and it worked! 300mb
[Hero CDMA Android Development] gqukyo:
Quick question, how would I revert the changes? I'm selling my hero and want to revert it back to a rooted state but with a stock rom such as Nfinite's...
[Hero CDMA Android Development] chinochino360:
I'm kinda lost because all was well until i tried to flash a theme and i wouldn't install completely it would only install the apps in the app drawer but not the rest of the theme.

But the part that let me know something was wrong with the custom partition was when

i changed (or attempted to change)my mtd but when i pull up adb to see how much system was the rom using it doesn't change it'll always say there's 90 when initially i had it set for 120 2 and after i changed it to 200 4 and still it would say i still had 90 and 100% of it was used. I even re did the whole process to no avail. Thank you ahead for any help you can give me.
[Hero CDMA Android Development] Firerat:
adb shell
mount /sdcard
grep mtd /sdcard/*

make sure the layout you want is in /sdcard/mtdpartmap.txt

and not, /sdcard/mtdpartmap.txt.txt or something like that
[Hero CDMA Android Development] JohnnyStaff:
Dont know what went wrong

I did it step by step and when i did the final reboot, it wouldn't go past the htc screen...I dont know what went wrong. I'm running rc1 is it not compatible with that rom? I could of swore others had the same rom...I'm flaberghasted:confused:
[Hero CDMA Android Development] Vandelay007:
It is compatible, what did you set your mtd numbers to?
[Hero CDMA Android Development] JohnnyStaff:
102 2, now i also tried to nandroid restore it before the install and it wont boot up still...I have no idea what happened
[Hero CDMA Android Development] Vandelay007:
I recommend you set the partition to 110 3 and then try it...maybe even 135 3, just to be safe....you can always lower it appropriately aftercit boots and you can see how much system space you need
[Hero CDMA Android Development] oostah:
Will this work with fresh 2.40 rom. I had it working with cyanogen Rom. Then went to the fresh 2.40 and had to start fresh and its not running now. I think I had to use ra recovery
[Hero CDMA Android Development] Firerat:
hmmm

the lack of understanding is getting quite irritating

customMTD just resizes the MTD partitions

a ROM is incompatible if

its system size is larger than the size YOU set

set a size suitable for the ROM

it insits on using cache for system dalvik-cache AND does not support boot scripts in /system/etc/init.d

set cache to a size that can accommodate the system dalvik-cache

very very simple? or am I taking too much for granted?
[Hero CDMA Android Development] oostah:
Ok thanks I'm trying your not taking every thing for granted. You just deal with it every day so its just easy for you think back to when you started. Lol
[Hero CDMA Android Development] theimpaler747:
Yeah, very true, much easier when you're experienced :)

Sent from my hero running froyo... take that Sprint!
[Hero CDMA Android Development] Firerat:
as far back as I can remember I have had strong logical reasoning skills

I take those skills for granted and forget that others have different skill sets and can't see things that are seemingly obvious to me.

if something doesn't work 'out of the box' I break it down with logic , understand it better and change things so it works.

I didn't learn this , I have always had it

lol
[Hero CDMA Android Development] oostah:
I got it lol and to the post that could not get live wall papers to work I had to set it 160 10 to get mine to work thanks for all you help ill be donating on pay day for the help and links
[Hero CDMA Android Development] oostah:
Can you still use apps2sd with this. Don't need to but wanted to no.
[Hero CDMA Android Development] Vandelay007:
Yeah, but I can't imagine the need....
[Hero CDMA Android Development] theimpaler747:
Really no need to, that's what the mod if for :)
[Hero CDMA Android Development] Tiffany84:
So if I'm wanting to change my sizes is there anything else I need to do besides change the numbers in my .txt file? Thanks....
[Hero CDMA Android Development] pwachleman:
You'd need to change your numbers in the text file and then start the process over from the beginning following the step by step guide...

Just as a sidenote I'd personally like to say that of all the mods on this forum this is by far the number 1 mod IMO. I can't think of anything that is more useful or well thought out and easy to use. It just works and that's GREAT!
[Hero CDMA Android Development] AGiLiT:
Started with:

Hero CDMA - Cyanogen 6.1.0 RC 1 ROM, Clockworkmod 2.5.0.1. Nothing else special afaik.

Started here:

Filesystem Size Used Available Use% Mounted on
tmpfs 95.6M 12.0K 95.5M 0% /dev
tmpfs 95.6M 0 95.6M 0% /mnt/asec
/dev/block/mtdblock3 170.0M 95.7M 74.3M 56% /system
/dev/block/mtdblock5 159.5M 90.0M 69.5M 56% /data
/dev/block/mtdblock4 130.0M 41.7M 88.3M 32% /cache
/dev/block/mmcblk0p2 457.4M 8.0M 424.9M 2% /sd-ext
/dev/block/vold/179:1 14.4G 1.8G 12.6G 12% /mnt/sdcard
/dev/block/vold/179:1 14.4G 1.8G 12.6G 12% /mnt/secure/asec

Downloaded the files per OP and created mdtpartmap.txt file with '100 2'.

Ran the steps from Firerat's post #142:

Used clockwork to partition the system, data and cache folders; couldn't get fastboot to work. Got message 'remote not allowed.' Did not do the optional reformat after rebooting to recovery.

Ended up here:

Filesystem Size Used Available Use% Mounted on
tmpfs 95.6M 12.0K 95.5M 0% /dev
tmpfs 95.6M 0 95.6M 0% /mnt/asec
/dev/block/mtdblock3 100.0M 95.7M 4.3M 96% /system
/dev/block/mtdblock5 357.5M 100.9M 256.6M 28% /data
/dev/block/mmcblk0p2 457.4M 48.2M 384.7M 11% /sd-ext
/dev/block/mmcblk0p2 457.4M 48.2M 384.7M 11% /cache
/dev/block/mtdblock4 2.0M 1.1M 888.0K 57% /dev/cache
/dev/block/vold/179:1 14.4G 2.0G 12.4G 14% /mnt/sdcard
/dev/block/vold/179:1 14.4G 2.0G 12.4G 14% /mnt/secure/asec
#

Maybe an advantage being a late adopter, but this was really a piece of cake!

Thanks to all who blazed the trail!!!
[Hero CDMA Android Development] cordell12:
So can we change sizes then restore a nandroid of current set up?

Thanks

I agree with this being best MOD for Hero :)
[Hero CDMA Android Development] Firerat:
yes,

as long as

you erased/formatted system cache and data before reboot to recovery

the nandriod's partitions are smaller than the new sizes ( used size )

you remember to flash the boot patcher after restore
[Hero CDMA Android Development] street253:
So i got cache memory.log anyway to fix this? Or its not a problem? I'm fairly new to this and i installed adb but the prompt was not getting recognized
[Hero CDMA Android Development] Firerat:
format cache, its either full ( with logs ) or it has hangover data
[Hero CDMA Android Development] street253:
I format my cache and i got error formatting cache. So it might be hangover data? Anyway to fix the cache error? Also appreciate the fast response help

Also mine is cache:recover/log no space left
[Hero CDMA Android Development] Firerat:
I guess your using RA

you can either use

fastboot erase system -w

that will wipe everything, no choice as the spl dosn't know the new mtd layout

install clockwork, and format via partitions menu ( recommended )

or , http://xdaforums.com/showpost.php?p=9126707&postcount=1

errm, after looking it will fail as it checks for G1 or Magic

you could just extract the erase_image, push it to the phone, chmod it and

erase_image cache

probably easier for you to use one of the first two options
[Hero CDMA Android Development] stricklerjosh:
If I want to erase this mod completely and go back to original, what is the easiest way?

Aosp froyo, its the poo!
[Hero CDMA Android Development] xDragod:
Edit: Figured it out.
[Hero CDMA Android Development] Firerat:
read http://xdaforums.com/showthread.php?t=717874
[Hero CDMA Android Development] paul96:
Are the directions for cm6 the same for cm6.1??
[Hero CDMA Android Development] xDragod:
I believe I'm at 80% in system with mtd 102 2 on CM6.1 RC1.
[Hero CDMA Android Development] paul96:
Thanks :-)
[Hero CDMA Android Development] oostah:
Can you do this with RA recovery I use clockwork recovery but a rom I need to flash says I need to do it from RA are the steps the same.
[Hero CDMA Android Development] street253:
Thanks this help me a great deal!

I followed the instructions again and didn't get no error. I booted the phone from adb. Seeing that i was running the newer version i didn't get the prompt "formatting cahe" When i tried to install new rom i still got "not enough room" Been trying to install this rom for the longest while. Did i mess up on the text file? I use the mtdpartmap that the os stated

I flashed cyan and i have 197 available space, the sense rom needs 170 so i clearly have enough space. I dont think its a problem with the partions might be the rom or something. Other than that great to have this much space now =)
[Hero CDMA Android Development] paul96:
for some reason my internal memory didn't change. i did everything right and this is what i came up with.
[Hero CDMA Android Development] street253:
does it show it changed under available space? cause i ran df -h and for available space i see 1 but under phone storage settings i see it at 194.
[Hero CDMA Android Development] paul96:
No it didn't change at all.
[Hero CDMA Android Development] DubsideWICKED:
wow idk what i did right.... i thought this was pose to move memory but it gave me more all around :S lol

i used mtd 182 4 and it have me these specs

17.91 used 95.51 free /cache

57.04 used 217.09 free /data

131.54 used 50.46 free /system

how would i move about 60 of catch to data? 50mb catch 180mb system an 320mb data sounds grate to me, would be grate NFX 651.7 DEODEX rom with 710 OC
[Hero CDMA Android Development] Firerat:
just reduce the size of cache

don't know what ROM you have, so the scripts included to get round very small cache might not run

you should be able to get away with cache size 40mb

that would give you around 347 data ..

But look, you have 50mb free in system, reduce system size by 45mb and you could have 392 data
[Hero CDMA Android Development] DubsideWICKED:
so i just change my code to mtd 182 40?
[Hero CDMA Android Development] oostah:
What do I do if I don't want to use firerat with some roms
[Hero CDMA Android Development] Firerat:
errm, uninstall it

or just set the system and cache size to original

tbh, if you couldn't work that out yourself you should not be rooting your phone in the first place