Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Alternative to App2SD - Link2SD

777
  1. [translate]    #21
    Junior Member
    Join Date
    Feb 2011
    Location
    New Zealand
    Posts
    4

    Default

    Same problem with ext2 and higher, suprising it can't mount and read it as the internal memory is ext.

  2. [translate]    #22
    Senior Member
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    186

    Default

    Quote Originally Posted by pingwin321 View Post
    @verszipo: Are you sure your script works? I have some doubts. i figured out that "mount" command in init script needs busybox. ;-)
    Yes, it works, i posted the exact content of the file i have on my phone.
    I have CyanogenMod 6.1.1 alpha8.3 installed and has root and busybox (with the links created so you can call mount and other commands without having to prefix the command with "busybox", but from what i understood that's standard in CM).
    Also, i don't have the problem with Link2SD not seeing the partition correctly.

    I've restarted the phone at least 10 times and didn't see any problems, also Links2SD always sees the partition correctly, it even shows the occupied/remaining space correctly.

    I also have a swap partition, so maybe that's why in my case "/dev/block/vold/179:2;" is correct. Maybe if you don't have a swap partition then the device id would be different, for example "/dev/block/vold/179:1;"
    Another reason might be that the files from init.d might be called before all initialization is done but the "99complete" file is only called after all initialisation is done.

    EDIT :
    also, it goes without saying that you can't run Link2SD and Apps2SD at the same time, choose either one or the other
    (even if you could/can run them together, why would you want that ???)
    As i said, i've created the 3 partitions from recovery (1 for Apps2SD, 1 for swap and the rest for normal use), but i didn't activate the Apps2SD from the phone.
    Last edited by verszipo; 02-28-2011 at 12:47 PM.

  3. [translate]    #23
    Junior Member
    Join Date
    Aug 2011
    Location
    Malaysia
    Posts
    1

    Default

    Hi pingwin321/verszipo

    My background:
    Phone: HTC Legend
    ROM: CM 7.0.3
    Link2SD: 1.7.0
    SD card partitions: 1.5GB FAT32, 0.5GB ext2, no swap

    At first I thought I would have success if I followed verszipo's method of just placing 99complete in /system/etc/init.d/ (using Clockwork Recovery and adb/sdk commands from the PC), my ext2 partition still failed to load during bootup.

    I wasn't comfortable in using Prime's flash update because it seem to do a lot of unnecessary stuff and I want to avoid breaking any "default" CM7 files especially when upgrading in the future.

    I tried this code in 99complete:

    Code:
    #!/system/bin/sh
    
    sync;
    setprop lk.filesystem.ready 1;
    
    remount rw
    mkdir /data/sdext2
    mount -o rw,nosuid,nodev,noatime,nodiratime -t auto /dev/block/vold/179:2 /data/sdext2
    chmod 771 /data/sdext2
    remount ro
    I see that in CM7 there is a /system/etc/init.d/05mountsd which tries to mount the partition as a ext3 one under /sd-ext. It didn't seem to do any harm since I know I formatted the partition as ext2, but I learnt that it had to be removed while I used pingwin321's 06link2sd script.

    pingwin321's 06link2sd worked like a charm for my Legend CM7.

    Just like pingwin321, the script will not work if I try to mount /dev/block/vold/179:2, but it did work (Link2SD was able to see the partition) when I entered the command in Terminal Emulator.

    Code:
    mount -o rw,nosuid,nodev,noatime,nodiratime /dev/block/vold/179:2 /data/sdext2
    I guess I'm OK now, although I'm not keen to remove 05mountsd. Thanks guys!
    Last edited by lokety; 08-03-2011 at 09:52 AM.

  4. [translate]    #24
    Junior Member
    Join Date
    Aug 2011
    Location
    LA
    Posts
    4

    Default

    very cool!

  5. [translate]    #25
    Junior Member
    Join Date
    Aug 2011
    Location
    China
    Posts
    16

    Default

    Quote Originally Posted by qstars View Post
    Guys,

    Check this out. It allows selective movement of apps to sd instead of the current all or nothing approach.

    [App] Link2SD - xda-developers

    Haven't quite got it to work yet coz it's not detecting my ext2 partition on sd card.

    Anyone wants to get this going for our spica?

    Am running CM 8.3 now.
    If there are two scripts called 04apps2sd and 05apps2sdoff in /etc/init.d, move them and reboot your phone. I solved the same problem in that way.
    Sorry for my English
    Greetings!

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •