I have an LG Optimus 2X ( p990 UK ) with the stock ROM running Android 2.3.4.
The phone is rooted and I have installed ROM Manager and CWM Recovery.
Recently, for the first time, I used CWM Recovery to clear the cache partition after which I found that the cache partition ( /dev/block/mmcblk0p2 ) would no longer mount. This turned out to be because CWM Recovery formatted the cache partition as ext4 which my phone cannot use.
I reformatted the cache partitiion manually to ext3 and it was mounted normally on startup once again.
I have, in the past, made some nandroid backups using CWM Recovery which I now notice are all labelled .ext4. If I were to restore any of those then my phone wouldn't boot and would be unusable. So those backups are worthless.
I would like to try the CM10 ROM when it becomes stable but I would like a nandroid backup of my stock ROM as a safety buffer. Could someone please tell me if there is a way for me to make nandroid backups in ext3 format and to restore them?
Related
So my daily build is the CM7 nightlies.
I have pretty much all my apps on my ext3 partition. However, if I want to flash another ROM (aside from another nightly) I pretty much have to wipe. Wiping also wipes the ext3 partition.
I do do a nandroid before wiping, and it does back up the ext3 partition, but when I restore it doesn't seem to restore the ext. Also for some reason, after restoring I am unable to install apps at all to the ext3 partition, and I have to format the whole sd card to fat32, then make a ext3 partition again.
I actually kept getting hotboots after restoring a nandroid whenever an app would try to install. This was after I installed dta2sd.
So how can I backup a ROM with info on an ext3 partition, and restore it after wiping the partition.
I guess you're using ROM Manager with its default recovery.
Use AmonRa's recovery.
Hello,
I am about to install CM7. I currently Have Nookie Froyo 0.6.8 with CWM 3.0.0.5. I believe I need to update to CWM 3.0.1.0 first. Do I need to wipe / format the boot partition first or will the update to CWM / CM7 do that? What data lives in boot curerntly and what would be a situation / reason for wiping the boot partitition? When is it ever done?
Thanks in advance!
~J
you should not wipe boot when installing cm7
mooja said:
you should not wipe boot when installing cm7
Click to expand...
Click to collapse
What would be a situation / reason for wiping boot? When is it ever done?
OK. thank you, but what would be a situation / reason for wiping the boot partitition? When is it ever done? I'm trying to learn about all aspects of rooting / cwm.
Thank you
~J
Not needed,running cwm will handle everything. Also the boot should stay so that SD keeps priority for recovery reasons.
There is a ROM Manager option to wipe data/cache, this should be done if changing rom types (ex nookie to CM7) but isn't usually needed between minor versions of the same rom unless issues arise.
It wipes the boot sequence, doesn't matter what rom you're going too, you need the boot data.
I've wiped it twice. Both times required I restored to stock before moving to a custom rom. Just wipe data and cache, and you'll be fine.
when going from nookie Froyo to CM7, you are changing the file system from EXT-3 to EXT-4. Remember to format /system /data /chache, and wipe Dalvik-cache within CWM 3.0.1.0 before installing the CM7 rom. By formating the three partitions in CWM 3.0.1.0 you upgrade the file system.
There is almost never a reason to format /boot. You will only cause problems that are annoying to fix.
Remember to do a backup in CWM before you format and flash CM7. You never know.
Hello guys,
I have a little problem which seems to be coming when I move the dalvik cache to the EXT partition of my device.
I am using the latest version of MIUI. It has A2SD built in, but it doesn't seem to be working. It was working before though...
What happened:
I restored the NANDROID backup of the stock ROM I had made before flashing MIUI. Once I booted into it, it warned me about the 2.3.4 OTA update. I did it, but forgot that it overwrites the bootloader, removes root and I will not be able to revert to MIUI.
I pushed the Clockwork recovery and immediately started restoring the NAND backup of my MIUI ROM. Without gaining root on the Stock 2.3.4 ROM.
The Dalvik was moved to the EXT on the MIUI I was trying to restore and functioning properly.
The restore went fine, until it got to restoring the sd-ext. It stood there at some *.tmp file for an hour or so. I removed the battery, booted into recovery, wiped and started the restore again. This time it finished, but when I went to start the phone, it got stuck at the Nexus logo, not even showing the MIUI boot screen.
Wiped again. Tried booting into a previous backup, which didn't have the Dalvik moved to the EXT partition. Restored and booted just fine.
I tried several more times restoring the latest backup I had (the one with dalvik to ext) and got the same result.
Then I tried installing the MIUI backup that didn't have Dalvik moved to EXT and tried moving the Dalvik to EXT. The phone rebooted and same thing happened. Didn't want to get past the Nexus logo.
I then wiped everything except batt stats, formatted ext, and flashed the MIUI ROM. It booted perfectly, but A2SD was not working, just like before (solution was to move dalvik to sd). I downloaded the A2SD GUI only and moved the dalvik to EXT AGAIN. And AGAIN - not booting past Nexus logo.
The only thing I still haven't done is formatting the SD and re-creating the EXT partition.
Any other suggestions on what may be causing this and how to fix it?
I want to have a2sd on this ROM and moving the dalvik to EXT seems to be the only way of achieving this.
Repartition SD card, you've most probably corrupted the EXT partition by pulling the battery.
Do you think that restoring the last MIUI backup I had after this will do the job?
After repartitioning? As long as you back up the files from the main FAT32 partition on the computer, and restore them back - the EXT will be overwritten when restoring nandroid anyway.
Well.... I just formatted the card with Panasonic SD formatter. Transfered only the nandroid backup (without creating an ext partition beforehand) and restored it successfully, but when the phone starts booting it is stuck at the Nexus logo.
I also checked the MD5 of the backup and everything is fine.
Godzi said:
Well.... I just formatted the card with Panasonic SD formatter. Transfered only the nandroid backup (without creating an ext partition beforehand) and restored it successfully, but when the phone starts booting it is stuck at the Nexus logo.
I also checked the MD5 of the backup and everything is fine.
Click to expand...
Click to collapse
Wipe Cache and dalvic. Than try again. Your System Need a ext wenn you push dalvic to sd before.
I ran out of options.
Formatted the card, tried restoring - Nexus logo
Wiped Everything + Dalvik and Cache, restored - Nexus logo
Wiped Everything + Dalvik and Cache, didn't restore old MIUI backup - successful boot. When I tried to move Dalvik to EXT after the successful boot - Nexus logo after restart.
If anyone can suggest anything... Because this way I have no access to the A2SD on the device with this ROM. And everything was working fine before I restored the Stock Ginger.
Did you try installing DT on any other ROM and try and move dalvik to the sd to see if it does the same thing?
Dude Random21 said:
Did you try installing DT on any other ROM and try and move dalvik to the sd to see if it does the same thing?
Click to expand...
Click to collapse
No. I haven't tried with another ROM. I guess I will try CM7 and see what happens when I move the Dalvik to the EXT.
I repartitioned once again, this time using the same EXT size as before the breakdown (512MB). When the backup I am trying to restore was made.
Was using 1024 when I partitioned previously and got the Nexus logo again.
Edit: Same thing. Successful restore and then the Nexus Logo.
I suspect it's the ext partition. Why don't you try formatting through recovery, and do a clean install?
Which recovery do you use? I would avoid Clockwork 3.x...
Well. I formated using Panasonic SD Formatted and then partitioned using the recovery. I did a clean install after that and as soon as I move the Dalvik to the EXT, I can't boot past the Nexus logo.
Yes, Clockwork 3.x. I guess I will try Amon_RA as well. Nothing left to lose.
If you partition with Amon Ra, make sure you up the partition from ext2 to ext3 (available through the Ra menu options)...
Ok. Partitioned with RA.
Tried to transfer the nandroid backup made by Clockwork to a sd/nandroid folder so I can restore it from within RA but it kept giving out some error telling me to look at the recovery log when I selected *.img files from the list.
Good news. I booted into MIUI and installed a2sd GUI. Moved Dalvik to EXT without a problem. I guess Clockwork's partitioning is flawed. Everything is working fine now.
Thank you.
Can anyone suggest a method I can use to restore the Clockwork made NAND backup + the EXT backup now when my partitions are finally alright.
Any method would be fine. Even manual through adb. I don't care. As long as I restore my phone to yesterday.
Thank you guys once again.
You should be fine if you load a clockwork prior to v3.x. I think 2.5.1.4 was the latest version prior to the v3.x series. The issues only arise with v3.x.
But only clockwork is able to restore clockwork backups, and the same goes for Amon_RA.
As an alternative, you can just extract the img files and manually load your data back on. It is definitely more time consuming, but it wouldn't matter what recovery you use. It has been a while since I extracted anything from the img files, and when I did, I just got the data from apps stored on the internal (apps and dalvik were stored on the sdcard), and I think the only program I used was unyaffs2 to extract the data.
Thank you guys!
Partitioning the card with Amon_RA and restoring the old Clockwork-made backup with Clockwork 2.* worked perfectly.
I will not use Clockwork ever agian. Putting Amon_RA and that's it.
You will only have this problem with clockwork 3.x - there doesn't appear to be the same issue with clockwork 2.x
I have been using v2.x without any issues (never upgraded to v3.x). I prefer it because it gives me the option to wipe the /system partition, whereas Amon_RA is missing this feature and you can only do it with a flashable zip.
I use 2.x for a number of reasons. I tried 3.x a few times, but always had ext issues on my N1. Having said that, I've used 3.x on my nook, MT4G and G2, and never had issues with them - just on the N1...
I've used RA 2.2.1 on CM7, MIUI ,Sense rom. I never seen sd-ext issues on my Nexus One.
This is my story.
- I followed this video (below) to ROOT (SuperOneClickv2.3.3-ShortFuse) my phone.
in youtube search for: Rooting and installing custom ROM (LG Optimus 2x) HD by TheCooLuka
- Then I made a backup file on my Internal SD card as well as on my External SD card using CWM v.6.0.15. (There was a Clockworkmod folder containing: Backup and Blobs folders)
- I don't know if I did something wrong in this next step. I moved all of my files from my Internal and External (including the CWM files) to my computer. So that my phone's External and Internal SD cards were "empty".
- I then flashed to CM10, which worked great, except for the sound and mic probs.
- Now, I'm trying to return my phone to the stock ROM. I tried to flash my phone by re-importing the Clockworkmod folder (containing: Backup and Blobs folders), and running the Restore option in CWM, but it ends up BOOT LOOPING.
My question is how do I get back to my Stock ROM with my saved backup? What steps am I doing wrong?
(I'm with the Canadian carrier = FIDO, and I'm able to restore back to CM10, but I just want to figure this out)
whitecalvus said:
This is my story.
- I followed this video (below) to ROOT (SuperOneClickv2.3.3-ShortFuse) my phone.
in youtube search for: Rooting and installing custom ROM (LG Optimus 2x) HD by TheCooLuka
- Then I made a backup file on my Internal SD card as well as on my External SD card using CWM v.6.0.15. (There was a Clockworkmod folder containing: Backup and Blobs folders)
- I don't know if I did something wrong in this next step. I moved all of my files from my Internal and External (including the CWM files) to my computer. So that my phone's External and Internal SD cards were "empty".
- I then flashed to CM10, which worked great, except for the sound and mic probs.
- Now, I'm trying to return my phone to the stock ROM. I tried to flash my phone by re-importing the Clockworkmod folder (containing: Backup and Blobs folders), and running the Restore option in CWM, but it ends up BOOT LOOPING.
My question is how do I get back to my Stock ROM with my saved backup? What steps am I doing wrong?
(I'm with the Canadian carrier = FIDO, and I'm able to restore back to CM10, but I just want to figure this out)
Click to expand...
Click to collapse
Are you sure you Wiped Data/Dalvik/Cache? If that doesn't work, you'll probably have to NVFlash it back to stock.
Yuvin said:
Are you sure you Wiped Data/Dalvik/Cache? If that doesn't work, you'll probably have to NVFlash it back to stock.
Click to expand...
Click to collapse
Am i suppose to wipe it before or after I restore my backup?
whitecalvus said:
Am i suppose to wipe it before or after I restore my backup?
Click to expand...
Click to collapse
u have to wipe all of the above before restoring. (from cm to stock)
also wipe system which u can found at mount option would be better.
Then restore your backup from external sdcard or u would end up boot loop.:laugh:
kencheung2008 said:
u have to wipe all of the above before restoring. (from cm to stock)
also wipe system which u can found at mount option would be better.
Then restore your backup from external sdcard or u would end up boot loop.:laugh:
Click to expand...
Click to collapse
I tried what you suggested. This is what I did:
- Moved my backup folder of "clockworkmod" containing the two subfolders (backup and blobs) onto my external SDcard.
- Then I put the SDcard into the phone.
- Booted into CWM Recovery v5.0.2.0
- Wiped data/factory reset, wipe cache partition, and wiped Dalvik cache
- Formatted system through the "mounts and storage option"
- Then tried to restore.
This is the following msg I got:
- Checking MD5 sums.....
- Restoring boot image...
- system.img not found. skipping restore of /system.
- data.img not found. skipping restore of /data.
- .android_secure.img not found. skipping restore of /sdcard/.android_secure.
- cache.img not found. skipping restore of /cashe.
- Restore complete!
Were not these files created with CWM restore? Am i missing files? Help?
These are the files in the BACKUP FOLDER of CWM:
.android_secure.vfat.dup
boot.img
cache.ext4.dup
data.ext4.dup
nandroid.md5
recovery.img
system.ext4.dup
I upgraded my CWM Recovery back to v6.0.1.5. and tried reflashing, but it still ends up bootlooping..
Concerning the following message, I read that sometimes you had to format (slow) the sdcard. So I did both (reformat sdcard and tried to flash with CWM v6.0.1.5), it doesn't give me the message any more, but it stilll bootloops. So I'm back on CM10 backup.
Checking MD5 sums...
Erasing boot before restore
Restoring boot image
System image not found. Skipping restore of /system
data.img not found. skipping restore of /data
.android_secure.img not found. skipping restore of /sdcard/.android_secure
cache.img not found. skipping restore of /cache
sd-ext.img not found. Skipping restore of /sd-ext
Restore complete!
Any ideas?
I have installed custom rom from zip and used it for several weeks.
Today I have decided to try new rom and I have made a backup trough CWM (6.0.2.5) in format .tar
I have tried to restore the backup. but the phone gives me a really strange error.
Encryption Failed. The system .. bla bla bla ... you need to reset your phone ..
I have tried to factory reset trough CWM, but the problem is the same.
I have tried to restore older backup ... the same error ...
Any ideas what is the problem and now to fix it (restore the rom)
I have tried the following ..
1. format /system /cache / data
2. install custom rom (CivZ v3.0)
3. take the setup wizard
4. reboot into recovery (CWM 6.0.2.5)
5. backup (.tar format)
6. restore from the backup
and .. the same error and no working rom ..
Can this be an internal SD memory problem ?
Any ideas ???
Anyone
Try backing up to external SD card. If that works, or you dont have an external SD card, backup and repartition your internal SD using AIO toolkit (choice 4 in the toolkit, then select the new unlocked ICS bootloader, and 512 MB system partition, or whatever your preferred size is, then run the internal SD fixer which follows that step) and try again.
The backup is on external SD
I have already repartitioned the internal SD with the default ICS layout (1.5G system)
hack_man said:
The backup is on external SD
I have already repartitioned the internal SD with the default ICS layout (1.5G system)
Click to expand...
Click to collapse
Then try backing up to the internal SD and also try changing recovery to TWRP.
I have already tried TWRP but it cannot restore CWM backup
Currently I have stock rom , but I cannot rollback to the previous rom backup.
a few days ago I have used some app (found here in XDA) for optimizing internal SD .. is it possible this app to broke something in the internal SD ?
hack_man said:
I have already tried TWRP but it cannot restore CWM backup
Currently I have stock rom , but I cannot rollback to the previous rom backup.
a few days ago I have used some app (found here in XDA) for optimizing internal SD .. is it possible this app to broke something in the internal SD ?
Click to expand...
Click to collapse
Hi! I assume that you were using the stock ics rom. Right? Stock ics use system partition as ext4 but data and cache are used as ext3. Since TWRP and CWM format data and cache as ext4 you cannot use your old backup of stock ics rom, unless you format both (data and cache) to ext3.
I created a zip which converts data and cache to ext3. Download from my attachment.
Flash the zip file then restore your backup.
Thanks :victory:
I will try