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
154 replies to this topic

#121 Firerat

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

Posted 29 July 2010 - 11:09 AM

View PostTahitiBob, on 29 July 2010 - 09:12 AM, said:

I just tried again :


Edit :
here is a logcat of my booting process :
http://dl.dropbox.co...1906/logcat.txt

I didn't find any sign of a "mount sd-ext" instruction in it, what should i see (and where) if the mount works ?
Thanks

Quote

--------- beginning of /dev/log/main

D/AKMD    (   69): akmd 1.6.6 START

D/AKMD    (   69): library version: 1.2.1.1129

I/DEBUG   (   62): debuggerd: Jul  8 2010 14:53:57
--------- beginning of /dev/log/system

you should see it in that bit

here is mine

--------- beginning of /dev/log/main
I/cm	  (   67): Welcome to Android 2.2 / CyanogenMod-6-07282010-NIGHTLY-DS 
I/cm	  (   68):												 _  
I/cm	  (   69):  __ __ _ ___  _ _  __  ___  __ _ _  _  _  __  __)) 
I/cm	  (   70): ((_ \(/'((_( ((\( ((_)((_( (('((\( ((`1( ((_)((_(  
I/cm	  (   71):	  ))				 _)) 
I/cm	  (   72):   
I/mountsd (   96): Checking filesystems.. 
I/mountsd (  110): /sd-ext successfully mounted 
I/a2sd	(  116): Apps2SD successfully activated 
I/busybox (  128): rm: can't remove '/data/dalvik-cache/*': No such file or directory
I/busybox (  128): /dev/block/mmcblk0p1 is not swap
I/busybox (  128): /dev/block/mmcblk0p2 is not swap
I/busybox (  128): /dev/block/mmcblk0p3 is swap
I/DEBUG   (  163): debuggerd: Jul 25 2010 09:31:07
D/AKMD	(  170): akmd 1.6.6 START 
D/AKMD	(  170): library version: 1.2.1.1129

ok, your not using a stock cyanogenmod

do ls -l /system/etc/init.d/

you should see 05mountsd in it

and it should be like this
-rwx------	1 root	 root		  2225 Jul 29 06:00 /system/etc/init.d/05mountsd

that file should look like this
#!/system/bin/sh
#
# mount ext[234] partition from sd card

BB="logwrapper busybox";
# Firerat - make mount point
if [ ! -d /sd-ext ];
then
	$BB mount -o rw,remount /
	install -m 774 -o 1000 -g 1000 -d /sd-ext
	$BB mount -o ro,remount /
fi

if [ "$SD_EXT_DIRECTORY" = "" ];
then
	SD_EXT_DIRECTORY=/sd-ext;
fi;

# find first linux partition on SD card
MMC=/dev/block/mmcblk0
if [ ! -b "$MMC" ];
then
	mknod ${MMC} b 179 0
	chmod 600 ${MMC}
	for i in  1 2 3;do
		mknod ${MMC}p${i} b 179 $i
		chmod 600 ${MMC}p${i}
	done
fi

# wait for the device to settle
COUNT=6;
until [ -b "$MMC" ] || [ $COUNT -lt 1 ];
do
	sleep 1;
	COUNT=$((COUNT-1));
done;

if [ -b "$MMC" ];
then
	FDISK="busybox fdisk"
	PARTITION=`$FDISK -l $MMC | awk '/^\// && $5 == 83 {print $1;exit;}'`

	if [ -b "$PARTITION" ];
	then
		log -p i -t mountsd "Checking filesystems..";
   
		# fsck the sdcard filesystem first
		logwrapper e2fsck -y $PARTITION;
   
		# set property with exit code in case an error occurs
		setprop cm.e2fsck.errors $?;
		if [ "$?" = 0 ];
		then
   
			# mount and set perms
			$BB mount -o noatime,nodiratime -t auto $PARTITION $SD_EXT_DIRECTORY;
			if [ "$?" = 0 ];
			then
				$BB chown 1000:1000 $SD_EXT_DIRECTORY;
				$BB chmod 771 $SD_EXT_DIRECTORY;
				log -p i -t mountsd "$SD_EXT_DIRECTORY successfully mounted";
			else
				log -p e -t mountsd "Unable to mount filesystem for $SD_EXT_DIRECTORY!";
			fi
		else
			log -p e -t mountsd "Unable to repair filesystem, disabling apps2sd";
		fi
	fi
fi
if ! awk -vDIR="$SD_EXT_DIRECTORY" '$2 == DIR { exit 1; }' /proc/mounts ;
then
	# create directories if necessary.
	for i in app app-private dalvik-cache;
	do
		if [ ! -d $SD_EXT_DIRECTORY/$i ];
		then
			mkdir $SD_EXT_DIRECTORY/$i;
			busybox chown 1000:1000 $SD_EXT_DIRECTORY/$i;
			busybox chmod 771 $SD_EXT_DIRECTORY/$i;
			log -p i -t a2sd "$SD_EXT_DIRECTORY/$i created"
		fi;
	done
	setprop cm.a2sd.active 1
	log -p i -t a2sd "Apps2SD successfully activated";
fi;


#122 Joans

Joans
  • Members
  • 58 posts
  • Country:uk
  • Device Model:|2|
  • MOD Version:CM 6 D/S Nightlies
  • Recovery Image:Amon_RA

Posted 29 July 2010 - 11:50 AM

I realise that I'm not going to get much help without logs, so this is more of a "does anyone know why this happened?" post, rather than asking for any help.

Incredibly short version. At some point, I rebooted, and sd-ext must have failed to mount because I had no apps apart from the system ones. I rebooted again and got all my apps back, but I'm now missing all the ones that I chose to leave in data and also, Google Maps, although I'd have expected that to be on /system?

I've restored everything from Titanium Backup, so I'm not asking for help, just wondering if anyone knows what I might have done to cause this?

#123 Firerat

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

Posted 29 July 2010 - 11:53 AM

View PostJoans, on 29 July 2010 - 11:50 AM, said:

I realise that I'm not going to get much help without logs, so this is more of a "does anyone know why this happened?" post, rather than asking for any help.

Incredibly short version. At some point, I rebooted, and sd-ext must have failed to mount because I had no apps apart from the system ones. I rebooted again and got all my apps back, but I'm now missing all the ones that I chose to leave in data and also, Google Maps, although I'd have expected that to be on /system?

I've restored everything from Titanium Backup, so I'm not asking for help, just wondering if anyone knows what I might have done to cause this?


RC2?

#124 Joans

Joans
  • Members
  • 58 posts
  • Country:uk
  • Device Model:|2|
  • MOD Version:CM 6 D/S Nightlies
  • Recovery Image:Amon_RA

Posted 29 July 2010 - 11:54 AM

Sorry, my short version was shorter than it should have been.
I'm running nightly 07282010-152330.

#125 heybuddy

heybuddy
  • Members
  • 1 posts
  • Device Model:|2|
  • MOD Version:5.0.8
  • Recovery Image:ClockworkMod

Posted 29 July 2010 - 01:36 PM

After running the script, none of my apps are showing up in the market besides the paid apps. All of my apps are in the app drawer, just not in the market. Is there a quick way to remedy this? Running RC2

#126 TahitiBob

TahitiBob
  • Members
  • 3 posts
  • Country:fr
  • Device Model:|2|
  • MOD Version:CM6RC2
  • Recovery Image:Amon_RA

Posted 29 July 2010 - 02:00 PM

Thanks Firerat, you're the best :D

The rom i was using was in fact using CM6RC1 as a base, and i missed some files in the folder "/system/etc/init.d/"

I upgraded my rom, installed some apps and ran your script again, and everything is OK now.

Thanks again !

#127 gophergun

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

Posted 29 July 2010 - 07:49 PM

Hm, I ran the script, but it only added three of my 60 or so programs to the application menu. Sd-ext was mounted, and all my apps were linked properly. I ran dupefix per the suggestion, and that deleted my remaining applications from the ext partition. Fortunately, I had a Nandroid+Ext backup, so nothing of value was lost. Do you know what I could have done wrong? I'm on CM6 RC2, and I used version 6.1 of the script.

#128 Firerat

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

Posted 29 July 2010 - 07:55 PM

View Postgophergun, on 29 July 2010 - 07:49 PM, said:

Hm, I ran the script, but it only added three of my 60 or so programs to the application menu. Sd-ext was mounted, and all my apps were linked properly. I ran dupefix per the suggestion, and that deleted my remaining applications from the ext partition. Fortunately, I had a Nandroid+Ext backup, so nothing of value was lost. Do you know what I could have done wrong? I'm on CM6 RC2, and I used version 6.1 of the script.

hmm

the dupe fix works on the assumption that any apk that is not in the packages.xml is a duplicate ( since it won't get put into the packages because that app is already installed,as an apk with a different filename + same or different version *)

*which is why I didn't use md5sums to determine duplicates

so what you describe would only happen if you didn't reboot as prompted

maybe I should do a reboot confirm, to highlight the need to reboot

Edited by Firerat, 29 July 2010 - 07:58 PM.


#129 gophergun

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

Posted 29 July 2010 - 09:08 PM

View PostFirerat, on 29 July 2010 - 07:55 PM, said:

hmm

the dupe fix works on the assumption that any apk that is not in the packages.xml is a duplicate ( since it won't get put into the packages because that app is already installed,as an apk with a different filename + same or different version *)

*which is why I didn't use md5sums to determine duplicates

so what you describe would only happen if you didn't reboot as prompted

maybe I should do a reboot confirm, to highlight the need to reboot
Sorry, I rebooted as well before running dupefix. Ran script, moved everything to ext, ran fix_permissions, rebooted, ran fix_permissions again (permissions can never be too fixed :P), rebooted again, and at that point ran dupefix. It (the main script, not dupefix) did bring back a few of my applications, but left 55 seemingly uninstalled. All of this done from a clean wipe. I just repeated these steps without the dupefix, and the files are definitely still there in /sd-ext, just not being installed for whatever reason.

Edited by gophergun, 29 July 2010 - 09:11 PM.


#130 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 29 July 2010 - 09:20 PM

Mr. Firerat, one question: do you try to implement some things of your patches into CM6 via github?

#131 benny007

benny007
  • Members
  • 16 posts
  • Country:uk
  • Device Model:|2|
  • MOD Version:5.0.8-stable
  • Recovery Image:Cyanogen

Posted 30 July 2010 - 09:48 AM

Firerat: Thanks a lot for your script. My G1 is usable again :)

#132 pike2hc

pike2hc
  • Members
  • 1 posts
  • LocationFlorida
  • Country:us
  • Device Model:|2|
  • MOD Version:Cyanogen 6.0 RC2
  • Recovery Image:Amon_RA

Posted 31 July 2010 - 01:22 AM

View Postheybuddy, on 29 July 2010 - 01:36 PM, said:

After running the script, none of my apps are showing up in the market besides the paid apps. All of my apps are in the app drawer, just not in the market. Is there a quick way to remedy this? Running RC2

I have the same problem. Script worked great, apps all moved and working from SD card, yet only new apps I have installed are showing in market/downloads.

#133 Firerat

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

Posted 31 July 2010 - 01:30 AM

View Postpike2hc, on 31 July 2010 - 01:22 AM, said:

I have the same problem. Script worked great, apps all moved and working from SD card, yet only new apps I have installed are showing in market/downloads.


apps that were already on the SD will not show up on the market, unless you use titanium's market doctor ( if they were backed up with market data )

I guess I could look at how the market figures out something is 'installed', and maybe work something out

might be simple, might not be

#134 domreplv

domreplv
  • Donators
  • 45 posts
  • Twitter:domreplv
  • LocationNorth Las Vegas
  • Country:us
  • Device Model:Samsung Galaxy S3
  • MOD Version:Stock - Rooted
  • Recovery Image:ClockworkMod

Posted 31 July 2010 - 01:53 AM

FireRat Your Script Skill are off this planet... Thanks For The a2sdext Script.
ALL HAIL FIRERAT!!!
Thanks...
DomRepLV

#135 siani_8

siani_8
  • Members
  • 48 posts
  • Country:us
  • Device Model:MyTouch 4G Slide
  • MOD Version:Stock
  • Recovery Image:ClockworkMod

Posted 31 July 2010 - 04:25 AM

View Postdomreplv, on 31 July 2010 - 01:53 AM, said:

FireRat Your Script Skill are off this planet... Thanks For The a2sdext Script.
ALL HAIL FIRERAT!!!
Thanks...
DomRepLV


Yes, his posts are both insightful and helpful.  So how do we get him a beer anyway?

#136 redrim

redrim
  • Members
  • 17 posts
  • Country:us
  • Device Model:N1
  • MOD Version:CM7 Nightly #37
  • Recovery Image:Amon_RA

Posted 31 July 2010 - 09:36 AM

Thanks for this A2SD script - really appreciate all of your hard work.

I've been running almost all my apps and dalvik cache off sd-ext (8gb class 6 CM6 RC2) for a few days now and have been noticing some quirky behavior.  Other than the random reboots / lockups, it seems like some of the links from /data/app to /sd-ext/app are corrupted.

How can we fix individual links?

E.G. For some reason there is a link for com.akproduction.notepad-1.apk -> /sd-ext/app/com.google.android.stardroid-l.apk


Also, it seems like today the list of apps have disappeared from the market other than the 1 purchased app that is on the sd-ext and 1 of the apps that is on Internal


In general performance wise it seems like ADW can be a little laggy loading up (option is already set for "system persistent") - could that be the result of moving dalvik cache to sd-ext?  There is 66.5MB left on internal storage so would it hurt to move the 30M+ dalvik cache back to internal?  If an app is running as a service (e.g. profiles in SetCPU) is it better off having that app on internal storage? (If so how could we move it back and reset link?)


How have all of your experiences been so far?  Does anyone have any insight as to what may be going on here / how to address?  Appreciate any replies.

#137 feeway730

feeway730
  • Members
  • 7 posts

Posted 31 July 2010 - 05:07 PM

Upgrading from CM5.0.8stable to CM6RC2 w/ 8GB Class4 card w/ ext4 and apps2sd-ext. Maybe I'm missing something but trying to push this script via terminal on G1 running Cm6Rc2, dangerspl, correct radio, ra 1.70 recovery, the file shows when I browse the sdcard via usb thru win7 explorer, but trying to execute su
sh /sdcard/fr-apps2sd-ext-v0-6.sh.txt
get sh: can't  open ' /sdcard/frapps2sd-ext-v0-6.sh.txt
Any help, dont want to reload all apps by hand and dont like Froyo apps2sd
Thanks in advance!

Edited by feeway730, 31 July 2010 - 05:17 PM.


#138 Firerat

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

Posted 31 July 2010 - 06:05 PM

View Postredrim, on 31 July 2010 - 09:36 AM, said:

Thanks for this A2SD script - really appreciate all of your hard work.

I've been running almost all my apps and dalvik cache off sd-ext (8gb class 6 CM6 RC2) for a few days now and have been noticing some quirky behavior.  Other than the random reboots / lockups, it seems like some of the links from /data/app to /sd-ext/app are corrupted.

How can we fix individual links?

E.G. For some reason there is a link for com.akproduction.notepad-1.apk -> /sd-ext/app/com.google.android.stardroid-l.apk


Also, it seems like today the list of apps have disappeared from the market other than the 1 purchased app that is on the sd-ext and 1 of the apps that is on Internal


In general performance wise it seems like ADW can be a little laggy loading up (option is already set for "system persistent") - could that be the result of moving dalvik cache to sd-ext?  There is 66.5MB left on internal storage so would it hurt to move the 30M+ dalvik cache back to internal?  If an app is running as a service (e.g. profiles in SetCPU) is it better off having that app on internal storage? (If so how could we move it back and reset link?)


How have all of your experiences been so far?  Does anyone have any insight as to what may be going on here / how to address?  Appreciate any replies.


I've seen RC2 do some nasty things to files on /data

not seen it do anything to /data/app/, but certainly seen 'corruption' in /data/data

I wouldn't normally advise a nightly over an RC for stability, however I have been using
cm_dream_sapphire-07282010-152330.zip
and no problems so far

later nightlies may also be fine, but as I've not used them myself I couldn't comment.

View Postfeeway730, on 31 July 2010 - 05:07 PM, said:

Upgrading from CM5.0.8stable to CM6RC2 w/ 8GB Class4 card w/ ext4 and apps2sd-ext. Maybe I'm missing something but trying to push this script via terminal on G1 running Cm6Rc2, dangerspl, correct radio, ra 1.70 recovery, the file shows when I browse the sdcard via usb thru win7 explorer, but trying to execute su
sh /sdcard/fr-apps2sd-ext-v0-6.sh.txt
get sh: can't  open ' /sdcard/frapps2sd-ext-v0-6.sh.txt
Any help, dont want to reload all apps by hand and dont like Froyo apps2sd
Thanks in advance!


you need root

su
sh /sdcard/fr-apps2sd-ext-v0-6.sh.txt

I would also recommend using version 0.6.1 ( not 0.6 )

#139 redrim

redrim
  • Members
  • 17 posts
  • Country:us
  • Device Model:N1
  • MOD Version:CM7 Nightly #37
  • Recovery Image:Amon_RA

Posted 31 July 2010 - 06:52 PM

View PostFirerat, on 31 July 2010 - 06:05 PM, said:

I've seen RC2 do some nasty things to files on /data

not seen it do anything to /data/app/, but certainly seen 'corruption' in /data/data

I wouldn't normally advise a nightly over an RC for stability, however I have been using
cm_dream_sapphire-07282010-152330.zip
and no problems so far

later nightlies may also be fine, but as I've not used them myself I couldn't comment.


Thanks for the heads up - I will try a later known working nightly instead.

Is there a way I can delete individual links without having to revert the whole script?


I also notice that when you upgrade an app it adds the link from x-2.apk and keeps the original x-1.apk link


Quote

you need root

su
sh /sdcard/fr-apps2sd-ext-v0-6.sh.txt

I would also recommend using version 0.6.1 ( not 0.6 )


FR you may want to change the OP so that the instructions read for 0.6.1 since that what most people are using and may be leading to some confusion

i.e.
su
sh /sdcard/fr-apps2sd-ext-v0-6-1.sh.txt


#140 feeway730

feeway730
  • Members
  • 7 posts

Posted 31 July 2010 - 06:52 PM

you need root



I would also recommend using version 0.6.1 ( not 0.6 )
[/quote]

Thanks for the quick reply. Poor copying job from the OP, but it still says .6 in instructions  ;). Works like a charm!