Jump to content

Help me with Link2SD and ext partition please!


Guest RavemasterX

Recommended Posts

Guest RavemasterX

HI all,

I've been running tilal's excellent Coldfusion CM9 port for a while now with no major probs- Gmail was a bit finickity about actually displaying emails, but everything else worked pretty well. However, I started getting regular 'low on space' messages that I could only get rid of by uninstalling programs that I actually used occasionally. I never actually got round to replacing the 2GB SD card that the phone was supplied with, so I had no ext partition, and although Link2SD did a pretty good job of putting apps on the (FAT) SD card it obviously was still leaving enough behind to clog up the internal data partition.

So I bought an 8GB Class 10 card, and today got round to trying it. I pulled the old 2GB card out and copied all the contents to my computer. Meanwhile I formatted the 8GB card using ClockworkMod, giving it a 1GB ext partition, 128mb swap (on the basis that I might as well, since I don't need a lot of FAT32 space), and the rest FAT32 (I assume?). I copied the contents of the old card to the new one and booted up, and established that all the apps I'd put onto FAT with Link2SD were still working. Then, in a moment of supreme overconfidence, I installed S2E from the market and told it to copy everything to the EXT partition. Predictably, that borked everything. OF course I'd forgotten to do a backup before I started.

Never mind, I thought, Coldfusion 2 (CM10) looks good, so I'll give that a go. So I downloaded it, did a factory reset in CWM, flashed it, flashed the link2SD fix and a new GAPPS package, told Link2SD to put everything on the ext partition, and then merrily set about reinstalling all my old apps from Google Play. Link2SD was happily reporting that everything I'd installed was being linked to the SD card....but then I got a bloody low memory error again!

So I can only assume that I'm doing something wrong, but I'm damned if I can figure out what it is! Is it possible to set Link2SD to install everything lock stock and barrel straight to the SD ext partition? Do I need to use a PC to partition the card rather than CWM? Is it just a case of getting the settings right?

All advice greatly appreciated! :)

Link to comment
Share on other sites

Guest Nofan Tasi

here are some checks I do

my strategy is as follows (cm9)

- if Apk can be moved to SD:fat natively (as can be seen in "manage apps"), -and- if

it has no Lib, then link its Dex (if any) to SD:ext and move Apk to SD:fat.

(somehow I fail to move Apk on SD:fat and link both Dex and Lib to SD:ext)

- For all all other situations, link Apk Dex and Lib to SD:ext.

upon reboot I notice I need to relink Libs

from ssh to phone, I do

1)

# ls -al /data/dalvik-cache/ | grep ' system@' | grep '> /data/sdext2'

should be empty: no system Dex linked

2)

# ls -al /data/dalvik-cache/ | grep ' mnt@' | grep -v '> /data/sdext2'

should be empty: all Apk on SD:fat have Dex linked

3)

# ls -al /data/dalvik-cache/ | grep ' data@' | grep -v '> /data/sdext2'

should almost be empty: all Apk not on SD:fat have Dex linked

(Link2SD itself is exception)

4)

# ls -al /data/app/ | grep -v '>'

should almost be empty: all Apk not on SD:fat are linked

(Link2SD itself is exception)

5)

# cd /data/data/

# find -name "*.so" -type f

should almost be empty: all Lib are linked

(Link2SD itself is exception)

6)

# cd /data/sdext2

# for x in *.apk

do

if [ -e /data/app/$x ]

then

echo OK $x

else

echo KO $x

fi

done

should all be OK (no stale Apk on SD:ext)

7)

# cd /data/sdext2/data

# find -name "*.so" -type f -exec ls -al "/data/data/{}" \; | grep -v '\->'

should be empty (no stale Lib on SD:ext)

8) experimental

# cd /data/data/

# find */cache -type f | xargs rm

remove cache files on /data/data

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.