yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] kulen:
@Kierrok, and anyone else willing to help

kernel developer said this:

Tips

-don't use app2sd script(system/etc/init.d/10apps2sd) when using sd-ext.My phone gets useless with dalvik cache on sd, and I have a class 6 card.Use link2sd instead to free up space, and keep apps you often use on phone.

so I moved that script to root of FAT partition. I guess it's like it's deleted for android system.

than I applied commands you suggested me. the output is attached as txt file.

what happened is that apps were recognized every time I rebooted but the folders were still linked.

so I tried removing link with command rm app. which caused deleting whole folder . so now I lost most of my apps.

As you see I'm less than a noob when it comes to linux. my friend Google helps me a bit, but can lead me into making mistakes also :-)

After that I reflashed ROM, and I have apps again.

so now I'm basically where I started. because I have linked app, app-private and dalvik-cache folders, and I have that script again.

I still need a way to unlink those folders. and then try to copy apps back on internal memory. and start using link2SD as I planned.

so how do I unlink folders?

It would be good if I had other SD card to reflash ROM from it. delete this script and then insert SD with ext. perhaps it wouldn't make a link to EXT then, if the script makes it. but unfortunately it's all on the same SD

I know it's probably beyond Link2SD problem but I would be thankful for any help.

I also attached that script. just had to add .txt to it so I can send it.

and I applied those commands of yours once again at the end. it's the other new txt.

thank you
[Android Apps and Games] bsoplinger:
If you run Gingerbread that version of Android recreates the lib on every startup. Perhaps that's what you're seeing. Freeze doesn't remove the app but renders it invisible to the system. So out can't run or start a device on boot our be seen in the app drawer. You can think of it as a pretend delete if you want since it is still on your phone and takes up space.

Sent from my HTC Flyer P512 using Xparent Purple Tapatalk
[Android Apps and Games] Kierrok:
OK, now I'm sure it's app2sd fault.

Looks like you have a nandroid backup so we can try to fix this mess. If something goes wrong you have to restore the backup again.

su
rm -f /data/app
cp -a /sd-ext/app /data/
rm -f /data/app-private
cp -a /sd-ext/app-private /data/
rm -f /data/dalvik-cache
cp -a /sd-ext/dalvik-cache /data/

If everything went well all the links were deleted and the linked directories copied to internal memory again.

Now delete the script from /system/etc/init.d

Don't forget to enable read/write permissions to /system because it's read-only by default. And make sure the script is really deleted.

Now reboot. Everything is working? Run these commands to check if app2sd didn't run:

su
mount | grep sd-ext

If this outputs something like this:

/dev/block/mmcblk0p2 on /sd-ext type ext3 (rw,noatime,nodiratime,errors=continue,data=ordered)

then something went wrong. If it outputs nothing then you're good to go. Make sure everything is working again. If so you can delete the old linked directories that still are in the sd card with these commands:

su
rm -r /data/sdext2/app
rm -r /data/sdext2/app-private
rm -r /data/sdext2/dalvik-cache

Now you can start using Link2SD.
[Android Apps and Games] kulen:
Thank you, thank you, thank you ...

don't know how to thank you enough.

it's all as it should be now.

I spent my daily portion of "thanks" on you.

thank you once again.
[Android Apps and Games] cipjanin:
can someone tell me why my apps r saving in the fat partition not in the ext4 partition? please ?
[Android Apps and Games] Kierrok:
You're welcome. :D

Perhaps because you are using the "Move to SD card" option instead of using "Create link" option which is the one you should use.
[Android Apps and Games] cipjanin:
yeah i see now, thanks buddy
[Android Apps and Games] wooshaq:
Hi, I'm having the problem with running the apllication, for some reason it doesn't seem to link properly. I tried for like an hour and every time i get the same recault. I have partition maounted. For this demonstration I'm doing a clean install of soundhound.

Mod edit - offensive language removed

Anyway, so i have an app on my Galaxy ace, the task manager sais I have 152MB used, so i go to link2sd find the app (which sais in red APP2SD) select link2sd and select all 3 to be put on sd (i tried with only dex but I get a failed screen - thus the app appears to have moves into SD even without the tick) and bam, screen sais the operation was a success, app, dev and lib data are marked red as moved, but on the main screen there is no indication that the app was moved. (I saw this on the thumbnail from the first page) and most of all the task manager now says 153MB! :( Any idea why?
[Android Apps and Games] rignfool:
So... I have a question...

I'm back to using link2sd after not for a while....

And I have the strangest problem yet...

Some of the games I have linked will not run...

Its not a force close...

The app opens for a split second then immediately closes...

Not exactly sure what's going on

It has happened with 'Puffle Launch' 'Can Knockdown 2' and 'Summit X Snowboarding'

These will run fine on either native app2sd or on the internal storage...

Any ideas?
[Android Apps and Games] rignfool:
Also... Since installing... My phone seems to get much hotter than it used to... Wondering if that may have something to do with it?
[Android Apps and Games] cnber:
Thanks for making this clear. I have a 8gb sdcard, I have partitioned it around 750mb fat32 and 500mb ext4. then, what should I use "create link" or "move2sd" ?? :confused:
[Android Apps and Games] kulen:
if you want apps to be on SD EXT you should create link. if you want them on FAT you should move them to SD.

but I guess you formatted SD card that way because you want them on EXT.

I moved apps back to phone and than created links to have them on SD ext after formatting SD card
[Android Apps and Games] anoobiser:
Link2sd was succesfully installed. Applications use up 114mb of ex2 sd card partition of 1.19gb

I have moved & linked all apps to the SD Card successfully, all the user installed apps have a linked > sdcard on them , still however my internal space of 150mb only has 60mb free, my contacts storage file is 14mb. Link2SD shows only 2 apps on internal memory Link2sd total 811kb & htcsync total 1.11mb , so what is eating up the 88mb internal memory ? I am on a HTC wildfire S
[Android Apps and Games] kulen:
did you reboot after linking?

I noticed it doesn't right space situation until reboot.
[Android Apps and Games] nigeta_gr:
Problem with Link2sd

Although Link2sd is correctly installed on my Xperia Arc and ext-3 partition appears as mounted, application doesn't seem to move .apk files to it, but to first appartment of the card.

Can someone give me a solution?
[Android Apps and Games] anoobiser:
yes rebooted, did a clear cache & now its 150mb / 67.32mb used 82.68mb free which is perfectly fine with me, although im quite curious as to what takes the 67.32mb of internal memory.
[Android Apps and Games] mor_1228:
please give the apk file.
[Android Apps and Games] Kierrok:
C'mon guys, you should read a few pages before posting a question!

There is a similar question and the answer in the previous page!

---------- Post added at 12:25 PM ---------- Previous post was at 12:24 PM ----------

Apps data.
[Android Apps and Games] nigeta_gr:
You' re right, but how many pages to read in every thread?

Especially, if it contains 242 pages!

Thanks, anyway. I'll check what I've read.
[Android Apps and Games] cipjanin:
everything work great i think only there is one problem when i will reboot my phone.. there shows up an msg from link2sd mount warrning and when i click on it offers me to quick reboot.. but i am w8ing up to 10-15 min and the screen is black.. so i reboot it normal and again the same.. i ve read something but i didnt find the correct answer so can pls someone help me with this issue?
[Android Apps and Games] Kierrok:
Please post your phone model and ROM.
[Android Apps and Games] cipjanin:
i have t-mobile move balance and i havent changed the rom yet so its the original i guess
[Android Apps and Games] anoobiser:
no going around this one im afraid :( thanks
[Android Apps and Games] saulob:
sorry, delete my msg, wrong thread.
[Android Apps and Games] Kierrok:
Did you at least root it? It's a necessary step.

Besides that I don't know that phone but it's a huawei and those devices usually have no problems with Link2SD.
[Android Apps and Games] cipjanin:
yeah its rooted , but the problem is that with normal boot 2nd partition (ext2) doesnt mount and it appear mount warrning and offers me to quick reboot to mount the 2nd partition so i can use apps that r on sd card ( the linked apps) and when i hit quick reboot i the srceen goes black the buttons light and i think nothing happens in background (i waited for 1 hr and nothing happened) so i must boot my phone with the normal mode (the power button) but with normal boot 2nd partition doesnt mount.. u get?
[Android Apps and Games] Kierrok:
Yes, that also happens in Samsung Gingerbread ROMs but the quick reboot works as a workaround.

What happens if you click in "Recreate mount scripts" option?
[Android Apps and Games] cipjanin:
give me option to select the file system of the 2nd partition like ext 2,3,4 or fat..
[Android Apps and Games] Kierrok:
Chose the right one. Just to check if Link2SD returns any error.
[Android Apps and Games] cipjanin:
i think is alright know thanks, and can u tell me why i cant link to sd apps bigger than 20 mbs? like angry birds and fruit ninja.. every app i can link instead this one or bigger one i guess it says: Failure /pkg/mnt/asec/com.rovio.angrybirds-1/pkg.apk Failure[Instal_failed_insufficient_storage]
[Android Apps and Games] Kierrok:
Hmmm... Looks like Angry Birds is in the FAT partition. You have to move it back to internal memory and then link it to SD.
[Android Apps and Games] cipjanin:
yeah thanks much dude u rock :)
[Android Apps and Games] skj88:
I've got a Pandigital Novel R90L200 (runs Eclair) that I've hacked using a firmware update found at slate droid (Alternate BPDN 9 inch firmware - OPDN9 by Roebeet).

The update is still Eclair, it's just unlocked a lot of what was locked out on the original system. I have been trying to get Link2SD to work with this but I keep getting "Mount Script Error - Mount script Cannot be created". Included in the message is:

su: access granted, courtesy of magicandroidapp Usage:mount [-r] [-w] [-o options] [-t type] device directory

I do have the SD card partitioned and used FAT32 for both partitions.

Any suggestions on how I can get Link2SD on this tablet?

Thank you for your assistance.
[Android Apps and Games] Kierrok:
Does Link2SD have root privileges? It's failing when creating the mount script.
[Android Apps and Games] skj88:
Thank you for your reply.

Link2SD is not asking for SU permission when I start it. I even uninstalled it, rebooted, re-installed it to see if would request it, but nothing.

However, when I try to create the mount script within Link2SD (it asks if SD card is ext2, ext3, ext4, FAT/FAT32) I select FAT/FAT32 and I get the message I posted before:

su: access granted, courtesy of magicandroidapp Usage:mount [-r] [-w] [-o options] [-t type] device directory

When I check for SU access in terminal emulator, I get the same response when enter the command "su":

su: access granted, courtesy of magicandroidapp

(Keep in mind the magicandroidapp is supposed to be a web address but the forum will not let me post it.)

So I am guessing Link2SD is doing something right as it is getting the message su: access granted, yet it is still failing to create the mounting scripts.
[Android Apps and Games] Kierrok:
You can try to manually create the mount script, but 1st we need to know some things:

Issue these commands in terminal emulator and post the results:

su

mount

cat /proc/partitions
[Android Apps and Games] skj88:
Here is what I got back in the emulator

# cat /proc/partitions

major minor #blocks name

179 0 1953792 mmcblk0

179 1 256000 mmcblk0p1

179 2 153600 mmcblk0p2

179 3 1362383 mmcblk0p3

179 8 3872256 mmcblk1

179 9 3068383 mmcblk1p1

179 10 803250 mmcblk1p2
[Android Apps and Games] Comraddm:
Hello!

Maybe this info will be useful for someone.

I had the problem with read-only second partition on sd card and the problem was not in mount scripts or something.

The problem was in corrupted partition.

I use FAT32 as second one, because other doesn't work on my phone.

So my Linux on comp helped me to solve the problem

I attached the phone to the comp by cable and Linux can see and mount both partitions.

1) I copied all files files from second partition to comp

2) unmounted that partition umount /dev/sdb2

3) formatted it mkfs.vfat /dev/sdb2

4) mounted it again and copied all files back

5) detached the phone from cable as usually and rebooted the phone

Now second partition is mounted as RW.
[Android Apps and Games] bluedreamer:
Hello

I tried link2sd on 2 cards, no luck :(

First one I partitioned with minitool... When I was done and inserted it in phone, there was a message about damaged sd card... So I had to reformat it from phone... Then I used Easus partition manager and managed to get 2 partitions, tried with ext 2, ext 3, and fat 32 all primary and link2sd doesn t see it...

Then i took another card, partitioned it via recovery in phone... This time link2sd asked for root permission during boot and asked for file system on my other partition but when i select any of the file systems (it should be ext2) it says mount script cannot be created... mount:invalid argument...

Phone is Samsung Galaxy 3, on Destiny ROM...

Is there anything else I could try

Thank you
[Android Apps and Games] Vwc_maxwellsmart:
I formatted my 8Gb class4 sd card with two FAT32 and the main partition is very slow to read or write data.

Which combination of partition formats did you use ?
[Android Apps and Games] Kierrok:
OK, now try if one of this commands actually mounts the partition:

mount -t vfat -o rw /dev/block/mmcblk1p2 /data/sdext2

mount -t vfat -o rw /dev/block/vold/179:10 /data/sdext2
[Android Apps and Games] skj88:
I entered the commands into the terminal emulator in the tablet and below is the screen content from the emulator.

$ export PATH=/data/local/bin:$PATH

$ su

su: access granted, courtesy of magicandroidapps

# mount - t vfat - o rw /dev/block/mmcblk1p2 /data/sdext2

Usage: mount [-r] [-w] [-o options] [-t type] device directory

# mount - t vfat - o rw /dev/block/vold/179:10 /data/sdext2

Usage: mount [-r] [-w] [-o options] [-t type] device directory

#
[Android Apps and Games] ChungHung.Chen:
Dear skj88,

The options are "-t" and "-o", without any spaces.

Please correct the command and try again.

Chung-Hung Chen
[Android Apps and Games] Vwc_maxwellsmart:
Problems solved by using an Usb card reader. When i used the sd card reader port included in my laptop, i could not create the second partition and it always appeared as being unformatted.

With the usb adapter, formatting with one fat32 main partition and a second smaller ext2 partition worked fine.
[Android Apps and Games] skj88:
Thank you for the correction.

I re-entered the commands with '-t' and '-o' (no spaces).

When I perform this command in the emulator:

mount -t vfat -o rw /dev/block/mmcblk1p2 /data/sdext2

the emulator goes to another command entry line (# sign).

I then follow the above command with this command:

mount -t vfat -o rw /dev/block/vold/179:10 /data/sdext2

and the emulator returns "Device or resource busy".

I thought maybe this was because the first command already mounted the partition and it couldn't mount it again, so I unmounted the SD card under "Settings" and ejected it, rebooted the tablet, put the SD card back in, re-entered the command:

mount -t vfat -o rw /dev/block/vold/179:10 /data/sdext2

and I did not get the "Device or resource busy" message and the emulator goes directly to a new command line (# sign), just as it did when I tried the first command.

After entering the 'vold/179:10' command and not getting the "Device or resource busy" message, out of curiosity I checked if Link2SD behaved differently. Now when I click on an application in the list in Link2SD, the buttons to 'Create link' and 'Remove link' are enabled. I am guessing that's a good sign. I did not think to check this after entering the '/mmcblk1p2' command.

FYI - there are quite a few people with hacked 9 inch Pandigital Novel's out there trying to solve this exact problem. If you can help me find a fix, a lot of people will be very relieved.

---------- Post added at 08:34 AM ---------- Previous post was at 08:18 AM ----------

I just checked the 'Storage Info' in the Link2SD menu and it shows:

SD Card 2nd Part. (99% Free)
[Android Apps and Games] Kierrok:
Nice, that means the mount was successful with any of those commands.

Now the tricky part: manually create the boot mount script.

But first I need to see the result of this command:

mount

I asked for it before but you never posted it.
[Android Apps and Games] skj88:
Sorry about that. I thought the results from the cat /proc/partitions was all you needed.

Here is the text from when the 2nd partition of the SD card was mounted using the commands you gave me previously:

$ export PATH=/data/local/bin:$PATH

$ su

su: access granted, courtesy of www.magicandroidapps.com

# mount

rootfs / rootfs rw 0 0

/dev/root / ext3 rw,noatime,errors=continue,data=ordered 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 /tmp tmpfs rw,size=32768k 0 0

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

/dev/block/mmcblk0p2 /system/update ext3 rw,errors=continue,data=ordered 0 0

/dev/block//vold/179:3 /system/media/sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block//vold/179:9 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/vold/179:10 /data/sdext2 vfat rw,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,errors=remount-ro 0 0

#

I unmounted the SD card, rebooted the tablet, re-inserted the SD card, and ran the su mount command. Here are the results:

$ export PATH=/data/local/bin:$PATH

$ su

su: access granted, courtesy of www.magicandroidapps.com

# mount

rootfs / rootfs rw 0 0

/dev/root / ext3 rw,noatime,errors=continue,data=ordered 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 /tmp tmpfs rw,size=32768k 0 0

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

/dev/block/mmcblk0p2 /system/update ext3 rw,errors=continue,data=ordered 0 0

/dev/block//vold/179:3 /system/media/sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block//vold/179:9 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

#

I didn't know if it would make a difference so I posted both results.
[Android Apps and Games] Kierrok:
Damn, that's a weird device! Where is /system mounted? Never saw nothing like that...

Do you have busybox installed? Execute this command in the terminal emulator:

busybox

Try this too:

echo '# this is a test' >> /system/etc/install-recovery.sh
[Android Apps and Games] 13DaMan:
I have a similar issue on my LG Ally running stock 2.2.2 rooted with gingerbreak. I linked fruit ninja to the sd card but then it took up all the memory on the internal, note really sure why. Deleted other apps on the phone to make space for fruit ninja because I wanted to put it back on internal memory. I guess I didn't make enough room because it failed and told me their wasn't enough space to move it. Following that, the apk was on the external partition, there was still a reference in the dalvik cache, but I couldn't get the app to be recognized, even after rebooting the phone. I have since undone all I could including deleting the partition I made on the SD card and uninstalling Link2SD but I can't figure out what is using the 10mb and I really need that space back. Any ideas?
[Android Apps and Games] Kierrok:
The echos did exactly what I hoped they did. ;)

In every android device I tested /system was always mounted in its own partition, but not in your device. Maybe that's why Link2SD failed when tried to create the mount script.

But things look good, let's continue. Issue these commands with extra attention:

rm /system/etc/install-recovery.sh
echo '#!/system/bin/sh' >> /system/etc/install-recovery.sh
echo 'sleep 2' >> /system/etc/install-recovery.sh
echo 'mount -t vfat -o rw /dev/block/mmcblk1p2 /data/sdext2' >> /system/etc/install-recovery.sh
chmod 755 /system/etc/install-recovery.sh

Now reboot. If everything went good the partition was mounted at boot and you can start using Link2SD.

Just for leaving some info to bakpinar so he can make this app even more compatible, please post the result of the following command:

busybox df -P /system
[Android Apps and Games] skj88:
Sweet! Link2SD works now! I was able to move 2 large apps to the SD card and they opened and operated just fine. I even rebooted after they were moved to make sure the change stuck, and it did! Thank you very much for your help!

Here is the information you requested from busybox:

$ export PATH=/data/local/bin:$PATH

$ su

su: access granted, courtesy of www.magicandroidapps.com

# busybox df -P /system

Filesystem 1024-blocks Used Available Capacity Mounted on

/dev/root 247919 181227 53892 77% /

#

I've been looking up the commands you had me use so I think I have enough information to help the others on slatedroid that I know are having the same issue. Can I simply send them my install-recovery.sh file, have them put it into their /system/etc/ directory and it will work for them? Or do I need them to get the drive names using cat /proc/partitions and then, once sure of the drive name, type the commands in the terminal emulator to create the install-recovery.sh file?

Thanks again for all your help!
[Android Apps and Games] AndrewRoid:
Hello,

Newcomer to XDA and self proclaimed noob here.

Just wondering if someone could help me out. I've successfully partitioned my removable SD card with appx 12GB FAT32 for music and videos and 2GB ext2, for android apps.

In Link2SD storage info I can see Internal memory, where my apps are currently installed, SD card (11.50 GB of the phone's internal memory, i think) and SD Card 2nd Part. (1.97GB - the partition I made for the apps)

Now, whenever I move apps, they seem to move to the phone's internal SD card memory, but I would like to move them to the external SD card (the 2 GB partition I made)

I'd appreciate any help as this is it's driving me crazy trying to figure out how to do this. On a side note, I have a rooted Galaxy S2 running WajkIUI ROM.

Thanks in advance and apologies if this has been addressed previously.