Preparation b4 flashing between ROMS? - G1 Q&A, Help & Troubleshooting

is there a guide anywhere on this or could someone give me a rough guide?
Do I need to format the partitions I made on my SD to run Hero, when flashing to another ROM that uses APPS2SD like Soulife's Rogers? I'm getting untold weird problems with this ROM - syncing etc.
Also, looks like APP2SD might not be working - 45MB free space is this right?
(For the record, all I did was a 'wipe' and then flash - which didn't seem to get rid of most apps)
Thanks!

You need to wipe your ext partition before switching roms.
That will get rid of the apps that stayed.

Hmm.. I digg my double post even though I only clicked once. Thx xda

can you wipe with the 'repair ext filesystems' option in cyanogens bootloader?
didn't seem to work for me. :?

with adb:
adb remount
adb shell
rm -r /system/sd/*
reboot recovery
then flash the update

thanks!
when I do
rm -r /system/sd/*
I get:
cannot remove '/system/sd/*': No such file or directory
So I guess there's nothing there anyway? ... looks like it when I 'ls' the directory anyway... confused as to why my apps keep on showing up after flashing ???

what a minute I adb'd in when it was in bootloader mode would that effect what I see?

Related

Apps to SD

Is this an efficient method of moving apps to SD? Apparently, it works anywhere from an hour to a few weeks but eventually crashed my phone and I have to wipe and flash.
In terminal emulator
busybox cp -a /data/app /system/sd/
busybox cp -a /data/dalvik-cache /system/sd/
busybox cp -a /data/data /system/sd/
Then in Recovery Terminal (Alt+X on JF menu in Recovery Mode)
mount data
rm -rf /data/app
ln -s /system/sd/app /data/app
rm -rf /data/data (optional)
ln -s /system/sd/data /data/data
rm -rf /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
reboot
The method is so simple and works well, that is until it breaks . Apps2SD never seems to work right for me. I will read up on the other methods but I would like to know why this doesn't work well and if there is something I can add to this to make it work better.
aaronratner said:
Is this an efficient method of moving apps to SD? Apparently, it works anywhere from an hour to a few weeks but eventually crashed my phone and I have to wipe and flash.
In terminal emulator
busybox cp -a /data/app /system/sd/
busybox cp -a /data/dalvik-cache /system/sd/
busybox cp -a /data/data /system/sd/
Then in Recovery Terminal (Alt+X on JF menu in Recovery Mode)
mount data
rm -rf /data/app
ln -s /system/sd/app /data/app
rm -rf /data/data (optional)
ln -s /system/sd/data /data/data
rm -rf /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
reboot
The method is so simple and works well, that is until it breaks . Apps2SD never seems to work right for me. I will read up on the other methods but I would like to know why this doesn't work well and if there is something I can add to this to make it work better.
Click to expand...
Click to collapse
Why don't you just download a ROM that already moves everything to the sd for you?
I'm all ears. Which ROM do you recommend? Link? I like JF but am open to suggestions.
aaronratner said:
I'm all ears. Which ROM do you recommend? Link? I like JF but am open to suggestions.
Click to expand...
Click to collapse
Cyanogen's ROM. http://forum.xda-developers.com/showthread.php?t=537204
alritewhadeva said:
Cyanogen's ROM. http://forum.xda-developers.com/showthread.php?t=537204
Click to expand...
Click to collapse
Def cyanogen's.
Downloading and flashing now. Thanks.
aaronratner said:
Downloading and flashing now. Thanks.
Click to expand...
Click to collapse
no problems, we're happy to help.
No problem Be sure to wipe just in case
Interesting ROM. I wiped and flashed. It is not seeing my partition. My phone storage is at 40MB. My partition is ext2 and I suspect that it needs to be ext3. Is there a way I can reformat the SD card via the phone (this is how I did it originally using Apps2SD). I am using my class 6 8GB card for this (I will eventually move back to my 16GB once I get the process right). I have ~600MB on my ext2 partition but it's only showing that there is 12K using "df system/sd" in TE. My previous data that I had moved there using the method that started this post in no longer there. Before I drive myself crazy reading everything about this (which I will do tonight when I have more time to dedicate to it), perhaps there is a quick answer.
Do you have cyanogen's latest recovery? 1.4? IF you do try upgrading to ext3. In recovery console
upgrade_fs
reboot
While trying to get cyanogen's latest recovery on the phone I erased my old recovery from the phone as per this post http://forum.xda-developers.com/showthread.php?p=3915123 by cyanogen (first post). Now I cannot get his recovery image since when I use Home+Power it takes me straight to the Recovery Console as though I used Camera+Power. I can connect to my pc via USB and fastboot is working but it will not let me flash the recovery image to the phone. Am I screwed?
aaronratner said:
While trying to get cyanogen's latest recovery on the phone I erased my old recovery from the phone as per this post http://forum.xda-developers.com/showthread.php?p=3915123 by cyanogen (first post). Now I cannot get his recovery image since when I use Home+Power it takes me straight to the Recovery Console as though I used Camera+Power. I can connect to my pc via USB and fastboot is working but it will not let me flash the recovery image to the phone. Am I screwed?
Click to expand...
Click to collapse
can you normally power up? Just hold power
Okay. Thank God for Nandroid. LMAO. I was able to load an old Nandroid backup to the phone so I can get get to JF's recovery utility. I would like to flash cyanogen's latest recovery to the phone. What is the best way to do that? Can I use My Android Manager 0.5.1?
aaronratner said:
Okay. Thank God for Nandroid. LMAO. I was able to load an old Nandroid backup to the phone so I can get get to JF's recovery utility. I would like to flash cyanogen's latest recovery to the phone. What is the best way to do that? Can I use My Android Manager 0.5.1?
Click to expand...
Click to collapse
Told you nandroid was handy! Just place cyanogen recovery on your sdcard and type this in terminal emulator
su <wait for #>
flash_image recovery /sdcard/cm-recovery-1.4.img
reboot recovery
enjoy new recovery!
aaronratner said:
Okay. Thank God for Nandroid. LMAO. I was able to load an old Nandroid backup to the phone so I can get get to JF's recovery utility. I would like to flash cyanogen's latest recovery to the phone. What is the best way to do that? Can I use My Android Manager 0.5.1?
Click to expand...
Click to collapse
the adb commands, you can't really mess up
adb shell flash_image recovery /sdcard/cm-recovery-1.4.img
I truly apologize. I am doing this half-assed. I normally read a thousand threads before I do anything to my phone. I decided to do this on a whim while eating dinner. Probably not the best idea. Anyway, I think I got it working OK for now but I do want cyanogen's recovery and apps to sd working properly. I re-flashed cm 3.6.8.1 until I can properly sit down and figure things out. After never posting anything on a forum in my life this is suddenly my 17th in a few days.
aaronratner said:
I truly apologize. I am doing this half-assed. I normally read a thousand threads before I do anything to my phone. I decided to do this on a whim while eating dinner. Probably not the best idea. Anyway, I think I got it working OK for now but I do want cyanogen's recovery and apps to sd working properly. I re-flashed cm 3.6.8.1 until I can properly sit down and figure things out. After never posting anything on a forum in my life this is suddenly my 17th in a few days.
Click to expand...
Click to collapse
That's how it starts, I started at like 4 Posts over a year, then all of a sudden, I got sucked in and now look at me... 472 Posts... T_T
aaronratner said:
I truly apologize. I am doing this half-assed. I normally read a thousand threads before I do anything to my phone. I decided to do this on a whim while eating dinner. Probably not the best idea. Anyway, I think I got it working OK for now but I do want cyanogen's recovery and apps to sd working properly. I re-flashed cm 3.6.8.1 until I can properly sit down and figure things out. After never posting anything on a forum in my life this is suddenly my 17th in a few days.
Click to expand...
Click to collapse
Well I hope you can get this working, good luck! Lol I almost have 1,100 posts in 4-5 months
I will get CM3.9.1 w/Recovery 1.4 on my phone tonight (somehow). I will read everything first and I don't think I will have an issue. So far, the only thing I need to figure out is how to get the recovery 1.4 on the phone. Other than that, CM3.9.1 looked really nice for the five minutes I had it on my phone. Looking forward to it and stay tuned as I muck up my phone some more. LOL. Will post if I have issues.
Thanks for your extremely fast responses. They are much appreciated.
Cyanogen 3.9.2 is out btw

clearing cache between roms

hello all, just trying to get a little input on the correct procedures for clearing the cache inbetween roms. i recently swithed from cyanmod 4.1.6 to Drizzy's Hero-V1.2r1 . Ive tried several commands in console so far to wind up reading something along the lines of : not found. Could someone inlighten me with the correct commands to do this or even the correct steps such as wipe, flash , yada yada and then what commands. thanks in advance , veritas
ronrey, so ronreyyyy, so ronrey im all aloonnneeeee
When you switch roms the only thing you need to do is wipe your ext partition and wipe your phone (alt + w). I use Ubuntu to clear my partition, but there are commands to do it if thats what your asking.
supremeteam256 said:
When you switch roms the only thing you need to do is wipe your ext partition and wipe your phone (alt + w). I use Ubuntu to clear my partition, but there are commands to do it if thats what your asking.
Click to expand...
Click to collapse
when u switch roms a small trace of them remains behind in the dalvik folder in the internal that doesnt just get cleared using alt+w so there are a set of commands to handle this task and i believe they go something like this rm -rf system/sd/dalvik-cache. along with some pre and post commands, that are the ones im refering to.
actually here is a direct quote of what i found, i just couldnt get these commands to work, so im thinking maybe they differ when switching to hero, maybe not..but they didnt work for me>>>>>>>>>>>>>>>>>>>>>
Monday, 31 August 2009 18:51 by Simon Walker
--------------------------------------------------------------------------------
User Rating: / 1
PoorBest
--------------------------------------------------------------------------------
So I started running into some performance problems with the Enomther ROM and was considering removing it and going back to Cyanogen. I decided to have a quick chat with Enomther and he gave me some things to do. The results are even more amazing than the first install.
I found out that the dalvik-cache gets carried over between ROM installs and that it can cause problems and that I should delete it, wipe my phone and start again. Enomther gave me this little guide to follow:
Ok ... so reboot into cyanogen's recovery
Press (Alt+x) to enter the console
Enter the following commands ...
mount system
mount system/sd
rm -rf system/sd/dalvik-cache
umount system/sd
umount system
recovery
This will bring you back to recovery, from there perform the "Data Wipe" option in the menu.
When it's done reboot and you should be all good. Of course you'll have to redo your settings, but your apps will reinstall properly.

Trouble installing JacxHEROSki 2.1

I get a bootloop on the seconds splash screen with the little green android popping out.
I've tried wiping and reflashing multiple times, as well as repairing the file system extensions. Sometimes, however, it gets to the third "HTC" screen, but then goes back to the green android popping out.
No luck. I'm coming from Cyanogen Mod 4.0.1
If anyone has any ideas, I'd appreciate it.
Thanks.
nasman1993 said:
I get a bootloop on the seconds splash screen with the little green android popping out.
I've tried wiping and reflashing multiple times, as well as repairing the file system extensions. Sometimes, however, it gets to the third "HTC" screen, but then goes back to the green android popping out.
No luck. I'm coming from Cyanogen Mod 4.0.1
If anyone has any ideas, I'd appreciate it.
Thanks.
Click to expand...
Click to collapse
did you wipe the ext partition?
you need too
Sorry for the noob question, but how do I do that?
Here be sure to follow this or this guide.
i wuld recommend u do the manual partition and only delete the ext2 partition and remake it for a lot more simpler process i.e only rm 2 n rm 3 after print so that your sd card files are not deleted
Dare{D}evil said:
Here be sure to follow this or this guide.
i wuld recommend u do the manual partition and only delete the ext2 partition and remake it for a lot more simpler process i.e only rm 2 n rm 3 after print so that your sd card files are not deleted
Click to expand...
Click to collapse
yup thats how i did it, but if you dont want to go through all that, you can follow these steps: http://forum.xda-developers.com/showthread.php?t=535797
1.) Turn on the phone holding the home key and power to boot. Attach the phone to your computer via usb.
2.) Wipe your phone from the menu in cyanogen
3.) Open console ALT + X and enter the following commands. Press "Enter" after each line. This wipes the ext partition.
mount -o rw /dev/block/mmcblk0p2 /system/sd
rm -r /system/sd/*
or this in adb
adb remount
adb shell
rm -r /system/sd/*
Click to expand...
Click to collapse
Note: this will delete your apps on your sd as well as userinit files or w/e was there
Code:
to backup your ext partition to your current directory: adb pull /system/sd/ %CD%\sdbackup
to restore back to sdcard: adb push %CD%\sdbackup /system/sd
the easiest way to wipe ext3 partition is in the recovery console with
Code:
mke2fs -j /dev/block/mmcblk0p2
that is all. one command. and all is gone.

Need advice - Fastest Eclair Rom on top of Cyanogen

Hello,
I am currently running Cyanogen Mod 4.2.14.1 on my G1. My additional specs are listed below. I am looking for a fast but stable ROM that I can flash on top of Cyan's Rom without the need to wipe or change my Radio/SPL, etc. I just really don't want to go through losing all my data. Any advise would be greatly appreciated. Thanks!
SD Card: 6 Class Fat32/ext3/Linux-Swap
SPL: HBOOT-0.95.0000
Radio: 2.22.19.26i
Rom: CyanogenMod 4.2.14.1
Recovery: Cyanogen's Recovery 1.4
You can't flash a completely different ROM on top of another. It might cause some un wanted issues.
Suggestion:
Make a backup of your stuff.
Full Wipe
Flash a Different ROM.
Restore your stuff.
Bummer. Welp, Cyan it is then. Don't need a bunch of issues messin' around. Thanks for the reply!
I believe that xRom by JAC is based off the same kernal which means no wipe going to it... you could use switchrom to backup and restore without wiping to go back to cyanogen if you dont like it...
Let me ask this then. I always use Nandroid for my backups. Can I just do a nandroid backup, flash xrom, and if I don't like it...do a nandroid restore to get back to Cyanogen?
your app data might not be compatible coming back.. do you know how to use switchrom? its not that hard once you learn it... and it backs up the app data before doing a nandroid...
google xda switchrom.sh
download the switchrom.txt file
rename to switchrom.sh
move to root of sdcard
go to terminal emulator type: (hit enter after each line)
su
cp sdcard/switchrom.sh /system/sd
reboot recovery
enter recovery console: (hit enter after each line)
mount /system/sd
sh /system/sd/switchrom.sh -s (todays date)<this will be the backup name
*this stores your rom* notice -s
to restore the backup--enter recovery console
mount /system/sd
sh /system/sd/switchrom.sh -r
it will give you a choice... choose the most recent (or stable) rom
I do one of these backups every weekend JIC I mess something up (which I did last night... last back was 01/28/10 so not too bad..
Well, your instructions are impecable! Never used it but I'm gonna give it a whirl. Thanks so much for the detailed assistance
junkdruggler said:
your app data might not be compatible coming back.. do you know how to use switchrom? its not that hard once you learn it... and it backs up the app data before doing a nandroid...
google xda switchrom.sh
download the switchrom.txt file
rename to switchrom.sh
move to root of sdcard
go to terminal emulator type: (hit enter after each line)
su
cp sdcard/switchrom.sh /system/sd
reboot recovery
enter recovery console: (hit enter after each line)
mount /system/sd
sh /system/sd/switchrom.sh -s (todays date)<this will be the backup name
*this stores your rom* notice -s
to restore the backup--enter recovery console
mount /system/sd
sh /system/sd/switchrom.sh -r
it will give you a choice... choose the most recent (or stable) rom
I do one of these backups every weekend JIC I mess something up (which I did last night... last back was 01/28/10 so not too bad..
Click to expand...
Click to collapse
Wow Just USe AmonRA LAst recovery It Lets you Use Switchrom Eazy You Can Save your Rom =D i Can Give you a youtube video that will Help U =D Youtube video

[Q] Help with 498 Error under Ginger Yoshi 1.5

I installed Ginger Yoshi 1.5 on my Android Dev Phone 1 by following these instructions:
http://forum.xda-developers.com/showthread.php?t=1178665
I found that most things are working, but I cannot install CoPilot GPS (28MB)
Error 498 in Google Play seems to mean the /cache partition is too small. My cache partition is 27MB.
I tried redirecting /cache to larger place with Cache Fixer 1.1
The "Data" option doesn't succeed in expanding the cache.
The "Tmpfs" option successfully makes the cache bigger, but it makes Play force close when I try to install the app.
I Tried using CacheDownload2SD 1.7.1, but it doesn't do anything
I got a message saying my su binary should be updated. I don't know if that is related or not.
I tried updating the SuperUser su binary from 2.3.2-efgh to 3.1.1
su Binary Updater says "Make sure new su works... fail!"
When I try again, su Binary Updater says "Copying su to /system... fail!"
When I try yet again, su Binary Updater again says "Copying su to /system... fail!"
I used Root Checker to verify root access. The phone is properly rooted. I don't know if this issue is related
I've considered downloading an apk and manually installing it. That should work, but then Google Play wouldn't let me know when an update became available. Any ideas on how to solve the problem? Does anyone know why Cache Fixer and CacheDownload2SD dont' work? Can anyone see why the su binary won't update? I've spent all day clearing caches, rebooting, and attempting installs. Why does Google Play need to download to such a tiny partition?
@IMSargon if your /cache partition is too small then you need to use custom MTD.
HTCDreamOn said:
@IMSargon if your /cache partition is too small then you need to use custom MTD.
Click to expand...
Click to collapse
Thanks for that. I certainly have some more reading before I fully understand the topic. When I upgraded to Ginger Yoshi 1.5, I changed from DangerSPL to hboot-1.33.0013d which gives practically the same partition sizes, except /cache is 27MB instead of 30MB, which is why I didn't have this problem before.
So you're saying I can flash to this custom bootloader to increase my cache size (decreasing /system and/or /data accordingly), install the GPS app, then flash back for normal operation? It sounds like a risky proposition. Is there no way to permanently or temporarily redirect the location to which Play downloads APKs? Such solutions appear to exist (Cache Fixer, etc), but they don't seem to work for me (why?).
No, if you change partition sizes you will be wiping those partitions. Maybe a better option is to do it just once but bind mount to sdcard, see the link htcdreamon gave for more info on this
Sent from my Nexus 4 using xda premium
demkantor said:
No, if you change partition sizes you will be wiping those partitions.
Click to expand...
Click to collapse
This is a relief to hear. It sounded like they would just redefine the partition boundaries with the data in place and hope for the best. I was wondering how that worked. After re-reading, the instruction do call for wiping the partitions and re-flashing the ROM.
demkantor said:
Maybe a better option is to do it just once but bind mount to sdcard, see the link htcdreamon gave for more info on this
Click to expand...
Click to collapse
That would work, and it's something I'll seriously consider once I have a chance to read all the documentation. It seems to me, though, that I should be able to unmount and remount elsewhere the /cache partition on a live system from the command line. Any reason I should not attempt that?
If you want to resolve your problem then follow these steps
- Clean your Device Cache
- Erase Market Data
- Scan your Device for Viruses
- Restore Smartphone to Factory Settings
I also have tutorial like article where you will find all the solution steps to fix the error here is the link:
optimum-systems.com/2013/04/error-498-in-android.html
I hope you will resolve your problem
I tried making a folder under /sdcard, removing /cache, and replacing it with a symlink to the folder in /sdcard. That didn't work for a number of reasons. Firstly, mkdir was missing, which was a pain. I just made the directories with File Manager on the phone - I'll fix that later. Then it wouldn't let me change the ownership of the target directory on the sdcard, even though I was root. When I tried downloading my app, Play force closed.
My next idea was to put the folder in /sd-ext, which is my next largest partition. This is an ext4 partition on the sdcard. I created a folder there. Then I deleted /cache/download and created a symlink to my folder in /sd-ext. I didn't have any problems changing permissions this time. For whatever reason, Play did not force close, and successfully installed the app.
I'll write what I did here, but I'll pretend mkdir worked.
Code:
rm /cache/download
mkdir /sd-ext/download
chown system:cache download
ln -s /sd-ext/download /cache/download
chown -h system:cache /cache/download
I'd expect this setup to survive a reboot, so maybe you want to delete the symlink and remake the original folder to set things back to normal. If not, only apps that use /cache/download are effected, so you might as well leave it. Just clean that folder out every so often.

Categories

Resources