[Q]restore system files - Nexus One Q&A, Help & Troubleshooting

Hi i'm hoping someone can help, As i cannot find a definitive answer anywhere
I would like to copy the following recovery files back into the system folder on my N1 recovery-from-boot.p and install-recovery.sh using terminal.
admittedly im not adept at using bash, and am having a tough time as when i try to copy the files over, despite having root access i get a message along the lines of cannot cp to /system.
alternatively, would anyone be able to point me to the stock recovery image for 2.2.1 frg83d?
many thanks

developer.htc. com/
Sent from my Nexus One using XDA App

Before you can copy files to that partition, you have to mount it as rw, as it is ro.
Or you can download root explorer from the market, which would make things easier.
Sent from my Nexus One using XDA App

thanks, i'll give it a shot!
basically what i am trying to do is replace the custom recovery with the stock one. i rooted my phone, flashed amon ra's recovery, and went custom.
to be honest, its not really for me to much hedache in backing up files, and then reinstalling all pps one by one and waiting for everything to sync back. ive flashed my stock rom backup back. but i didnt backup before deleting the two files in system and system/etc that bring the stock recovery back on reboot. im hoping that by replacing them from an earlier backup made i can go back to full stock with stock recovery

poseoff said:
thanks, i'll give it a shot!
basically what i am trying to do is replace the custom recovery with the stock one. i rooted my phone, flashed amon ra's recovery, and went custom.
to be honest, its not really for me to much hedache in backing up files, and then reinstalling all pps one by one and waiting for everything to sync back. ive flashed my stock rom backup back. but i didnt backup before deleting the two files in system and system/etc that bring the stock recovery back on reboot. im hoping that by replacing them from an earlier backup made i can go back to full stock with stock recovery
Click to expand...
Click to collapse
Or you can just extract the recovery.img from a stock image found here: http://developer.htc.com and use flash_image to flash it.

Related

made a big noob mistake, help please!!! :-(

okay heres the problem, i flash roms regularly so i have a few nandroid backups. what i did was rename the backup folders to the name of the roms so i could keep up with them, i just wiped a previous rom and tried to restore a nandroid backup that i renamed and i keep getting restore error. i'm pretty sure its becaused i renamed them, can anyone tell how i can get the orginal folder caption back for the roms i backed up, and to top it off i renamed my stocked 1.5. thanks in advance
winterstormhaku said:
okay heres the problem, i flash roms regularly so i have a few nandroid backups. what i did was rename the backup folders to the name of the roms so i could keep up with them, i just wiped a previous rom and tried to restore a nandroid backup that i renamed and i keep getting restore error. i'm pretty sure its becaused i renamed them, can anyone tell how i can get the orginal folder caption back for the roms i backed up, and to top it off i renamed my stocked 1.5. thanks in advance
Click to expand...
Click to collapse
what is the error? is it run nandroid-mobile.sh from adb?
i tried to restore using the flash rec method. this is what im getting, error : run 'nandroid-mobile.sh restore via adb, problem is i dont know how to through adb i've always used the flash rec method
winterstormhaku said:
i tried to restore using the flash rec method. this is what im getting, error : run 'nandroid-mobile.sh restore via adb, problem is i dont know how to through adb i've always used the flash rec method
Click to expand...
Click to collapse
That usually means you have too many backups on the sd card, move some to your pc and you should be fine..........
Also make sure there are no spaces in the name of the folders, and that your battery isn't too low
-------------------------------------
Sent via the XDA Tapatalk App
It seems the problem was that i added spaces when i renamed the folders. Removed the spaces and problem fixed . Thanx a lot for all the help!

build.prop deleted

Ok so here's the newb in me. I was trying to get Netflix working on my rooted NC. I made a backup of build.prop by making a copy and renaming it build.prop.bak. I went into build.prop to change the product model and manufacturer. I did that, saved and rebooted but Netflix still did not work...whatever.
I decided to give up for the night, so I went back into /system and renamed build.prop.bak back to build.prop. At this point I had 2 build.prop files. I deleted the modified one to find out that both had been deleted.
i thought a reboot (again newb mistake) would magically restore the build.prop file (hind-sight says obviously it wasn't going to). It reaches the "n" screen and then the screen flashes black.
Is there a way to fix this without reflashing? I know there this thread:http://forum.xda-developers.com/showthread.php?t=949699
I did use Titanium Backup to back up all my "stuff" on the SD card if that means anything. Again, sorry for the dumb questions.
Any help would be appreciated!
Easy method - re-flash your ROM without clearing data. Will also overwrite any other tweaks.
More difficult method. Extract the build.prop from the ROM you are using. Boot into CWM and push the build.prop using ADB.
Sent from my NookColor using XDA App
martian21 said:
Easy method - re-flash your ROM without clearing data. Will also overwrite any other tweaks.
More difficult method. Extract the build.prop from the ROM you are using. Boot into CWM and push the build.prop using ADB.
Sent from my NookColor using XDA App
Click to expand...
Click to collapse
so for easy method, are you referring to setting up a bootable SD card with Clockwork Mod and reflashing ManualNooter?
NookyLov3r said:
so for easy method, are you referring to setting up a bootable SD card with Clockwork Mod and reflashing ManualNooter?
Click to expand...
Click to collapse
My bad. I assumed you were on CM7.
Since you are on stock B&N, your options now are pretty much flash one of the stock images (and lose everything - ie. return to stock) or extract the build.prop from the stock image, boot into CWM, and ADB push the build.prop.
Sent from my NookColor using XDA App
Yeah. This is what I ended up doing...such a PITA. Oh well, at least it can be done this way. Thanks for the help!

[Q] Where are my Clockwork backup files?

Hi,
Ive always used CWM to make my recoveries. But now, with Nexus 7 (CWM touch 6.0.1.9), Im unable to locate the backup files. There is no BACKUP folder in the clockwork folder and while I did a search using google and found many answers for my question, none of them was right. And I didnt make update from 4.1.2 - I cleaned the whole device and flashed stock 4.2.1 via fastboot, so I dont believe there is some directory tree change mess. And there is no BLOBS folder either.
I just flashed the ROM, rooted it using Toolkit, flashed CWM, made a backup - and boom, nothing there, while it is visible in both CWM recovery and ROM manager. I tried renaming the backup in ROM manager and searching for its new name using File Manager (with root privileges), but I was unsuccessful ...
So, please help me or provide me with a relevant link as I dont like TWRP ...
EDIT: I deleted the /SDCARD/CLOCKWORK folder and flashed TWRP. Now, I returned to CWM, made a backup using CWM and not only I dont see the backup itself, it didnt even recreate the CLOCKWORK folder. I just made a full search in the whole filesystem and there is nothing with "clock" in name (nothing relevant). Where is the backup hidden?????
Tried using it today. Its in some God forsaken rabbit hole. First enable root in es file explorer settings. Then look in system for data, media and eventually clockworkmod. That's the help I can give u.
Sent from my Nexus 7 using xda app-developers app
r3a1ist said:
Tried using it today. Its in some God forsaken rabbit hole. First enable root in es file explorer settings. Then look in system for data, media and eventually clockworkmod. That's the help I can give u.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Thanks, but that not the place for me. /data is empty and the only folder found containing "clock" in the file structure is /sstorage/emulated/0/clockwork ... the same as /sdcard/clockwork I was talking about. only three small files and thats it, no BACKUP or BLOBS.
GOT IT!!! I dont know why it wasnt visible with rooted File Manager, but I tried ES and its there ... bam ... THANKS A LOT!
Now, whats the best way to save this stuff to a computer?
its because Jellybean 4.2 uses diff storage paths...
Android 4.2 significantly changes the way how sdcards are handled internally, your data is moved from /sdcard/ into /sdcard/0 on first boot (0 is the 'home directory' of the default user). If you go back to 4.1.2: Don't forget to move the data in 0/ back to the root of your sdcard.
Click to expand...
Click to collapse
Ather said:
its because Jellybean 4.2 uses diff storage paths...
Click to expand...
Click to collapse
Well, Im aware of that. But that doesnt explain why the files are under /data/media/clockwork. Neither it does explain why it wasnt shown/found by File manager with root privileges - although I guess its the problem of the File manager, as ES File Explorer sees that without any problems ...
Now, I switched CWM to save to TAR and made a backup. It created a folder "/data/media/clockwork/backup/2013-01-08-1214" with 9 files, size about 1,1GB. Is it sufficient for me to copy this file to my computer? Im talking about backing up the backup (heh) ...
Also, is it ok that files cache.ext4.tar, data.ext4.tar and system.ext4.tar are 0mb? Thanks!
EDIT: I tried moving a backup folder to my pc, making factory reset, copying it back to where it was and restoring - everything works fine. Although I dont get why google messed the sw insides so much - my Nexus S seems to be much better in the matter of directory tree - and doesnt wipe all my files when doing stock restore from PC ...

[Q] Please Help!! (TWRP BACKUP)

Please help me! I was on Sense 5 rooted with twrp installed. Decided id try out the new CM 10.1 for the HTC ONE. So i backed up my system, data and everything else and proceeded to install CM. Decided it wasnt for me, went to TWRP, went to restore and there are no files there? What happened? I can see I only have 6GB storage available so the file is there somewhere!! How do i flash the backup? i read about a twrp utility or that the file structure is off?
Thanks for your help!!
UPDATE: When I go into a file manager, the backup from today is there.. it is in TWRP> BACKUPS> HT34JXXXXXX> (2013-05-14 @ 8:06 AM)
and inside that folder are the usual backup files. BUT IT STILL WONT SHOW UP IN TWRP WHEN I PRESS "RESTORE"
Anyone? I'm dieing here!!!
Reflash recovery, and see if now work.
I've restored yesterday my backup and no prob with TWRP.
And search your file in sdcard/0
If it will not work, reflash rom.
Don't know if this happened but I had a galaxy s3 before I got the htc one and I understood that cyanogenmod is a 4.2.2 type of rom and we have a 4.1.2 rom. A lot of peeps in the galaxy's forum would have trouble going back to touchwiz roms because the say flashing a 4.2.2type of rom partitions the memory files differently so then the 4.1.1 stock or custom roms. You may have to somehow unroot the phone and "push" the phone back to stock using your computer. People had to do that before with the s3. Hope that helps maybe. I have to go to work now. Good luck
Should I try to flash clockwork mod? Just go into the play store, download and flash from within the app? I don't understand I made a full nandroid it is in my phone and on my computer.. Why can't twrp recognize it?
Okaay said:
Should I try to flash clockwork mod? Just go into the play store, download and flash from within the app? I don't understand I made a full nandroid it is in my phone and on my computer.. Why can't twrp recognize it?
Click to expand...
Click to collapse
CWM can't restore TWRP backup.
If you backupped your rom with TWRP, this will restore it.
Did you try to see in sdcard/0?
Guich said:
CWM can't restore TWRP backup.
If you backupped your rom with TWRP, this will restore it.
Did you try to see in sdcard/0?
Click to expand...
Click to collapse
This is in the stock cm10 file manager. This is the exact backup I'd like to restore but when I go into the recovery and press on restore, nothing shows please keep responding!!!!
For team win recover the files need to be in /sdcard/0 the number zero or it won't be recognized. Move the directory structure to /sdcard/0. Also copy the directory with the backup to your computer in case.
Can we see the whole directory structure of where these files are located? like /recovery/2012305/ or where ever it happens to be?
nullkill said:
For team win recover the files need to be in /sdcard/0 the number zero or it won't be recognized. Move the directory structure to /sdcard/0. Also copy the directory with the backup to your computer in case.
Can we see the whole directory structure of where these files are located? like /recovery/2012305/ or where ever it happens to be?
Click to expand...
Click to collapse
Yeah man, I'll post the pics. Here they are looks as though it is in 0/
I just backed up the cm ROM just to see what would happen and now when I go to restore, the cm10 backup is the only one there and I can't locate it in file manager anywhere
Sent from my HTC One using xda app-developers app
Okaay said:
Yeah man, I'll post the pics. Here they are looks as though it is in 0/
I just backed up the cm ROM just to see what would happen and now when I go to restore, the cm10 backup is the only one there and I can't locate it in file manager anywhere
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Search the SD card for boot.emmc.win you should get two results one from the original backup and one from the new one. You need to get both the backups together. Also copy your original backup to your computer so you have a copy of it in case you need to wipe or something.
nullkill said:
Search the SD card for boot.emmc.win you should get two results one from the original backup and one from the new one. You need to get both the backups together. Also copy your original backup to your computer so you have a copy of it in case you need to wipe or something.
Click to expand...
Click to collapse
This is what I see... Someone please help, the backup I wanna restore is already I'm TWRP folder on the internal storage but no files show up when I try the "restore" option in the recovery
Sent from my HTC One using xda app-developers app
Okaay said:
This is what I see... Someone please help, the backup I wanna restore is already I'm TWRP folder on the internal storage but no files show up when I try the "restore" option in the recovery
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
OK so did you copy your backup to your computer yet???? Well if not now would really really be the time to do that. Looks like there is a issue with how CM is doing the SD card and TWRP. So first copy the backup off of your phone. Should I say it again? COPY THE BACKUP OFF YOUR PHONE. Now go get the correct RUU for your phone. Run that sucker and restore the phone to stock. You will need to relock your bootloader. Once that is done put TWRP back on your phone and copy your backup to the phone.
Ran into this myself. Because of 4.2.2's support for multiple users, it segments the internal storage into pieces(i.e. 0 for first user, 1 for second user, 2, 3, so on). I didn't realize this and had to start from scratch.
Copy your TWRP backup(and anything else you don't want to lose) to your computer and delete the 0 file. Re-add your files to the internal storage(be sure to keep a copy on your computer). Then reboot into bootloader, fastboot erase cache, reflash, and reboot into recovery. Don't let the CM10.1 ROM start up, otherwise you'll be doing it again.
Alternatively, use the All-In-One toolkit to adb sideload a non-CM10.1 ROM onto your phone, delete the 0 folder(after transferring to your computer what you don't want to lose, of course), reboot recovery, and attempt to restore.
Thanks guys, got it working
Sent from my HTC One using xda app-developers app
This is the same problems people with the GNex came across moving back from 4.2.2 to 4.1.2 last year - you have to remember the internal memory changed and manually move fles to the non-0 folders! You guys should read up more before jumping head long into a new Android version!
Glad it's sorted now though
nullkill said:
For team win recover the files need to be in /sdcard/0 the number zero or it won't be recognized. Move the directory structure to /sdcard/0. Also copy the directory with the backup to your computer in case.
Can we see the whole directory structure of where these files are located? like /recovery/2012305/ or where ever it happens to be?
Click to expand...
Click to collapse
OOPs--sorry this must be an HTC specific problem--sorry for poking my Samsung nose in...
Maybe I am not understanding the thread but--
In my Galaxy Note2 all my TWRP backups, and I have about 5, are all in ext.sd. card and I have used it to restore on several occasions--could be a device specific situation, but in Note2 it's fine to have them in ext.sd card.

[Q] Somehow ended up with 2 CWM, how to uninstall one?

Hello,
I am not exactly sure how, but somehow in moboot I see :
- CWM
- ClockWorkMod
CWM works, the other does not.
How do I remove the 2nd one then?
I have been searching online, but all I can find is that installing CWM would remove the previous recovery but it does not work for me....
Thanks!
The only correct way to do it is start back to square one. You'll have to do an acmeunimstaller to get that off I believe. If anyone else knows correct me if I'm wrong. But do that then reinstall android with only the 4 zips
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
[email protected] said:
The only correct way to do it is start back to square one. You'll have to do an acmeunimstaller to get that off I believe. If anyone else knows correct me if I'm wrong. But do that then reinstall android with only the 4 zips
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
Yours is the SAFE way, but if you're adventurous and knowledgeable, you can use a root browser to navigate to /boot. Look for a file named uImage.ClockWorkMod; copy it to the sdcard (just to be safe in case you screw up); and then delete it in /boot. Make sure you also have a file named uImage.CWM, which should be the working recovery image. Reboot and the offending recovery should be gone. If you screw up, you should still be able to boot into the ROM and either restore the file you deleted or reinstall CWM.
shumash said:
Yours is the SAFE way, but if you're adventurous and knowledgeable, you can use a root browser to navigate to /boot. Look for a file named uImage.ClockWorkMod; copy it to the sdcard (just to be safe in case you screw up); and then delete it in /boot. Make sure you also have a file named uImage.CWM, which should be the working recovery image. Reboot and the offending recovery should be gone. If you screw up, you should still be able to boot into the ROM and either restore the file you deleted or reinstall CWM.
Click to expand...
Click to collapse
that work and was super quick, thank you
I really thought it was more than just one file to get rid of but no...

Categories

Resources