yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] jmanley69:
My apologies, I wasn't aware the menu changed in that way. You are correct, you used to just take "Partition sd card fat32+ext+swap" and that was it - no prompts. Is that no longer an option as you drill down the menus?

As for the swap. I can't speak from any concrete knowledge, but I would assume that putting a swap partition on an SD card would not give you much performance increase. I have seen projects that make a swap file in the memory reserved for the file system which would be pretty quick (or quicker than on the sd card). One thing I have seen with MoDaCo is that with more memory available (using a swap file or swap partition), the kernel's task killer doesn't see the need to kill tasks as quickly which causes the phone to start to get sluggish while all the processes are fighting for clock cycles in the background. I would suggest (again, not speaking as an expert in any way) to forgo the swap partition completely unless you plan on running PhotoShop from your phone and need the extra memory.
[Hero CDMA Android Development] brazen:
Nope, must select the swap and ext size and the remainder is allocated to fat32, which is a nice option. But yeah I have the same feeling about the swap on sdcard. I'll dig around for the 'swap file on the system' project. Thanks!
[Hero CDMA Android Development] jmanley69:
Check out MoDaCo's ROM kitchen... it's an option there (I forget the name of the program).
[Hero CDMA Android Development] Amon_RA:
Updated to v1.6.2

Change-log :

v1.6.2

- Added power off menu item
- New unyaffs binary patched by Koushik Dutta and Packetlss to fix the "losing root"-issue and incorrect file-time after a Nandroid restore
- New dump_image binary (by Brainaid) patched by Packetlss to fix the "bad blocks"- Nandroid restore issue.
[COLOR="Red"][B](This will not fix old corrupted Nandroid backups! Please make new backups!!)[/B][/COLOR]
- New mkyaffs2image binary
- New flash_image binary
- Updated busybox to v1.5.3
- Nandroid menu options will NOT backup or restore recovery, cache, misc, splash1+2 (to avoid issues)
- Fixed wipe option not wiping when ext was not present
- Created carebear versions after the idea of packetlss
- Switched the Nexus logo to a Green Carebear with Nexus One logo (Thanks Montalbert!)
[Hero CDMA Android Development] gu1dry:
Oh awesome! Thanks for the update.
[Hero CDMA Android Development] darchstar:
Sweet, I may have missed this in a previous release, but it seems you added the ability to format your sd to ext3 or ext4. great work man
[Hero CDMA Android Development] Amon_RA:
Please be aware that ext4 isn't supported by the recovery kernel (yet), so you will be unable to read ext4 from recovery.
[Hero CDMA Android Development] Sporkman:
i tried to gett his to take but i get this not sure what i do wrong but i still boot to 1.5.2

C:\Users\Sporkman>cd\androidsdk\tools

C:\AndroidSDK\tools>adb shell
* daemon not running. starting it now *
* daemon started successfully *
/ # mount -a
mount -a
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: No such file or direc
tory
/ # flash_image recovery/sdcard/recovery-RA-heroc-v1.6.2.img
flash_image recovery/sdcard/recovery-RA-heroc-v1.6.2.img
usage: flash_image [-d] partition file.img
options:
-d delete the image file after a successful flash
/ # reboot
reboot

C:\AndroidSDK\tools>
[Hero CDMA Android Development] jmanley69:
flash_image recovery {SPACE} /sdcard/recovery-RA-heroc-v1.6.2.img
[Hero CDMA Android Development] Sporkman:
aahhhh ok lol something so simple would be so important :o
[Hero CDMA Android Development] Sporkman:
tried that and i still get

C:\AndroidSDK\tools>adb shell

/ # mount -a

mount -a

mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: No such file or direc

tory

/ # flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2

flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2

error opening /sdcard/recovery-RA-heroc-v1.6.2: No such file or directory

/ # flash_image recovery /sdcard/recovery-RA-heroc-v1..6.2.img

flash_image recovery /sdcard/recovery-RA-heroc-v1..6.2.img

error opening /sdcard/recovery-RA-heroc-v1..6.2.img: No such file or directory

i have the image in the root dir on my sdcard
[Hero CDMA Android Development] Amon_RA:
You have one dot to many ;) (see red dot) :

flash_image recovery /sdcard/recovery-RA-heroc-v1..6.2.img

Try to enter without mistakes :

flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
[Hero CDMA Android Development] Sporkman:
LOL i see it know LOL

i got it thx a lot the new settings rock
[Hero CDMA Android Development] bratfink:
HELPP!!

I had an old Amon_RA recovery image i used to use, and that worked perfectly. But i thought id try and upgrade to the new version in this forum. I tried using the 'via adb' method and it didnt work. now when i boot and press home it gets stuck on the htc bootloader, but if i start it up normally it boots into my rom normally. however i now have no recovery mode! ive tried to use the 'via adb' method again and this is what i get:

C:\android\tools>adb shell

# mount -a

mount -a

unknown option -- amount: invalid option -a

if i ignore this and try flashing the recovery image i get:

C:\android\tools>adb shell

# mount -a

mount -a

unknown option -- amount: invalid option -a

#flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img

flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img

flash_image: not found

what do i do :|? thanks
[Hero CDMA Android Development] jmanley69:
It looks like maybe flash_image doesn't exist on your ROM. contact the manufacturer of your ROM and ask them for support maybe? If you get nowhere from there, you may be able to take flash_image from the stock ROM and put it in your /system/bin folder (chmod it and all that) and it would work for you.
[Hero CDMA Android Development] bratfink:
HELPP!!

How would i go about doing this? where could i get a flash_image and how do i 'chmod', sorry im a bit of a newbie. Thanks a lot :)
[Hero CDMA Android Development] jmanley69:
What ROM are you using?
[Hero CDMA Android Development] bratfink:
HELPP!!

I am using the Villain3.2 rom

2.1 firmware with the latest radios
[Hero CDMA Android Development] jmanley69:
Go to their forum (or thread within this forum) and post your problem there... that you are missing "flash_image"
[Hero CDMA Android Development] bratfink:
HELPP!!

OK thanks a lot for your help, its much appreciated :)
[Hero CDMA Android Development] deadonarivalry:
Need to start paying attention to these threads, so I know when a new recovery image is out. Lol. Just subscribing. Seems okay to me. Flashed the regular old black and green. Might flash the blue later.
[Hero CDMA Android Development] HeroMeng:
Blue carebear ftw :P I wonder if there's a way just to change the image....
[Hero CDMA Android Development] mrinehart93:
I'm trying the first method for flashing the recovery image, and when I get to "mount -a" I get

mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: No such file or directory

Does it matter that I'm running Fresh ROM 2.0b (Android 2.1)? I'm going to try putting this recovery image in the Fresh kitchen and flashing it that way.
[Hero CDMA Android Development] jmanley69:
Amon-Ra... Can you please modify the initial post to let people know that this message does not matter when applying a recovery image? Maybe you should also let them know that if they do get this message, nand+ext will not work.
[Hero CDMA Android Development] jubi23:
I'm getting the same error as sporkman, although i'm definitely not adding an extra period lol

/ # flash_image recovery /sdcard/recovery-RA-heroc-v1..6.2.img

flash_image recovery /sdcard/recovery-RA-heroc-v1..6.2.img

error opening /sdcard/recovery-RA-heroc-v1..6.2.img: No such file or directory

the file is in the frigen directory! i don't what to do, i've tried the regular, the blue, i have it both in root sdcard level and in the folder with adb, i'm at a complete loss :(
[Hero CDMA Android Development] Lessthantito:
AWESOME!!! I don't know what I did wrong I tried it 3 times and I kept getting an error so I copied exactly what Amon_Ra posted and it worked like a charm but the Carebears are a little much for my tastes but thanks anyway!!!
[Hero CDMA Android Development] jmanley69:
According to your copy and paste you definitely ARE using extra periods.

Amon-ra... I've made the request before.... can you please add a menu option to the next recovery to apply a recovery image? Have it look in the root of sdcard for all .img files and let the user pick one? We spend page after page going through the same posts every time a new recovery is released.
[Hero CDMA Android Development] ieatstarz1:
Been trying this for hours almost, literally. Kinda slow when it comes to these things so I just try to use as many resources as possible. But in the end this is how i got it:

cd C:\android-sdk-windows\tools

adb shell

#mount -a

#flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img

Practically Amon_RAs instructions. But if using a color, just insert the color name, i.e. v1.6.2-blue.img (my image of choice:D). And as someone else stated in an earlier post, if you get an error when mounting, just bypass it and move on to the flash image as stated. Just a little something for the new guys such as myself. Whenever I have a problem on here someone's suggestions always help in the end so thanks guys for all you do!
[Hero CDMA Android Development] srkmagnus:
Just flashed the green care bear Recovery; thanks a bunch! Also, had the mounting error and just skipped to the flash recovery part and it went fine just as ieatstarz1 posted.
[Hero CDMA Android Development] jubi23:
lol sorry, i just copy and pasted what the previous guy said because i was getting the same thing, but just made sure i don't have any extra periods

tried to post a screen of what i've done but apparently new members can't post pics

here is the copy/paste

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Spatch>cd\

C:\>cd androidsdk

C:\AndroidSDK>cd tools

C:\AndroidSDK\tools>adb shell
# mount -a
mount -a
mount: cannot read /etc/fstab: No such file or directory
# flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
error opening /sdcard/recovery-RA-heroc-v1.6.2.img: No such file or directory
# flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.imgflash_image recovery /s
dcard/recovery-RA-heroc-v1.6.2.img
error opening /sdcard/recovery-RA-heroc-v1.6.2.img: No such file or directory
#
flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
error opening /sdcard/recovery-RA-heroc-v1.6.2.img: No such file or directory
# flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
error opening /sdcard/recovery-RA-heroc-v1.6.2.img: No such file or directory
# exit
exit

C:\AndroidSDK\tools>I:

I:\>cd tools

I:\tools>cd tools

I:\tools\tools>adb shell
# flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2.img
error opening /sdcard/recovery-RA-heroc-v1.6.2.img: No such file or directory
#

i: drive being my sdcard, still nothing
[Hero CDMA Android Development] jmanley69:
Is your file actually named recovery-RA-heroc-v1.6.2.img? or are you using one of the colors?

And is recovery-RA-heroc-v1.6.2.img located at the root of sdcard?
[Hero CDMA Android Development] jubi23:
i've got the colored blue one and the original in the c: drive adb folder, the root sdcard folder and i have adb also on the sdcard and more copies of the files in that adb folder, it's driving me mad!
[Hero CDMA Android Development] jmanley69:
then you should be using the command

flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2-blue.img
[Hero CDMA Android Development] jubi23:
tried that, have that copied and pasted above
[Hero CDMA Android Development] jmanley69:
And you are issuing the commands from within the recovery console? And you mounted the we card first according to the instructions?
[Hero CDMA Android Development] zilesx:
Ok, whoa. Unmount your sd card.

Make sure you're not booted into recovery. This is what I did. Copied and pasted. You would replace C:\temp> with C:\AndroidSDK\tools>

Also, one command should do it, once you have the image copied to your sd card.

C:\temp>adb push recovery-RA-heroc-v1.6.2-blue.img /sdcard/recovery-RA-heroc-v1.
6.2-blue.img
251 KB/s (3870720 bytes in 15.000s)

C:\temp>adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2-blue.img

C:\temp>adb shell reboot recovery

C:\temp>
[Hero CDMA Android Development] jmanley69:
Amon-Ra

Please... for the love of all things holy!!!! can you please make a menu option for the next recovery to apply a recovery image? please??? I realize that people will still somehow mess this up... but it would sure help those people that can't seem to follow directions at all.
[Hero CDMA Android Development] GrandMstrBud:
I could use some help here, my phone just hangs on the HTC screen and I can't get to the recovery menu either and when I try to load the stock RUU I get an error about an invalid bootloader or something like that. So how can I bring this thing back to life?
[Hero CDMA Android Development] jmanley69:
You'll need to put your phone in bootloader mode to do the RUU. you should check the threads relating to the RUU, because I know that it was addressed there.
[Hero CDMA Android Development] Nmaring:
New to the rom thing

Ok so I have never flashed my sprint htc hero I have it rooted now but I'm not sure what I am missing it read about flashing cdma but not sure about them adb fast boot and if it can do it just from my phone or its need to connect with my order of and this and all the step I need to take cakes I get some help please thanks
[Hero CDMA Android Development] Nmaring:
Got it done

Well never mind I got it figured out
[Hero CDMA Android Development] kallin:
The original post states EXT4 is not supported, yet it is one of the options in the menu... Has this changed, is it safe to run it?
[Hero CDMA Android Development] jmanley69:
I suggest you do some research on ext4 before you decide to go that route.

Here's what I found out (but you should learn some stuff for yourself):

In our kernel, while ext4 can be turned on at compile time, it is still "experimental". So, basically, it's in beta for our kernel version.

ext4 is really intended for partitions that will have very large files (hundreds of megs) and are very very large (hundreds of gigs). Since your ext partition is really only going to be half a gig or less, and the files that go on it are generally around 1 meg big... ext4 provides absolutely no advantage over ext3 on your sdcard.

There's more, but these are the highlights that cinched it for me.

Basically, newer is not necessarily better when you take the time to find out about the "newer". All you're going to do is create headache for yourself and open your ext partition up to bugs and security holes.
[Hero CDMA Android Development] Kirby Baker:
Cant find old restores from previous versions

I upgraded to recovery 1.6.2 without any issues, can access everything just fine, but I wanted to restore an old backup to grab a program from it, and my old restores from v. 1.5.2 dont show up at all even though they are on my sdcard. Do I need to rename the directories?

v.1.6.2 seems to name its directory like "BDS-date" while my older v1.5.2 directories are "BCDMRS-date", and my even older v.1.2.x folders are "CBDMRS12-date".

When I go into the restore from v1.6.2 the only folder that shows up is the "BDS" one. Did I screw something up?
[Hero CDMA Android Development] Lennyuk:
Try renaming the folder and see what happens, if it doesn't work rename it back.
[Hero CDMA Android Development] Kirby Baker:
That seemed to work. I renamed only the v1.5.2 directories, and in doing so and going into Nand restore, all directories showed up this time, even the first v1.2.x folders. Weird...
[Hero CDMA Android Development] jmanley69:
It's possible that you had a directory with spaces and when you renamed them you fixed that problem. Linux doesn't like spaces in directory names much (or at least this recovery image doesn't like them - I clarify so somebody doesn't decide to blast me about directory structures in Linux).
[Hero CDMA Android Development] alex324us:
ok so after i fastboot boot recovery.....

it gives me a message saying downloading boot.img failed (remote: not allowed)
[Hero CDMA Android Development] alex324us:
ok after

C:\temp>adb shell flash_image recovery /sdcard/recovery-RA-heroc-v1.6.2-blue.img

i get

error writing recovery: permission denied
[Hero CDMA Android Development] jmanley69:
fastboot doesn't work on the cdma hero. I'm not sure why those instructions are on page 1.
[Hero CDMA Android Development] jmanley69:
Then adbd isn't running as root.

If you have a recovery image already installed on your phone then follow the instructions in the first post. If not, then you must start adb shell and somehow get root access (usually by typing su).

This thread is not for instructions on rooting your phone, but to load a recovery image. If you don't know how to gain root access to your phone then please check the other threads on this forum.
[Hero CDMA Android Development] jmanley69:
Please re-read the first post - carefully. cache, misc, and recovery are not backed up anymore to prevent problems.
[Hero CDMA Android Development] kayos82:
Ah ha! I missed that. Thank you... I feel like a putz now but I would have hated myself for not saying anything.
[Hero CDMA Android Development] mbernal99:
Screwed myself...

Sorry guys, but total newbie.. here was just trying to use this program... I did a move to apps to sdcard and now all my apps are not working and the phones crashes..

I am so screwed, how can I move my apps back to my internal memory..

I am such an idiot, I thought this was the apps2sd program? I read it too late..

Please help! have not idea what I am doing?

Marco
[Hero CDMA Android Development] mbernal99:
Help....

I download the android SDK..now what commands can I do to undo the app mover?

My browser, google maps, sprint navgation, sprint TV is gone!, will not gone just moved to SD, how can i move them back to internal memory. Or I am just screwed and just start do a factory wipe out and start over again.

Marco.
[Hero CDMA Android Development] xxxk15:
my phone is already rooted.. so how would i have to put this recovery on my phone ?? and then is it partition and can i then put app2sd onto it??
[Hero CDMA Android Development] Jus10o:
put the recovery.img on your sdcard and type in command prompt

adb shell

cd /sdcard/

flash_image recovery ExactNameOfRecovery.img

reboot recovery
[Hero CDMA Android Development] jmanley69:
reread post #1
[Hero CDMA Android Development] xxxk15:
and also the recovery i have on my phone is "recovery-RA-heroc-v1.6.2.img" is that the same thing... did it partition my sd card??
[Hero CDMA Android Development] posguy99:
No, why would it have? You don't actually know what a recovery image is for, do you?

Boot to recovery, follow the prompts, don't change any of the defaults as you have no reason to. Remember that despite whatever you want to believe, partitioning the sdcard *will* erase whatever is on it, so back it up to your computer first.
[Hero CDMA Android Development] xxxk15:
no i had no idea what it did. now i know THANKS
[Hero CDMA Android Development] jmanley69:
I would really suggest that you read through the forums and how to's a little more before trying to do too much with your newly rooted phone. Sounds like you have a lot to learn (no offense - just a word of advice).
[Hero CDMA Android Development] xxxk15:
yeah i am just confussed what i need to do touse app2sd. it is hard to find what you are looking for if you have no idea where to start or what to do.. so sorry
[Hero CDMA Android Development] jmanley69:
I suggest you start by searching the forum. This thread is for the recovery image.
[Hero CDMA Android Development] xxxk15:
can i ask you one question. do we still have to partition are sd cards mannually?
[Hero CDMA Android Development] jmanley69:
Yes, but as posguy99 said
[Hero CDMA Android Development] xxxk15:
ok and just to be clear, i go into partition sd on the recovery mode and just follow the instructions?
[Hero CDMA Android Development] ogboot:
OMG i freaking love the carebear theme LMAO.

I'm not ghey I swear. :D
[Hero CDMA Android Development] thither:
Recovery console hangs, please help

Somehow I've nuked my recovery console, can anyone help?

I was running recovery-RA-heroc-v1.5.2.img, and by mistake I tried to flash recovery-RA-hero-v1.6.2.img (which is the non-Sprint Hero recovery). I got a lot of "write errors", spent a little more time reading, and realized my mistake.

Then I tried again with the correct recovery-RA-heroc-v1.6.2.img and I got "error reading /sdcard/recovery-RA-heroc-v1.6.2.img". This prompted me to once more read the first post more carefully and learn that I needed to adb flash_image while the thing was already in recorvery mode (I freely admit to my noob-ness, but at least I didn't bother anyone about it until now).

Unfortunately, I seem to have kind of messed up my recovery image in the process. When I try to boot with home held down, the phone just hangs at the HTC sign and doesn't do anything else. I can boot normally (into an old 1.5 version of Fresh ROM, FWIW) but I can't seem to get into the recovery console. I let it sit there for about 30 minutes at one point before I gave up and cold-booted it (by taking out the battery).

Following the instructions on the first post, I can also get into the bootloader (or HBOOT? It displays a white screen which I can control with the volume keys). I don't know what to do after that, though - if I hit volume down to go to HBOOT I see some error messages go across the screen, and I get a "device not found" error from adb.

I've backed up my sdcard and don't really mind wiping out my phone if I need to - can anyone give me some advice?

(Edit: if I just follow Sprint's 2.1 updating instructions, could that get me back in action?)
[Hero CDMA Android Development] Jus10o:
You can do it booted in the rom.

Just put the recovery.img on your sdcard NOT in a folder. And type this

adb remount

adb shell

cd /sdcard/

flash_image recovery recovery.img

reboot recovery

Make sure you type the name exactly as its on your sdcard caps and all.
[Hero CDMA Android Development] jmanley69:
wow.... where do I start.

simplest - forget hboot. That doesn't work on the sprint hero. however, if you wanted to try... you don't use adb when your phone is in fastboot mode... you use fastboot (instead of adb) - check the instructions again for the exact syntax.

As for your problem flashing the recovery.

You can use flash_image from normal boot if you like, it's just more difficult (you need to clear out the recovery image before you try to flash_image onto it).

Do this from an adb shell while booted normally (and having root - i.e. you have # prompt)

cat /dev/zero > /dev/mtd/mtd1

Then try to do the flash_image command.

Now... as for the error message you're receiving. You have either not placed the recovery image on the sdcard or you typed the wrong name. Remember - If you're using a color, then the name of the file is not recovery-RA-heroc-v1.6.2.img it has the color in it. You need to make sure you're using the correct file name - hence "error reading"...
[Hero CDMA Android Development] jmanley69:
No need to remount system. The recovery image goes in /dev/mtd/mtd1 not /system
[Hero CDMA Android Development] jmanley69:
The first no space left is correct. ignore that. that means it's working as expected.

As far as the out of memory errors... I've had that before. reboot and try again I'll bet that the problem goes away.