yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] MongooseHelix:
If /data/sdext2 already has something mounted or bound to it, Link2SD "sees" something there and therefore won't create any scripts because that's all it's checking for. Even when I hadn't bound /sd-ext to /data/sdext2 yet and ran the app, it wasn't recognizing that I had a 2nd partition so it didn't create any scripts then either since it didn't know what to try and mount.
[Android Apps and Games] MongooseHelix:
Is the 2nd partition of your sd card mounted? Can you post the output you get from these two commands:

mount

ls /dev/block/vold
[Android Apps and Games] micun:
Hi. Thank you for replay. Sorry but i dont know how to mount 2nd partition or check that commands. Can you tell me how? thanx
[Android Apps and Games] MongooseHelix:
The easiest way for you is probably to download Android Terminal Emulator from the market. You can then use it to run the commands and see the output.
[Android Apps and Games] chiefcook:
help

guys help,i cannot make 2nd partition on my 2gb sd card,this is what i did

i downloaded minitool partition wizard and installed it.

i connected my phone to the computer and selected "file transfer"

then i opened the minitool partition wizard,the i selected my sdcard driver

deleted it then i created new partition,then i selected "PRIMARY" -> "FAT" i also tried "FAT32" on my 2nd attemp then "ok" then i resized it then created a new partition -> "ext2" also tried "ext3 on my other attemp then "ok" then i applied it but after that a message pop out saying it was success etc... but after than on my DISK it still show "FAT32" it's like it just returned to default,then i disconnected it and reboot my phone then i run link2sd but still it saying no 2nd partition,can anyone give me a step by step guide to make 2nd partition on my 2gbsdcard please :confused:
[Android Apps and Games] MongooseHelix:
Could you also run the two commands from this post. You can use the app I linked to here if you like.
[Android Apps and Games] chiefcook:
This is the result:

179:17

179:16

179:3

179:2

179:1

179:0

But how could this help me make 2nd partion?
[Android Apps and Games] pico.marco:
I have not tried more.. Any news on Galaxy Ace?
[Android Apps and Games] MongooseHelix:
Instead of doing more partitioning right off, I wanted to see how many partitions you had on your sd card. That list represents those partitions since vold(volume daemon) deals with removable media. You can think of 179:0 as the entire sd card, with 179:1 being the first partition which should be what gets mounted to /sdcard, 179:2 is the second partition and so on. Therefore, it looks as though you actually have multiple partitions on your card.

I wonder if any of those are getting mounted besides 179:1. Run the command "mount" without the quotes and see what, if any, in the output contains either "/dev/block/vold/179:#" or "/dev/block/mmcblk#p#". If you are using the terminal emulator it won't be the easiest to post it all here but if you run the command, you can then hit the menu button and select the "email to" option to get an email with the output.
[Android Apps and Games] fabricioemmerick:
Hello friends I have a question? If for example I buy another memory card and want to transfer everything larger of the two partitions of the memory card in this table as I do not have problem with Link2sd? Another question how to make a backup of both partitions? Thanks
[Android Apps and Games] bakpinar:
Did you execute the commands in the post # 1176.

Your second partition does not get mounted automatically.
[Android Apps and Games] nikctsh:
For me i copy all of the files in current sdext2 to the new sdcard , then copy again to sdext2 of my new sdcard . Finally , fix it permission exactly like the initial one and roboot .
[Android Apps and Games] pico.marco:
I tried it (see previous post) but does not work, even inserting the command in memsicd, it not mount second partition at boot. I don't know why. Seems to work only if I execute install-recovery.sh manually.

A question: in my init.rc the row

#service flash_recovery /system/etc/install-recovery.sh

is commentend, it is not possible to change that?
[Android Apps and Games] 2ma:
yes I did,but it didn't work.
[Android Apps and Games] steveruthless:
perfectly work on my x10 2.1 eclair origin stock rom.now i have 270mb free internal memory..thanks everyone who make this perfect.
[Android Apps and Games] bakpinar:
Can you post the outputs?

ls -l /system/bin

cat /system/bin/memsicd
[Android Apps and Games] boardlord:
Hi!

Still loving the app, one small gripe:

I do a fair amount of flashing, so I often restore nandroid backups of wokring system images. However, if I restore a nand backup, the .dex file de-link, I have manually link them again (the apk itself and the lib file stay linked)... Thanks!
[Android Apps and Games] bakpinar:
Older versions of Link2SD had this feature, but it does not exist in the 1.6.0.

I will add it back to the next release (1.6.1).
[Android Apps and Games] smg72523889:
Link2SD doesn't work with joestone's 2.3.2 :(
[Android Apps and Games] danceswithbongs:
For anyone finding apps that they have linked missing from drawer after reboot, it just needs more time to recognize all the apps. The more apps, the more time and of on GB, might need longer as apps now unpack lib files after reboot. That is also why on gingerbread you can't link lib files.

When you find apps are missing, do a hot reboot and allow the phone a little more time to recognize all the apps on the ext partition.

Almighty1

Have you tried either autostarts or autorun manager? Give those a shot, I know at least one is free on market.

walkin the walk while tappin the talk

danceswithbongs
[Android Apps and Games] Almighty1:
There is only one problem with those instructions, unless you are able to have 2 SD Cards, the old and the new in the device at the same time as devices usually have only one SD Card slot, that won't be possible since you would have to copy the old sdcard to the computer and then from the computer to the new sdcard.
[Android Apps and Games] Almighty1:
Haven't tried those, the first one is $1.00 and the second one has a donate version. Will give them a shot but do you know which one is technically better?

Also, root explorer v2.15 on May 2, 2011 added the following which was what I suggested to them, only the first two:

What's in this version:

New change owner function. Allows owner and group to be changed for files and folders. Accessible from context menu.

Added special permissions (Set UID, Set GID, Sticky bit) to permissions dialog.

Respect "Show friendly file sizes" preference when displaying size in properties dialog.
[Android Apps and Games] enotar:
Just to let you know that thanks to Aino we have now Link2sd works with internal NAND on X5A instead of using SD card without any issue.

This is fantastic as this is the best use for this internal storage that almost nobody use.

Link2sd is the best software for Android.............................
[Android Apps and Games] wm.puig:
I've been reading this thread on and off throughout the day while trying to get Link2SD working on my APAD, a rooted Apad710 (Rockchip2818 CPU) with resistive screen. I've been truly amazed by the spirit of community here over the last couple of months, and by the wonderful level of support bakpinar has offered for this useful app.

I've gotten close to getting Link2SD working, but am not quite there yet, and am hoping someone can see what I'm doing wrong and help get me over the top. Here's what's I've done in a nutshell:

1) I created the second partiton on my SDcard (a 16GB model) using MiniTool. Both partitions on the card are primary. I've tried the partition as both ext2 and as FAT32; I'll pursue further discussion below using my FAT32 setup, but I did test with both.

2) I then installed Link2SD on my tablet. Link2SD could not install the /data/sdext2 directory or the /system/etc/install-recovery.sh script, so I did these manually using Root Explorer and adb. My install-recovery.sh script contains the following mount command:

mount -t vfat /dev/block/mmcblk0p2 /data/sdext2

3) When I start Link2SD, the infamous dialog box/error message saying that the 2nd partition on the SDCard could not be found, indicating that the mount command in the install-recovery.sh script (or, perhaps more likely, the script itself) isn't being executed.

4) Manually running the mount command will allow me to start Link2SD successfully and move apps to the SDCard's 2nd partition (I've verified this using MiniTool after the fact). These apps will "disappear" following a reboot of the tablet, though.

Bakpinar, if you're out there and see this, your help will be appreciated on ideas of where to go next. I'll be happy to get you outputs of whatever commands you think will be helpful to troubleshoot. (Of course, others are welcome to help too.)

Thanks very much,

Bill
[Android Apps and Games] enotar:
did you try this in your install-recovery.sh :

#!/system/bin/sh

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

instead of :

mount -t vfat /dev/block/mmcblk0p2 /data/sdext2
[Android Apps and Games] wm.puig:
just tried now ...

... but no luck - Link2SD still complains that it can't see the second patition on the SDCard. I'm suspicious that the install-recovery script either isn't being invoked, or is failing in some way.
[Android Apps and Games] MongooseHelix:
Try this code in the install-recovery script:

mount -t vfat /dev/block/mmcblk0p2 /data/sdext2
if [ "$?" = 0 ]; then
log -p i -t link2sd "successfully mounted 2nd part";
else
log -p e -t link2sd "unable to mount 2nd part";
fi

The if statement is catching the return code of the mount command. So after you've modified install-recovery, reboot and run logcat to see which of those two shows up in the log. If it is unable to mount, comment out or remove the if-else block and just have install-recovery run the mount command using logwrapper to direct the error output to the log which you should be able to see with logcat.

logwrapper busybox mount -t vfat /dev/block/mmcblk0p2 /data/sdext2
[Android Apps and Games] nikctsh:
maybe i should explain more briefly :

1) Insert old sdcard , copy the sdext2 to sdcard directory using bluetooth file transfer on phone .

2) Connect to pc , move the sdext2 file to new sdcard .

3) Insert new sdcard , copy the sdext2 in new sdcard directory to sdext2 of the new sdcard using bluetooth file transfer on phone .

4) Fix permission with root explorer and done
[Android Apps and Games] wm.puig:
nothing yet ...

Thanks for the assist, MongooseHelix. Neither of the messages is being written to the log, which (in my mind, anyway) is confirming that install-recovery.sh isn't being called. Where else might I be able to insert the commands to mount the second partition?
[Android Apps and Games] MongooseHelix:
Ah yes, for some reason I didn't even think about it not running at all. To confirm, you can check the /init.rc file which will either have install-recovery commented out or just not there at all. If the directory /etc/init.d exists, you could create or modify a script there since they should be run a boot. It won't do you any good to create init.d if it isn't there already as that means it's not supported. Finding what other scripts run at boot that can be modified without having to unpack, edit, repack, and flash the boot.img might be tricky. You might want to attach your init.rc file here so we can help you look and see if another script is run that could work.
[Android Apps and Games] wm.puig:
no /init.rc, but ...

Thanks for the quick reply, much appreciated. (This conversation is bringing back my days as a *nix sysadmin ... :) )

My machine doesn't contain an /etc/init.d directory, and doesn't contain an /init.rc file per se. It does, however, contain two files, /init.rk28board.rc and /init.goldfish.rc, that look to be doing the job of a traditional /init.rc. I'm attaching both files here. Let me know what you think, but my guess is that I'll need to tweak one of these files to install the mount command ...
[Android Apps and Games] wm.puig:
the answer may be in /init/goldfish.rc

Upon further inspection, it looks the file /init.goldfish.rc provides a possible answer. This rc file contains code to kick off several commands in a subshell:

service goldfish-setup /system/etc/init.goldfish.sh

oneshot​

... so maybe adding the mount command to that Shell script will do the trick :)
[Android Apps and Games] wm.puig:
no soap

Unfortunately, this didn't work - the second partition is not mounting, and Link2SD complains upon my starting the app (understandably) that it can't find it.

Comtemplating the next move ... ideas are welcome.
[Android Apps and Games] Almighty1:
That seems to be the long way of doing it. The better way is to simply:

1) Goto terminal and su to root

2) cd / ; tar cfvo /sdcard/sdext2.tar /data/sdext2

3) Connect to pc, copy the sdext2.tar file to the new sdcard's root directory

4) Insert new sdcard, repeat #1 above

5) cd / ; tar xfvo /sdcard/sdext2.tar

Permissions are already correct as tar will save the permissions. Not sure if the z (gzip) compression flag is supported by android or not as one can change to cfvoz and xfvoz.
[Android Apps and Games] mohsin2cool:
force closes

im facing force closes of applications...after linking....

dnt know wts the issue.. i had to reinstall each n every appl to work properly....

kindly help some one

im on a customised rom for galaxy 3 i5801

regards
[Android Apps and Games] MongooseHelix:
I didn't see anything in the init files worthwhile besides noticing that install-recovery was commented out. You could look into modifying /etc/vold.fstab if your tablet is running froyo or greater. 2.1 and below uses vold.conf which is now deprecated since it couldn't mount multiple partitions.
[Android Apps and Games] wm.puig:
options, options

Thanks for the tips. I'll try uncommenting the install-recovery line in init.rk28board.rc to see if that changes anything. The tablet runs Froyo (a hacked-up version in which App2SD support doesn't function - which is why getting Link2SD working is important to me!), so I have an /etc/vold.fstab file in place with that; I'll post that and begin looking at that approach if the init mod doesn't work.
[Android Apps and Games] wm.puig:
update

UPDATE: I'm not having any luck reinstalling the init file, as it's in the root directory which is r/o. The /etc/vold.fstab file from my tablet is attached.

Many thanks for the help!
[Android Apps and Games] MongooseHelix:
Modifying init.rk28board.rc won't do much good because it gets overwritten on each boot as it's part of the boot.img.
[Android Apps and Games] wm.puig:
Ohhhh ...

Thanks - I (obviously) didn't realize that! I guess patching the fstab is the only real option then.
[Android Apps and Games] MongooseHelix:
Looking at your vold.fstab, I would try adding the following line after the other dev_mount sdcard line:

dev_mount sdcard /data/sdext2 2 /devices/platform/rk28_sdmmc0/mmc_host/mmc0
[Android Apps and Games] wm.puig:
Hmmmm

Thanks, just tested this now. Unfortunately, this is a no-go too.

I'll continue to look into other options, and please feel free to share if you have other ideas as well. I've really appreciated your willingness to help!
[Android Apps and Games] MongooseHelix:
One thing I forgot to mention, the /data/sdext2 directory should be created if it doesn't already exist so the partition can be mounted there. Does logcat show what the error is when vold tries to mount it? Not sure if it matters but you could also try changing the label to something else like sdcard2.
[Android Apps and Games] wm.puig:
/data/sdext2 was created early in my testing - remember that I've been able to mount the second partition manually.

I will try changing the label and checking the logcat output on the next go-round (probably tomorrow at this point, my wife's seen very little of me today!).

Thanks!
[Android Apps and Games] bryweb:
G1 Phone - Link2SD "mkdir failed" for "file exist

I have searched Google with Link2SD "mkdir failed" for "file exists" and could not find my answer, with 128 pages here it was difficult but I did try to find an answer.

I am somewhat a Newbie so please try to make your answers simple and complete.

I have a G1 and I tried setting Link2SD up once and Fubar'd my phone trying to make room for the mount script. My /systems folder only had 36K left on it so I had to delete apk's from the /system folder and ended up not having my phone right, so I tried a Hard Reset to reload the factory image and the phone was screwed and could not get past the initial phone setup screen afterwards (I had forced close)

Now after reloading the phone with update.zip and updating to the latest core this is where I am at;

I have a stock 1.6 image that I got root access using "Universal Androot" which seems to be working fine for all other super user needs

BusyBox would not install because it needs 1000KB in /Systems I got BusyBox to Install through Titanium Backup install and going to problems and having it download busybox through it - for soime reason the lack of /system space did not matter then.

I have my SD card partitioned, I having tried in second partition ext3 & now it is ext2 (ext4 will not work with a G1 - I tried) - I used Ubuntu to format it.

I had to delete com.amazon.mp3.apk to make room in my /system folder for the boot script for mounting my second partition have room for Link2SD to create it.

I installed Link2SD the first time and was able to link one program to the SD card, but when I tried the second I got "Create Link Failure - mkdir failed for /data/sdext2/dalvik-cache. File Exists"

After I fubared the phone and reloaded eveything FRESH, I got the same error when I tried to link a second program with Link2SD, so I formatted the partition and tried again - THE FIRST ONE LINKED FINE AGAIN, so I went to do the second Program and I get the SAME ERROR "Create Link Failure - mkdir failed for /data/sdext2/dalvik-cache. File Exists"

Why will my G1 and Link2SD only allow the first program to be linked and the second one gets the "Create Link Failure - mkdir failed for /data/sdext2/dalvik-cache. File Exists" ERROR ??????

I am thinking maybe the BusyBox from the Market would work better, but I don't have room in /system and don't want to risk deleting anything else from there to make room.

OK... Well I just realized the one program that moved over did not work any longer (K9 Mail), I tried launching it from Link2SD and it crashed with a Force Closed, I unlinked it and it is working again.

Thanks,

Bryan
[Android Apps and Games] vertcam9:
In my phone there is a directory /system/T9DB (inside contains T9 dictionary for different languages) what i did is delete (backup in SD) those that i dont need, freed up around 4MB of space.

And /data/dalvik-cache you can delete all entries under this folder. then restart. .DEX files will be re-created but the old ones will not, this should help you free enough space on your phone.

Delete unwanted default ringtones :)
[Android Apps and Games] Vlad9ck:
Hi all!

I have Acer Liquid Metal and official firmware 1.100.36 (Android OS 2.2 Froyo). Link2SD works fine, linking apk-files. But with lib-files I have the same problem like in Android OS 2.3 (my OS is 2.2) - after reboot they are unpacked again to internal storage and also remain in SD-card second partition and links are gone. Re-linking libs helps only till next reboot. Is there any solution to link libs permanently?
[Android Apps and Games] bavarec93:
How can I make root access?

I have LG GT540..
[Android Apps and Games] Quinny899:
Use z4root. Go to filecrop.com and search z4root apk. First download
[Android Apps and Games] TeRRoR:
This question probably already asked multiple times but going thru the thread I could not find an answer.

I was on EVO deck rom and installed all these apps I wanted and used Link2SD to create link and move them to my ext partition.

I have flashed Cyanogen mod and wanted to know if there was a easy way to restore link to this rom instead of reinstalling all the apps again and the relinking them to ext3 partition.

I have root access and have verified all the apps are on sd-ext partition.

Thanks in advance.
[Android Apps and Games] theares2014:
Hey,

i'm using Link2SD since 5 months but I have one GREAT problem.

When i install PowerAMP my SD-ext isn't avaliable any more.

I got a mistake called: create link failure: cannot create /data... thats the last thing and all my Apps a rubbish?

Has anybody the same problem?

Update:

Dunno why but I killed PowerAMP reboot the phone and my app are there.

lol?!
[Android Apps and Games] explorer-10:
does this support 2.3.3+?
[Android Apps and Games] wm.puig:
it's working!

I wasn't able to patch the fstab in a manner to make the partition mount, but I came up with a workaround that does the trick using an app (available from Android Market) called "Autostart (Root)." Autostart's purpose is to read and execute any script it finds at the location "/data/opt/autostart.sh" with root privileges at system boot time. I fired up adb, created the /data/opt directory with chmod = 777, and installed an autostart.sh script (chmod = 755) containing the statement "mount -t ext2 /dev/block/mmcblk0p2 /data/sdext2" there. I then rebooted, and success! the ext2 partition was now mounted.

I then reinstalled Link2SD on my tablet and retested. The app worked fine - I was able to move my test app to the SD card, and run it from the launcher with no problem. But I discovered, upon rebooting my tablet again, that the application's icon was (again) gone from the launcher tray. I discovered that a way to correct this phenomenon was to reinstall the app. In doing so, APK Installer observed the symlink created by Link2SD, and replaced the test app's program files ON THE SD CARD (I verified this via adb), and replaced the app's icon in the tray.

I learned a ton about Android system architecture over the last couple of days from this experience - I've definitely been bitten by the bug! Thanks again, MongooseHelix, for your suggestions and support, I probably wouldn't have hung in there without you.
[Android Apps and Games] MongooseHelix:
Awesome! I had known about the existence of that app but assumed it would mount the partition too late for the linked apps to be accessible but it seems your trick of reinstalling them once linked works. Very glad you got it working and even more so that Android has another fan, tweaker, and maybe a future dev ;). Always happy to help out as I definitely learn along the way as well. I'm actually still curious about being able to mount another partition with vold.fstab so one of these days I'll play around and see if I can get it to work on my phone.
[Android Apps and Games] jrohwer:
OK, just got my new 8 Gb SDHC and made an ext3 partition. This script works perfectly and Link2SD runs like a charm :) Thx!
[Android Apps and Games] pico.marco:
(I have Galaxy Ace with gingerbread)

I tried "Autostart (root)" to launch this script (is install-recovery.sh renamed autostart.sh and moved in data/opt):

#!/system/bin/sh

#added by link2sd

sleep 10

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

mount -t vfat /dev/block/mmcblk0p2 /data/sdext2

It does not always work, just sometimes, I do not know why.

If I launch manually the script autostart.sh (with root explorer) it works always fine and my second partition is mounted.

Any suggestion?

Many thanks.
[Android Apps and Games] Anboy:
Android Market Link2SD, awesome!

bakpinar, sir, I installed your Link2SD today; following your instructions to the letter. Your Link2SD application has worked excellent from the very first restart. I gave you thanks (180) before writing this comment. Android Market Link2SD, awesome!

Edit: Show Screen Shot of Link2SD image.