yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] evilvoice:
Im actually going to throw it in my rom under etc/init.d. I just wanted to make sure I had the script. I tested my rom, and it runs scripts from the dir, so dropping it in should be fine. Is sd-ext required, or will it default to data (actually, it looks like it looks for sd-ext first, if not found, then it defaults to /system/sd)? My main thing is that I did df -h and there is not a /dev/cache. Since you spoke that your mod does not run correctly without that, I wanted to make sure that I fixed it with your help.

I really appreciate your help and would be nowhere near where I am now, so thank you. I know the Hero isnt your device, and you probably did not expect to be bombarded by all the questions you have received in this thread.
[Hero CDMA Android Development] Firerat:
egrep -q "sd-ext|system/sd" /proc/mounts

egrep = get regular expresion

"sd-ext|system/sd" = sd-ext OR system/sd

$? = the exit code

if sd-ext or system/sd is mounted, the exit code is 1 , if not 0 ( yeah seems mixed up, but it makes sense in code land ;) )

so , if we get an exit of 0, we then get the actual mount point ( by printing field 2 to environment variable sdmount )

if the exit is not 0 ( ext partition not mounted ), then we set the sdmount env var to /data

hope that makes sense
[Hero CDMA Android Development] cordell12:
Firerat,

I have come across another script I am interested in trying, but I would like your opinion on it first. Your MOD is 100% stable and I dont want to try something that may interfere with it. Its called data2sd and the link can be found HERE. I read through quite a few pages and seen a couple post where a few users are running it along with a custom MDT Partitions, just wanna make sure. Also if there are downsides to doing this that may not be posted, please let me know, considering you have looked into data2sd before.

Thanks :)
[Hero CDMA Android Development] Firerat:
had a quick look at it the other day

customMTD is not going to get in the way

it speeds up i/o by moving stuff to a partition which doesn't log access times

great for benchmark tarts

real world, meh.. I can't see it making all that much difference

here is my script to do the same

busybox mount -o noatime,nodiratime,remount /data

you don't save space on /data,

but you have plenty anyway?
[Hero CDMA Android Development] cordell12:
Thank you for your reply,

I dont need to try and save any space, your mod gives me more than enough :) I was just looking at the increase speed of I/O. I have seen the results of benchmarks (screen shots), would I see a result in performance though? If the increase would not be noticeable outside of a benchmark than the mod is something I wont bother doing.

Thanks
[Hero CDMA Android Development] Firerat:
try that remount ( rebooting will undo it )

see if it improves benchmarks

then see if you notice any difference real world

if you do, then get a script to do it on boot ;)
[Hero CDMA Android Development] cordell12:
Am I doing this correctly by typing SU then "busybox mount -o noatime,nodiratime,remount /data" (no quotations) into Terminal Emulator? If so on benchmark I dont notice anything, still pulling 450. I dont have the paid version of the app so I cant see if I/O has improved, judging by the scores it hasnt though. I havent rebooted, gonna see if over all performance shows any improvement.

Thanks
[Hero CDMA Android Development] Firerat:
try the script and see if that makes any difference to the benchmark
[Hero CDMA Android Development] cordell12:
I am gonna give it some thought before I start reformating my SD and other junk. If your script line essentially doing the same thing but not on boot, after using the phone today I see no real difference :( I may try it though if I get bored enough, it does say 250% increase for I/O :D
[Hero CDMA Android Development] windtrader:
Really OT but.....

you folks here are so generous with your knowledge I was hoping for some expert opinion on the following.

I picked up one of the LG Optimus S phones as I could not resist the FREE phone ad. It is a nice device and runs well, only thing is it is not HTC which mean dev support is far far less.

So, things like FireRat mod and rooting and ROMs and such, how does one go about trying to get things on the LG in a safe manner?

As long as I root carefully and can get nandroid on there, I can make a full backup to always get back to that safe point right?

What other precautions other than obvious things like not screwing with the radio should I worry about so I don't brick the device?

thx
[Hero CDMA Android Development] cordell12:
HERE is a forum/thread with roms and dev for the LG Optimus S ;)
[Hero CDMA Android Development] cordell12:
Firerat,

OK, so I decided to try install the data2sd script, it calls for 3 partitions on the SDcard. Could you please take a look in your spare time (I know, spare time, yeah right!) and recommend sizes for the partitions so they will not interfere with your MTD mod. It looks like data can be no more than 2 gigs, I plan to keep apps in phone (run faster in phone), I also plan to use swap (default 18%), and the third partition is the left over, correct? I am using a 8 gig class 6 SD card. It also said I need to remove the apps2sd from the rom, I think I can keep it as long as I use CM options to install all apps internally. Thanks for helping me out with this, if this does work it will breathe more life into our struggling Hero's :D

Thank You
[Hero CDMA Android Development] Firerat:
no need for me to look,

customMTD does nothing to sdcard, so its fine
[Hero CDMA Android Development] cordell12:
My god, I ran through all the commands, got done and rebooted, waiting, anticipation, excitement, all led to a BIG mistake I had made when using EASEUS to create my partitions. I didnt choose Primary on any of them. They were all set as Logical. So upon reboot my phone did not recognize my sd card :eek: Long story short it took quite a few minutes to restore everything back to pre testing state! O'well theres always tomorrow LOL I feel like a n00b :o

I know this is all off topic, and we are 100% sure the two are not gonna interfere now so I wont clog up the thread anymore. If it does work I will let you know though :)

Thanks Again!
[Hero CDMA Android Development] windtrader:
THANKS. I did not realize that site had an active pack of devs. Guess I'll be bookmarking that site to do some magic on my daughter's new Optimus S.

I am tempted myself to replace the Hero with one as well but I am so stuck in the HTC crowd at XDA it feels like a defection if I get one. That FREE thing really tugs at my cheapness genes. :-)
[Hero CDMA Android Development] vinc3stylez:
does anyone know how to undo this?
[Hero CDMA Android Development] :
Reflash your Recovery via Rom Manager, is one way. Probably the easiest.
[Hero CDMA Android Development] cordell12:
I know I have a March 1st upgrade, sprint will let you upgrade a couple months early if the phone you are trying to replace is primary line, which mine is :) I am scared to take that leap to a LG and not get a EVO, even though the EVO is a monster of a phone!
[Hero CDMA Android Development] igtheactt1:
Lol windows has checked the file system and found no problems I guess I have to buy another
[Hero CDMA Android Development] vinc3stylez:
I've tried that and factory reset when my phone boots back up i still have my wallpaper and market. where ever the data is kept for that its not being touched and im having market issues now argh
[Hero CDMA Android Development] cordell12:
Go to settings, manage application, find market and clear storage or cache or data, whatever the option is. I cant remember off hand.
[Hero CDMA Android Development] vinc3stylez:
Thanks for the help, i've tried all of the above with no success. so i finally reimaged my phone and rerooted then flashed back to 6.1 and how i can see the apps again. My guess is that somehow the apps for stuck in the partition that doesn't get touched with wiping and reflashing and the only way to fix it is to repartition if you know how or reimage to fix the partitions
[Hero CDMA Android Development] KBizzle:
You could start from scratch. Just partition your sd card and leave 0 ext. Just make sure you save your important files to your computer first.
[Hero CDMA Android Development] 808Bill:
Firerat,

After a thorough review of all their posts, side trips to other sources, I closed my eyes, and gave this a shot. It works great, but better yet, I learned a great deal. Thanks for the mod, but more important thanks for the lessons.
[Hero CDMA Android Development] aiwetir:
Can someone outline the process of getting any changes you make to the txt file to apply. Do I have to do the whole process again or can I change the numbers and flash boot?
[Hero CDMA Android Development] brokentoaster24:
kinda off topic, but wait for jan 9th before you upgrade. sprint is supposedly releasing the htc evo shift which is essentially a desire z (g2)
[Hero CDMA Android Development] aznprelude:
thank you for this.................... !!!!!!!!!!!!!!!!!!!!!!!!
[Hero CDMA Android Development] aqualls:
Same issue here. Can use the remove .zip and update radio. But when I do the process all over again to change to a sense ROM from AOSP, it gets stuck at bootscreen even after changing the values. If I leave the values to the ones I set for the sense ROM and apply AOSP, the values are exactly the way they were before I changed them. I check the mtdpartmap.txt and they are still what I put but it didn't change after recovery and boot .zips were applied.
[Hero CDMA Android Development] :
Anytime you change mtdpartmap.txt on /sdcard you have to re-run the process from start to finish again, not just the boot zip.

Also double check to make sure that mtdpartmap.txt is on the root (top level) of the sdcard. It drove me nuts once when I had it in my download folder... wondering why it wouldn't change.

As others have said, the easiest/fastest way to undo the changes and go back to default is to just flash your recovery again from ROM Manager (assuming you can boot your phone of course). If you are S-OFF you can flash the recovery that way also via a HERCIMG.zip

Note: I didn't read all the history as to what is going on, just dropping some hopefully related tips. If you already know these, then consider yourself smart! ;)
[Hero CDMA Android Development] aqualls:
Did all but reflash recovery via ROM manager. Will try that now. Sometimes you just need a fresh set of eyes on the problem.
[Hero CDMA Android Development] sane82:
No everybody just needs to read through all threads before asking. And if They can't find it on this site then they can just goggle it and goggle will pull up the thread they said you couldn't find. Hummmmm!!!
[Hero CDMA Android Development] igtheactt1:
Who cares if people ask questions why would they have to read through the whole thread... stop being an a**... People like you are non helpful and your comments aren't needed either...
[Hero CDMA Android Development] aqualls:
Thanks did that. Also on the original Firerat post.
[Hero CDMA Android Development] sane82:
I wasn't trying to be a @ss its just part of my personalty. But glad you found it.
[Hero CDMA Android Development] Sparticuz:
1.5.7b works on my heroc, fyi
[Hero CDMA Android Development] aqualls:
Thanks. I downloaded it before along with the remove .zip. Tried 1.5.7, but not 1.5.7b. I read all over the original thread for the G1 and this one. So far no success. Not a big deal right now. Just like to know I can change the partition values should the need arise.
[Hero CDMA Android Development] Rivas123:
I keep getting -

"E:Failure at line 62: symlink /system/xbin/bb/zcip

E:Failure at line 62: symlink ../busybox SYSTEM:xbin/bb/zcip

Installation aborted."

While trying to flash Stock Odexed .6 any suggestions? I keep raisin the mtd # # but nothing. idk what else to try.

*****WAIT!! guess it just didn't have room to load, mtd 200 4 work for this ROM and might work for Fresh, DD, Sugar Free etc. going to see how low I can push it so it has enough room.

Ok, so I was able to drop it down to mtd 182 2 I think this was just enough, since 180 gave me the error stated above.

Confirmed! as working on Stock Odex .6 ROM by Nfinite Currently have 237mb of Available Internal Memory!!!! =)
[Hero CDMA Android Development] Foo_Blyat:
Beat me to it! For sense roms you will need to set your own partitions and up the value.

For people asking what the benefit is of this, PLEASE DONT FLASH..... if you dont understand what your doing or why you need it then dont do it just because other people who understand are.
[Hero CDMA Android Development] Rivas123:
Haha oops :p Now my phone is fast, stable, and I can have more than 20 apps, (I like games) now to hit the boot animation which I know nothing about but lets see how that goes lol
[Hero CDMA Android Development] barry.bishop72:
ok, you are correct there. I rooted my phone when the hero first came out, had several different roms, but haven't gotten into the intricacies, and tried this for that reason, now I'm stuck. Can't get anything to boot. I know I assume responsibility.....
[Hero CDMA Android Development] Big-O-Devil:
if you cant't do anything..then try the original ruu.... and start all over... but if you can still get into recovery then wipe everything,EVERYTHING.... and flash a rom... you should be back in business....

let me know....
[Hero CDMA Android Development] bigboidomo:
No one fixed nandroid yet

Did I catch you having fun? *slaps*
[Hero CDMA Android Development] barry.bishop72:
thanks, I never lost the ability to go into recovery. I think all the extras I use, i.e. gapps, collins battery tweek, blackmod v2.2 was interfering with some setting, I don't know. I finally got the bare bones froyo to work. I then went to the Rom Manager and switched to clockwork to get rid of the patch. I then rebooted and went back to the Rom manager, reverted back to the original Heroc recovery, did a titanium restore, and I'm back to square one. Thanks again!:D
[Hero CDMA Android Development] bigboidomo:
What settings should I use to get 350+ I'm on froyo cm6 8/19 nightly build

Did I catch you having fun? *slaps*
[Hero CDMA Android Development] Big-O-Devil:
On the text file put 102 2... that gave me 350.... with out the Google stuff....
[Hero CDMA Android Development] darnell32286:
i flashed everything, got everything to work went to setting and had 335mb

but my home key,phone key and seach key all dont work....also i flashed gapps an there no google apps at that pop up.

can anyone help me please
[Hero CDMA Android Development] Big-O-Devil:
whats your setup.?.?
[Hero CDMA Android Development] Rivas123:
Flash recovery then remember the rom and gaaps should be flashed right after. Then the boot. Then reboot. If still nothing then raise the mtd # # and try the whole process again. The wipin and flashin etc..
[Hero CDMA Android Development] darnell32286:
ooooohhhhh lol.... i fixed it, i didnt make the mtd .txt file

once i put it on my sdcard and did the steps again it fixed everything

thx alot for the help :D
[Hero CDMA Android Development] dsMA:
need HELP, bad

reposted in a cleaner more clearer manor below...please refer to post 78 and help if you can.

Thank You
[Hero CDMA Android Development] dsMA:
I initially had that problem too. See my post above on how I fixed this.

It should be noted that though I was able to boot into cm6 and did increase my internal memory up to 340 I am not experience serious problems. If you what to see what those problems are see my post below.
[Hero CDMA Android Development] dsMA:
reposted in a cleaner more clearer manor b elow
[Hero CDMA Android Development] dsMA:
[req] need major serious help!!!

I posted before but let me go ahead and post again because I have been trying somethings out trying to see if I could resolve on my own.

First go around I followed the steps not making the mtdpartmap.txt file thus using the defaults. This resulted in getting stuck at the htc screen after the final reboot.

Next I created the mtdpartmap.txt file faking my spl (thinking that was the problem. I used the 1.33.2005 as recommended in the linked page of the op. I then followed all the remaining steps. This allowed me to boot into cm6. Unfortunately off the pat things seemed to be wrong. First widgets weren't loading (though this is prob a result of issue three that I will mention). Second there wasn't a clean home screen (by this I mean when cm6 loaded the home screen I saw was the same as before I did the wipe. After a data and cache wipe and reflashing of the rom I would expect it to go to its original default state. Third none of the google apps that I flashed were there (This might have something to do with why the home screen looks different. The marketplace is usually put on the home screen, but the marketplace isn't installed on the phone. Also when going to menu - settings - accounts & sync - add account, there is no option to add a gmail account). Fourth all the menu items in settings were in black and white instead of color.

Things I have tried to do to correct the problem:

preformed all the steps again using 90 2, 105 2, 110 2, 155 5

I used the same cm6 rc1 rom and no changes occurred. Even more interesting is that the internal memory size did not change for any of these modifications. Internal memory read 340 in each instance.

I also performed all the steps using the defaults (no mtdpartmap.txt) but using a 2.1 based rom (Aloysius 2.1.2 update 6.29) After final reboot could not get past the htc screen after waiting 45mins.

Is there a way to blow this mod away and return to a state as if I never tried it?

Any ideas as to why the google stuff isn't flashing?

Any ideas why the settings menu items are now all in black and white and why the home screen doesn't return to its original state on a fresh install?

Any ideas on why the internal memory isn't being effected?

the mtdpartmap.txt file does not seem to presistant. Which file uses it: recovery, boot, or both?
[Hero CDMA Android Development] danaff37:
So many things wrong in your post. First, faking spl is for other phones, don't try it on our heroes. Second, if you're trying any other rom but froyo, you will need much bigger than 110 and probably bigger than 155 even. And to undo, reflash your recovery image or a new one and don't flash any of these files.

And overall, if this isn't working for you and your data size doesn't change, then you missed or messed up a step.
[Hero CDMA Android Development] secbrad:
reply [req] need major serious help!!!

Damn, you waited forty five minutes. You weren't staring at it the whole time were you, JK. I don't know if any of those were big enough for 2.1 w/or/w/o sense. I had the problem of part of the gapps loading, I think all but the market did so I changed it to "102 2". Thats RC1 with newest gapps and it booted it up w/about 296MB free.

One thing I did notice is that I never received the cache message on the recovery screen after I was suppose to reboot the first time.

This is what I did

-flashed the first thing

-wiped everything, I mean everything

-adb reboot, I had the phone unplugged until this point but

I don't think it matters since I did it a second time

w/o plugging it in and just turning the phone off and

booting into recovery.

-flashed rc1, newest gapps

-flashed second thing

-rebooted and I had 296MB.

And I don't know how to make it like you never did any of this.

Oh and all I did was make a .txt file on the root of the SD and literally just type "mtd 102 2" w/o quotes inside of it. I guess that how your suppose to do it.
[Hero CDMA Android Development] caliboy99:
I wanted to update my radio to the .29 latest version. I have ASOP rom with firerats custom partitions. I know we have to fallow the steps on page 58 or this thread. I tried it without clockwork recovery installed. Everything seems to go fine but i still end up with my original radio .27 not the newest one.

Do i have to use Clockwork recovery for this to work?

I heard cloclwork does not play nice with ASOP rom thats why i didnt install it before trying to update radio.
[Hero CDMA Android Development] Firerat:
if your flashing the radio via fastboot, it should be fine ( make sure you fastboot erase system -w first )

if you flashing radio via recovery the you *must* remove customMTD

( and format system.cache and data )

the reason is that flashing the Radio copies it to /cache, it is then flashed

if you shrink cache ( or have it start in a different place to what hboot expects ) then it will fail
[Hero CDMA Android Development] revcp:
And as an aosp user I can attest that CWR is fine with aosp (I'm presently running aospMOD 0.9.9.2), although when I reboot recovery through adb I have to do "adb reboot recovery" instead of "adb shell" "reboot recovery".

And a question. I've been unable to update my hboot to fastboot on. I've tried to flash the special SPLs, and it appears to work, but when I go back into fastboot I see it's still 1.47 off. Do I need to remove the customMTD (and, as above, format system, cache and data) in order to flash the off SPL and then redo firerats?
[Hero CDMA Android Development] hotaru:
is your bootloader s-off or s-on? if it's s-on get it s-off with unrevoked forever. once it's s-off, put the eng spl img in a HERCIMG.zip and flash it from the bootloader.
[Hero CDMA Android Development] revcp:
Thanks for the reply. It's s-on. I'll try unrevoked forever, although I think I've tried it before without success. As for "put the eng spl img in a HERCIMG.zip", afraid that's beyond my capability (both to understand that to execute!). Is such a zip floating around?

So before doing all this I don't need to remove or modify firerats?
[Hero CDMA Android Development] revcp:
Tried installing unrevoked. Get the message, "E: unsupported radio version E: Update fauled. Check /sdcard/soff.log E :Error in /sdcard/unrevoked-forever.zip (status 42) installation aborted"

My radio version: 2.42.02.10.29
[Hero CDMA Android Development] hotaru:
ah, in that case, you'll probably have to remove firerat's, flash an older radio, and then do it.
[Hero CDMA Android Development] revcp:
Yep. that's what I thought. And I remove firerats by flashing a recovery or using the remove zip, correct? Either one preferred? In reflashing firerats does it work to use 1.5.7b for cdma hero?
[Hero CDMA Android Development] caliboy99:
Yeah i put clockwork and fallowed the instructions again and the radio stuck. I also have the same problem when i try and do a adb rec reboot via shell. Just curious but does your phone reboot when you try and reboot recovery via clockwork? (thats what mine did in this case). Thanks guys for the help
[Hero CDMA Android Development] revcp:
yes, mine reboots fine through cwr.
[Hero CDMA Android Development] jcj77d:
will this boost performance any?
[Hero CDMA Android Development] srthimsen:
Not per se, only if you're regularly running out of internal space, as I was. I now have 300-plus MB to install my apps internally. Really nice not having to worry about space anymore.

If I have angered the firerat gods with any misinformation, forgive me, but I don't believe there's a direct performance benefit.
[Hero CDMA Android Development] evilvoice:
Firerat, I notice in the G1 subforums you have an AutoMTD patcher. will that work on our heros also? Thanks
[Hero CDMA Android Development] Firerat:
yes

all it does is add the boot patcher to an existing ROM zip
[Hero CDMA Android Development] Akkeresu:
Hmmm....followed everything, seems to hang at the HTC logo. Any ideas, or what I should provide?
[Hero CDMA Android Development] 24601:
Same here. Was not able to get past step 9.
[Hero CDMA Android Development] 808Bill:
Were you able to reboot into recovery from adb? If you couldn't, and are using clockwork, you can reboot into recovery from clockwork without using adb.
[Hero CDMA Android Development] 24601:
Not from adb. I am using clockwork and I can reboot into recovery, but where do I go from there?
[Hero CDMA Android Development] 808Bill:
I found post #513 to be the most helpful for instructions.
[Hero CDMA Android Development] 24601:
Thx, I'll take a look. I can't get past the HTC screen, and I have the error message, E:Error in CACHE:recovery/log (no space left on device).