yashsingh1/xdaforums huggingface dataset:
[myTouch 3G, Magic Android Development] f00dstamps:
nandroid-mobile.sh

I tried to ran the nandroid backup+ext. He showed me a progress indicator and then when it got to the end, it told me to run "nandroid-mobile.sh" Can someone explain to me what is happening? Thanks.

Edit: I found instructions for how to move the recovery.log to the SD card so I can view it. Does this need to happen everytime a new log is created to see the most recent data?

Edit: Recovery.log is attached.
[myTouch 3G, Magic Android Development] skrki:
You can do the same from inside the CyanogenMod. The point is to copy recovery.img to /data. Then when you reboot it will be automatically flashed.

So, for instance, if your recovery file is on your SD card, named Amon_pimpin_recovery1.5.1.img, do this:

1. Open terminal and type (pay attention to CAsE in Linux!):

cp /sdcard/Amon_pimpin_recovery1.5.1.img /data/recovery.img

2. Reboot your phone

P.S. There is that script (in the second method I wrote) called flash_image. I made a mistake there, I wrote flash_recovery, I just realized.. sorry bout that! But try that one, too.

P.S.S. Update your ADB! ;)
[myTouch 3G, Magic Android Development] tera89:
help

via a simple reboot -> Requires Cyanogen or my RA ROM (other ROMs will probably work too, check init.rc where to put the recovery.img)

Code:

Rename recovery-RA-sapphire-v1.5.1H.img to recovery.img

Copy recovery.img to /data

Reboot fully (the recovery will be flashed automatically)

Reboot to recovery

how can i find /data ??? sry newbie here ?? can i flash the recovery using flashrec.apk ?? even i already have a recovery ..

with newest recovery .. can it read nandroid backup previous recovery ?
[myTouch 3G, Magic Android Development] Xenn0X:
same problem. have 32b with Engineering SPL 1.33.2005 and running Google IO Device firmware from htc

erased recovery and flashed many times but still i keep getting htc recovery
[myTouch 3G, Magic Android Development] Amon_RA:
You current ROM (or the one you are trying to restore) doesn't support APP2SD. This basically means that the ROM doesn't have the /system/sd folder. This is why it is failing, you are trying to restore the ext content to a directory that doesn't exist.
[myTouch 3G, Magic Android Development] Amon_RA:
You need to run it right after you got the error, it isn't saved when you reboot.
[myTouch 3G, Magic Android Development] uncledrax:
Hi guys,

total newb here. I tried booting into this recovery rom using this command;

fastboot boot recovery-rom.img

and it reboots my phone and just displays this on the screen;

Build : RA-sapphire-v1.5.1G

and thats it! I cant do anything. I cant shut the thing down, send it any commands. It comes up when i 'adb devices' but im stuck!!

Can anyone help!!??

Thanks.
[myTouch 3G, Magic Android Development] androidn3rd:
help please

im trying to partiton my sdcard i have a 32b mt3g i downloaded the file and put it in the root of my phone and went to terminal and typed in all the commands it didnt work i even changed the name of the file and still didnt work i keep getting this message can someone please tell me what this means

usage:flash_image [-d] partition file.img options: -d delete the image file after a successful flash

whats this mean if you know please email me thanks
[myTouch 3G, Magic Android Development] DionBurger:
nandroid restore

With more than nandroid backup stored on my sdcard i tried to restore a specific one with the 1.5.1H recovery but it seems to select the wrong one instead of the one i specified. When I moved all the other backups from the nandroid backup dir with only the one i wanted to restore remaining it worked like a charm. I recall some similar problem in earlier versions was this not fixed?

Good work Amon_RA!! You the best recovery by far!
[myTouch 3G, Magic Android Development] skrki:
Do you need help?

Don't quite get why you guys have problems flashing this, BUT if you need help PM me, and make sure you include the following:

1. Your current recovery

2. SPL information (Soft (stock), Hard, Engineering?)

3. Do you have a working ADB shell?

4. ROM type (Cupcake, Donut, Hero/Sense?)

5. Paste your /system/init.rc

Not all of this is really needed, one 'correct' answer will suffice, but provide as much as you can please. ;)
[myTouch 3G, Magic Android Development] mstolpner:
I am trying to do a backup with nandroid+ext and I am getting an error suggesting to run nandroid-mobile.sh. It only happens with Magic GyD ROM.

Thanks
[myTouch 3G, Magic Android Development] LG (GertS):
Nandroid-mobile.sh

Why can't i restore thrue nandroid on my phone?? It gives me this error... run nandroid-mobile.sh.

When i do that it looks like it's loading, but i does nok do it right :-(
[myTouch 3G, Magic Android Development] Amon_RA:
Updated to v1.5.2

Change-log :

v1.5.2

- Updated Nandroid to v2.2.2 (fix ext restore issues)
[myTouch 3G, Magic Android Development] fabioccoelho:
I got 2 reboots after update to 1.5.2H. But okay now!

Thanks to Amon_RA.

:D
[myTouch 3G, Magic Android Development] phil0sophic:
Nand + ext backup

Greetings, First thank you for your supurb efforts....

I am attempting a Nand + ext backup but it fails with run nandroid-mobile.sh via ADB (basic Nand backup works). The log says "Warning: ext2 specified but unable to mount the ext2 partition". I have an ext3 partition on the SD card and under the impression that A2SD is automatic in my rom. I even tried the virtuial A2SD option so I dont have a clue what the issue is. Any help will be appreciated. :confused:

My bad, although Im still confused. I dont have the /system/sd folder as mentioned in an earlier post so I know why but dont understand why.I must be misunderstanding something about the Enomther AOSP v2.3.3 rom.
[myTouch 3G, Magic Android Development] myx4ever:
I have recov 1.2.3H now.

Is it possible to upgrade to 1.5.2 using flasrec and flash the custom recovery?

In case I want to use flashrec is flashrec-1.1.3-20091107-2.apk ok to do this?

when I upgraded from stock rom 1.5 (cupcake, 32A) I flashed 1.2.3h and afterwards installed gyd 2.1 ;

Thanks in advance.
[myTouch 3G, Magic Android Development] fabioccoelho:
No need flashrec man. Do it:

Copy recovery-RA-sapphire-v1.5.2H.img to the root of your sdcard

start the terminal app

$su (not required if you have root already)

#flash_image recovery /sdcard/recovery-RA-sapphire-v1.5.2H.img

It´s all!
[myTouch 3G, Magic Android Development] fabioccoelho:
Me too, but i killed some apps with Advanced Task Killer and update again...and not receiver errors again.

:)
[myTouch 3G, Magic Android Development] Godson1227:
Manual sd partioning

Love this recovery loaded with options great work. But i was wondering is it possible to have a manual sdcard partition option for resizing partitions w/o erasing the fat32 w/ music pics etc. ? Cause some roms call for 64mb swap and some call for 96mb swap. Thanks great work
[myTouch 3G, Magic Android Development] megalomoron:
I apologize in advance for the total noob question, but I'm in need of help and can find no info after hours of googling. I would love to try this recovery img on my MT3G, but I've tried all flashing methods listed in this thread with this result:

C:\android-sdk-windows-1.1_r1\tools>adb shell

/ # mount -a

mount -a

mount: mounting /system/modules/modules.cramfs on /system/modules failed: No such file or directory

mount: mounting /system/xbin/xbin.cramfs on /system/xbin failed: No such file or

directory

/ #

I cannot get past this. Anyone else seeing this error message? If it helps, I have root, I'm running CyanogenMod 1.4 recovery, with CyanogenMod 4.2.8 ROM. Board info:

SAPPHIRE PVT 32B SHIP S-ON G

HBOOT-1.33.0006 (SAPP 30000)

CPLD-10

RADIO-2.22.19.26I

I know nothing about SPLs(i.e. hard, engineering)--perhaps I need to flash a new SPL though? Or should it work with mine? Any help would be super appreciated.

Thanks
[myTouch 3G, Magic Android Development] l3wish:
I'm able to flash the latest Recovery image But everytime i reboot the phone The recovery disappears Yeah it's gone. When i try to boot into recovery I see is my custom splash image and it says FASTBOOT USB.
[myTouch 3G, Magic Android Development] superketto76:
hello, for recovery the orignale recovery.img ??? by default is disable?

I have a backup the original firmware TIM.

thanks
[myTouch 3G, Magic Android Development] wjsturgis3:
I've got a unlocked Rogers Magic on AT&T

Sapphire PVT 32A ship S-on H

HBOOT 1.33.0010 (Sapp 5000)

CPLD-12

Radio 3.22.20.17

I have been following the RAv1.6.2 Donut thread and was all set to install recovery RAv1.2.3H.img using TheUnlokr's process. Will this method still work with the 1.5.2H version? This is my first attempt at this and I don't want to screw it up.

Thanks in advance for the help and big thanks to Amon_RA for much time and effort on what looks like the best product and support out there.
[myTouch 3G, Magic Android Development] jimbo831:
Nandroid and BART Issues

My wife just got a replacement myTouch and I am trying to restore her old info for her. I made a Nandroid backup (actually 3 different ones) on her old phone, but it will not restore, telling me to use ADB, which doesn't work either (but posted elsewhere as it doesn't apply to this recovery. I also noticed, when trying to back up, it will not let me do a BART backup, which I could always do just fine on my G1. Attached is the log file information. Thanks for your help.
[myTouch 3G, Magic Android Development] BoomBoomPOW:
Can I un-root and root again and use the latest (1.5.2) recovery image to install it?
[myTouch 3G, Magic Android Development] psguardian:
Don't start over just to get the recovery.img ! (unless other issues force a "start from scratch" situation) just follow the TERMINAL option in the OP. I just upgraded from 1.3.2G to 1.5.2G that way. (im lazy & don't like typing a lot in terminal so i renamed recovery-RA..... to just recovery.img on my SD but it works the same no matter the file name solong as you leave the .img extension)

~psguardian
[myTouch 3G, Magic Android Development] BoomBoomPOW:
Yes I know, but when I first rooted my phone I forgot to perform a Nand backup and went straight ahead to flashing roms. I want to re-root to the "stock" 1.5 cupcake again and do a Nand backup right after. Or could I just perform a Nand backup while currently on my custom rom (Slick Willy)?
[myTouch 3G, Magic Android Development] Amon_RA:
You have several issues :

1. Your data and cache seem to be corrupted in some way. Try erasing them with fastboot after you made a nandroid backup.

2. You're trying to restore CBDMRS12-20091215-2206 which doesn't contain any backup files. Check this folder on your sdcard and make sure it has backup files inside!

3. You're trying to use BART while you don't have an ext partition on your SD card. Why are you trying to do that? Just use nandroid without ext.
[myTouch 3G, Magic Android Development] jimbo831:
I did see that reference about not finding any backup files, but it is incorrect. I have reviewed the folder and all Nandroid backup files are in there. I also tried using 2 other backups, both having the needed backup files, but I got the same error. It seems for some reason the recovery image is not finding the files that are there, but I am able to find and view them all in windows or through ADB.

I have tried a complete wipe prior to the restore, which I believe should also erase the data and cache. Do I need to do this in fastboot instead?
[myTouch 3G, Magic Android Development] jimbo831:
I have figured out how to get into ADB, but am not 100% sure if I am typing the commands right, but it does find the backups. However, after it finds the path I enter, it says "Error: no backups found". Just to make sure, could someone give me the commands I should be typing in to run the nandroid restore via ADB. I have been using this:

nandroid.mobile.sh -r --path /sdcard/HT974P402368/CBDMRS12-20091215-2206

This points directly to the folder containing all the image and MD5 files needed for the backup. Thanks.
[myTouch 3G, Magic Android Development] ankjer:
wipe sd:ext fails

Hi all

For some reason I am no longer able to wipe sd:ext or the dalvik from the recovery. It refers me to the console 'adb wipe ext', but how do I do that? I have always used fastboot. Is it possible to handle it that way? or how do I get about doing with adb?

Thanks for a super forum

Best regards

The noob
[myTouch 3G, Magic Android Development] Godson1227:
Said the same thing on my phone to but it will still flash the recovery image when you follow the steps on the first page
[myTouch 3G, Magic Android Development] BrandoHD:
Hey Amon Ra, i have a rogers magic with the perfected spl, i tried the one click rooting method anywayz cause i read it worked for some ppl, well it worked for me also, and i flashed the latest recovery image from amon ra and also wiped and loaded amon ra's 1.6.2 donut rom, everything went perfectly. the thing is lightning wont strike twice cause i cannot seem to use the one click root again and it has gone back to the stock recovery image.

Edit: I still have the recovery image loaded, and the perfect spl, should i just count my blessings or should i attempt to change my spl????
[myTouch 3G, Magic Android Development] mramonks:
hi.

I have a nandroid backup + ext of a cyanogen rom. but i want to try an eclair rom. If i wipe everything and install rom but then want to change back will it be restored with nandroid back to how it was, with apps and 10mb hack i have.

Any help appreciated
[myTouch 3G, Magic Android Development] Esquire22:
I have flashed the 1.5.2 recovery image via flashrec. it went thru and everything but when i try to flash the aosp 2.0.1-v2.3.. it would not let me convert ext 2 to ext3 nor ext3 to ext4 nor does it let me repair ext file systems. i am running a 32b mytouch with the danger spl i believe. Thanks in advance for the help
[myTouch 3G, Magic Android Development] Cheesebaron:
How does flashing a rom have anything to do with converting the ext partition?
[myTouch 3G, Magic Android Development] Esquire22:
to be more specific after trying to convert ext2 to 3 then 3 to 4 it gives me and error saying convert via adb. and it never does that. i convert to have a smoother rom
[myTouch 3G, Magic Android Development] 5[Strogino]:
recovery-RA-sapphire-v1.5.2H.img

Got error

E:Can't read MISC:

(No space left on device)

After wipe data/factory reset and after flash custom ROM

Log included

Phone Info:

SAPPHIRE PVT 32A S-ON H;

HBOOT-1.33.0009 (SAPP10000) CPLD-12;

RADIO-3.22.20.17

May 8 2009, 21:02
[myTouch 3G, Magic Android Development] Amon_RA:
Try :

fastboot erase cache
fastboot erase misc
[myTouch 3G, Magic Android Development] Niemer:
I'm getting a similar error, only with nandroid restore. Kind of frustrating, any answers?

edit:

Nevermind, seems 1.5.2 fixed it, was on 1.5.1
[myTouch 3G, Magic Android Development] skrki:
Hi Amon_RA

I've posted this a while back, and I thought the weird problem with renaming the FAT partition is gone. But not quite..

Now I'm using your 1.5.2G version, and when I use UMS toggle my FAT partition gets renamed to PNG followed by some strange non-unicode characters like I described bellow ('HT' this time ???:D). I'm on OpenSuse linux, my phone is a 32B Sapphire. What can be done about this, why does it happen, and has anyone else experienced anything like it?

Any more information I can provide, just let me know!

TIA
[myTouch 3G, Magic Android Development] Amon_RA:
Strange, I don't have this problem when using Windows or Ubuntu, do you also have this issue with other Mass Storage's as well?

The recovery for sure will not rename anything, I think something weird is going on with your OpenSuse ;)
[myTouch 3G, Magic Android Development] lagos911:
Hello.

Can somebody tell me how I update a rom to my htc magic

with recovery-RA-sapphire-v1.5.2H (I have 32A htc magic)

I dont know how I aply the new rom...

Can somebody tell me the the full prosess of a rom update

with this recovery version, with details please.

Many thanks.

The phone cant boot right know and I have be paniced.
[myTouch 3G, Magic Android Development] skrki:
There's ALWAYS something strange happening with my OpenSuse ;)

All joking aside though, I don't have this problem with any other mass storages.. Weird... I'll try to find some way to deal with it, I can't live without your recovery. Thank you very much for your response!
[myTouch 3G, Magic Android Development] tnpapadakos:
been trying to partition for days now. no luck.

you know, there must be a reason, but i'm just curious...

1. why is apps2sd2 included in the cyanogenmod, if the recovery doesnt support partitioning like the amon-ra recovery does?

2. why not just include the amon-ra recovery instead of the 1.4+jf?

3. or build in the alt+ function that amon-ra has for partitioning into the 1.4+jf recovery?

4. in short, why include an app (apps2sd2) that you cant use "out of the box", so to speak?

i had all kinds of problems trying to flash the amon-ra recovery to my phone (green screen stuck on reboot, mount -a didnt work) but i think the problem was due to the fact that i was using the 1.5.2H.img file instead of the 1.5.2G.img (my phone has "with google" on the back of it, so its "google branded" i now understand) this, due to the fact that this thread's directions said:

"Use the H/G version if your Magic is HTC branded (PVT 32A board)/Google branded (PVT 32B board)."

My reaction to that was hmmm,......what?

so i just used the H img, and got stuck on the green screen on reboot

i guess those directions are "shorthand" for:

"Use the H version if your Magic is HTC branded (PVT 32A board);

Use the G version if your Magic is Google branded (PVT 32B board)"

god help us if we actually type out our instructions fully (so fools like me can actually follow them)

whatever, that i could have followed no problem

in any case, i would love to see the same function built into cyanogen's recovery or know why it hasnt been done

i'm gonna try using the 1.5.2G.img now...can't wait to use apps2sd...its gonna be Awesome!! I just know it will be!!!:confused:

I posted a similar version of this in the cyanogen thread
[myTouch 3G, Magic Android Development] DonDizzurp:
move your ROM to your memory card

start phone in recovery (home+power)

go to wipe

wipe everything

go back and click on flash

click on the second option (not the one that says update.zip)

look for your rom and flash..

cross fingers hoping your rom doesnt put you in a boot loop (which is fixable, just remove the battery then do the same steps with a different rom)
[myTouch 3G, Magic Android Development] hua_jacky:
what's the difference between nand + ext backup and BART backup?
[myTouch 3G, Magic Android Development] march83:
query on this one: after i do a wipe data/factory reset, what state does this leave my phone in? is it still bootable, or is this a step in preparation for installing a new rom?

reason i ask is that i did a wipe data/factory reset on my cm 4.2.10.1 with 32a port and enoch's theme and it locked up on the enoch flash screen. if i want to wipe/factory reset should i do it and reinstall from scratch?

thanks
[myTouch 3G, Magic Android Development] fryguy18:
Yeah, you need to reflash everything
[myTouch 3G, Magic Android Development] BrandoHD:
Hey Amon Ra i have rogers magic that i used the 1 click root method on and i was able to load the recovery image (RA-sapphire-v1.5.2) from this thread on to my device, afterwards i did a nandroid, a wipe and i flashed the 1.6.2 donut rom onto my device, everything went perfectly and i have been using this rom for the past 2 weeks.

My question is about my spl though, when i boot usin the volume down option i get

Sapphire PVT 32A Ship S-ON H

Hboot-1.33.0010 (Sapp50000)

CPLD-12

Radio-3.22.20.17

I think this is the perfect SPL, so should i leave it alone or should i try to change it to an engineering SPL and will i be able to flash roms at my leisure using this SPL
[myTouch 3G, Magic Android Development] Amon_RA:
You can already flash any rom you want via the recovery ;)

If you would like to use fastboot to flash/erase images you can change it to an engineerings SPL, if you never use fastboot I would just stick to your current SPL.
[myTouch 3G, Magic Android Development] myfoxx:
Trying to install

Using terminal :I have root access of course

First line for installation : mount -a i get an error

unkown option :invalid option -a

Please help me..
[myTouch 3G, Magic Android Development] istrebitjel:
This might have been obvious...

... to some, but not for me.

I have a T-Mobile US MyTouch 3G (MT3G). It says HTC on the back, so I had flashed the recovery-RA-sapphire-v1.5.2H.img file.

However, that caused my phone to hang at the green screen.

When I booted with volume down + power I saw "SAPPHIRE PVT 32B SHIP S-ON G", so I had flashed the wrong image. recovery-RA-sapphire-v1.5.2G.img is what I needed and it works great!

Could this line from the instructions be clarified as to not scare people like me so much? ;)

Use the H/G version if your Magic is HTC branded (PVT 32A board)/Google branded (PVT 32B board).

Update: I think a link to this wiki would have helped http://wiki.xda-developers.com/index.php?pagename=HTC_Sapphire_Hacking

Thank you!
[myTouch 3G, Magic Android Development] istrebitjel:
What happens, if you enter mount --help ?

I get

# mount --help
mount --help
BusyBox v1.15.2 (2009-12-02 21:29:32 EST) multi-call binary

Usage: mount [flags] DEVICE NODE [-o OPT,OPT]

Mount a filesystem. Filesystem autodetection requires /proc be mounted.

Options:
-a Mount all filesystems in fstab

By the way, I get an error from mount -a, that I ignored:

# mount -a
mount -a
mount: mounting /system/modules/modules.sqf on /system/modules failed: No such file or directory
mount: mounting /system/xbin/xbin.sqf on /system/xbin failed: No such file or directory
[myTouch 3G, Magic Android Development] stgeorge88:
The latest update seems to disable home key as confirmation key; I personally prefer using the home key than pressing the trackball, which sometimes would move before it gets really pressed down.
[myTouch 3G, Magic Android Development] Amon_RA:
See v1.5.0 changelog in first post :

- Changed the item select key to CALL ANSWER-key instead of HOME-key. The HOME-key was conflicting other operations.
[myTouch 3G, Magic Android Development] tq745:
HELP! backups not working anymore...

i can't seem to get switchrom or bart working. i've tried both via adb and i get this error message.

storing app data...

tar: empty archive

Error occurred during storing of app data...

tar operation failed.

Do you have enough space on the /sdcard?

Btw, I have the up to date recovery and I have more than enough memory on my sdcard...over 4gb free. I don't know what happened. it used to work for me flawlessly and now it doesn't...maybe i have to reformat my sd??? any help is greatly appreciated...thanks.
[myTouch 3G, Magic Android Development] Amon_RA:
tar: empty archive => You don't have any app data on your ext partition...
[myTouch 3G, Magic Android Development] tq745:
How would i fix this? Is it the rom itself or should i just reflash.?
[myTouch 3G, Magic Android Development] quierotacobell:
For some reason it won't convert my ext2 to ext3. I checked on terminal, it showed I had ext2, and when I went to convert it on recovery, then boot it back up, it still shows ext2.
[myTouch 3G, Magic Android Development] :
Just wanted to say thanks. This is really useful especially for the mytouch. I'm not always around a computer to use adb and this really helpful. I swear there's one main thing I wish it had, but I forgot for now. I'll edit later when I remember. But either way, this is of utter perfection.