Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

FroYo a2sdext [ 2010-11-03 ] # v1.36 # in theory, supports HTC Incredible


  • Please log in to reply
1071 replies to this topic

#861 TriforceKommand

TriforceKommand
  • Members
  • 122 posts
  • LocationBavaria
  • Country:de
  • Device Model:Dream
  • MOD Version:CyanogenMod-6-11022010-No263-DS-tnp-xtra
  • Recovery Image:Amon_RA

Posted 03 November 2010 - 07:29 PM

Works perfect like always with Nightly 231.

--> THANKS! :)

#862 YottaByte

YottaByte
  • Donators
  • 155 posts
  • Country:us
  • Device Model:G2, N1, and G1
  • MOD Version:CM7 nightly
  • Recovery Image:ClockworkMod

Posted 03 November 2010 - 07:54 PM

On the 2.2.1 RC, I used this script and I never know what to do when the list of apps appear. I type y when it asks me if I want to move data to sdext, but then I just press 0 and it gives me a bunch of errors, and I reboot, and all my apps from my sdext are there, and my internal storage is cleared up. When I last tried this, everything was funky, apps were force closing, and this weird metal music kept playing in the background (a song not from my phone) and I couldn't get it to stop. I had to wipe my phone and reflash the rom for it to go away.

Edit: Just tried the 1.36 script, and same thing; force closes and this metal music starts playing soon after the phone is done loading. I am going to wipe my ext and try this all over again.

#863 Firerat

Firerat
  • Members
  • 1,800 posts
  • Twitter:firer4t
  • Country:uk
  • Device Model:Dream aka G1 aka trout
  • MOD Version:CM6 Magpie Ezt 2708
  • Recovery Image:ClockworkMod

Posted 03 November 2010 - 08:14 PM

View PostYottaByte, on 03 November 2010 - 07:54 PM, said:

On the 2.2.1 RC, I used this script and I never know what to do when the list of apps appear. I type y when it asks me if I want to move data to sdext, but then I just press 0 and it gives me a bunch of errors, and I reboot, and all my apps from my sdext are there, and my internal storage is cleared up. When I last tried this, everything was funky, apps were force closing, and this weird metal music kept playing in the background (a song not from my phone) and I couldn't get it to stop. I had to wipe my phone and reflash the rom for it to go away.

Edit: Just tried the 1.36 script, and same thing; force closes and this metal music starts playing soon after the phone is done loading. I am going to wipe my ext and try this all over again.

the only think I can think of is 'stale' /data/data on the sd-ext
fix_permissions will fix the FC's
or make sure /sd-ext/data is clear in recovery

adb shell ( or ra console if you have g1 )
mount /sd-ext
rm /sd-ext/data/*

the metal music, yeah I've had that myself with cm5
the notifications/ringtones get all messed up somehow, and a beep ends up some random thing and you have no way of stopping it..

su
mkdir /sdcard/randomAudio
find /system/media -iname "*.ogg" -exec cp {} /sdcard/randomAudio/ \;

I bet one of the files that end up in /sdcard/randomAudio/ is the metal you have been hearing

#864 xaocon

xaocon
  • Members
  • 47 posts
  • Device Model:|2|
  • MOD Version:5.0.7
  • Recovery Image:Amon_RA

Posted 04 November 2010 - 10:10 AM

I'm worried I'm doing something wrong. I just tried the script on CM Nightly 232 on a 32b dream. Completely new system. I did a fastboot erase system -w, then back to amonRA and formated the sdcard with the suggested settings. Then flashed the nightly and gapps tiny. I did some simple maintenance (installed a few apps, removed protips, changed personal settings, etc), then restart and nandroid backup. Then brought the phone back up, adb shell, bash, sh /sdcard/fr-a2sd_1-36-BETA.txt. Said yes to question about data on /sd-ext then moved Google Voice back to the phone and then 0 to continue. Then errors:

FroYo apps2sdext complete..
you may need to reboot to see apps
which were already on /sd-ext
==================================
==========================================
bind mounting /data/data with /sd-ext/data
changes will take effect on next boot
==========================================
grep: custbak: No such file or directory
rwmount: not found
fr-a2sd_1-36.sh.txt: cannot create /system/etc/custom_backup_list.txt: read-only file system

I verified and /system was mounted rw but it seems to have been remounted as ro. I know it was rw just before because I had just finished removing apps from /systemSo then I do as it asked and rm the file and try again. Except this time it says "/system/etc/init.d/05mountsd alreadys exists and appears to work" even though I had just removed it. It finishes without errors but I verified /system/etc/init.d/05mountsd and it doesn't exist. So I do a search for it:

localhost init.d # find / -name 05mount*
find: /proc/1084: No such file or directory
/dev/05mountsd

An ls of /dev shows many things but of interest are 05mountsd, 11datadata-binds, and ApkManager.sh. Here is a link to some more output that might be relevant. http://cyanogenmod.p...in.com/RrNfGT6b I'm going to go do a wipe and restore.

EDIT: I don't think it's related but as a side note http://forum.cyanoge...dpost__p__83899

EDIT: So I think part of the problem is on line 817. I think there is a $ missing before one of the custbak refs.

EDIT: I think I fixed it. Worked for me at least. Here is the patch if you want to look at it. http://cyanogenmod.p...in.com/YuFrHFw1

Edited by xaocon, 04 November 2010 - 12:01 PM.


#865 Firerat

Firerat
  • Members
  • 1,800 posts
  • Twitter:firer4t
  • Country:uk
  • Device Model:Dream aka G1 aka trout
  • MOD Version:CM6 Magpie Ezt 2708
  • Recovery Image:ClockworkMod

Posted 04 November 2010 - 03:39 PM

View Postxaocon, on 04 November 2010 - 10:10 AM, said:


EDIT: So I think part of the problem is on line 817. I think there is a $ missing before one of the custbak refs.

EDIT: I think I fixed it. Worked for me at least. Here is the patch if you want to look at it. http://cyanogenmod.p...in.com/YuFrHFw1
doh, yeah, typo :(

missed the $ and should be mountrw

cheers for the heads up

#866 xaocon

xaocon
  • Members
  • 47 posts
  • Device Model:|2|
  • MOD Version:5.0.7
  • Recovery Image:Amon_RA

Posted 04 November 2010 - 09:14 PM

View PostFirerat, on 04 November 2010 - 03:39 PM, said:

doh, yeah, typo :(

missed the $ and should be mountrw

cheers for the heads up

Glad to help. Cheers for all the excellent code.

#867 Droid_3.0

Droid_3.0
  • Members
  • 2 posts
  • Device Model:|3|
  • MOD Version:CM 6 RC 3
  • Recovery Image:ClockworkMod

Posted 06 November 2010 - 03:25 AM

Hay quick question will this work on other roms or just Cyanogen?

#868 Firerat

Firerat
  • Members
  • 1,800 posts
  • Twitter:firer4t
  • Country:uk
  • Device Model:Dream aka G1 aka trout
  • MOD Version:CM6 Magpie Ezt 2708
  • Recovery Image:ClockworkMod

Posted 06 November 2010 - 09:38 AM

View PostDroid_3.0, on 06 November 2010 - 03:25 AM, said:

Hay quick question will this work on other roms or just Cyanogen?
answered in the FAQ, read the OP

#869 ONeils

ONeils
  • Members
  • 1 posts
  • Device Model:HTC G1
  • MOD Version:6.0
  • Recovery Image:Cyanogen

Posted 07 November 2010 - 01:05 AM

Hi,

I finally got the script working this week and my device was working smoothly once again.
However, my battery died last night and when i tried to reboot this morning it got stuck in a bootloop i guess. It just wont get past the CM screen.

Without the SD inserted it boots just fine and when i insert the SD after boot it slowly starts to mount the apps.
I then run the script again and it seems to work perfect.
But when i reboot to do a Nandroid it gets stuck in the bootloop again.

Earlier after i installed the script i rebooted my device and there was no problem. It seems to have stopped working after the battery died.

I've tried to undo the script as described on the OP but it seems i can't get that to work eighter.

Any help on this one??
( I don't have a logcat cause i don't even have a clue where to start with that)


BTW Firerat, thanks for all the effort you're putting into this. I love your work and i really hope i can get it back up and running again.



UPDATE: Nevermind... Reflashed CM6.1 and Gapps, used the script again rebooted and everything is back to normal!
Keep up the good work Firerat!

Edited by ONeils, 08 November 2010 - 12:42 AM.


#870 Firerat

Firerat
  • Members
  • 1,800 posts
  • Twitter:firer4t
  • Country:uk
  • Device Model:Dream aka G1 aka trout
  • MOD Version:CM6 Magpie Ezt 2708
  • Recovery Image:ClockworkMod

Posted 07 November 2010 - 09:04 PM

http://forum.cyanoge...2sdext-preview/

^^^ replaces the a2sdext script ;)

#871 VirtuallyNadine

VirtuallyNadine
  • Members
  • 3 posts
  • Twitter:virtuallynadine
  • LocationPhoenix AZ
  • Country:us
  • Device Model:HTC Dream G1/T-Mobile
  • MOD Version:Cyanogenmod 6.0.0 DS
  • Recovery Image:Amon_RA

Posted 08 November 2010 - 01:41 PM

OMG thank you so much! I had just upgraded to Android 2.2/Cyanogenmod 6.0 and was having so many issues with memory, just used this and it seems to have fixed a lot! Yay, my home screen loads fast again! Just a couple questions on how this works:

1. I have my Cyanogenmod setting to install to SD, will that install them to the ext or to the Fat & then I have to move them?

2. Will the auto-update feature for the Market still work?

3. Looking in Settings/Manage Applications it shows all apps as being installed, and option to Move to SD card - I take it that I shouldn't use this feature or it will put them back on the Fat?

4. If I install new apps will I have to use this hack to move them to the SD-ext or does it do it automatically?

Thanks so much!

Nadine

#872 chareos

chareos
  • Members
  • 16 posts
  • Country:it
  • Device Model:HTC Desire GSM
  • MOD Version:7.0.2
  • Recovery Image:ClockworkMod

Posted 08 November 2010 - 10:09 PM

hi ppl,

I'm looking to Cyanogenmod with interest, as OpenDesire is soon-to-be-unmantained.

I tried 6.1RC1 last night, and noticed no a2sd appears to work/to be included.

I've been pointed here as the most preferred solution to implement it (i really need more space, and the N1Table thing seems not good to me... not feeling right to s-off and only 22MB more for apps...?), but I'm a little confused.
Hope you don't mind if I ask a few questions. If all of these already got answered, I'll go back and read trough... all of 44 pages.


1 - First of all: is any a2sd going to be up and on in 6.1 final ? If so, I'll just wait for it.

2 - does this Firerat procedure/script require s-off ? How can it stay resident after a rom flash otherwise ?

3 - I'm still learning about this, but it sounds to me it'd be better to keep dalvik on internal memory. Does this script (or [1] if ever) move apps to ext3 AND dalvik cache ? If not, would you consider to realize a variant ?


thank you very much

#873 Jedi2155

Jedi2155
  • Members
  • 3 posts
  • Twitter:jedi2155
  • LocationFullerton, CA
  • Country:us
  • Device Model:Sprint Epic 4G
  • MOD Version:Stock Eclair 2.1
  • Recovery Image:ClockworkMod

Posted 09 November 2010 - 05:56 PM

There seems to be an issue with duplicate apks being renamed and not deleted.

I seem to have a lot of entries like this:

com.google.android.apps.maps-1.apk
com.google.android.apps.maps-2.apk
com.google.android.apps.translate.apk
com.google.android.apps.unveil-1.apk
com.google.android.apps.unveil-2.apk

where the ApkManager seems to not remove filling up my SD-EXT partition.

#874 billquinn1

billquinn1
  • Members
  • 20 posts
  • Twitter:billquinn1
  • LocationColumbia SC
  • Country:us
  • Device Model:G1
  • MOD Version:Latest Nightly or BiffMod
  • Recovery Image:Amon_RA

Posted 10 November 2010 - 12:16 AM

Need a little push.
I did a really shoddy job of moving from BiffMod to rc1 and I wanted to use your app mover thingy. It gets so far than stops.
bill@bill-acer-linux:~$ adb shell apkmanager.sh
apkmanager.sh: not found
bill@bill-acer-linux:~$ adb shell sh /sdcard/fr-a2sd_1-36b.sh.txt
===========================
a2sd for FroYo version 1.36
===========================
================================================================
/system/etc/init.d/05mountsd alreadys exists and appears to work
================================================================
==============================================
do you want to put /data/data on /sd-ext(y/n)?
It will free up 8.0M from data
/data currently has 25.5M free
this option would give you approx 33.5M free
( /data/data can grow to 30M or more )
==============================================
y


What did I do wrong?

I have used EZterrys 15 meg ram SPL and Kernel.
6.1.0rc1 G1 Clockwork Blah Blah Blah

#875 Firerat

Firerat
  • Members
  • 1,800 posts
  • Twitter:firer4t
  • Country:uk
  • Device Model:Dream aka G1 aka trout
  • MOD Version:CM6 Magpie Ezt 2708
  • Recovery Image:ClockworkMod

Posted 10 November 2010 - 12:44 AM

View PostJedi2155, on 09 November 2010 - 05:56 PM, said:

There seems to be an issue with duplicate apks being renamed and not deleted.

I seem to have a lot of entries like this:

com.google.android.apps.maps-1.apk
com.google.android.apps.maps-2.apk
com.google.android.apps.translate.apk
com.google.android.apps.unveil-1.apk
com.google.android.apps.unveil-2.apk

where the ApkManager seems to not remove filling up my SD-EXT partition.

su
apkmanager.sh -df

if it still doesn't clear the dupes,
give me the output of
grep apps.maps /data/system/packages.xml

View Postbillquinn1, on 10 November 2010 - 12:16 AM, said:

Need a little push.
I did a really shoddy job of moving from BiffMod to rc1 and I wanted to use your app mover thingy. It gets so far than stops.
bill@bill-acer-linux:~$ adb shell apkmanager.sh
apkmanager.sh: not found
bill@bill-acer-linux:~$ adb shell sh /sdcard/fr-a2sd_1-36b.sh.txt
===========================
a2sd for FroYo version 1.36
===========================
================================================================
/system/etc/init.d/05mountsd alreadys exists and appears to work
================================================================
==============================================
do you want to put /data/data on /sd-ext(y/n)?
It will free up 8.0M from data
/data currently has 25.5M free
this option would give you approx 33.5M free
( /data/data can grow to 30M or more )
==============================================
y


What did I do wrong?

I have used EZterrys 15 meg ram SPL and Kernel.
6.1.0rc1 G1 Clockwork Blah Blah Blah

daft question , did you press enter?

#876 billquinn1

billquinn1
  • Members
  • 20 posts
  • Twitter:billquinn1
  • LocationColumbia SC
  • Country:us
  • Device Model:G1
  • MOD Version:Latest Nightly or BiffMod
  • Recovery Image:Amon_RA

Posted 10 November 2010 - 12:48 AM

View PostFirerat, on 10 November 2010 - 12:44 AM, said:





daft question , did you press enter?
Yep and tried n <enter> as well. i tried letting it sit about 10 mins. as well.

#877 Firerat

Firerat
  • Members
  • 1,800 posts
  • Twitter:firer4t
  • Country:uk
  • Device Model:Dream aka G1 aka trout
  • MOD Version:CM6 Magpie Ezt 2708
  • Recovery Image:ClockworkMod

Posted 10 November 2010 - 01:01 AM

View Postbillquinn1, on 10 November 2010 - 12:48 AM, said:

Yep and tried n <enter> as well. i tried letting it sit about 10 mins. as well.
ok

sh -x /sdcard/fr-a2sd_1-36b.sh.txt

it will spit out loads of stuff, but I will be able to see where it gets stuck

for now just the last few lines

Oh, I notice you adb shelled it all on one line

does it work if you do

adb shell<enter>
sh /sdcard/fr-a2sd_1-36b.sh.txt<enter>

the read command is probably not getting any input from the keyboard ;)

#878 billquinn1

billquinn1
  • Members
  • 20 posts
  • Twitter:billquinn1
  • LocationColumbia SC
  • Country:us
  • Device Model:G1
  • MOD Version:Latest Nightly or BiffMod
  • Recovery Image:Amon_RA

Posted 10 November 2010 - 01:08 AM

View PostFirerat, on 10 November 2010 - 01:01 AM, said:

ok

sh -x /sdcard/fr-a2sd_1-36b.sh.txt

it will spit out loads of stuff, but I will be able to see where it gets stuck

for now just the last few lines

Oh, I notice you adb shelled it all on one line

does it work if you do

adb shell<enter>
sh /sdcard/fr-a2sd_1-36b.sh.txt<enter>

the read command is probably not getting any input from the keyboard ;)

You got it:D  It wanted shell called seperately. I am just to lazy some times. Thanks for the help

#879 sztomi

sztomi
  • Members
  • 5 posts
  • Twitter:szeleitamas
  • Country:us
  • Device Model:HTC Desire
  • MOD Version:CM6.1 RC-1
  • Recovery Image:ClockworkMod

Posted 10 November 2010 - 04:21 PM

I just installed CM6.1 RC1. Do I need this script for apps2ext, or this release has that builtin? (I read controversial things)

#880 Firerat

Firerat
  • Members
  • 1,800 posts
  • Twitter:firer4t
  • Country:uk
  • Device Model:Dream aka G1 aka trout
  • MOD Version:CM6 Magpie Ezt 2708
  • Recovery Image:ClockworkMod

Posted 10 November 2010 - 04:36 PM

View Postsztomi, on 10 November 2010 - 04:21 PM, said:

I just installed CM6.1 RC1. Do I need this script for apps2ext, or this release has that builtin? (I read controversial things)
CM6.1RC1 does not have apps2ext, it has FroYo's apps2fat

we are working on apps2ext for CM6.1 , but there is no guarantee that it will make it into official CM6 code!