yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] dhero1:
Hmmm ... had a nand restore not complete correctly (just kept placing periods on my screen forverer ...), so I pulled the battery, went back to recovery and flashed the boot zip, rebooted and wound up with twice the amount of internal storage used, and the following duplicated directories:

# pwd

pwd

/data

# ls -l

ls -l

drwxrwxr-x 1 system system 2048 Sep 24 19:44 anr

drwxrwx--x 1 system system 2048 Sep 26 19:07 app

drwxrwx--x 1 system system 2048 Sep 26 19:07 app-private

drwxrwx--x 1 system system 2048 Sep 26 19:07 app-private

drwxrwx--x 1 system system 2048 Sep 26 22:37 app1

drwx------ 1 system system 2048 Sep 26 22:39 backup

drwxrwxrwx 1 bluetoot bluetoot 2048 Sep 24 11:06 btips

drwxrwxrwx 1 bluetoot bluetoot 2048 Sep 24 11:06 btips

drwxrwx--x 1 system cache 2048 Sep 24 11:06 cache

drwxrwx--x 1 system system 2048 Sep 26 22:39 dalvik-cache

drwxrwx--x 1 system system 2048 Sep 26 22:39 data

drwxr-x--- 1 root log 2048 Sep 24 11:06 dontpanic

drwxr-x--- 1 root log 2048 Sep 24 11:06 dontpanic

prw-r--r-- 1 system system 2048 Sep 26 17:57 gps_nmea_fifo

drwxrwx--x 1 shell shell 2048 Sep 26 19:07 local

drwxrwx--- 1 root root 2048 Sep 26 19:06 lost+found

drwxrwx--t 1 system misc 2048 Sep 26 22:41 misc

drwx------ 1 root root 2048 Sep 26 22:36 property

drwx------ 1 root root 2048 Sep 26 22:36 property

drwxrwxr-x 1 system system 2048 Sep 26 22:40 system

drwxr-xr-x 1 system system 2048 Sep 24 19:57 tombstones

#

I'd already renamed one app instance to app1 by using mv app app1, and by the dates of the files inside the system chose the older 'app' directory and moved it to app1.

One of the dirs is appropriately named 'dontpanic' so I didn't ... but any ideas?

using:

CM6 9/26 nightly, RA Amon Heroc 1.6.2 - and the nand was of CM 9/24

# df -h

df -h

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 106.0M 102.9M 3.1M 97% /system

/dev/block/mtdblock5 351.1M 281.0M 70.1M 80% /data

/dev/block/mmcblk0p2 457.4M 52.2M 380.8M 12% /sd-ext

/dev/block/mmcblk0p2 457.4M 52.2M 380.8M 12% /cache

/dev/block/mtdblock4 3.0M 1.1M 1.9M 38% /dev/cache

/dev/block/vold/179:1

7.1G 3.5G 3.5G 50% /mnt/sdcard

/dev/block/vold/179:1

7.1G 3.5G 3.5G 50% /mnt/secure/asec
[Hero CDMA Android Development] Firerat:
did you fastboot erase?
[Hero CDMA Android Development] dhero1:
I just started fresh with the CM6 9/27 nightly, the gapps 9/26 update, and Titanium backup, and all is well again. :)

For the CM6 dailies it would appear that I'll need to wipe all each time I want to try an update, then flash CM6 + gapps [+ OC/UV kernels, A2SD, etc.] + boot zips and then use Titanium backup to restore at least system data for email accounts, etc.

Any suggestions for shortening the daily update process?
[Hero CDMA Android Development] Firerat:
I don't wipe, I just flash the nightly

Personally I use the AutoPatcher, and prepatch the ROM, saves me having to do the boot patcher.

Its a linux script, I should get off my A and see if I can make a windows version

but making a tiny VirtualBox image might be more fun, and in the long run more convenient , at least for me.
[Hero CDMA Android Development] dhero1:
In case anyone is interested - for the CM6 nightly's I've reduced the process some and now do the following:

1. flash nightly zip

2. wipe dalvik

3. flash custom MTD boot zip

I tried w/o the dalvik wipe and w/o flashing the MTD boot zip and it hung at the HTC boot screen. Maybe tomorrow I'll find I only need to wipe dalvik and not flash the MTD boot zip? I'll let you know.
[Hero CDMA Android Development] simon.ponder:
Issues with back ups

Since attempting this mod, I am now unable to do backups (Either nandroid or clockworkmod). I know we patch the recovery to get this to work. Both backups freeze during the system image.

Any ideas?
[Hero CDMA Android Development] customhdrider:
Resize your partitions,,sense roms need 182-185/2-5..cm6 needs up to 110 for system,,you may be too small for system to load up,,
[Hero CDMA Android Development] Firerat:
errm you have to flash the boot Patcher, unless the rom is pre-patched with AutoMTD

trying to boot without patching the boot.img would be very silly
[Hero CDMA Android Development] dhero1:
Me, do something silly with this device? NEVER!! I'm not afraid of the trial and error process ... :D

So maybe I can get by w/o the dalvik wipe and just flash the nightly and then the MTD boot.

And thanks for the clarity. :)
[Hero CDMA Android Development] dhero1:
I did have to wipe dalvik, but no prob - flash nightly, wipe dalvik, flash MTD boot, and go! :)
[Hero CDMA Android Development] Foo_Blyat:
+12345 lmao!!
[Hero CDMA Android Development] Eric_1966_FXE:
OK, I REALLY want to try this but please excuse the fact that I'm a semi-noob and have a few questions.

First, let me tell you what I've got on my phone now:

....Recovery: RA-heroc-v1.5.2 (yes, I know there is a newer version).

....ROM: aospMod-0.3 (yes, I know there is a newer version of this as well)

....Kernel: BFS#13 (from Decad3nce)

....Radio: 2.42.01.04.27

OK, when I originally rooted my phone, Android 2.2 wasn't stable yet, so I formatted my SD card for A2SD. I HAD an 8GB, class 2 SD. I just recently picked up a 16GB class 6.

So there are multiple issues I'm looking at, and I tried looking on here all morning for answers but I think I've gotten more questions than when I started.

I want to use Firerat's partitions and I want to install my new 16GB card in a manner to achieve the greatest performance. I plan on sticking with aospMod because I LOVE the speed but I'll be upgrading to his 0.7 version.

So, mostly I need to know ...... WHERE to start???

Do I update my recovery first (I'm assuming this would be the best place to start)?

From there, I'd like to install my new SD card (?). Should I format from Recovery or put it in my laptop and format with Windows? Also, what, if anything do I need to copy over to my new card? The easy answer of course is to copy everything over from my old to my new cards, but since I want to start FRESH and CLEAN, do I need anything at all from my old card? Also, does it even need to be partitioned anymore?

Then, I'm assuming the logical step would be Firerat's partitions, then flash aospMod 0.7, then flash BFS#13, then GAPPs, etc., etc.

Am I right in my logic? Can anyone see anything wrong with what I'm planning? Anyone have any suggestions for other steps not listed, etc.??
[Hero CDMA Android Development] danaff37:
Well with this mod, you don't need a2sd and therefore don't need to partition your sdcard. You do need the mtdpartmap.txt file mentioned on your sdcard. You'll probably want 110 2 in the file. You can keep your recovery if you wish, but I really recommend updating. Do that first. For this mod there are two flashable zips. One you flashed your recovery, then flash the one of these files labeled recovery. Then rom, then gaps, then kernel. Then the last thing to oi flash before booting is this mod file labeled boot. Then, any time you change kernels or roms, flash that boot file again before booting.
[Hero CDMA Android Development] Eric_1966_FXE:
THANKS Dana,

Just one question if you don't mind. About my old card vs. new card, can I format the 16GB, and ONLY put the files for this mod and the other assorted zip files I need? Can I leave the rest of the card blank for now or do I need to copy anything over from my old card.

Remember I want to start all this totally fresh, so if there's nothing in any of the misc folders I need, I'd rather not copy anything from the old card.

There is a post on xda regarding replacing your card with a new one but it has you copy everything from the old to new and I don't think I really need to do this, but I'd like to get someone who knows more than me to tell me I'm right.

THANKS again.
[Hero CDMA Android Development] danaff37:
You don't need anything else. Your phone will create some directories in boot.
[Hero CDMA Android Development] Eric_1966_FXE:
Awesome. THANK YOU
[Hero CDMA Android Development] cuezaireekaa:
weird thing... been running this mod for sometime now and love it. but i tried to update my radio and got an error.. .even allowed for more partition space and still got that error.

so i flashed the latest fresh rom and still was unable to flash a new radio. i'm using amon recovery from darchdroid.
[Hero CDMA Android Development] Vandelay007:
I had issues with darch's recoveries and this mod too...but when I switched back to clockwork recovery in rom manager everything was good again...I don't even need a computer to do adb boot recovery anymore either....after I flash the recovery.zip and do the 2nd wipe I reboot to recovery from there with no issue...
[Hero CDMA Android Development] Firerat:
do not flash radio via recovery, use fastboot

do not flash radio via recovery, use fastboot

do not flash radio via recovery, use fastboot

if you really want to risk using recovery to flash radio, then

flash a stock recovery ( stock as in not mtdpart hacked )

fastboot erase system -w ( very important )

boot to recovery and flash your radio, look above and use fastboot , not recovery !! bricks can happen if you use recovery !!

when you flash a radio via recovery it first gets copied to /cache, the SPL expects /cache to start in a certain place.. if you are MTD Hacked it won't work !

Honestly the best way to flash radio is via fastboot
[Hero CDMA Android Development] danaff37:
And for us cdma hero users, the only way to use fast boot is to flash darch's engineering spl.
[Hero CDMA Android Development] Eric_1966_FXE:
Aaaaaaaagggghhhhhh

Well, I did this just like I was supposed to. I updated my recovery, FORMATTED my new SD Card, only copied the 3 files I needed for this mod, my ROM, kernel, and tiny gapps to the new card. (note: on my mtdpartmap.txt I used "mtd 120 10" for values).

Booted into recovery, WIPED EVERYTHING, flashed the recovery file, etc, EXACTLY in the order per the directions.

BUT .... I did something wrong along the way. My first clue was after going through the initial setup of the phone was that one of my wallpapers showed up as the background (remember I formatted my SD card and wiped everything (system, data, delvik), so HOW did one of my wallpapers show up.

Then I go to settings to check my space and I'm only showing 160MB total on the phone, and I see a bunch of my apps are on the phone already (before I had a chance to install anything). I go to Market and it's downloading updates for 34 programs automatically. Right now it's still updating stuff and I've only got 62MB free on the internal storage.

I'm totally stumped. I'm going to redo this later on tonight when I have time, but does anyone have any clue what happened? I realize I'm not giving you much to go on. The only thing that I can say didn't look right when I was doing this was that when I updated my recovery to RA-heroc-v1.6.2, I did get an error. One of the instructions for installing via adb was "mount -a". I got an error about -a not being recognized or something to that effect, but I didn't think much of it because I used mount without the -a and it seemed to work. Rebooted and got the RA-heroc-v1.6.2 screen. I just assumed it was a glitch and went through the rest of the install without any other errors.

I'll check back here later on tonight but I'll be MIA for the next few hours. If anyone has any clue, please post something and I'll check back here before I re-do everything.

Thanks in advance.
[Hero CDMA Android Development] danaff37:
Aosp roms automatically back up and restore your settings and market apps. You did nothing wrong, sounds like it worked.
[Hero CDMA Android Development] Eric_1966_FXE:
Then why do I have only 36Mb left on my internal storage? For what its worth everything is running super fast. Tempted to just leave it alone but puzzles me that others have SO much more memory. Think I'll wait till tomorrow before I re-wipe or anything.

Thanks for your help. Much appreciated.
[Hero CDMA Android Development] debh945:
Yeah, it sounds like something didn't work because you should have way more data storage than that. For what it's worth, I use ClockworkMod recovery and even though the OP says you have to reboot into recovery using ADB, I reboot into recovery from the Clockwork menu after the second wipe and it has worked for me every time. I'm using CM6 and my .txt file is 110 10; that still leaves me with over 7mb of free space in system. You just have to remember that the boot .zip is flashed last after any new rom, kernel, etc. Hope you get it working, this is an awesome mod!
[Hero CDMA Android Development] Vandelay007:
+1 you don't need to set the data partition to 10, 3 is plenty....and if you have that little space I would wipe and try it again....I have over 350M of internal space....with my file set to 105 3
[Hero CDMA Android Development] Eric_1966_FXE:
Alright Guys, I'm gonna' try it again and see what happens. If I don't fall asleep I'll post tonight and let you know how I made out. If not, I'll post my results tomorrow night.

Thanks again.
[Hero CDMA Android Development] Eric_1966_FXE:
All I can say is WOW. I've got almost 250mb left and I'm getting quadrant scores of 460+. Amazing. Thank you all who commented helping me and thank you Firerat for this mod. You guys are awesome.
[Hero CDMA Android Development] Vandelay007:
Make sure you remember to flash the boot.zip file anytime you restore a nandroid or flash a new kernel....speaking of kernels, which are you using? The latest bfs (Oct 12) with set cpu is got me a 495 quadrant score!
[Hero CDMA Android Development] Eric_1966_FXE:
I am using the BFS#13(?) from 10-12 as well.

As far as flashing new stuff I'm sure I will but this is as close to perfect as I've seen since I started flashing.

Thanks van. Much appreciated.
[Hero CDMA Android Development] Vandelay007:
Anytime, let me know if you need anything else
[Hero CDMA Android Development] Asadullah:
*BUMP* thanks for this gonna try when I get back from school.
[Hero CDMA Android Development] barry.bishop72:
just looking for some advice, it always goes wrong about after step 7, I don't get the prompt to wipe cache, system, and dalvik again. Then of course the rest of the deal doesn't work. I follow the steps exactly up to this point and have rolled snake eyes twice now. I would much rather have 150 MB on internal compared to the 50 I have. Any thoughts? :confused:
[Hero CDMA Android Development] pwachleman:
I've noticed that if you are using the Clockwork Recovery Mod it says this in white type on the screen, I almost missed it the first time. I think if you just do it and finish the steps you will find that it worked...and Im betting you will have 250 free instead of 150! I went from 49 before to 270 free!
[Hero CDMA Android Development] Vandelay007:
+1 I would just make sure you wipe everything again after flashing the recovery patch...even if you don't see the prompt to do so....then reboot into recovery and flash your rom or nandroid...then your kernel, if flashing a rom, if you choose, then the boot.zip then you are good to go....

Sent from my froyo using the xda app
[Hero CDMA Android Development] barry.bishop72:
OMG :D thanks! I actually went to 326 MB. I have wrestled this thing for months, and even accidently completely wiped my sd card once. Had to completely start from scratch. It took about a month to get my nerve back to give'r one last shot, thanks!
[Hero CDMA Android Development] FussyQBert:
Help! I messed up my phone trying to do this mod. I understand what the mod does, but I'm not sure where I went wrong. When I try to restore my cm6 daily build, it says md5 mismatch. I've also tried installing a new ROM which just boot loops.

I was able to get one of my older restores from a couple days ago to restore, but it still won't boot! I formatted system,data, and cache then flashed the boot zip and I can't get it to boot at all.

Please help!
[Hero CDMA Android Development] barry.bishop72:
did you also format the sd ext? (NOT THE SD CARD!) You may have to go back and re-add all of your apps. Hopefully you have them on titanium.
[Hero CDMA Android Development] FussyQBert:
I never had an sd:ext partition. Just never used the apps2sd functionality. Did I need this partition to do this mod?

****! I just tried to run the sprint RUU to go back to stock and it said my battery is less than 30%. I'm pretty sure i just charged it to full... I hope I didn't brick this thing.

How do I revert back to my old recovery?
[Hero CDMA Android Development] FussyQBert:
Thank god. I reverted back to an old recovery.img that was on my sd card. Wiped everything and installed the latest cm6 nightly and it finally booted. PHEW.

ps. Glad i couldnt install the sprint ruu ;)
[Hero CDMA Android Development] stayclean:
Tried this last night with CM6 nightly build 96. Wouldn't boot with the file set to 105 3, worked with 110 3 though. After flashing the nightly and tiny Gapps, had 310 or so of internal memory left, not bad at all.
[Hero CDMA Android Development] someonenewhere:
just flashed it...got about 350mb's .........thanks!
[Hero CDMA Android Development] bigfoottrucker:
I got it to work with cm6 with mtd 102 2. But if you are adding a theme or extras then probably need to set it higher.
[Hero CDMA Android Development] Vandelay007:
I went into system/app and removed so much junk that I got it to work with 90 3... giving me 367M

Sent from my froyo using the xda app
[Hero CDMA Android Development] stayclean:
No themes or tweaks but eh, can't complain, have a TON of space regardless.
[Hero CDMA Android Development] Vandelay007:
I have mine set to 90 3 and go between asimmons blue theme and impalers black and gold

Sent from my froyo using the xda app
[Hero CDMA Android Development] pwachleman:
This has probably been asked and answered, if I want to change my ratios, say instead of 102 2 I want to do 95 3...do I just change the text file and then flash the boot file? Thanks
[Hero CDMA Android Development] Vandelay007:
No, you have to start the process all over....but be sure you can boot with those settings...check in terminal emulator

Type:

su

df -h

Look under system....it will tell you what you have and what you are using.....you should add like 10 to that number for breathing room

Sent from my froyo using the xda app
[Hero CDMA Android Development] pwachleman:
Great, thank you for the assistance.
[Hero CDMA Android Development] Vandelay007:
Anytime..let me know if you need any more help with it

Sent from my froyo using the xda app
[Hero CDMA Android Development] danaff37:
If you want to change the txt, you have to flash the recovery file after changing it and do the whole process again basically
[Hero CDMA Android Development] Dubbin_Irie:
Woot still playing around but on nfintes .7 Rom deleted a bunch of system/apps and HTC widgets and I am at 250mb free the kicker here is with autokiller set to strict and killing a bunch of unneeded processes I can get up to 110 mb free RAM. It ranges from the 90s up to the 110 but still flipping amazing.

Now weird question. When I reset my values to what it should be and go into terminal, type df it looks like its automatically adding 2mb to the value... anyone else have this happen? With cm6 it didn't do it but with sense it has. Hmm.....

Anyways great stuff here
[Hero CDMA Android Development] oohaylima:
Well I'll be......this is a nifty little tool to use. Came across multiple problems along the way when installing this, but it was nothing a cup of coffee and some reading couldn't handle.

Keep up the excellent work. I really do appreciate the coder coming over and sharing some insight for us Hero users. ^.^
[Hero CDMA Android Development] CrashV2010:
DAMN IT, i finally got this thing working, great work fireratsssss.... I just nan my nightlyies wiped, flashed the recovery, reboot, then nan back, wipe d cashe, then nan back then flash boot zip.... then boot up, have over 60 apps and still have 225 mb left, I moved all apps to the phone.... BAMMMM, thank you sooo much....
[Hero CDMA Android Development] Firerat:
well, as long as you don't need to change the sizes you only need to flash the boot patcher from now on

Or, you can pre-patch the rom with the AutoMTD script, saves you hunting down the boot patcher in recovery :)

Linux script, I should get off my a and do a .bat for winblows,, or at least do some kind of tiny virutalbox image
[Hero CDMA Android Development] CrashV2010:
You can do that, but thanks man... Now that I have your mod working, I can goto town... As you can see I am using Clockwork... I think one of there updates in the last few months fixed something, so I can enable me to do this... Thank you soo much again sir....
[Hero CDMA Android Development] Cipherblox:
I cannot for the life of me get this to work.

I followed each and every single step to a T though I used './adb reboot recovery' and not './adb shell' and 'reboot recovery' as the latter didn't work. When it came back up, it had log file errors stating that there wasn't enough room. Thus, I increased the both the system and cache to 110 10.

The recovery menu no long boots up after following all the steps. I get the HTC screen, I then get a quick flash of the Android and the unpacking screen at which point the screen goes blank again and reboots to the point where it just sits at the HTC screen.

Any ideas on what the problem could be here??

-Kevin
[Hero CDMA Android Development] CrashV2010:
I just nan my nightlyies wiped, flashed the recovery, reboot, then nan back, wipe d cashe, then nan back then flash boot zip.... then boot up, have over 60 apps and still have 225 mb left, I moved all apps to the phone

In your txt file have it 110 3... And save file....

This is what should be on your txt file..

mtd 110 3

spl 1.33.2005
[Hero CDMA Android Development] Cipherblox:
Why the SPL version?

I was running clockworkMod 2.0.0.2 or something like that and it wouldn't work so I grabbed RA 1.6.2 and flashed that image instead and it worked like a charm. Unfortunately, it is now at 'mtd 110 10' instead of 'mtd 110 3', but I feel like I can deal with the loss of 7MB of storage - I don't use many apps at all anyways...

Sure enough it worked :) 284MB free just after flashing CM6 #99! Awesome!

-Kevin
[Hero CDMA Android Development] CrashV2010:
Nice, good job... Whatever works right, lol !!!
[Hero CDMA Android Development] mercado79:
Looks like adding the SPL version is just a precaution against boot issues some have run into.

http://xdaforums.com/showpost.php?p=7780010&postcount=87
[Hero CDMA Android Development] eltheself:
GRR at windows 7!!!! I've been trying to get this 2 work for 2 days now, and part of it was me thinking win 7 was just an updated version of XP... also, 102 may be a little short for some of the folks using modified versions of cm6 I used the 110 setting that someone else in here tried. this does not work with the latest version of clockwork recovery, the adb shell command doesn't work, and without the shell, it doesn't seem to work right. after the first day of trying clockwork I switched back to latest Amon Ra, but I have the Godspeed Darch edition (http://ip208-100-42-21.static.xda-developers.com/showthread.php?t=672324&page=19) but amon ra 1.6.2 is the recovery that allowed this to work for me.

Someone asked once before if this mod increases performance... I'd say yes it does it, in a round-about manor... Most of us are using apps2sd, which, even on a class 6 sd, is at least slightly slower than internal memory. with Firerats mod, I no longer have a need for apps2sd, so I can run at peek speeds... so technically, it does increase performance... depends on how you look at it.

Thanks Y'all!
[Hero CDMA Android Development] Firerat:
I use clockwork, works fine .

Infact I recommend Clockwork for customMTD due to its convenient partition formats
[Hero CDMA Android Development] Vandelay007:
+1 I have tried this with clockwork and darch's recovery and agree that it works awesome with clockwork....

Sent from my froyo using the xda app
[Hero CDMA Android Development] Tiffany84:
I know this u is going to sound stupid but how do I create a txt file?
[Hero CDMA Android Development] Rivas123:
Use Notepad.