yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mallaccra:
please help

reduce the size of the second partition to not more than 800mb (even though i don't think that is the issue).....owh i'm out of idea now.

someone please help our friend here.....
[Android Apps and Games] MongooseHelix:
I don't think your problem is with the 2nd partition but rather that your myTouch 3G Slide is NAND locked.

If you want S-OFF, nbetcher has a thread with a downloadable utility for the mytouch 3g slide which should work. Since I can't post links yet, just search for "s-off mytouch 3g". It was the first result for me.

Be aware though, enabling s-off voids your warranty and it becomes much easier to permanently brick your phone. You will also need to put it back to s-on if you take it back in for service or to trade in.

One easy way to see how much space are on your partitions is running the command "df -h" in adb shell or terminal emulator. If /data is full, try "ls -l /data/app" which will show if the apks are actually linked or not. For the ones that are, the permissions will look like "lrwxrwxrwx" and the apk name field will point (->) to where the apk is actually located.
[Android Apps and Games] rignfool:
I too had that problem... solved it by using g-parted in ubuntu instead of windows based partitioning tools
[Android Apps and Games] neogeek:
Did you use ext2 or ext3 for 2nd partition? Thanks.
[Android Apps and Games] anbusan:
I have problem here

this is the second time I'm using link2sd after reflash new firmware, I linked all apps/games that I install to sdcard the I reboot my phone but all apps/games I linked to 2nd partition has gone and when I try open link2sd this app cannot mount my 2nd partition

anyone got the same problem? what should I do?

_________________________________

Problem solved thanks :)
[Android Apps and Games] lcmartin:
This is what I was looking for, but....

Looking for this feature I have found your apk, it is exactly what I was requiring for my Tablet Coby MID7015, operating under Android Eclair.

I followed all the instructions and have partitioned my SD card (it is a 16Gb Kingston class 2).

My tablet is rooted and I have tried two different ways to create a recognizable partition, using MiniTool partition wizard and using Ubuntu, in both cases the partition was created succesfully but was not recognized by the tablet.

In fact once partitioned any of both partitions was recognized.

Link2SD displays a message saying thet the partition not found.

I have asked this question before in a Tablets Forum and got some answers, one recommending to partition NAND(?) and the excelent recommendation to better contact you.

The forum is androidtablets dot net/forum/coby-tablets/11299-coby-7015-link2sd-ext2-partition-not-found.html[/url] (I had to writte it in this way since the forum was not allowing links)

May you help me?

Regards from Chile
[Android Apps and Games] shaunbu:
I currently use scripts to link to the /system partition on my phone where there's plenty of free space due to the way my phone is partitioned (1GB memory but only 450MB data, SE X10).

Here's what I'm currently doing

http://xdaforums.com/showthread.php?t=909419

Currently I have to re run the script and restart the phone every time I update an app, how have you changed link creation (recent changes) to avoid restarting on 2.1?

Would it be possible (well I know its possible but could this option be added to the app) to link to a folder instead of a partition (I know using a folder on the SD card would cause problems every time its mounted but an option would be nice or only allow linking to a phone partition for rooted phones). I would much rather use the GUI to created links and have the app automatically recreated the links when an app is updated than doing it manually.

I've been linking to /system for over 2 months now and its caused no problems for me, there's also space on /cache (64MB) and /dev (140MB, almost 100% free) this seems an easy way to use otherwise wasted space, I'm not sure how much space is wasted on other models and my phone memory is hopefully faster than my class 2 card.

Hopefully this should be easy to do and as long as some space is reserved on /system I can't see any probs.

Regards,

Shaun
[Android Apps and Games] bakpinar:
To determine the external storage (SD Card) location, Link2SD uses Environment.getExternalStorageDirectory (not hard coded "/sdcard").

Can you run "set" command from terminal on your tablet and check EXTERNAL_STORAGE environment varible.

This should be your external SD card mount point, but I see that on some tablet models EXTERNAL_STORAGE points to internal storage (built in NAND) instead of SD card device.
[Android Apps and Games] bakpinar:
Link2SD searches "/data/sdext2" mount point and links the application files to that directory.

I see that you create /system/app2 directory. If you mount your /system/app2 directory as /data/sdext2 Link2SD will work.

Create /data/sdext2 directory and mount it as follows.

mount -o bind /system/app2 /data/sdext2

Of course this should be mounted at boot time. You can edit "/system/etc/install-recovery.sh" file which is cretaed by Link2SD and change the mount line.

And also, don't forget to mount /system as read/write before creating link with Link2SD, otherwise you will get "read-only file system" error.
[Android Apps and Games] bakpinar:
You could potentially do this, it depends whether your kernel supports it.

But yaffs is designed for NAND flash, not mmc devices and you may need to provide some page access driver.
[Android Apps and Games] MongooseHelix:
I was going to suggest bind mounting /system/app2 also but then realized that you would run into problems with read-only errors on /system whenever an app or update was linked unless you could mount /system as r/w on each link action. However this should work fine using directory on a partition that is already mounted as r/w like /cache or /dev both of which had available space according to shaunbu.
[Android Apps and Games] enotar:
I did this and it works but what part of the memory is it I am using?

Isnt it the same as apps storage, ram? I not where do I see capacity of this storage?

Can we use /nand or a dir in SDCARD?

Thanks
[Android Apps and Games] shaunbu:
Nothing to do with RAM. It uses storage on the phone but in a different place to where the rest of the apps are stored. If you run "df" (without quotes) in a terminal emulator you will see the free space on each partition.
[Android Apps and Games] enotar:
Understood thanks.

Df give me same amount of /system free on the sdext2 is 31796kb (small)

So this free up the apps storage but isnt it possible to bind a directory in SD Card the same way or /nand aerea?

Thats really is cool........

Edit: I create /sdcard/test to card and bind to sdext2

mount -o bind /sdcard/test /data/sdext2

it works too , apk + cache is in SD now

Should mount storage at boot but it looks it works

Is there something that is wrong doing that?

I'll try /nand too
[Android Apps and Games] shaunbu:
Thanks for your quick replies. I did some research into what /dev and /cache were and /cache is used for app installs so don't want to use too much of it (more space on /system anyway) and the only info I could find on /dev is that "the dev partition is not on physical nand disk" (http://android.modaco.com/content/a...artition-to-gain-more-app-space/#entry1443624) not sure how true this is or if its the same on my phone. Anyway I did a test by placing a file in /dev and rebooting, after which the file disappeared so I don't think this can be used.

Also total space on /system, /cache and /data is about 951000K which is probably about right for 1GB phone memory? Total space on /system, /cache, /data and /dev is about 1095000K is this too much?

So this leaves /system which I'm currently using but in order for the symlink to be automatically recreated on app updates I will need to set /system to rw on each boot. This is a massive security risk of course, well that is if any apps are programmed to exploit it. So this may be not that big a problem?

What would happen if Link2SD couldn't create a symlink for an app it monitored would it keep trying or give up? It it gave up would opening Link2SD make it try again? If so I could just mount /system RW run your app and then mount it back to RO.

BTW your app doesn't detect apps I've symlink with my script, although it does give weird apk sizes. [ie Earth: Size total 22.5MB| App 22.41MB (Apk:6.63MB Dex: 134KB) | Data: 100KB | Cache 0 KB] I'm not suggesting that it should just thought you would be interested to know.
[Android Apps and Games] shaunbu:
It should that shows the symlink is working (/system/app2 and sdext2 are now the same place so there is the same amount of free space avalible).

Yes but this would cause problems every time the SD card is mounted, ie your apps would disappear, they might reappear on 2.2+ after unmount not sure, thats why this app uses a separate partition on the SD card. Not sure what you mean by /nand area? If you mean different partitions ie /cache then yes this is possible. If you mean directly on / ie the root partition then I don't think so as doubt their is much free memory here.
[Android Apps and Games] MongooseHelix:
Good call on the /dev partition...not too helpful if your apps disappear on a reboot. The /cache partition gets filled mostly with the dalvik cache files for system apps(/cache/dalvik-cache) and temporary market downloads of app updates (/cache/download). So you wouldn't want it to get too full but you could possibly link some user apps there if need be.

One thing you could do to save room on /data is to move the dalvik-cache files for user apps(/data/dalvik-cache) to /cache/dalvik-cache and then both system and user app cache would be in the same place and free up room on /data. Should just need to move the cache files once but the bind mount will need to be done on each boot.

mv -f /data/dalvik-cache/* /cache/dalvik-cache

mount --bind /cache/dalvik-cache /data/dalvik-cache
[Android Apps and Games] enotar:
/nand is the internal 2gb storage flash (exactly 1.6gb internal storage)

Like the SD card but internal download and backups goes there.

On this case apk is moved but link is not created.........
[Android Apps and Games] cyberundertaker:
nice app...but i think app2sd is much better...i also tried this but i can't figure it out
[Android Apps and Games] Vuco:
It's easier to install Link2SD than App2SD on Eclair ROM, and many less problems with it. Make a new partition on your SD card, make it Primary, restart phone (or unmount & mount the SD card from phone), open link2SD - it recognizes that you have a new partition and from the app, you link all the apps.

Very easy job, and saves much needed phone memory (phone works faster).
[Android Apps and Games] cyberundertaker:
i tried that, but my phone memory keeps decreasing :(
[Android Apps and Games] wachw:
This app doesn't link app data or caches, maybe that's what's decreasing your phone memory.

@bakpinar: are you still planning on including data linking?
[Android Apps and Games] shaunbu:
Tried this and it worked initially but didn't after reboot and the app I linked has disappeared! Even after running mount again. I couldn't find /system/etc/install-recovery.sh and also tried putting scripts in /system/etc/init.d (init.d had to be created). In the end I found an app that runs a script as root on startup (https://market.android.com/details?id=nk.bla.android.autostart&feature=search_result). I run chmod on /system and your mount command at startup but still get access denied errors.

I've definitely got rw access to /system and /system/app2 but not to /data/sdext2 . Can't change access permissions for /data/sdext2 in root explorer or terminal (in which I get the error: access denied read only file system). Files I create in /system/app2 appear in /data/sdext2 so everything else is working.

I've tried deleting /data/sdext2 and recreating now terminal says does not exist when I try to change permissions.

Also as the link is created after boot (only way I think I can do it without a custom rom) I don't think android will know the apps exist. As using my symlink script I need to reboot before the apps reappear in my drawer.

Just had an idea! Going to delete everything, reboot and then try symlinking.

busybox ln -s /system/app2 /data/sdext2

Won't need to set it at boot so should work much better, of course I still need to set rw to /system at boot.

But first I'm going to bed, spent long enough on this for tonight!!
[Android Apps and Games] rignfool:
Question?

So after much searching around... i have discovered that missing apps are located in /data/sdext2/... however... the apk files are a whopping 34k

i was wondering if anyone had any idea how to... in windows... access the partition enough to delete these files so i can redownload and relink the files?

i assume if i go to a linux machine i can just mount and delete them?

and please don't suggest a live cd... none of them work on this dinosaur
[Android Apps and Games] MongooseHelix:
Based on the apk files being so small, they sound like symlinks. With Link2SD, the symlink files should be located in /data/app with the actual apk files in /data/sdext2 which is the sdcard's ext partition. I'm not sure why the symlinks would be on you ext partition. In terminal emulator on your phone or through adb shell with it attached to your computer, you could run

find /data/sdext2 -type l

to list whatever symlinks are there, if any. If they are linked, you can check where they point to with

ls -l /data/sdext2 | awk '{print $9, $10, $11}'

To delete them, unless it's mounted as read-only(shouldn't be), just run

rm /data/sdext2/*.apk
[Android Apps and Games] MongooseHelix:
A couple things...I may be wrong but if your ROM is not set up for init.d functionality, it won't work so you'll have to run the script some other way which it looks like you have. For the access denied errors, it's because no matter what the permissions are for /system you can't write to it unless it is mounted as read/write. To fix that, first figure out where /system is mounted. For me it's "/dev/block/mtdblock3". To find yours, use:

mountpoint -n /system | awk '{print $1}'

Next, use this instead of the chmod command but replace my /system mount point with yours if it's different:

mount -o remount,rw /dev/block/mtdblock3 /system

There is an intentional space after the 3 and before /system in the mount command above.

About restoring the apps that disappeared, are the apk files for the apps you linked in /system/app2? They might be there but have broken links to /data/app. Does Link2SD list them and if so, does it say they are linked? This may or may not help but you could try relinking the apk files if they are in /system/app2 using the following command with /system mounted as read/write:

for i in /system/app2/*.apk; do ln -s $i /data/app/$(basename $i); done

Another thing you could if the apk files are in /system/app2 is to move them back to /data/app then use Link2SD to link them again.
[Android Apps and Games] rignfool:
When i attempt to delete them with the terminal emulator... i get a stale nfs file handle...

Not sure what to do
[Android Apps and Games] MongooseHelix:
In that case I'd say unmount the second partition:

umount -f /data/sdext2

Afterwards, you could reboot if /system/etc/install-recovery.sh exists and it could mount the partition. Otherwise you will need to keep /data/sdext2 mounted until you run the following line of piped commands so it can see how it's currently mounted and allow it to print out the command you will need to mount the partition back.

mount | grep /data/sdext2 | awk '{print "mount -t",$5,$1,$3}'

Either way, once it's been unmounted then mounted again, check if the files are still there and attempting to delete them again if so.
[Android Apps and Games] shaunbu:
/system is mounted rw used an app called mount system rw. I said in my post that I definately had rw access to system, I tested this by creating a file in /system/app2 that also appeared in /data/sdext2 but could not write any files in /data/sdext2. But because my script (and mount bind) is loaded after the graphical shell ect I don't think android 2.1 will know the apps exist.

Ok so I tried my command and it just created an app2 folder in /data/sdext2 that pointed to /system/app2 ie /data/sdext2/app2 -> /system/app2

I then tried it without creating the app2 folder first, which first creates a file which turns into a folder when I create /system/app2 which seems to work, files created appear in both places ect but Link2SD then decides there is no second partion on my SD card.
[Android Apps and Games] lcmartin:
Originally Posted by lcmartin

Looking for this feature I have found your apk, it is exactly what I was requiring for my Tablet Coby MID7015, operating under Android Eclair.

I followed all the instructions and have partitioned my SD card (it is a 16Gb Kingston class 2).

My tablet is rooted and I have tried two different ways to create a recognizable partition, using MiniTool partition wizard and using Ubuntu, in both cases the partition was created succesfully but was not recognized by the tablet.

In fact once partitioned any of both partitions was recognized.

Link2SD displays a message saying thet the partition not found.

I have asked this question before in a Tablets Forum and got some answers, one recommending to partition NAND(?) and the excelent recommendation to better contact you.

The forum is androidtablets dot net/forum/coby-tablets/11299-coby-7015-link2sd-ext2-partition-not-found.html[/url] (I had to writte it in this way since the forum was not allowing links)

May you help me?

Regards from Chile

To determine the external storage (SD Card) location, Link2SD uses Environment.getExternalStorageDirectory (not hard coded "/sdcard").

Can you run "set" command from terminal on your tablet and check EXTERNAL_STORAGE environment varible.

This should be your external SD card mount point, but I see that on some tablet models EXTERNAL_STORAGE points to internal storage (built in NAND) instead of SD card device.

Bakpinar, I run the "set" command I have got EXTERNAL_STORAGE=/sdcard

What shall I do now?
[Android Apps and Games] szakacsze:
Hi!

Try this app. I create second partition on 8gb sdcard, resized first partition with MiniToolPW, and create 400mb fat32 partition. I restarted the phone, and started link2sd. Link2sd detect second partition, ask the partition type, I select FAT32/16, get: mount script error invalid argument.

My phone: Vodafone 845 with factory Android 2.1, rooted, root explorer and market enabler works, probably not rooting problem.

If the second partition is logical, may cause the "invalid argument" error ?
[Android Apps and Games] Vuco:
Of course it does. But how many apps do you have ? I had like, more than 70 user downloaded apps installed over Link2SD (apk + dalvik) and had like, 50-60MB of phone memory left ? When the phone was empty, it had 80MB.
[Android Apps and Games] wachw:
Yes. Second partition should also be primary, not logical.
[Android Apps and Games] punisher1:
hi to all ,

first of all , i have an lg gt 540 and a 4gb kignston card .

i saw this aplication requires root level .

what kind of root ? permanent or temporary ?

thanx in advantage !:p
[Android Apps and Games] MongooseHelix:
Sorry, didn't realize you had /system mounted r/w...thought just the permissions were changed. Having the script not run until the phone is booted would be an issue since during boot is when each app's dalvik-cache is created if it hasn't already but the apps won't be seen since /data/app isn't linked to /system/app2 through /data/sdext2 yet. To run mount on boot, add them to /system/etc/install-recovery.sh (creating it if it doesn't exist). What's in there gets run automatically by init and is what Link2SD uses to mount the second partition when it recognizes it as such. You could also have /system remounted as rw in that script but I don't think anything would be written/modified in /system/app2 at that point so it wouldn't be needed.

Something that could be helpful and cool would be to have /system only mounted as rw when needed by using a program like Tasker along with the Locale Execute Plug-in. You could run the command to mount /system as read/write when Tasker detected the Link2SD notification icon popping up to say it was updating a link and then mount back to read-only when the Link2SD notification icon redisplayed saying it has finished linking/removing/whatever. Tasker and the Locale Plugin are both paid apps but are so powerful at automating and customizing that I'm sure you'd find all kinds of uses for them.
[Android Apps and Games] rignfool:
Do i attempt to remove the files after i unmount before i remount/reboot?

Or do i unmount... remont/reboot then try to delete?
[Android Apps and Games] MongooseHelix:
Without it mounted you won't be able to access the files, so try force unmounting, then reboot and once mounted, try removing the files if they are still there.
[Android Apps and Games] shaunbu:
Tried creating and editing /system/etc/install-recovery.sh it is ignored even thou init.rc refers to it. Tried editing init.rc and a post boot script file also at / both ignored and files reverted back to originals on boot (with 1st Jan 1970 as time-stamp).

There is a init file full of random symbols and a few lines of what looks like it should belong in init.rc (mount /system ect), could this be a signed file that reloads the other files on boot or something similar? I've attached it in case anyone is curious, had to be zipped cos this forum has a stupid limit on .txt files.

Seems SE has gone out of its way to stop commands being executed at boot time, doubt I'll get this working. :(

Could you please tell me what command you use to avoid rebooting on 2.1 devices and I'll just add that to my scripts. I'm not gona be able to use your app unless I can change it from using /data/sdext2. Would it be possible to be able to add a custom location? Maybe only show the option if the second partition can not be found?
[Android Apps and Games] shaunbu:
Figured it (Get in!)

I edited /system/etc/hw_config.sh

Hope this helps other users, its taken long enough to figure it out! I'm running SE X10i stock 2.1 but this might work on other roms that try to stop you running scripts at startup.
[Android Apps and Games] MongooseHelix:
Bet it feels good to figure that out...now you can have all kinds of scripts running at boot. Does this mean you are able to link apps through Link2SD now? Do the linked apps survive through a reboot? Very cool if that's the case.
[Android Apps and Games] bladepass:
Question when File System Error on 2nd partition

Hi All:

I use Link2SD very well on my MOTOROLA XT701.

I created 2nd partition as primary too, and around 400MB.

But it happened twice that something wrong made I can not boot my phone with SD card.

Looping "ADNDROID" wording on rebooting...

I scan SD with EASEUS Partition Master, and found there is File System Errors on it,

I didn't know how to fix it, and finally formatted twice.

The first time I even made 1st partition dead, and lost whole contents... so sad.

I want to know if there is a way to fix file system error?

I knew chkdisk is fine on Windows, but since it is 2nd parimary, Windows sees only 1st primary.

Dead 2nd primary made the phone can not be rebooted. can Link2SD make a better protection?

Like stop mounting if failed to mount too many times?

Anyway thanks very much to Link2SD because it gives me more APPs to play!
[Android Apps and Games] beggar23:
Unfortunately this file does not exist at my Legend... :(
[Android Apps and Games] moedjs:
Thanks for 1.5.5 version..

Now I don't have to reboot after creating link..

thank you very much
[Android Apps and Games] :
Oh... this is the absulately the best of best app for Android.

Work greate on HTC Desire, with S-Off.

Thank you very much.