app2ext and amonra problem - Nexus One Q&A, Help & Troubleshooting

1-When ı push amon ra and restrat my devices its otomaticaly turn orgınal recovery condition.İ try to delete scipt but not successfull i need help
2- Posted by djmcnz
Code:
adb shell pm setInstallLocation 1
Well set future installs to "internal" (sd-ext).
You'll need to manually move the ones already on sd-fat back to "internal" using Manage Applications... then fixed...
This is the only a thing over adb and may i need any ext 3 or ext 4 partition my my sd card and how must be its size

I'm trying really hard to figure out how to respond to your questions, but I may be misunderstanding what you are asking.
1) What technique did you use for trying to flash Amon_RA's recovery? Have you already rooted your phone? Assuming you have rooted via the "fastboot oem unlock" method, you should be able to just execute "fastboot flash <Amon_RA_filename>.img recovery". Alternatively, you could install ROM Manager from the Market and use that to flash ClockworkMod recovery, which accomplishes the same thing. The ROM Manager route is generally much easier, as you can do it all from the phone. Your phone MUST be rooted to install a custom recovery.
2) If you are hoping to use the DarkTremor apps2ext method, you must have an ext2/3/4 partition on your SD card. You can partition your SD card from whichever recovery you end up with, but keep in mind that you will lose ALL data on the SD card so be sure to back it up first. 512MB should be more than enough for most people; I think my ext partition is 768MB or something.
Does this help?

I'm trying really hard to figure out how to respond to your questions, but I may be misunderstanding what you are asking.
1) What technique did you use for trying to flash Amon_RA's recovery?
via fastboot :
fastboot devices
fastboot flash recovery recovery-RA-passion-v2.2.1.img
And reboot.
----------------
Have you already rooted your phone?
Yes, i rooted
i have unlock boot loader
Assuming you have rooted via the "fastboot oem unlock" method,you should be able to just execute "fastboot flash <Amon_RA_filename>.img recovery".
i am anti-ClockworkMod recovery man.İts requiers too many permission
----------------------------------
when i try to use recovery its turn orginal state.
this method doesnt work,am i need to do this things in recovery mod
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
#1: From the console:
As mentionned in many previous posts, I have tried the following commands once connected to the nexus
mount: Operation not permitted
http://forum.xda-developers.com/showthread.php?t=740748
------------------------------------------------
2) If you are hoping to use the DarkTremor apps2ext method, you must have an ext2/3/4 partition on your SD card. You can partition your SD card from whichever recovery you end up with, but keep in mind that you will lose ALL data on the SD card so be sure to back it up first. 512MB should be more than enough for most people; I think my ext partition is 768MB or something.
İ def. understand but how usage of this script
Code:
adb shell pm setInstallLocation 1
Well set future installs to "internal" (sd-ext).
this way ?
Does this help?

Cralin said:
i am anti-ClockworkMod recovery man.İts requiers too many permission
Click to expand...
Click to collapse
ClockworkMod Recovery makes use of the exact same file access permissions as Amon_RA's recovery. As a user, you aren't really aware of the permissions required, since it is a pre-OS function and isn't explicitly granted any permissions from Android. ROM Manager requires a bunch of permissions for good reason - it has to be able to flash recoveries and ROMs. If you would try flashing a recovery using ROM Manager, it might help eliminate some issues.
when i try to use recovery its turn orginal state.
this method doesnt work,am i need to do this things in recovery mod
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
#1: From the console:
As mentionned in many previous posts, I have tried the following commands once connected to the nexus
mount: Operation not permitted
http://forum.xda-developers.com/showthread.php?t=740748
------------------------------------------------
Click to expand...
Click to collapse
Based on the thread that you referenced, the solution to that poster's issue was to make sure USB Debugging was enabled. Is yours enabled?
2) If you are hoping to use the DarkTremor apps2ext method, you must have an ext2/3/4 partition on your SD card. You can partition your SD card from whichever recovery you end up with, but keep in mind that you will lose ALL data on the SD card so be sure to back it up first. 512MB should be more than enough for most people; I think my ext partition is 768MB or something.
İ def. understand but how usage of this script
Code:
adb shell pm setInstallLocation 1
Well set future installs to "internal" (sd-ext).
this way ?
Does this help?
Click to expand...
Click to collapse
The function of the adb shell pm setInstallLocation 1 command is not related to DT Apps2ext in any way. It is a command that controls how the Froyo apps2sd method behaves (that is, using the FAT partition of your SD card rather than requiring an additional ext partition). Setting it to "internal" simply prevents the Android OS from automatically moving any applications to the FAT partition of your card; since DT apps2ext makes your phone think that the /sd-ext (linux) partition is a part of your internal storage, apps will be installed there.
Getting close?

the solution to that poster's issue was to make sure USB Debugging was enabled. Is yours enabled? yes but i cant delet it.Everytime same solution.
i read Apps2ext tag but ı cant sove it can u explain me ?

Related

[Solved] Can't flash ROM?

Hi, i try to flash Cyan's new rom v4.0.1, but i keep getting this error message in my recover console:
E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)
(No such file or directory)
E:Can't mount SDCARD:update.zip
Installation aborted.
After trying unsuccesfully to flash the rom, my sdcard can no longer be seen in my phone and it became write-protected, unable to move files into the sdcard. Appreciate your help....
Edit: Yeah solved this menacing but simple problem which i found out is my sd card fault. Since i couldn't access sdparted in the recovery console, i had to use Ubuntu to partition my sd card again. Sighs... now i have to replace everything back into phone. Thanks anyways for those who gave advice.
is your sdcard formatted to fat32? because /dev/block/mmcblk0p1 or /dev/block/mmcblk0 is referencing your first partition or your sdcard respectively.
you dont flash a rom in consol
you flash it from the recovery screen. you probably CAN flash it from consol, but its much easier to flash from the recovery screen. what recovery image do you have?
david1171 said:
is your sdcard formatted to fat32? because /dev/block/mmcblk0p1 or /dev/block/mmcblk0 is referencing your first partition or your sdcard respectively.
Click to expand...
Click to collapse
yes my sdcard is fat32(1st partition) and my 2nd partition is ext3 whilst the last is a linux-swap partition...
oshizzle1991 said:
you flash it from the recovery screen. you probably CAN flash it from consol, but its much easier to flash from the recovery screen. what recovery image do you have?
Click to expand...
Click to collapse
Using Cyan's Recover 1.4. How do you flash from the console? commands?
Scholesville said:
Using Cyan's Recover 1.4. How do you flash from the console? commands?
Click to expand...
Click to collapse
Have you tried using the CM Updater?
Scholesville said:
yes my sdcard is fat32 and my 1st partition is ext3.
Click to expand...
Click to collapse
Well I've Always had the best luck with my partitions in order as follows Fat32-Ext3-Linux-Swap(if you use it)
And if you still have problems this is what I do
Well I re-downloaded the update. and did this.
This is how I installed without any problems:
: rename to update.zip
: place in the root of sd card
: shut off device
: boot into recovery
: wipe (alt w)
: go to console (alt x) and hit enter
(enter)
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# cd /system/sd
# rm -rf /system/sd/*
# reboot recovery
: now wipe again (alt w)
: run a filesystem check from the menu. If it tells you to run it manually,
drop to a console (alt+x) and run "e2fsck /dev/block/mmcblk0p2".
: flash
Enjoy!!
Hope this helps!!!
yourtravelboy said:
Well I've Always had the best luck with my partitions in order as follows Fat32-Ext3-Linux-Swap(if you use it)
And if you still have problems this is what I do
Well I re-downloaded the update. and did this.
This is how I installed without any problems:
: rename to update.zip
: place in the root of sd card
: shut off device
: boot into recovery
: wipe (alt w)
: go to console (alt x) and hit enter
(enter)
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# cd /system/sd
Hope this helps!!!
Click to expand...
Click to collapse
The problem is i can't even mount mount my 2nd partition, and everytime i write the command > # mount -o rw /dev/block/mmcblk0p2 /system/sd < , it justs says no such file or directory found.
I also can't go into parted in the recovery console so the now the problem is i can't even reformat my card. I'm going to try Ubuntu and reformat my card and partition it again. Sighs...
please, can you tell me how did you solved it, did you use ubuntu to reformat the sdcard? thanks in advance..
q2box said:
please, can you tell me how did you solved it, did you use ubuntu to reformat the sdcard? thanks in advance..
Click to expand...
Click to collapse
Yes, since i was not able to access parted in the recovery console, my only choice was to use Ubuntu: Partition Editor. When i diagnose my sdcard, i manage to format only my ext3 partition so my fat32 remain unchanged. You need to go download Ubuntu OS, then try to install or LiveCD the Ubuntu. There is a thread under android development which will guide you on how to do this...

Switching SD Cards

I just received my new class 6 SD card in the mail today, and I was wondering how I can transfer all my files over to it. I don't mean like music and stuff like that, but like my Apps2SD. I don't exactly know what all I have to transfer over, but if someone can give me the adb commands and what I'm trying to transfer, that would be great.
Go to the recovery console
mount /sdcard
mkdir /sdcard/ext
cp /system/sd/* /sdcard/ext/
the copy the ext folder to your new card, put it in your phone and go back to recovery
mount -o rw /dev/block/mmcblk0p2 /system/sd
cp /sdcard/ext/* /system/sd/
I've probably made a couple of mistakes with mounting the partitions correctly, so you may have to mount /sdcard on the second batch of commands.
Anartic said:
I just received my new class 6 SD card in the mail today, and I was wondering how I can transfer all my files over to it. I don't mean like music and stuff like that, but like my Apps2SD. I don't exactly know what all I have to transfer over, but if someone can give me the adb commands and what I'm trying to transfer, that would be great.
Click to expand...
Click to collapse
Use Adrian's method
awesome, i've been wanting to know how to do this myself so this will definitely come in useful.
B-man007 said:
pretty sure the adb command is
adb pull /system/sd/*
then use adb push to get it back on the new one.
that should get everything on your ext partition. (note: do this while phone is booted into the rom. else you will need to mount the ext partition)
(if you need clarification, dont mind asking)
Click to expand...
Click to collapse
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
AdrianK said:
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
Click to expand...
Click to collapse
i don't push i use adb install that way all of them get installed and i don't have the problem with certain apps not showing up right.
you say that like i want to type a really long command, i just use adb remount, or if i am forced to use my phones keyboard for command i just go to the recovery console and use mount system or mount system/sd depending on how specific i feel . (i hate typing commands on the g1s keyboard, and its and epic fail if you mess a long one up.)
david1171 said:
i don't push i use adb install that way all of them get installed and i don't have the problem with certain apps not showing up right.
you say that like i want to type a really long command, i just use adb remount, or if i am forced to use my phones keyboard for command i just go to the recovery console and use mount system or mount system/sd depending on how specific i feel . (i hate typing commands on the g1s keyboard, and its and epic fail if you mess a long one up.)
Click to expand...
Click to collapse
easiest way i have done this is do a switchrom backup, make sure its saved to your old sd, get your new sd partitioned correctly, and copy the switchrom folder from your old sd to your new one, then do the normal steps to restore a switchrom backup... this will restore your rom to the exact moment it was when you saved it. had me back up and running in 10 minutes after a new sd was here.
Thanks so much for the help guys, I just noticed that I left my USB cord at work :/, so tomorrow I'll get back to you guys about this.
AdrianK said:
What? Pushing apps to the ext is not a good idea when the phone is in the ROM (when I tried half of them showed and half of those FCed)
You can easily mount your ext - mount -o rw /dev/block/mmcblk0p2 /system/sd
Click to expand...
Click to collapse
ya i started my response and saw you already answered so i was like mehhhh
i wrote my own script to do all this stuff below for me, and its done through the recovery.
Back up apps
Remove app_s folder
Reformat ext3 partition
Restore apps
Enter Recovery
SwitchRom Backup/Restore
Clear Dalvik-Cache
adb push while booted works fine for me, it just slows the crap outta the phone for a good 2-3 minutes, but it works fine. i use push because adb install hasnt always worked 100% for me (i have ~130 apps, and some of them don't install.)
anyways ill edit out my post to stop confusion
i have no more then 40 apps so adb install doesn't really flunk out on me
the only thing i don't like is the protected apps that show up in the fugly system default app icon and the long name.

Repartition Linux swap

Hi, ive searched around but cannot seem to find a complete answer, but basically is there a way to just repartition my linux swap from 32MB to 96MB.
I dont have a linux cd and so if theres a way to do it through ADB or recovery, that would be great.
Thanks.
D3NNY said:
Hi, ive searched around but cannot seem to find a complete answer, but basically is there a way to just repartition my linux swap from 32MB to 96MB.
I dont have a linux cd and so if theres a way to do it through ADB or recovery, that would be great.
Thanks.
Click to expand...
Click to collapse
i'll give you the short answer then i will edit this post with the long answer
short answer.
you use the resize command in parted on your ext3 and linux-swap partition. if you have used parted from the recovery console a few times before this will be easy but i will post through instructions in a minute
Long answer
go into the recovery console. (recovery screen then last option)
then type (if you want to use adb just type adb shell then do the commands)
Code:
parted /dev/block/mmcblk0
print (you will need the start and end points for your ext3 and linux-swap partitions)
resize 2 [start point] [end - 64mb]
resize 3 [start - 64mb] [end]
print (to verify it worked)
quit
upgrade_fs
reboot
there you go.
I have not tested the resize command on an ext3 partition but i do not think (key word think) it will destroy your data on ext3, but back up just to make sure.
to back up your ext3
with adb (since i assume you have it from the first post)
Code:
adb pull /system/sd [dir on computer]
to restore on empty card
Code:
adb shell mkdir /system/sd
adb push [dir on computer] /system/sd
thanks for the great reply. Will test out now and see what happens!
Can anyone verify if this works?
My only concern is the resizing of ext3. Will it cut out any data since I am shortening the partition?
mr_roboto said:
Can anyone verify if this works?
My only concern is the resizing of ext3. Will it cut out any data since I am shortening the partition?
Click to expand...
Click to collapse
Yes, it works. And yes it *can* corrupt/delete some data from the ext3 depending on how much extra space you have. To be safe, just back-up. The easiest way is doing a BART or switchrom backup (Which backs up you ext) move the backup from the FAT partition to a computer (not necessary but you seem worried about your ext, so just to be safe) resize the partitions and restore your backups.
or just use amon recovery
Thanks for the response guys, I went and started reading about switchrom.
I am planning to do the following steps:
switchrom.sh -s // to store my rom
resize my partitions
switchrom.sh -r
The thread says it stores the nandroid and the app data, I am assuming that means nandroid and ext partition right?
D3NNY said:
Hi, ive searched around but cannot seem to find a complete answer, but basically is there a way to just repartition my linux swap from 32MB to 96MB.
I dont have a linux cd and so if theres a way to do it through ADB or recovery, that would be great.
Thanks.
Click to expand...
Click to collapse
I don't think this is the same, but I am running a hero rom and was wondering what "swappiness" is? I keep reading stuff like "swappiness of 96mb", etc. Is this just referencing the linux swap file size? and with me running a hero rom, what is the best setup for my SD card? I am currently running simply a fat32 partition and an ext3- thanks

Apps2sd questions.

Alright after i got a recommendation to switch to cryogen 4.04 i noticed it uses alot more internal memory then jf 1.51 so i used gparted on ubuntu (9.04) to partition my sd card to 2.9 gb fat32 and 1 gb ext3 and i rebooted my phone and it moved my apps into folders onto the ext3 like it was suppose to but after installing apps i got the not enough memory notice so i just rebooted and it moved the apks etc into it but its still saying my internal memory is not enough so for some odd reason i'm out of internal memory (only 2 mb left) or am i just crazy and apps2sd doesn't supplement for internal memory. Or have i ****ed something up? because in the settings the ext3 partition is seen as SD card secondary because i have a full install with the correct recovery image what am i doing wrong this time?
If you have problems with a "no space on device" error, try using fastboot and erasing first:
Code:
fastboot erase recovery
fastboot flash recovery cm-recovery-1.4.img
Click to expand...
Click to collapse
taken from here.
try that and see if it works
david1171 said:
taken from here.
try that and see if it works
Click to expand...
Click to collapse
well just my luck
$ fastboot erase recovery
fastboot: premission denied
$ su
# fastboot erase recovery
fastboot:not found
i just updated my radio i don't know if that would have anything to do with it but i have installed cm 1.4 recovery img i don't know why the android terminal hates me so much.
edit: when i go into recovery it says: Build: CryogenMod v1.4 + jf
terminal emulator:
su
cd /system/sd/dalvik-cache
rm *
reboot
try what fingerlickin said.
fastboot is used in bootloader mode and is like adb. you have to have adb set up to use fastboot. it is not done in the terminal emulator.
david1171 said:
try what fingerlickin said.
fastboot is used in bootloader mode and is like adb. you have to have adb set up to use fastboot. it is not done in the terminal emulator.
Click to expand...
Click to collapse
God i feel stupid now lol, i did the commands that fingerlickin posted im gonna check if i still get the error

[Q] How move apps to sd card?

I have Xperia X8 with android 2.1 and I want to move apps in SD card. How do this?
Just use app2sd or link2sd .... U hv to root first of course ..
KR470S said:
I have Xperia X8 with android 2.1 and I want to move apps in SD card. How do this?
Click to expand...
Click to collapse
Any custom ROM has native app 2 SD, plus you can follow
http://forum.xda-developers.com/showthread.php?t=1345872
To create a special partition in your SD card to which you apps can be automatically move, plus the swap space that will give you more free memory.
There are two good guides about custom roms:
http://forum.xda-developers.com/showthread.php?t=1333865
http://forum.xda-developers.com/showthread.php?t=1222348
If you are new to this, it will take some time get used to these guides, tools, etc. But there are lots of fun on testing custom ROMs, overclock, benchmarks, different skins, launchers, etc.
A good start is the toolbox, from puppet13th post:
http://forum.xda-developers.com/showthread.php?t=1117100
It is text only, different from SuperOneClick, a really great tool too, but toolbox can root your phone, install some modules (overclock, cypress / synaptics dual touch), and most important, the dual recovery: freexperia (or xrecovery... I don't remember) plus clockworkmod. Some ROMs are designed for the first one, but most recent ones are for CWM.
how do you partition sd card? i use to be able to do that until i formatted my sd card...now i forgot how to!
tohno said:
how do you partition sd card? i use to be able to do that until i formatted my sd card...now i forgot how to!
Click to expand...
Click to collapse
I did this yesterday, following this thread:
http://forum.xda-developers.com/showthread.php?t=1345872
I would prefer another way to repartition my SD, as Linux GPartED, that can easily resize partitions and add new ones. But I couldn't find the requirements for that and had problems a couple of months ago, when I tried to replace my SD and it was reformatted (don't know why) automatically, with no warning.
So I almost followed the thread:
1) backed up all my files (I just mounted SD and copied the files, as I didn't had sd-ext yet)
2) reboot into clockworkmod. I backup here is STRONGLY RECOMMENDED!
3) mounted /system & /data, and unmount /sdcard
4) copied sdparted.txt to /sbin/sdparted (already rooted, otherwise it would not work)
adb push sdparted.txt /sbin/sdparted
adb shell chmod 755 /sbin/sdparted
5) As I was in a different ROM, MiniCM7 2.1.6, I didn't have parted, required by sdparted.
So I copied from GingerDX v21
adb push parted /usr/xbin/parted
adb shell chmod 755 /usr/xbin/sdparted
But if your ROM already have parted, you can skip this.
6) Now just run sdparted as mentioned in MarJar thread. I have a 8 GB SD, and I choose 512 MB for sd-ext and 256 MB for swap, leaving more than 7 GB for files. So mine was:
adb shell
sdparted -es 512M -ss 256M -efs ext4
(someone, somewhere, mentioned that ext4 would be faster. I saw some benchmarks for Linux telling the opposite... But ext4 jas journaling, so it should be safer)
Now you have a partitioned SD.
7) Copy userinit.tx from the thread to /sd-ext/userinit.sh. It will be automatically executed on startup and mount the enable swap:
adb push userinit.txt /sd-ext/userinit.sh
adb shell chmod 755 /sd-ext/userinit.sh
8) Now I would recommend, if you have installed your apps to your ROM, to mount the SD again and copy the files back to the SD. You can do it in clockworkmod, menu Partitions or something like that, choosing Mount SD Card.
I didn't, so when I rebooted the phone, the "Apps" (or whatever remained fromthem in /data) were move to /sd-ext automatically. But any previous ROM, as mine also, would keep files in SD. The result was the nothing was working. So I copied the files back to SD card and restored the backup I took in step 2 (that saved me ).
But if you restore the files back to SD before rebooting, I think you would be fine.
It worked gracefully for me after restoring the backup.
9) Reboot and enjoy.

Categories

Resources