yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] brios86:
i went to n0rp.chemlab.org can i find the link there?? and download it from there?
[G1 Android Development] uansari1:
Just type in the entire address and the download will start automatically.
[G1 Android Development] ubernicholi:
if you are having trouble downloading the file, long press and save. you will have to rename it becasue it will get a .txt extension
[G1 Android Development] s15274n:
Need help -

I need the super duper idiot version. Once I d/load the image file and copy over to my SD... I dont rename it right... I dont need to do Home+Power... I just boot up my phone like normal, go to terminal emulator and type in the code on page 1?

I feel like I am greatly missing something. Just rooted yesterday with no experience... be gentle :)
[G1 Android Development] nolimit78:
Yeah that'll work!
[G1 Android Development] s15274n:
I went to terminal emulator, pressed su, got a prompt to allow (assuming this is from backup for root), typed in the command from the first link.... waited... nothing happened.

What am I doing wrong? I have it on my SD... just not sure how to make it load then.
[G1 Android Development] big_d093:
finally got a chance to update to 1.4!! loving it great work cyan
[G1 Android Development] s15274n:
shoot... okay, so I hit alt + x... now I was keying in the commands to partition my hard drive and made a typo... I did not hit enter yet. How can I back up and correct?
[G1 Android Development] Ajboricua:
Im having problems flashing 1.4

I put the image into my SDCARD then I home+power > Alt-x> prompt - flash_image recovery /sdcard/cm-recovery-1.4.img

It says sh: flash_image: not found

I've been at this for the past 1hr or so..
[G1 Android Development] stellarman:
At the prompt, first type 'mount /sdcard' (without the quotes). Then try the same flash_image command. See if that doesn't do it for you.
[G1 Android Development] pensive:
He should not be doing this from recovery.

Unless there is some reason for it.
[G1 Android Development] Ajboricua:
I got it working :p I didn't type SU in the terminal
[G1 Android Development] miketaylor00:
Screw it up really bad so that it will definitely fail when you hit enter.
[G1 Android Development] s15274n:
^ haha, found out the up arrow (left of alt) and delete with work as a backspace.... pretty neat. worked like a champ after that. Thanks for the help guys!
[G1 Android Development] doctorfugazi:
Whoa!! this is truly the bizness.
[G1 Android Development] chevycowboyusa:
Any new ideas?

Are there any new ideas yet for the next IMG?

Being able to scroll to a different directory to find a .zip would be cool!

Auto partition sdcard?

Option to name the backup yourself.

Great job as always guys!
[G1 Android Development] pensive:
Ideas

1) update from any folder has been suggested so many times I lost count.

See options available now from the command line.

2) auto partition? Mind reading capability has been planned for the year 2030

cm-recovery-2030.1.img. How pray tell should it figure out what you want?

3) available now from the command line.

See the help section in the up to date attachment. Most of the options

are already available in 1.4
[G1 Android Development] chevycowboyusa:
Ideas...

I seem to be more of a UI guy... I like scrolling and making a selection than trying to punch in long streams of code. Plus trying to read what the hell I typed in terminal is progressivly getting worse (and I just got new glasses).

As far as the mind reading, that would be really cool!!! However, what I was thinking, after reading alot of posts on partitioning the sdcard, it seems that there might be a common (standard) sizing for sd cards.

I.E., 32 mb swap, 500 mb ext2/3, the rest fat32

would be cool to push the little button (trackball) and whala, formatting sdcard....

You've done a great job, and thanks!!!
[G1 Android Development] brnbock:
Just FLAHSED! Great job once again! Kudos :D
[G1 Android Development] Gorguts:
HELP!!!!

Getting "permission denied" when trying to flash this; any ideas.
[G1 Android Development] 13cobracows:
Where are u flashing this from ie adb, fastboot, terminal, etc...
[G1 Android Development] Abolfazl:
Did you run "su" from the terminal first?
[G1 Android Development] DOHCtor:
I find it faster and easier to use fastboot
[G1 Android Development] Gorguts:
Ive done this before with no prob. Using term em. I am a novice so not sure what to do. The first 2 times I updated from the previous builds it flashed easily. Any suggestions?
[G1 Android Development] binkatonka:
very silly question here, but what does the recovery program do ?

i dont have one at the mo
[G1 Android Development] pistol4413:
Well this recovery image allows u to flash update.zip or any zip file at the root of ur sd, partition ur sd, fix filesystems as well as upgrade to ext3/4, and an all in one nandroid backup and restore freature. Iff u need a screen shot shoot me a message and i can send u one
[G1 Android Development] geahboi:
will this recovery work on a rooted mytouch?
[G1 Android Development] pistol4413:
I dont think so i know there is one in the magic dev forum that does the samethings as this and it will even auto partition ur sd give me a sec and i will post the link
[G1 Android Development] pistol4413:
heres that link

http://xdaforums.com/showthread.php?t=530492

This is for ion aka magic aka mytouch. Should work great!
[G1 Android Development] binkatonka:
thanks mate

i will drop you a gmail in the morning if thats ok ?
[G1 Android Development] binkatonka:
im getting permission denied ? when entering the code via terminal

any ideas ?
[G1 Android Development] miketaylor00:
Did you type su first?
[G1 Android Development] binkatonka:
no

i just entered the code as stated on 1st page

i suppose its common knowledge to type su before

sorry im a noob and im still learning, getting there tho

so i type su "space" followed by the code ?
[G1 Android Development] pensive:
Cloning for fun and convenience.

Talking about ideas? How about this. I added a little hack which allows the nandroid script run from any folder to clone itself into the normal

location in /sbin (RAM Disk), set correct permissions and then run itself from the RAM disk.

While every one is waiting with baited breath for the next generation recovery every one who wants to play with new options download the

up to date script to any folder of your choosing and run the nandroid from

there.

The only thing required is that the file system where you choose to store the

nandroid-mobile.sh is mounted before hand.

For example.

mount /sdcard

/sdcard/download/nandroid-mobile.sh --listbackup

will list all the backups.

All the options should work as advertised in the help section.

For the download look at #1301
[G1 Android Development] miketaylor00:
nope. type su, hit enter. then type the code and hit enter.
[G1 Android Development] binkatonka:
fantastic, done that and its there, happy days

now

in noobish terms what does this do and how does one use it.
[G1 Android Development] miketaylor00:
Boot your phone while holding the home button. It will take you to the recovery menu. You can see your options there.
[G1 Android Development] binkatonka:
yeah i see that mike, thanks buddy, im gonna endup getting on peoples nerves asking q's so i will have a search round for my answers

thanks for the help my friend ;)
[G1 Android Development] rzayas:
"android system recovery <2>" in cyanogen recovery v1.4?

When I log into the cyanogen recovery v1.4 the first line says "android system recovery <2>" What is the <2>? Just curious, thanks for the help!
[G1 Android Development] k1293:
how do i flash this..do i do it like a ROM?
[G1 Android Development] miketaylor00:
From the first post:

Open terminal emulator on your phone. Type su and hit enter. Then type the code above and hit enter. Then reboot your phone and hold down home to go into the recovery screen to make sure it is updated.
[G1 Android Development] k1293:
i tried that and it keeps saying there is no such file blah blah! what do i do? i know i copied the image to the sd card
[G1 Android Development] miketaylor00:
Did you copy it to the root of the card? Is it named the same thing that you are typing in the terminal emulator? Try changing the name to recovery.img to make it easier for you.
[G1 Android Development] k1293:
im still geting error opening no such file!err
[G1 Android Development] miketaylor00:
Where did you copy the file and what is it named?
[G1 Android Development] arsieiuni:
Error: File not Found >>>> FIX

Hey guys!

I was using this thread to try and figure out how to do the Root and I had the same Error: File not found issue that is cropping up everywhere and I figured it out so I registered to post the fix for everyone!

So I followed all the steps repeatedly and kept erroring... so I renamed the cm_recovery... etc... to just recovery.img so it'd be easier for me to deal with it.

For me it was resolved by downloading oi file manager first which showed me that the file was actually (somehow?) being named recovery.img.img!!!

Now I don't know how that happened except I want to blame Vista's never showing me the file extensions, BUT, as soon as I used OI File manager to rename the file on the phone to just recovery.img and then repeated the telnet typing steps, it ALL FINALLY WORKED. It found the file!

So please check if your recovery.img has (or cm-recovery-1.4.img durrr..) has an extra ".img" on the end. I COULD NOT SEE THIS until I used a file manager so download one on the market (Oi worked for me so I recommend that) and see if it helps you out!

I hope this helps you guys that are struggling with this issue. I almost gave up and I was really frustrated but I was determined to finish this. Hah!

Thanks to the guys that have been helping. The things you've suggested help keep me on track until I found the issue.

Peace!

Arsh
[G1 Android Development] timelyne:
This still doesn't work.No such file or directory.

Is that a space between 1.4. and img?
[G1 Android Development] ibila:
Hello, i have a quick qestion. Im at work so i dont have the time to read the complete tread. sorry! When restoring my last backup after reboot the screen gets to the hero or android logo and then after a while the screen goes blackish...while still on power. Tried several backups, all the same result. Anybody?
[G1 Android Development] miketaylor00:
I was getting a few force close errors after wiping and reinstalling my phone. So I decided to run fix_permissions. Since I have done that I am getting a ton of force closes. Most of my applications do not work. I ran it again in case something went wrong the first time and I am still getting a ton of force closes. Does anyone know why? Should I just wipe and reinstall my phone again?
[G1 Android Development] chevycowboyusa:
it's a dash

Its a dash (hyphen). You can rename the file to whatever.img if you want.

Just make sure to type exactly what you name it.

Good Luck!
[G1 Android Development] juwu:
I have a small and really annoying problem on my G1. Whenever I enter de console screen by Alt+X I have to pull the battery to exit this screen. I suppose there is a more professional solution..
[G1 Android Development] lyric911:
Type the word recovery and hit enter.
[G1 Android Development] tnleeuw:
Or type 'reboot' (minus quotes) and hit enter. That's what I usually do. Works for me! ;-) Any downsides to rebooting from this screen?

--Tim
[G1 Android Development] Lamar720:
Do I need to delete the old JF recovery image to use this one?
[G1 Android Development] pensive:
It would be a good idea unless...

You want to spend your time flashing a zillion times and your ROM (Still running JF ROM?) overwriting it with the old image.

If your old image is in

/system/recovery.img

simply overwrite it with the new image and reboot.
[G1 Android Development] blackmamba22:
how exactly do u install this????????//
[G1 Android Development] blackmamba22:
it displays no such file or directory
[G1 Android Development] blackmamba22:
mine asked me did i want to delete the image after a successful flash. i copied that exact code but didnt put this space between recovery and sdcard ."recovery /sdcard"
[G1 Android Development] Lamar720:
Thats what it asked me to! It said something about -d but, I don't what to do.
[G1 Android Development] blackmamba22:
exactly this is fustrating!
[G1 Android Development] BlackElvis79:
Recovery v1.4
[G1 Android Development] blackmamba22:
r u tryna b funny cuz we dont have this?
[G1 Android Development] miketaylor00:
No one can help you because you have provided no details on what your problem is. If you want to know how to install it, go to the first post in this thread. If you have a specific question ask it.
[G1 Android Development] blackmamba22:
i followed all the steps and wen i type it in the emulator it displays do i want to delete the image after a successful flash
[G1 Android Development] blackmamba22:
usage:flash_image [-d] partition file.img

options:

-d delete the image file after a successful flash

This above is wat happends wen i try to flash the recovery image!....HELP
[G1 Android Development] BlackElvis79:
Have you tried flashing through adb fastboot? And make sure it's in the root of your SD. If you downloaded it from your phone's browser, it'll go to "downloads" folder. If that's where you have it, move it to the main dir.
[G1 Android Development] miketaylor00:
Ok, it didn't like what you entered. That means you typed something wrong. It is telling you what your options are for running it. It's not asking you if you want to delete it, it is saying that if you add a -d to the command it will delete it for you.

type exactly what you typed in terminal in a post so I can see what you are doing.
[G1 Android Development] ryce124:
flash_image recovery /sdcard/cm-recovery-1.4.img

I typed that in both the terminal emulator and the recovery console.

This showed up:

usage:flash_image [-d] partition file.img

options:

-d delete the image file after a successful flash

the recovery img is on the root of my sdcard
[G1 Android Development] Baldyman1966:
New Feature?

Would it be possible to add the ability to run scripts to you recovery?

Since we need to be able to wipe our Ext partitions before updating a Hero rom it would be really usefully if instead of having to go to terminal and manually typing the comands we could have a script saved on the FAT partition, which could be selected and run like the updates are now.

I am sorry if this has been raised before.

Keep up the amazing work.
[G1 Android Development] blackmamba22:
Ok for anybody having trouble installing the Cyanogen Recovery image 1.4 like i did heres the Solution:

1.) Format your SD(fat 32)

2.)Put the DREAM.img on the root of the SD,press power+camera, and perform the action.

3.) Once the phone boots up, delete the DREAM.img because you dont need it anymore, and place the "cm-recovery-1.4.img" to the root of the SD.

4.) Go to the market and download Telnet and Terminal Emulator

5.) Go to the home screen and open up your keyboard.

Hit enter, pause a second, then hit enter again.

Type “telnetd” in all lower case minus the quotes. Ignore the contact search that comes up.

Press enter again.

6.)Type the following commands in bold into the telnet prompt and press enter after each command(notes are in parentheses). Pressing enter after each command should return you to a blank prompt with the # symbol.

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system (make the system folder writeable)

cd sdcard (change directory to SD card)

flash_image recovery cm-recovery-1.4.img (flashes recovery image with CM v1.4. Replace cm-recovery file name if flashing a newer version)

cat cm-recovery-1.4.img > /system/recovery.img (copies the cm-recovery image to your system directory)

7.) and yes that is a space between img and >

8.)As soon after you type the command in , hold the power button, and press reboot, now hurry and hold the power and home key, and u will see the new image!

9.) flash the newest radio FIRST!!!!! then flash the newest SPL.....http://code.google.com/p/sapphire-port-dream/

10.) After doing both of those tasks, reboot into recovery, wipe, and flash a new rom and your good to go!
[G1 Android Development] BlackElvis79:
So you basicly rooted your phone the good old fashioned way first? Then flashed the image. :p LOL... Good job
[G1 Android Development] blackmamba22:
YUP, thats the only way i could get it to work!
[G1 Android Development] miketaylor00:
Wait, you were trying to install this without root? Seriously?
[G1 Android Development] BlackElvis79:
Good, so i'm not the only one. :D
[G1 Android Development] BlackElvis79:
@ Blackmamba22

If you would have said that you weren't rooted in the beginning, you would have saved alot of time...and posts.

Glad you finally got it up and running though.
[G1 Android Development] iRobC:
sh: su: not found Can't install Recovery 1.4 :o(

Having installed an over sized ext2 partition by mistake I bit the bullet today and formatted my SD and redid the ext 2 using 51dusty's method http://xdaforums.com/showthread.php?t=543985 So I got a new 512mb ext 2 partition and then tried to copy my back up files back onto the sd (FAT32 Partition).

Long story short, it didn't work and I had to do a recovery to an old version (ironically using the version of 1.4 I'd previously installed).

Having regained the phone I'm now back on JF recovery v.1.43. I've copied the cm-recovery-1.4.img to the root and at the console upon typing

#su

I get sh: su: not found

so can't install cm-recovery-1.4.img

Please help!

Many thanks, Rob.
[G1 Android Development] miketaylor00:
If you are in the recovery console, you don't need to type su. The # symbol means you are good to go. If you were in terminal emulator in the ROM, that would be the only time you would need to type su first.
[G1 Android Development] iRobC:
Home + Back takes me to JFv1.43 recovery Alt + X then takes me to the console where it says Press <enter>

When I do this I get

/ #

and when I type flash_image recovery /sdcard/cm-recovery-1.4.img

and hit return I get

sh: flash_image: not found

/ #
[G1 Android Development] chevycowboyusa:
mount your sdcard

type in

mount /sdcard

flash_image recovery /sdcard/cm-recovery-1.4.img

reboot recovery

Good Luck!
[G1 Android Development] pensive:
Pehaps this will help.

Once in recovery console, if you have lost root

mount /system

mount -o rw,remount /system

Most probably you got the previous message about "su" not being found is because /system is not

mounted in recovery. You do not need to do the next 3 lines if in terminal em. you can run su.

cd /system/bin

cp sh su

chmod 4775 su

reboot

The point being that you are not supposed to flash recovery from recovery, recovery does NOT necessarily

have commands which one is supposed to use from the terminal emulator.

use the terminal emulator then and THEN type "su"

and proceed to install the new recovery image.

if you are running JF rom you can probably simply copy the new recovery image into /system/recovery.img and reboot to install.

If copying:

su

mount -o rw,remount /system

cp /sdcard/newrecovery.img /system/recovery.img, newrecovery is the name you used.

But if you are running cyan rom then instead copy into /data/recovery.img and reboot.
[G1 Android Development] miketaylor00:
How do you know he lost root?
[G1 Android Development] chevycowboyusa:
My apologies...

I miss read the problem description...
[G1 Android Development] XavinNydek:
Suggestion, allow flashing from zips in subfolders, like cm-updates.
[G1 Android Development] iRobC:
Perhaps this will help...

Whoa! I got a bit lost there. Before I do anything, I can't see how I've 'lost root' I just can't install cm-recovery-1.4.img from the sd card :(
[G1 Android Development] iRobC:
So I shouldn't try?

mount /sdcard

flash_image recovery /sdcard/cm-recovery-1.4.img

reboot recovery
[G1 Android Development] pensive:
Simple steps.

Not in recovery, but in terminal emulator

1) su

2) cp /sdcard/cm-recovery-1.4.img /data/recovery.img

if your ROM is Cyan

mount -o rw,remount /system

cp /sdcard/cm-recovery-1.4.img /system/recovery.img

if your ROM is JF

reboot

You have to do nothing else, if you still have root.
[G1 Android Development] pensive:
You can can use these instructions.

But not from recovery. Moreover, mounting the /sdcard in normal

mode is unncessary, it is already mounted.
[G1 Android Development] iRobC:
It worked!...Of course it worked! Thank you Thank you Thank you

It worked!...Of course it worked!

I now have CyanogenMod v1.4 + JF back! Pensive you're a star! Thank you for taking the time out to help. It really is much appreciated.
[G1 Android Development] xavier6303:
Im using the 1.4 recovery and trying to perform a Nandroid backup but the backup never completes (I assume). It just keeps throwing more dots on the screen until the screen is completely filled with dots. It does create something in the nandroid folder on the sd card but I havent tried flashing one of those cuz Im afraid. Am I missing something?
[G1 Android Development] 0x1ar:
Cyan: You have a "repair filesystem" option -- Any chance of adding an option for the "fix permissions" script?
[G1 Android Development] Neromyr:
Hello everyone. i seem to have run into a bit of a problem. I had the version 1.2 of the cyanogens recover and i went to upgrade to this one. It seemed to have installed fine through terminal but now when i go to enter recovery mode the phone freezes up at the G1 screen and doesn't go any further. it will turn on normally just fine but i can't get into recovery mode. can anyone help?
[G1 Android Development] rikupw:
how to:

download the latest recovery image to your sdcard as recovery.img

go to terminal emulator and type:

$ su
# cd /sdcard
# cat /dev/zero > /dev/mtd/mtd1
# flash_image recovery recovery.img

reboot your phone normally into recovery and if that doens't help, i've reached my limit :P
[G1 Android Development] Neromyr:
I tried that and when i got to the third line and hit enter it says

write: No space left on device

i tried doing a fastboot erase recovery and it says

fastboot: not found

I don't know what to do here except possibly start all the way back at RC29 and work my way up again. I was trying to install 1.4 then i was going to do cyanogens new 4.0 system for the android itself. but if i can't get Recovery to work i don't think i'll be able to. *sighs*

Edit: oh and i tried emptying my SD card to see if that helped and it didn't
[G1 Android Development] keatliang2005:
there is something i don't know about and what it does can someone explain what it does ??

* E2FSProgs with ext4 support

* FSCK for ext filesystems from the menu

and how to access these script ?? because i only saw REBOOT,APPLY UPDATE.ZIP, ANY.ZIP, NANDROID BACKUP, NANDROID RESTORE, REPAIR EXT FILE SYSTEM and GOTO CONSOLE MODE

* Various scripts, upgrade_fs (convert to ext3), fix_permissions (set app and data permissions to what packages.xml expects)

oh ya. one more i suggest like adding a option for automate format sd card for SWAP partition, ext partition(for app 2 SD), and fat32 partition

if possible accept custom parameter for different size of the partition

sorry for my bad english:p
[G1 Android Development] pensive:
To restate the obvious.

Of course "fastboot: not found", it does not exist on your phone. You

have to install fastboot on your PC, it is a part of the SDK distribution.

Further, you have to have the engineering boot-loader installed.

Then you should be able to erase the recovery partition by hooking up

your G1 to your PC, putting your G1 into a fastboot mode (Camera+Power)

and only then running fastboot.

You may want to try the method which was suggested a few posts back

(why do people think that useful info. is only on the first and last pages??)

and

cp /sdcard/cm-recovery-1.4.img /data/recovery.img

reboot

I am not certain if the boot sequence actually erases the recovery partition

before doing the flash but it cannot hurt and would save a lot of hassle if

it does.
[G1 Android Development] youuishype:
thanks cyanogen!
[G1 Android Development] cyanogen:
Alt-F run e2fsck on your ext partition. Alt-M just gets you started with a2sd by moving your apps and dalvik cache to your ext partition.