yashsingh1/xdaforums huggingface dataset:
[Milestone XT720 Themes and Apps] kousik:
This nails it ... it doesn't like the symbolic link. It was looking for a directory or a file. We can't make a hard link because it is across file system. So only way is to make a directory. Suppose I make a directory and create the link inside? Let me check ...

... Sigh. Doesn't work either.
[Milestone XT720 Themes and Apps] Riley600:
U

A reboot seems to be required for the app icon to be regenerated. I'm not sure why this is but after rebooting, I haven't run into any problems so far (except market links being broken but that's a known issue).

Perhaps try rebooting with the mounting script and see if that solves your issue.
[Milestone XT720 Themes and Apps] hardKNOXbz:
I've rebooted multiple times with the same error.

when i link an app with Link2SD, the icon disappears, i reboot, then an icon representing the app appears (default app icon). i open app, and it force closes immediately...

seems that for some reason, my phone doesn't recognize the symbolic link, but wants the real apk from /data/app
[Milestone XT720 Themes and Apps] AllGamer:
did you ever try the old Apps2SD script?

it basically does the same thing, if that worked for you in the past, the new App should work as well
[Milestone XT720 Themes and Apps] hardKNOXbz:
Actually i have not. I've been waiting like an app like this to install apps to my card. i'll give it a shot tho.
[Milestone XT720 Themes and Apps] AllGamer:
yeah, this new app, just gives it a very nice GUI to control which apps goes to SD and which one to stay in the internal storage

the old Apps2SD script just pushes everything to the SD

there was yet another App2Card, but that app was very buggy, most of the time did not mount properly

that's why the newest app is the best one available at the moment.... until we get the Froyo 2.2 ROM

then we wont need any of these
[Milestone XT720 Themes and Apps] Mioze7Ae:
app2ext (at least in the all-in-one optimizer) replaced the /data/app directory with a symbolic link to a folder on the sd card. The difference is that when the OS determines whether /data/app/somefile.apk is a file or directory, it doesn't matter whether /data/app is a symbolic link or not. With app2ext somefile.apk will be a file or directory because on the sd card it is a file or directory. But you can't store applications in two locations simultaneously--there no longer is /data/app separate from the sd card.

Link2SD does it differently. Instead of replacing /data/app/ with a symbolic link, it replaces /data/app/somefile.apk with a symbolic link. The idea is this allows you to mix and match symbolic links and real files. So really, Link2SD just isn't doing the same thing. I don't know what App2Card does.

In theory it should be possible to use unionfs to merge two (or more) internal and external directories. Someone in the Archos XDA forum got unionfs working last December by building unionfs.ko, so that should be possible, but we will need a unionfs.ko for our kernel.
[Milestone XT720 Themes and Apps] kousik:
So, I am taking reboot in good faith. I don't understand why it is required though. If the apk is made a symbolic link, the application icon goes away. If I delete the sym link and put the original apk in place, the application icon magically reappears. So I'm afraid it is not reboot, the application list is rebuilt anyway based on the fact whether it can find the class or not.

BTW this reminds me, anyone knows how to change system wide CLASSPATH? In that case, I'll add /data/sdext2 in the CLASSPATH so that system doesn't have to follow /data/app/symbolic_link but will look for the apk in /data/sdext2.
[Milestone XT720 Themes and Apps] kousik:
I tried both of them. Sadly there are issues with both. Especially if pushed everything to SD, you have a problem when it is lost. App2card was better, but many times this happened when I tried to run heavy applications like fennec (that is Mozilla firefox) my phone crashed and ext2 partition got corrupted. I had to mount the card in Linux to run e2fsck, lost some files in the process. Not good.

I like this new app's approach better. Only a few heavy apps go to SD. If the card is lost/corrupted, no problemo. Now there has been both success and failure reports. It may be the way the JVMs are built ... maybe it works with HTC/Samsung/Nexus but not Motorola? For some reason they first ensure the apk is a file and not a link? In such case it wouldn't work.
[Milestone XT720 Themes and Apps] hellmonger:
I think i figured it out... wel part of it, kousik is right! "For some reason they first ensure the apk is a file and not a link? In such case it wouldn't work." i think there is a checksum for install.. an if checksum does not match install, directory apk check on motorolas disables app/. just a theory notthing to back this up yet.... will try to test tonigh,,,,
[Milestone XT720 Themes and Apps] kousik:
I am happy to report that I was wrong. :D It worked perfectly with the following steps:

I partitioned my SD card into 2 parts, 7G of FAT and 800M of ext3. I didn't want ext2 because for past 2 months I was trying to use one and frequent crashes led to filesystem corruption, often I had to mount the SD card to Linux and run fsck.

Modified /system/bin/mot_boot_mode (it is a binary file, so you rename it to mot_boot_mode.bin, and place a shellscript in place of original. This script mounts the ext3 partition on boot. This is a key to the hack.

Check my other thread on ext3.ko to get the required kernel modules. Also where/how to mount the partition.

Now, went to /data/app and copy the apk I wanted to move to /data/sdext2 (where the card partition is mounted). Created a symbolic link to the apk: e.g. com.waze.apk --> /data/sdext2/com.waze.apk

I thought permission might be important so I made /data/sdext2 as writable, and chown the apks to user "system" (as they were in original).

Reboot. This was another key part I was missing. On reboot, since mot_boot_mode is the first thing they run, before anything happens, ext3 partition will be mounted and apk symlinks will be available. Whoever checks and builds the list is fooled ;)

The applications are seamlessly available in list, and works flawlessly!

Well as noted in the original app, they'll disappear from the market. So you won't get notified when updates are available. The original app author fixes it in latest version. I don't know how to manipulate the market database by hand so I'll figure out some workaround. You may be better off with the app itself.

If anyone needs more help, I'll happy to provide commands in more details!
[Milestone XT720 Themes and Apps] ronnbon:
I cannot mount the ext2 partition- not with apps2card and not with Link2Sd...:( Of course I place the ext2.ko file at the right place and run the script but nothing changed..

I don't know what to try anymore and I just have around 30mb left of internal space! :mad:

The xtOptimizer did work for me with bugs but the internal space was decreasing anyway... I am really frustrated now with deleting one app to install another!
[Milestone XT720 Themes and Apps] kousik:
Well for me too none of the given script or app worked to my satisfaction so I decided to take the matter on own hand. If you please let me know what exactly you have done, maybe I can point the bugs to you. The basic steps you have to follow are: (1) copy ext2.ko in /system/lib/modules (2) modify /system/bin/mot_boot_mode, copy the original to mot_boot_mode.bin, call it from a script of the same name, and later insmod ext2.ko (remember to set $PATH), and mount the partition (3) move desired apks from /data/app/ to /where/you/mounted/ext2 and replace them by symlink (4) reboot.

Need more help? Let me know. Don't be frustrated ... it is a solved/understood problem.
[Milestone XT720 Themes and Apps] hardKNOXbz:
what does your mot_boot_mode script look like?
[Milestone XT720 Themes and Apps] kousik:
the original mot_boot_mode file was copied to mot_boot_mode.bin and replaced by the following script

#!/system/bin/sh
export PATH=/system/bin:$PATH
# Do not modify the following line
/system/bin/mot_boot_mode.bin
# Append here any commands that you wish to run during the phone boot
insmod /system/lib/modules/jbd.ko
insmod /system/lib/modules/ext3.ko
mount -t ext3 /dev/block/mmcblk0p2 /data/sdext2

I have ext3 partition so I need 2 kernel modules; for ext2 you just need ext2.ko previously copied into /system/lib/modules.

Another funny thing I realized that applications moved by Link2SD still works if you mount the ext2/ext3 partition as "read-only". All it needs the apk to be there. Writable stuffs are still in /data (internal memory). So if you mount read-only chances of sd card corruption isn't there. Only problem you have to remount if you want to move more application from internal to SD.
[Milestone XT720 Themes and Apps] Zachary57:
I have a problem with ext2 partition too on XT720 (European) :

1)I put ext2.ko in /system/lib/modules/ with Root Explorer

2)I make an ext2 partition with MiniTool Partition Wizard Home Edition

3)I downloaded android-sdk_r09-windows

4)I launched cmd and adb shell

5)I type this command : /system/bin/su and then insmod /system/lib/modules/ext2.ko

(I did this step 2 times)

6)I agree super user request on the phone

7)I installed the apk

But, when I launch the app, it say cannot mount ext2 partition.

Can someone help me ?

I want to add, when I tape lsmod after typing "insmod /system/lib/modules/ext2.ko" I see ext2 but when I tape just lsmod after rebooting the phone, I didn' see.
[Milestone XT720 Themes and Apps] Riley600:
If you navigate to /system/etc and edit install-recovery.sh to include the following two lines (in this order), it should work:

insmod /system/lib/modules/ext2.ko
mount -t ext2 /dev/block//vold/179:2 /data/sdext2
[Milestone XT720 Themes and Apps] Zachary57:
Thank you, I will try that but do you edit install-recovery.sh with adb or have you got an other way to do that ?

And, where I have to insert this lines, at the end of files or in another place ?
[Milestone XT720 Themes and Apps] Riley600:
You should be able to do it with Root Explorer. Long press the file and select the Edit function. Make sure you tap the Mount R/W button at the top first. There shouldn't be too many lines in there, so you can add those to the end.
[Milestone XT720 Themes and Apps] Zachary57:
Here is my install-recovery.sh file :

Look at this adress if image isn't visible: File erased, it was not necessary to resolve problems.

Can you tell me where to place the lines because I haven't any command on the file and I don't know if I can put this at the end after word "fi" ?

Thank you
[Milestone XT720 Themes and Apps] Riley600:
I believe it should work if you place those 2 lines at the end.
[Milestone XT720 Themes and Apps] Zachary57:
Thank you, I will try this.
[Milestone XT720 Themes and Apps] Riley600:
Make sure you reboot your phone after adding the lines in.
[Milestone XT720 Themes and Apps] Zachary57:
I finally found another way, I installed Terminal emulator, then I type :

-su

-insmod /system/lib/modules/ext2.ko

Then I launched link2sd and he created the autostart automatically.

Thank you to all who helped me, it's now working, I will post a thread tomorrow to explain step by step what to do to root and install link2sd.
[Milestone XT720 Themes and Apps] Riley600:
Oh, yes. I thought you'd already done that and it didn't install the autostart. But that works too :)
[Milestone XT720 Themes and Apps] hardKNOXbz:
Kousik, just for my information, what is this like for:

export PATH=/system/bin:$PATH

i used ur mot_boot_mode (modified it for ext2 partition) but it did not boot past the white Moto logo
[Milestone XT720 Themes and Apps] kousik:
When mod_boot_mode is run, the PATH variable is not set (PATH is the list of locations where the shell searches for the commands/binaries). This command prepends /system/bin to existing PATH (which was probably nil). Without setting the PATH, "insmod" wouldn't work. After this line, the shell will search for a binary/script named "insmod" in /system/bin (and will find it). If you do not want to use PATH, instead of just insmod/mount commands, explicitly type "/system/bin/insmod", "/system/bin/mount".

Here are the ways you can go wrong: (1) ext2.ko is not present in /system/lib/modules (2) the PATH is not correct so insmod or mount is not found (3) SD card has a different partition table so that /dev/block/mmcblk0p2 is not really the ext2 partition.

Check all of the above and retry, you'll succeed.
[Milestone XT720 Themes and Apps] hardKNOXbz:
perfect!!

changed my mot_boot_mode to

#!/system/bin/sh
# Do not modify the following line
/system/bin/mot_boot_mode.bin
# Append here any commands that you wish to run during the phone boot
/system/bin/insmod /system/lib/modules/ext2.ko
/system/bin/mount -t ext2 /dev/block/mmcblk0p2 /data/sdext2

and it works like a dream. modified folder permissions for sdext2 and changed apk's owner to system and now my apps fun off the sdcard. works like a dream...

i now look at my XT720 in a whole different light... app downloading time... :) thanks Again
[Milestone XT720 Themes and Apps] Zachary57:
Someone have a solution to link cache and applications data too ?
[Milestone XT720 Themes and Apps] trajano:
ext3.ko

Would Link2SD still work with ext3.ko?
[Milestone XT720 Themes and Apps] kousik:
Well I checked in the original Link2SD's thread and the dev said ext3 is not supported. That is why I decided to emulate the functionality of Link2SD by hand. I did almost the same as Link2SD would have done, but I mount ext3, and can't fix market database entries.
[Milestone XT720 Themes and Apps] kousik:
Maybe All in one Optimizer is the solution you are looking for?
[Milestone XT720 Themes and Apps] Jetmanfx:
It does not work!

insmod: init_module `/system/lib/modules/ext2.ko´failed <Operation nor premitted>

What should I do?
[Milestone XT720 Themes and Apps] kousik:
Sure you are root? Once you get into the shell, do a "su" (you may need to grant permission) and when your shell prompt changes to # try the command again?
[Milestone XT720 Themes and Apps] reaperzero:
type

/system/lib/modules/su

or use root explorer and change the folders permission status from read only to read and write

your problem is generally due to the folder being locked in read mode only
[Milestone XT720 Themes and Apps] reaperzero:
but even if you have su the folder you are accessing is locked in read only mode even in after getting super user initiated . you will need to request superuser again when in the same directory again
[Milestone XT720 Themes and Apps] kousik:
Naah -- read his problem. His insmod is failing. Root/no-root, /system/lib/modules is readable for all.
[Milestone XT720 Themes and Apps] Jetmanfx:
OK,

now it sais!

init_module `/system/lib/modules/ext2.ko´failed <File exsists>
[Milestone XT720 Themes and Apps] Zachary57:
I have a problem, before installing link2sd, my camera doesn't work. When I try to record a video, screen become black and it's stop recording and video is not readable. But photo is still working. So, can somebody help me ?

Thank you
[Milestone XT720 Themes and Apps] Zachary57:
Problem resolved with a factory reset.
[Milestone XT720 Themes and Apps] reaperzero:
well for me it was not the case :/ it was locked had to do su again
[Milestone XT720 Themes and Apps] Zachary57:
Can we choose what apps go on sd and what stay on phone memory with this script ?
[Milestone XT720 Themes and Apps] AllGamer:
no

if you use that script, everything goes to the SD card
[Milestone XT720 Themes and Apps] Der_Xte_Mensch:
I've got a little problem: I created an ext2 partition using Gparted on Ubuntu. On my Motorola Milestone then I pasted the ext2.ko into the right directory and made it working with an emulated terminal (-su and -insmod /system/lib/modules/ext2.ko). Now everything works, but: when I connect my smartphone to my laptop via USB, Ubuntu mounts both the FAT-partition and the ext2-partition, which forces for example ADW to close... can this be solved somehow, that only the FAT-partition is mounted?
[Milestone XT720 Themes and Apps] leonarderman:
Motorola Charm

I have Motorola Charm (unlocked). My phone have installed link2sd and work fine. But after link an application to sd card, i don't see it anymore.

ex: i linked Sudoku app to sd and reboot my phone. Then i don't see sudoku in my app list

anyone help me? :confused:
[Milestone XT720 Themes and Apps] kousik:
Can you please tell what are exact steps you followed? If Link2SD doesn't work out of the box, can you please follow the steps in port #40 (that's a manual implementation of work what link2sd does) and check if that works for you?
[Milestone XT720 Themes and Apps] longlife_01:
Hi, I have a motorola flipout,

I was able to install link2sd but I get the error message "Auto-mount script cannot be created." and "Mount: No such device"

I tried the ext2.ko method and it seems to have worked, I did the adb shell insmod... thing at first and was having problems because of su which I fixed following some of the previous posts. After I did su and insmod it just went back to # in cmd. Does that mean it works? (I was previously getting "insmod: init_module `/system/lib/modules/ext2.ko´failed <Operation not premitted>")

Did you have to do all this in the charm?

Any one know what I could do?
[Milestone XT720 Themes and Apps] kousik:
If insmod silently returned you back to # prompt that means it worked. You can verify it via command 'lsmod' which'll list the loaded kernel modules and ext2 should be listed there. Next job is to mount the partition. That you can do by 'mount -t ext2 /dev/block/mmcxxxp2 /data/sdext2' (check the partition/mount point). If that is also successful you are good to go. Finally you have to execute these commands via a boot script.
[Milestone XT720 Themes and Apps] leonarderman:
Hi, i can help you. I did following step below:

1. Root the phone with UniversalAndroot-1.6.2-beta5

2. Use partition wizard to create ext2 on SD card. 2 partitions set up, first FAT32 (or FAT16) and second ext2, both are primary.

3. Download ext2.ko and extract to sd card. (download here)

4. Use Root Explorer to copy ext2.ko from sd card to /system/lib/modules/ then set permission All for this file (you can use root explorer with R/O)

5. If you don't have android SDK, plz down adb attachment below to have adb command file. I suggest windows XP or windows 7 32bit :D Now connect your phone to PC by USB (USB debugging mod).

6. Run CMD in windows and find the adb folder, then type:

- adb shell

- /system/bin/su

(plz note: look at the phone, super user will ask you to accept this permission, check this, you will have adb with super user on your phone. If not, you can't go to next step)

- insmod /system/lib/modules/ext2.ko

(hehe okie)

7. Install link2sd and run. Good look! :D
[Milestone XT720 Themes and Apps] nikctsh:
can someone teach how to open an adb shell with super user (su) permissions and run the following command:insmod /system/lib/modules/ext2.ko ? i really don't understand how to do that and what is it...help pls
[Milestone XT720 Themes and Apps] nikctsh:
Hi , i've successfully done all the above but when i try to create link , a message "create link failure" keep popping out ! What should i do ?
[Milestone XT720 Themes and Apps] longlife_01:
Thanks!

Actually I got it to work, I dont even know how exactly... I was trying out the new version of app2card which didnt work as well as the previous version and blocked my market. So I flashed my phone and went from scratch with nothing installed on the phone besides universal androot and root explorer, redid the same thing as I did before (install link2sd, move the ext2.ko file, adb shell su and insmod and reboot), I didn't even do the mount thing you explained, and it worked! Not really understanding why it didnt work before... probably some conflict with an app I had.

I've reinstalled most of my apps from a backup and everything seems to be working fine!

One question, does someone know how to move "system apps" (facebook, map..) to ext2? I heard about a method that said to move apps from /system/app to /data/app then link it but it didn't work for me. The apps were still blocked by link2sd as system apps.

Since only the apk is sent to the sd card, my internal memory is still getting low at 37mb when I was at 90-100mb with app2card, some apps have a LOT of data (google earth for example only has a 6mb apk but almost 20mb in data).

Is moving the data to sd going to be developed for link2sd?
[Milestone XT720 Themes and Apps] nikctsh:
Another problem , i've managed to linked 1 application (xpiano) . However, i dont seem to be able to find it at the menu or anywhere else , or in another word , i cannot find and launch it . What should i do ? Help ! Thx
[Milestone XT720 Themes and Apps] longlife_01:
Download the adb.rar file posted above your post.

extract the adb folder into your C drive.

put your phone in usb debugging mode, to do that, go to setting>applications>development>USB debugging

connect your phone to the pc wait for the adb drivers to install

open cmd

type cd c:/adb

then adb shell

then su

then insmod /system/lib/modules/ext2.ko

the rest is well explained in the previous post.
[Milestone XT720 Themes and Apps] leonarderman:
then adb shell

then su <= here, plz look at the phone screen, super user will ask you to accept permission for SU

then insmod /system/lib/modules/ext2.ko
[Milestone XT720 Themes and Apps] hendraxie:
doesnt work on milestone 2.1 after i used adb shell nothing happened n i restart my phone still ext2.ko didnt find on my phone,... any suggestion ?

thx for the help;)
[Milestone XT720 Themes and Apps] emsquall2:
maybe i have the same problem ...

when i open the link2sd is says " Automount script created , please restart your phone to mount ext2 partition. if you get this message after restart , that means automount script does not work on your phone. you cannot use link2sd"

And after restart i got the same message
[Milestone XT720 Themes and Apps] Der_Xte_Mensch:
@hendraxie: I didn't install adb, I just downloaded an emulated terminal from the market and made ext2 working on my milestone (2.1) with these commands:

su

insmod /system/lib/modules/ext2.ko

of course, I copied and pasted the ext2.ko first to the place mentioned above. perhaps it also works for you...
[Milestone XT720 Themes and Apps] jonathan89:
Hi all Senior Forumers i am currently using Motorola Milestone XT720, i have a problem after completing all the progress. While i open Link2SD, i had tis error. Auto-mount script error. Auto-mount script cannot be created mount: No such device.:confused:

Please help, my senior forum helpers.
[Milestone XT720 Themes and Apps] killed:
With version Android 2.2 Frozo, how can i do that?

Because ext2.ko won't work
[Milestone XT720 Themes and Apps] Dran-O:
I'm still stuck...

I got the Universal Androot Root my xt720. Partitioned my sd card with both FAT32 and ext2. Then I got the Root explorer. Extract the ext2.ko unto the SDcard. Unfortunately, that's about it... I cannot move the file into system/lib/modules, because system is in read only and Error message as follows shows up: system permissions cannot be changed because the file system is read-only. What can I do now?
[Milestone XT720 Themes and Apps] sluggg:
Tried the above method as described .. here's what I get

insmod /system/lib/modules/ext2.ko

insmod: init_module '/system/lib/modules/ext2.ko' failed (Exec format error)

No idea what that means..
[Milestone XT720 Themes and Apps] Dran-O:
well at least you now where to get the CMD. I don't even now where that is on windows 7 :(
[Milestone XT720 Themes and Apps] killed:
Bump bump.

Before, you installed app2sd? Try remove ext2.ko and replace. No need command, reboot and install link2sd
[Milestone XT720 Themes and Apps] borik88:
I try to use

instead of

and get

chdir</lib/modules>: No such file or directory

why ? and what about

?
[Milestone XT720 Themes and Apps] kelvinsc:
I have no idea on how I can open an adb shell with su permissions.

Anybody can teach me how to do so?