The Ultimate Apps2sd Thread!

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

  1. GodfatherIP

    GodfatherIP Member

    Joined:
    Feb 22, 2010
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    What command are you running in terminal emulator?
     
  2. GodfatherIP

    GodfatherIP Member

    Joined:
    Feb 22, 2010
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    You said you partitioned with mini-tool, did you make sure your fat32 partition was the first partition on the card? It should be fat32 (primary) then ext2 (primary) when you look at the partitions in Mini-Tool. If fat32 is not your first partition that could cause issues.
     
  3. 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
    I'm wondering if he is using a kernel that doesn't install the correct ext.ko module from system/lib/modules
    Where you insmod ext2.ko or ext3.ko or 4.
    Any idea what the best way is for him to find that out?
     
  4. armin369

    armin369 Member

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


    I will try this when I get home today, but is there anyway to just use the stock kernel instead of flashing Prime's? Prime's deprimed kernel is amazingly smooth but the battery life is decreased by 20% on my phone when I use his kernel :(
     
  5. armin369

    armin369 Member

    Joined:
    Jul 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    "su
    mkdir /data/sdext2
    mount -o rw,nosuid,nodev,noatime,nodiratime /dev/block/vold/179:2 /data/sdext2"

    ^^^^ That's the command I run in TE

    In Mini Tool it shows FAT32 as primary and then I created an EXT2 (500MB) and set it as primary also. Those were my only two partitions
     
  6. armin369

    armin369 Member

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

    Ext.ko doesn't exist in my Modules folder but ext2,3,4 are there.

    Edit: I am using the stock CM7 Kernel since the battery life on that is good for my phone.
     
  7. 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
     
  8. 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
     
  9. 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.
     
  10. 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
     
  11. 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
     
  12. 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.
     
  13. GodfatherIP

    GodfatherIP Member

    Joined:
    Feb 22, 2010
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Glad to hear you got it working!
     
  14. 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
     
  15. 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
     
Similar Threads
  1. PirateSonny
    Replies:
    1
    Views:
    644
  2. molo41
    Replies:
    5
    Views:
    3,366
  3. motiond
    Replies:
    5
    Views:
    1,282
  4. yourname1245
    Replies:
    20
    Views:
    1,660
  5. JohnnyACE562
    Replies:
    2
    Views:
    1,572
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