yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] explorer-10:
[me: 'it was alright until a random reboot happened, and so now the problem kicked in again, making me remount manually. hopefully it doesnt happen again after another reboot and if it does, its going to be a PITA']

[turl @ modmymobile: As far as I know, the SD's second partition (the ext one, usually) gets automounted on boot on /sd-ext/. The script that does this is /etc/init.d/05montsd. This has been like this since the start of CM7 iirc.

I'm just commenting this in case it helps you guys, I have no idea how that app2sd app works. Maybe you can just symlink the app dir to that one or something like that?]
[Android Apps and Games] benpaka:
Hello,

I have a problem using Link2SD. I have a X10 mini with the original android 2.1 and rooted with SuperOneClick.

My 2nd partition is ext2 and it seems to work with my ROM.

After a reboot the icon of the linked apps disappear and the apps make me force-close after a few seconds of opening.

I am quite new with android but I am used with linux system so I would like to know:

How to see if my partition is really mounted (I have used astro but I don't find it on the path)

Where can i found the mounted script

Should i format in FAT32 to make sure it is not the problem of the partition?

Can I make the link manually using adb?
[Android Apps and Games] ozonbg:
Thanks again, i'm particularly happy for the fast loading of the app, just brilliant work man :)
[Android Apps and Games] MongooseHelix:
The init.d script 05mountsd is supposed to mount the second partition to /sd-ext automatically at boot but doesn't always work without some modification. I run CM7 and had to change mine so it recognized the 2nd partition properly. If nothing shows up at /sd-ext and you know there are files there, then it probably isn't mounted. Run the command "mount" and check for /dev/block/vold/179:2 OR /dev/block/mmcblk0p2 as a mountpoint. If neither are listed, then your 2nd partition is not getting mounted.

Keep in mind that for Link2SD to work, the 2nd partition needs to be seen at the /data/sdext2 directory. So you will either need 05mountsd to mount there directly instead of /sd-ext or bind the two together after it is mounted.
[Android Apps and Games] naveen.moses:
link2sd app limit

Hi,

first sorry for my bad english

I have been using link2sd without a problem.its so great.

I have partitioned my 8GB memory card such that i get 945 MB for secondary partition

I had installed nearly 200 apps in my galaxy 5.after this when i'm trying to link an app link2sd says "create link failure cannot create /data/sdext2/sampleapp.apk file system full"

but only 456 MB of secondary partition is used

Is there any limit for linking apps in link2sd.otherwise please help me how solve this problem:)

thanks in advance:)
[Android Apps and Games] benpaka:
I have found the solution of my problem doing a simple:

chmod 771 /data/sdext2

for more information look here: http://xdaforums.com/showpost.php?p=14121218&postcount=50
[Android Apps and Games] fabricioemmerick:
Hello friend what the problem was more specific in your case? for us to know?
[Android Apps and Games] aleksamaki:
HI everybody,

I have problem with link2sd ''create link failure not allowed to su''. And in superuser link2sd is allowed. I have 2GB sd card FAT and FAT32(200MB for link2sd) partitions, both primary. What to do?

After rebooting phone couple of times it worked.
[Android Apps and Games] pico.marco:
Galaxy ace 2.3.3 - kpe only

Until a solution is found by changing the application, you can try this:

http://xdaforums.com/showpost.php?p=13874334&postcount=104

It's called "a2sd enablers" but also works with link2sd, solves the problem of the mount the second partition. It's a modified "code" file (for galaxy ace KPE only) which must be installed with Odin (follow the normal procedure, with apboot, modem, csc from samfirmware.com and replace code file with tihis). I've tried, it works.

Download is here:

http://xdaforums.com/showpost.php?p=13883500&postcount=106
[Android Apps and Games] Dimak451:
hi! thank you so much for this app bakpinar!!!

I was wondering that in the next version you could activate auto-link lib files as they are created. For instance Aura gps, when I instaled it it had no lib files but then when it had I had to manually link them. If you could do something about that it would be great.

keep up the good work ;)
[Android Apps and Games] _Psyborg:
Backup question

Thank you for this fine piece of software! It's working like a charm.

I still have a question: What about backing up the installed software? Probably it's not possible to use normal backup software like MyBackup Pro, because they don't know and care about the data on the sd card. - So I think the solution would be to use Nandroid/xRecovery for backing up the cell phone RAM and to backup the EXT2 partition (in my case) additionally.

So now my problem is, that I don't "see" the EXT partition on my Windows 7 64 bit computer. Even a tool for reading EXT on Windows like EXT2FSD didn't help. I am using the standard USB connection.

Any recommendations, solutions, tips? Thanks...
[Android Apps and Games] lichan:
Take a look at this thread http://xdaforums.com/showthread.php?t=585349 It tells several ways to do it. Basically you want to using ADB or Terminal Emulator backup /data/sdext2 to a backup directory on the FAT32 partition of your sdcard (you can also tar it if you do it from CWM recovery). Then you can backup your sdcard to your Windows PC. This can also be used when you install a new ROM and have to wipe data/factory.
[Android Apps and Games] scull11:
greetz all,i have a problem with the partition of sdcard,my device its a Odys Genesis(Tablet) with prestigio rooted Android 2.1 rom,i put the sd card (8GB) in my PC and start minitool,first i make a fat32 partition,and apply,then i resize the first partition of fat32 in unlocated 800mb (before or after unlocated???) and apply,then i create from unlocated a ext2 partition with primary,apply,so i put the sd card in the Device and start link2sd,everytime he says "The Second partition not found on your SD card,Make sure...." wha i tryed any option to make partitions,always dont work...pls help,that the app why i have take a rooted rom,and the superuser aks me not to allow link2sd,maybe i need first clear the problem with the partitions and the when i link a app he ask me or `??? pls help thx
[Android Apps and Games] drakon78:
@bakpinar

I have choosen to go back from 2.3 to my rooted stock froyo after i had to link the libraries again, what sometimes really annoys me, because i have more than 20 apps where i have to link them.

on froyo i had installed 1.6.2 and the problem with the libraries was still there,

i installed 1.6.0 and it works, the libs are still linked.

I have not tried it on android 2.3 would someone check it?

Maybe is the fault somewhere in the code between 1.6.0 and 1.6.2?

Don't know if it matters, i have htc desire
[Android Apps and Games] DarkCaine:
seriously guys if you make swap,you dont need link2sd
[Android Apps and Games] aciddo:
Problem with Link2Sd and Htc Wildfire PuzzleROM

Hello

I have a Htc Wildfire with custom rom "WildPuzzleROM-2.2.1 v0.1".

Baseband is 13.45.55.24H-3.35.15.31

Kernel is 2.6.32.21-g0f9e9b5

I've followed these steps to correctly setup link2sd:

1. Connect device with pc, mount as disk.

2. Run minitool and created second partition as primary (tried fat16/32,ext2,3).

3. Safely eject device and reboot.

4. Go to market and install Link2SD and run it.It asks me for root access and i say "yes".

5.It asks me what kind the second partition is and i respond as fat32/16 (tried also with ext2,3).

6. After that i got this message:

"Mount script cannot be created. Mount script error: line 4: /system/etc/install-recovery.sh cannot allocate memory"

7. After that the device reboots automatically after about 1 min.

I've read that may be a NAND lock on my HTC Wildfire but how can it be if i have a custom rooted rom? Is there any way i can check this?

Thank you and sorry for any language errors.
[Android Apps and Games] jrkangta:
Thanks for this app! Lifesaver! Tested it with Motorola Flipout. I was desperately looking for a custom rom but was unable to found any to support Apps2sd. Good thing found this app or I will be stuck with a pathetic 100mb internal memory.

Cheers!
[Android Apps and Games] scull11:
When i make the the first partition as fat32 (with MiniTool) its named G: and the second ext2 named only a Stairs like this *: what i make wrong ??? And i set the second as Primary and Active ???
[Android Apps and Games] MongooseHelix:
That error is given for NAND locked devices. Almost all HTC devices come that way (S-ON) which is is not affected by rooting. With S-OFF, changes are allowed to the /system partition whereas you can think of rooting as just giving you superuser permission to run certain apps or commands with admin access.

The bad news for you is that the Wildfire doesn't have a software solution to gaining S-OFF yet although AlphaRev was planning on providing a solution with v2.0 but that may never happen. Currently, the only way to get S-OFF for the Wildfire is to use a hardware device called XTC Clip which isn't very common or inexpensive.

Why would you come to this thread just to claim the app is useless especially when what you said isn't even true?

A swap partition deals with an entirely different issue than Link2SD. Swap is used for freeing up RAM by swapping processes that normally might be killed by the Android system off to a partition on your SD card instead. The idea is to maintain better performance by not having to start processes fresh as you would if they were killed. Link2SD on the other hand is useful for running out of internal storage for people that install lots of apps or have an older device without much storage to begin with. Swap has no ability to provide more storage room.
[Android Apps and Games] toci1980:
I have SE x10 (ROM 2.1) mini pro and SD 8GB. With Mini Tool Partition I had made 2 partition on my 8GB SD, first is FAT32 and second is EXT2, but I CAN'T see my second partition. I am a new in "android world" and I would appreiciate anybody for help me! Also, I don't know is it my ROOM "open" for this action!

Can I upgrade my ROM to version 3.1????

Some help, please!!!!!
[Android Apps and Games] Kierrok:
This must be the dumbest post I ever read here!
[Android Apps and Games] scull11:
Cant anyone help for my question pls
[Android Apps and Games] MongooseHelix:
I don't really understand how you've partitioned your sd card but we'll see what we can figure out. Using Android Terminal Emulator from the market, please reply here with the output of these commands:

mount | grep sdcard

ls dev/block/vold

ls dev/block | grep mmcblk*

The "|" character is called a pipe and will most likely be on the alternate symbols screen of your phone's keyboard. If you can't find it, just leave it and whatever comes after it out of the commands. I just was using it here to cut the displayed output down to only what we cared about.
[Android Apps and Games] scull11:
Can i use this Better Terminal Emulator Pro v3.39 ? I have no Market to download yours,srry for my english i hope u understand me...:)
[Android Apps and Games] MongooseHelix:
Any terminal emulator will work, just linked to the other since it is free :)
[Android Apps and Games] scull11:
I found this Android Terminal Emulator ^^

mount | grep sdcard = Usage: mount [-r] [-w] [-o options] [-t type] device directory

ls dev/block/vold :

179:2

179:1

179:0

31:8

ls dev/block | grep mmcblk* :

mmcblk0p2

mmcblk0p1

mmcblk0

vold

mtdblock10

mtdblock9

mtdblock8

mtdblock7

mtdblock6

mtdblock5

mtdblock4

mtdblock3

mtdblock2

mtdblock1

mtdblock0

nbd15

nbd14

nbd13

nbd12

nbd11

nbd10

nbd9

nbd8

nbd8

nbd7

nbd6

nbd5

nbd4

nbd3

nbd2

nbd1

nbd0

loop7

loop6

loop5

loop4

loop3

loop2

loop1

loop0

ram0

I: No such file or directory

grep: No such file or directory

mcblk*:No such file or directory
[Android Apps and Games] scull11:
i cant not find this on my keyboard (|?) grep sdcard...
[Android Apps and Games] scull11:
Selam @bakpinar can u maybe help me ? or anyone here :(
[Android Apps and Games] thesound:
thanks for this great app

nothing have to say
[Android Apps and Games] MongooseHelix:
From the outputs above it looks like you do have a second partition set up and located at both /dev/block/vold/179:2 and /dev/block/mmcblk0p2. You can try to manually mount it with these commands:

su
mkdir /data/sdext2
mount /dev/block/mmcblk0p2 /data/sdext2

Let us know if you encounter any errors. Otherwise, post the output from:

mount
[Android Apps and Games] scull11:
su (works)

mkdir /data/sdext2 = mkdir failed for /data/sdext2,file exists

mount /dev/block/mmcblk0p2 /data/sdext2 = Usage: mount [-r] [-w] [-o options] [-t type] device directory

mount =

rootfs / rootfs rw 0 0

/dev/root / cramfs ro 0 0

tmpfs /dev tmpfs rw,mode=755 0 0

devpts /dev/pts devpts rw,mode=600 0 0

proc /proc proc rw 0 0

sysfs /sys sysfs rw 0 0

tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0

/dev/block/mtdblock4 /system cramfs ro 0 0

/dev/block/mtdblock7 /data ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0

/dev/block/mtdblock6 /cache ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0

/dev/blockmtdblock9 /data/data ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0

none /system aufs rw,si=f12ddb2a,xino=/data/sysrw/ .aufs.xino,br:/data/sysrw=rw:/system=ro 0 0

/dev/block//vold/31:8 /flash vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0111,dmask=0000,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0

/dev/block//vold/179:1 /flash/sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0111,dmask=0000,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0

i try this commands after

su

mkdir /data/sdfat

mount dev/block/mmcblk0p2 /data/sdfat ??? :)

im scared ^^ i become a littlebit other outputs after this same command:

su

mkdir /data/sdfat = mkdir failed for data/sdfat,file exists
[Android Apps and Games] MongooseHelix:
Did mmcblk0p2 get mounted to /data/sdfat or not? Does the command "mount" now list /data/sdfat? If it is, try the following to unmount it from /data/sdfat so we can try mounting it a different way to /data/sdext2. Link2SD needs to see the second partition at /data/sdext2 in order to work.

su
umount /data/sdfat
mount /dev/block/vold/179:2 /data/sdext2
mount

I'm not sure why the attempt to mount mmcblk0p2 to /data/sdext2 would give the usage output unless there was a misspelling or accidental character inserted.

When using "mkdir", if the directory already exists then we'd expect the error it gives and so you can just skip it.
[Android Apps and Games] scull11:
when i type umound /data/sdfat or sdvfat he says failed

and in the outputs i see this /dev/block//vold/179:1 and not 2 ?

/flash/sdcard vfat rw...

maybe its 179:1 ? and mmbclk0p1?
[Android Apps and Games] MongooseHelix:
179:1 and mmcblk0p1 both point to the first partition of your sdcard and is accessed for you at /flash/sdcard and probably /sdcard also.

It must not have been mounted at /data/sdfat either since it is not listed and the umount command fails. Is your second partition currently set up with a fat32 filesystem? Try this mount command, but if it's ext2 instead, change "-t vfat" to "-t ext2":

mount -t vfat /dev/block/vold/179:2 /data/sdext2

If no error is given, check the output of "mount" to see if it is listed there.
[Android Apps and Games] scull11:
Is your second partition currently set up with a fat32 filesystem? No Its ext2 the first is fat32

and this mount -t vfat /dev/block/vold/179:2 /data/sdext2 = Invalid argument

try with -t ext2 ?
[Android Apps and Games] MongooseHelix:
Yes, use "-t ext2"
[Android Apps and Games] scull11:
he except this command with ext2,and with mount i can see a new line like this :

/dev/block/vold/179:2 /data/sdext2 ext2 rw,errors=continue 00

I have reboot my Device and the line was lost, i try again and whe i can safe this ?

I Type exit in Terminal and install Link2sd its work omg great,i scare to reboot my device ?
[Android Apps and Games] scull11:
Oh no when i reboot the line is lost and the link2sd will not work s... :) what i need to do ?
[Android Apps and Games] corfou:
I started with a 8Gb card. 1st part on Fat, 2nd is ext2. Problem is now that 2nd part is invisible even through MiniTool Partition. So now my sd became a 4Gb ! How to revover the rest ?
[Android Apps and Games] AfroLoots:
Try partition manager 9.0:-)

Sent from my X10a running EW Jet ZeamEx V001.ex BETA
[Android Apps and Games] MongooseHelix:
It isn't yet expected to stay mounted through a reboot because we first needed to see if and how to get your 2nd partition mounted at /data/sdext2. To automatically mount it we'll need to use a script that gets run at each boot. Does this command give any output or does it give the error "no such file or directory"?

ls /etc/init.d

Also, could you attach a copy of the /init.rc file here so I can see what scripts might be run at boot. You could paste the output of "cat /init.rc" into a txt file and attach it here if that is easier.
[Android Apps and Games] scull11:
ls /etc/init.d no such file or directory

ok i need to go sleep,im live in Germany and we have 12clock,i need to work in five hours ^^,u can give me an answer and i and u try tomorrow....thank u for your time and help @MongooseHelix
[Android Apps and Games] wm.puig:
this sounds familiar

Your experience/situation sounds similar to the issues I encountered when trying to install Link2SD on my tablet last month. I came up with a workaround following a conversation with MongooseHelix, documented earlier in this thread as message #1246. You may want to take a look at that approach in case it might help. Good luck!
[Android Apps and Games] csanmba:
Hi I can mount the partition manually by running the script but it will not run automatically at boot. Also I can not find init.d any advise?
[Android Apps and Games] scull11:
Link2sd works,im happy thx to @MongooseHelix,

1. Im install the autostart app and reboot my Device,and give autostart app su rights

2. I take Root Explorer and go to /data/opt and make a new file,named autostart.sh

3. We open this file with Root Explorer Text Editor and type this commands in there:

----------------------------------------------------------------------------------------------

#!/system/bin/sh

mount -t ext2 /dev/block/vold/179:2 /data/sdext2

if [ "$?" = 0 ]; then

log -p i -t mnt_ext2 "2nd partition successfully mounted for link2sd";

else

log -p e -t mnt_ext2 "Unable to mount 2nd partition!";

fi

___________________________________________________________________

4.Save File

5.The Root explorer makes automaticly a autostart.sh.bak file,this file we need to delete

6.Then reboot the Deive and have fun with this great app Link2sd

Info: This instruction is only tested with my Odys Genesis Tablet,with prestigio rooted rom,and the sd card need to first partition as Fat32 and the second as ext2..
[Android Apps and Games] MongooseHelix:
You can really thank wm.puig as he is the one who originally figured out that the Autostart app could be used to mount his 2nd partition. All I had to do was remember that and suggest it to you :)

Since this approach has now worked for both of you, it might be worthwhile to have bakpinar mention this workaround in the OP for people who are having problems getting their 2nd partition to mount automatically at boot.
[Android Apps and Games] csanmba:
I used the autostart app and the partition mounts great but every time I reboot the apps that are linked are no longer there.
[Android Apps and Games] MongooseHelix:
wm.puig mentioned that he had that problem but reinstalling those apps fixed it for him. He'll have to give the specifics since mine isn't set up that way.
[Android Apps and Games] wm.puig:
there really isn't much more to say

There really isn't much more detail to give. At least on my tablet, reinstalling the apps after moving them to the SD card via Link2SD and rebooting will replace their icons in the tray, but leave the symbolic links to the apps' APK files on the SD card intact.
[Android Apps and Games] scull11:
I have the same problem after reboot the apps are not more in the link2sd list/appmonster/homescreen...

with reinstall u mean deinstall and install again or install only again.the last one have not help to me

What i can do ?
[Android Apps and Games] bakpinar:
Autostart app is not the correct way for Link2SD.

It executes the script in BOOT_COMPLETED receiver and this is too late for the Package Manager. In other words, when the Package Manager started to scan application directories it can not find the apk files that are linked to the SD card's 2nd partition since it is not mounted yet.

Therefore applications will be disappeared in app drawer. Link2SD and app2sd scripts use init scripts which are executed earlier in boot sequence (install-recovery.sh, /etc/init.d scripts).

After real reboot if you invoke a "quick reboot" from the menu in Link2SD all linked apps come back to app drawer because Package Manager finds the linked files this time. But you may get force closes at some apps and need to reinstall them to fix.
[Android Apps and Games] csanmba:
When I reinstall them they show up in my data/app folder twice and do not show linked in link2sd. And also see them in sdext2 folder.
[Android Apps and Games] MongooseHelix:
I understand that autostart app is not the ideal way to have mount a partition since it will happen much later than the init process scripts. For some though, it might be their only option if their device/ROM isn't set up for init.d scripts(busybox run-parts) and init.rc disables install-recovery.sh from being run at boot.

When someone first mentioned trying an app to run a script at boot, I was skeptical because it should be too late for some apps to be recognized by the system. However wm.puig has stated that ever since he reinstalled the apps he had linked, they show up in the app drawer and are usable after a reboot. It is probably advisable in this case not to link apps like the launcher, keyboards, or apps that have associated widgets the user wants to use but at least they can still use Link2SD. Otherwise they will be forced to not use it and either limit the amount of apps they can install or use the built-in apps2sd available in 2.2+ which can only be fat32 and can only link the apk files. Just trying to increase the pool of people who can use and benefit from Link2SD.
[Android Apps and Games] bakpinar:
Yes, this could be an option.

In fact, the problem is on the tablets. Most of them have two storage devices, one internal (NAND) and the other external (SD card). And system external device points the internal one instead of the external SD card.

Therefore Link2SD detects the internal storage as SD card and you need to create the 2nd partition in NAND rather than in external.

I plan to add an option to choose which storage and partition to be linked to. I think this will be useful for tablets and correct device can be selected manually.
[Android Apps and Games] fr33zz3r:
Does not work with 16GB SD??!!

Hi Guys!

I have following problem:

The App really works nice using my 2GB SD card witch was delivered with my Handy (Acer betouch E400) but then I bought a 16GB SD card (SanDisk) and tried to make a second partition my handy said "damaged sd card" :confused:

Perhaps it's because my old one is in FAT und my new one in FAT32 (the first partition)?

Please help! :(

fr33zz3r
[Android Apps and Games] MongooseHelix:
Can you read and write to it through your computer? If so, it's unlikely to actually be damaged.

On your Handy, try this: press the menu button -> settings -> storage -> select "unmount SD card" -> physically remove the card -> insert it back in -> see if it mounts correctly

If both remounting and rebooting doesn't fix the problem, I would suggest trying to reformat/repartition it again. It looks like you are using minitool and just to make sure to do the right steps you can follow the xda wiki guide: http://xdaforums.com/wiki/index.php?title=SD_card_partitioning