The Ultimate Apps2sd Thread!

Discussion in 'Cyanogenmod' started by GodfatherIP, Mar 3, 2011.

  1. danceswithbongs

    danceswithbongs Active Member

    Joined:
    Nov 30, 2010
    Messages:
    1,040
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    A TeePee outside of Detroit
    Ratings:
    +5
    Sorry but a little unclear. Are you saying you have in system/lib/modules ext2.ko and .ko modules for 3 and 4 as well?



    walkin the walk while tappin the talk
    danceswithbongs
     
  2. armin369

    armin369 Member

    Joined:
    Jul 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I have the following in my system/lib/modules:

    1)ext2.ko
    2)ext3.ko
    3)ext4.ko
     
  3. GodfatherIP

    GodfatherIP Member

    Joined:
    Feb 22, 2010
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    So it gives the "invalid argument" response after you run the last line? I am guessing it is from the 05mountsd script that comes with CM7. The partition is likely already mounted as /sd-ext rather than as /data/sdext2 as is required for link2sd thus causing an error when you try to mount it as something else. If you delete the 05mountsd script and reboot then run link2sd it should detect your partition and make its own script to mount the ext partition on boot. It sounds like you have all of the proper modules (ext2, ext3, and ext4) so you should be able to make it work with the stock kernel. If link2sd won't make a script for you then you could try the link2sd script provided by Prime in the 3rd post of his kernel thread. I'm not sure if prime's link2sd script would work fine with the stock CM kernel but I am guessing it would (you could ask him in his kernel thread, he is generally very responsive and helpful).

    Also if you can't get it working with the stock kernel and you don't want to use deprimed you might try his primed kernel as I think it is closer to the stock CM kernel than deprimed. There is also reprimed though, maybe that is the one similar to stock? I have lost track of all his different kernels. Maybe you should ask Prime which of his kernel is closest to stock as I know at one point he made one that was basically the stock CM kernel with working compcache. Good luck.
     
  4. danceswithbongs

    danceswithbongs Active Member

    Joined:
    Nov 30, 2010
    Messages:
    1,040
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    A TeePee outside of Detroit
    Ratings:
    +5
    Godfather
    You know much more overall so let me run this by you.
    Even though he has the ext.ko modules, is it possible he needs to run insmod commands to load the driver still?
    Or if the module exists, it means that it had already loaded the drivers upon first boot?
    I know on some kernels that the link2SD couldn't script for, I was able to accomplish it after running the appropriate insmod command with one of the ext.ko 2 through 4, depending on the kernel.

    I want to help get you running the app but at the same time, don't want to mess anything of yours up, or turn a five minute solution into a 5 hour nightmare.
    Okay, make a backup first and if we don't hear back from Godfather regarding my thoughts in the next hour or two, reply on the thread that you are ready, backed up and have a terminal app. I think you wrote you did but I'll err on the side of caution.
    When I get notified of the new post, I'll write out the commands to run and steps to take.


    walkin the walk while tappin the talk
    danceswithbongs
     
  5. armin369

    armin369 Member

    Joined:
    Jul 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0

    I couldn't get it to work. Looks like the only way to fix it is to install the link2sd preinstall that was created by Prime which is not combined with a kernel. Therefore, after flashing that zip, I am finally able to link my apps :)
    Thanks a lot for your help
     
  6. GodfatherIP

    GodfatherIP Member

    Joined:
    Feb 22, 2010
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Maybe that was the problem as I believe Prime's script loads the ext4 module first and then mounts the partition. So maybe his modules weren't loaded but running Prime's script fixed it.
     
  7. GodfatherIP

    GodfatherIP Member

    Joined:
    Feb 22, 2010
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Glad to hear you got it working!
     
  8. zachdroid

    zachdroid Member

    Joined:
    Oct 28, 2010
    Messages:
    551
    Likes Received:
    2
    Trophy Points:
    18
    Ratings:
    +2
    It looks as though the preinstall zip from Prime has moved my sd-ext cache of files to a data folder. If this is so when flashing a new rom I usually wipe system etc etc etc. Is this wipe pattern going to erradicatwe all of the apps I have there? Should I unlink all of the Apps prior to wipe and flash?

    Sent from my Droid using DroidForums
     
  9. zachdroid

    zachdroid Member

    Joined:
    Oct 28, 2010
    Messages:
    551
    Likes Received:
    2
    Trophy Points:
    18
    Ratings:
    +2
    ^edit: they have been saved in /data/app

    Sent from my Droid using DroidForums
     
  10. -iD

    -iD Member

    Joined:
    Oct 22, 2010
    Messages:
    219
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +1
    Lol

    /data/app is the standard internal storage location where apps are installed. What you're seing there are the apps u havent moved. The ones you've moved with L2SD will appear to be in /data/sdext2 but that's just a symlink; they're really on your 2nd partition. If u select "wipe sd-ext" while in recovery they'll be wiped otherwise they will still be there when u flash a ROM.

    Sent from my Droid using Tapatalk
     
  11. zachdroid

    zachdroid Member

    Joined:
    Oct 28, 2010
    Messages:
    551
    Likes Received:
    2
    Trophy Points:
    18
    Ratings:
    +2
    Glad I could provide a laugh :) I have no files really on my data partition with the exception of system stuff and a dew that were buggy when moved. I did find the above referenced file but in the /data/app folder I must have been mistaken when I saw the names if all my apps there and nit in the normal sdext I usually find them in. Thanks for the help. I'm kind of experienced but still a noob at times. I appreciate the response.

    Sent from my Droid using DroidForums
     
  12. rafiki1

    rafiki1 Member

    Joined:
    Apr 15, 2011
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I'm currently using CM7 RC4 along with Deprimed kernel on my Droid and have two questions regarding apps2sdext

    1) If I were to change kernels now, would I need to do all of this again or will the apps remain in the ext folder and I can use them as normal?

    2) If I change roms do I have to do all this again, like if I try out liquid's rom or something?

    Thanks
    Sent from my Droid using Tapatalk
     
Similar Threads
  1. PirateSonny
    Replies:
    1
    Views:
    830
  2. molo41
    Replies:
    5
    Views:
    3,704
  3. motiond
    Replies:
    5
    Views:
    1,506
  4. yourname1245
    Replies:
    20
    Views:
    2,044
  5. JohnnyACE562
    Replies:
    2
    Views:
    1,844
Loading...
Search tags for this page
app2sd script
,
app2sd script download
,
apps2sd droid x2.bin
,
apps2sd scripts
,
best apps 2 sd
,
ext2.ko android
,
init module ext2.ko failed
,

link2sd mount script error invalid argument

,
mount script cannot be created. mount: invalid arguement
,
www.droidforums.net/forum/ cyanogenmod/129723-ultimate-apps2