yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Lokatoor1:
Hello, I have been using Link2SD for a while now, I currently have 3 questions that I haven't found anywhere:

1. How do I see how much space is left on 2nd partition?

2. Can I add more space to 2nd partition without having to format the whole SD card?

3. How to delete files from 2nd partition of SD card?

Thank you! :D
[Android Apps and Games] xdarthanonx:
Link2SD > ⋮ > Storage Info

Yes, but you may need to delete the ext partition before resizing it

Use a root file explorer
[Android Apps and Games] Malfix:
Sorry I took so long to respond, was busy, but this was the output of that command:
[Android Apps and Games] xdarthanonx:
Okay, nothing anomalous there. Do this:

su
ls -al /data/data/com.buak.Link2SD/files
[Android Apps and Games] Lokatoor1:
Thank you so much!

I downloaded the root file explorer but how do I access the 2nd partition from there.
[Android Apps and Games] xdarthanonx:
/data/sdext2
[Android Apps and Games] Lokatoor1:
Thank you!
[Android Apps and Games] Malfix:
here...
[Android Apps and Games] xdarthanonx:
Now:

md5 /data/data/com.buak.Link2SD/files/sdcard.bin
[Android Apps and Games] Malfix:
Sorry I've been taking so long on responding, I've been busy, but this was the output:
[Android Apps and Games] xdarthanonx:
Now:

ls -l /system/bin/sdcard
[Android Apps and Games] Malfix:
Here:
[Android Apps and Games] xdarthanonx:
Wrong screenshot.
[Android Apps and Games] Malfix:
Oops, my bad, here:
[Android Apps and Games] xdarthanonx:
Back up original "sdcard" binary:

mount -o remount,rw /system
cp /system/bin/sdcard /system/bin/sdcard.original.pre-link2sd
mount -o remount,ro /system
[Android Apps and Games] Malfix:
Does each line in your code instruction represent a different command?
[Android Apps and Games] xdarthanonx:
Yes.
[Android Apps and Games] Malfix:
All right, did that, what else?
[Android Apps and Games] xdarthanonx:
Now replace "sdcard" binary:

mount -o remount,rw /system
cp /data/data/com.buak.Link2SD/files/sdcard.bin /system/bin/sdcard
chown root:shell /system/bin/sdcard
chmod 755 /system/bin/sdcard
mount -o remount,ro /system
[Android Apps and Games] sniper0:
hello, i have a problem with my Huawei GT3 (/Honor 5c / NMO-L31) (Rom build: NMO-L31C432B355 Emui 5, Android 7)

i have a second partition (tried ext2, ext4) and a first partition with fat. my sd mount point is /storage/01D3FDDA8F090FF0

link2sd says "second partition not found: device not found"

can i use link2sd on my phone or i cant? help me please :(
[Android Apps and Games] Malfix:
Ok, so I started typing in the commands you showed me, but I got this message after typing in

cp /data/data/com.buak.Link2SD/files/sdcard.bin /system/bin/sdcard

: "Text file busy" The same exact error message I get when I try to link obb files to external SD through link2SD. Did I do anything wrong? These are the commands I typed in:
[Android Apps and Games] xdarthanonx:
Okay, try this:

mount -o remount,rw /system
cp [highlight]-f[/highlight] /data/data/com.buak.Link2SD/files/sdcard.bin /system/bin/sdcard
chown root:shell /system/bin/sdcard
chmod 755 /system/bin/sdcard
mount -o remount,ro /system

More info: https://helpful.knobs-dials.com/index.php/Text_file_busy

If that works:

reboot
[Android Apps and Games] Malfix:
I did all that, but then the last command I entered,

mount -o remount,ro /system

came up with this error message: "Device or resource busy"
[Android Apps and Games] Malfix:
Hm, that picture didn't send right, this is the image:
[Android Apps and Games] xdarthanonx:
It should be fine to reboot anyway; the system partition will get mounted as read-only at boot.
[Android Apps and Games] Malfix:
Ok, I rebooted it, should I check to see if that fixed it? Or are there more steps?
[Android Apps and Games] xdarthanonx:
Go ahead and check it.
[Android Apps and Games] Malfix:
Hey! it worked! Thanks so much for sticking with me for so long, when I was wasting so much time taking so long to respond, seriously man, you've made my year.
[Android Apps and Games] xdarthanonx:
You're welcome :good:
[Android Apps and Games] Rayaldi:
hi there, I've been Link2SD for months now, and I'm happy with it until one of my new games linked to the 2nd partition show only black on some of its image.

I tried copying the file from another phone to see if its corrupted but still showing black image. I noticed there's no image thumbnail on 2nd partition, and then I tried copying some random image from my phone to the 2nd partition and it only showed corrupted image logo when I click on it. First, I used ext4 format then now I use ext2, but it still showing the same issue.

My question is, is it just the nature of 2nd partition or something wrong with my phone? Maybe the mount script?

Thx.
[Android Apps and Games] unRevealed:
What should I set my second partition (ext2, the one for apps) up as in the Android Pie, phone storage or portable storage?

I tried Phone Storage, but it makes my sd card "adoptable" and then combined both of my sd card partitions.

I tried Portable Storage. It could only my 1st partition (with storage size cut, which means it didn't combine the partitions like Phone Storage did), but my file managers and link2sd couldn't read my 2nd partition.

So what should I do? Currently I reverted my SD card back to normal and only have 1 partition in the card.

I use Xiaomi Redmi 4X and the latest Arrow v9.0 custom ROM.
[Android Apps and Games] pppppp:
(on i9500 with custom lollipop) Most probably you already know and discussed this case for the problem. On booting, I had the notification:

After quick reboot the mount was ok, so it wasn't a partition error.

To check i did have init.d support on my custom rom I ran the excellent tool

https://xdaforums.com/showthread.php?t=1933849 universal init.d

Which had a positive result (you can also use magisk option or the universal injector. w/e floats your boat)

But there was no link2sd script in /etc/init.d/ so I assumed the program was having trouble generating it

I pulled the script from a working device

#!/system/bin/sh
#added by link2sd
LOG=/data/link2sd-11link2sd.log
echo "$(date) mounting..." > $LOG
sleep 2
mount -t ext4 -o rw,noatime /dev/block/[B]mmcblk0p2 [/B]/data/sdext2 1>>$LOG 2>>$LOG
mount -t ext4 -o rw,noatime /dev/block/vold/[B]179:2 [/B]/data/sdext2 1>>$LOG 2>>$LOG
mount >> $LOG
chmod 773 /data/dalvik-cache

OBVIOUSLY you have to replace the device and partition identifiers to corresponding values for your device. Check the files /proc/devices and /proc/partitions

First check the file "devices", mmc suggests "memory card", so try to look for the number listed before "mmc" or whatever other thing looks suspicious (179 mmc in my case)

Now go to "partitions" file. There are serveral devices listed, but one of them, 179 again, has TWO PARTITIONS. You are supposed to have your memory card with two partitions for link2sd to work, so this one is the correct one. and it is the second partition because that's how you are supposed to do the external partition from the start. Also, the long number is the partition size, it has to match.

OK, I am left with 179 10 16220160 mmcblk1p2 (from the "partitions" file)

For my device, in the link2sd script there must be in etc/init.d/ I'll replace:

/dev/block/vold/179:2 **with** /dev/block/vold/179:10

and

/dev/block/mmcblk0p2 **with** /dev/block/mmcblk1p2

I named this script 11link2sd (without an extension)

permissions are rwxrwxrwx (I dont think they are important)

owner is root

I make sure /data/ext2 folder exists in my android device

That's it. Now I reboot the device and it is mounting the partition upon the first boot, no warning notification, no need to quickreboot.
[Android Apps and Games] poohhbearr:
Write error: I am getting "no space left on device"

Bought a 128gb to go bigger. Prior MSD had 15gb used on ext2, filled it completely. Why am I getting disk full with 23.68gb free? Tried ext2 and ext4. Ext4 kept giving me" bad sd card" on boot. Previous card had a small partition in between fat32 and ext2. Had to add a small partition to get this card to work.

Help please! Old phone, but great phone, waiting for something better so I need this extra space.

Samsung green card, note 4, dtux 9.0, Android 6.01
[Android Apps and Games] MUH AZIZ:
Anyone knows please help

I have been using link2sd for quite some time now. When I reboot my phone all my linked data, app data, obb, lib, and many files were gone. And then when I do the "recreate mount script" it says that 'second partition not found'. I have been using the 2nd partition for long so why is this happen?

Any advice, suggestion and solution is welcome.

Thank you.
[Android Apps and Games] adrianyujs:
Maybe memory card faulty. U try take out and read in windows?
[Android Apps and Games] MUH AZIZ:
I only using it on phone

I didn't take out my sd from phone, it happen when I reboot. Ussually it just end with me doing recreate mount link, but now it isnt. I dont really know what exactly happen, but all the data on 2nd partition is not visible from storage info on link2sd.

Thanks for answering my question!:)
[Android Apps and Games] adrianyujs:
For my case I also never take out the card, it's just suddenly failed to write, but able to read. Then I put in windows memory card reader it's hang.. Try to format no response.

Then put back to phone it can be read only but not able to write, using phone to format its state successful but data still remain inside...

My memory card is micro SD which doesn't have switch to write protect.

At the end I throw away since it's became faulty.
[Android Apps and Games] MUH AZIZ:
Well, if possible I want a solution which can solve my problem without switching, and formatting. There is still many data that I want to use after all:)

Also, this problem makes a lot of my data, even root become erased. If I am not mistaken, before this happen I have linked lot of data, possibly also magisk manager too(I'm using this for root permission).

That is why, anyone please help!
[Android Apps and Games] godofsalt:
Hey there..... Believe me, I love Link2SD!

I don't know all that facts, but, prior to install might be an issue! Depending on what system did you test the card, if at all. (With that, what was used to do the Partitions, - could have it read only)

Would highly suggest that you dont link Apps like Magisk (Seeing how and what it does, would not link that one at all)

Another thought, Why Ext2? Ext4 is a bit better, and does the Journaling, which help to keep the data on the card plus that's what I use!

Can say, on some of the newer builds, (Oero, Pie) can be a real pain to get working.

Sorry to actually tell you this but you might have to start over! I would. Could be that all the Partitions Id's has changed, so it's looking for XYZ-123, and your new cards shows ABCD-1234, for example.

Been there done that... It's sucks. However, I would be looking at doing it all over. Yep having to do all that really sucks, but like the ID's, it has to be done.

Plus, don't link apps like Magisk.

Might be able to use Apps2SD,... Maybe, if lucky, you might be able to keep the data.... Again, if Lucky!!
[Android Apps and Games] MUH AZIZ:
Hi!

Yeah, I guess I didn't think it through before doing anything with link2sd. It work just fine until recently though. If possible I wanted to know why did linked data to the sd card been undetected. Sometimes link2sd's data become unlinked, so maybe there is a problem in there, or so I though. Also, I don't really know if linking magisk could make my root permission gone. Guess I need to root my phone again :laugh::laugh::laugh:

Anyway, thanks for telling this. I will be more carefull with my action from now on. Carelesness is a poison.

Right, I am wondering if I can link my data that has been linked with a lot of application again with link2sd, because I have been using link2sd before all my data (root permission included) been unlinked on its own. Because the data is still in sd card right? so, could it be possible to link with all those data again?
[Android Apps and Games] godofsalt:
Hey there....

Ok again, do not link or force to SD card, Magisk as well as any sort of Kernal "Tweaking" Apps. Honest I forget the actually "Why". I know that rule has been around for a couple of years....

As far as Linking data and such. Once in Link2SD app, (on Left side) press the icon on the upper left side. That is the place for many Commands, such as "Re-link" apps, data, and more.

If it was me, I would flash Magisk. Check in there, you might just need to toggle the scripts, for installing apps and there data.

Might just be that....
[Android Apps and Games] MUH AZIZ:
SOLVED!

Hey godofsalt!

My problem doesn't seems that complicated. I just tried ro root again my phone, and, Yeah!! All is back now just like before!!

Thanxs for advice, must be very carefull now.
[Android Apps and Games] doctor-who:
I don't have init.d support using stock rooted rom and 2nd partition created on pc with microtool partition wizard as ext4 works perfectly even on class 4 sd card
[Android Apps and Games] systemcrasher3:
Link2SD APPs Disappeared !!!!

Linked some apps to the Second Partition(EXT4) . (not play store or play services) just whatsapp and maps and some non system apps.

they started to crash after some time when away from the phone until i reboot and it works again.

left the phone for awhile ...opened it started crashing again even non linked app like messages and it(by it self) rebooted it, now the apps(that was linked) are gone !!!,but Link2SD shows they are taking Space from the Second Partition .

I tried relinking lib and dex and app and external and recreate mount but still no luck, and tried quick rebooting.

The microsd card is a

New

32GB EVO+ Samsung .

Any Help is appreciated .(looks like other similar threads gone unanswered ).

Edit: i tried installing whatsapp and linking in hopes of suddenly detecting all the other apps but was no use:rolleyes:

Can anybody show me a way (Other than Link2SD if it doesn't work again) to make use of my 2nd partiotion ?
[Android Apps and Games] DroidJP:
Hi

Just want to say i really love link2sd. This app is pretty simple and does what i needed to do. However, lately i been noticing a weird odd glitch with the app.

The glitch i have noticed is when it comes to reclaiming storage space once an app has been uninstalled from system rom.

As we all know, system rom only has a little bit of free space, so every MB in this partition counts. So anyways, when you remove a system app from rom (especially if you have converted a app as system) the app is uninstalled but the free space is not reclaimed.

So basically, the app that was just uninstalled, it is still occupying storage in system. The only way to fix this is to reflash the rom to reclaim free space.

Has development of link2sd stopped? There hasn't been an update for quite some time now and there are bugs that needs to be squashed. I even went link2sd plus as it is an amazing app and would love to see an update to link2sd

Great job for this amazing app, keep it up![emoji106][emoji106]
[Android Apps and Games] AntonioKi:
Hello

Please help me solve this problem

Without permissive, my phone doesn't see the second section, but if i include permissive, in magisk, safetynet does not pass the test :(

Tell me how to be in my situation :confused:

Asus ZenFone 2 Laser ZE500KL

model - ASUS_Z00ED

version Android - 6.0.1 (Marshmallow)

Firmware - WW_Phone-13.1010.1612.53-20170202
[Android Apps and Games] valyta2:
Hello, tell me will support android 10?

Can't uninstall system apps..

Says failure to mount:/system not in/proc/mounts
[Android Apps and Games] vivekpf:
Amazing app

So useful back then when i had 16gb phone!

Still have on my poco 128 for launching hidden apps, system app removing and boot widget

Thanks to devs who made this :)
[Android Apps and Games] RangoX:
Hi, I'm having a problem with Link2SD, maybe some of you might help?

Cause:

I had a bunch of apps in the ext2 partition of 16GB SDcard and I decided to move to a 64GB SDcard. I formatted the new one, copied the contents, inserted the new card and... apps didn't work.

So, I re-formatted and inserted the card blank. Recreated mount point, deleted cache, dalvik, etc etc.

Issue:

Now I had to install the apps that I had in the old card, but the first time I attempt to install an app (and link it with L2SD) it doesn't work, it force closes. I have to uninstall and reinstall every app and now it links properly and works.

I suppose some leftover files in my system are conflicting with the new apps I'm trying to reinstall and such conflict solves with the second reinstallation, but I don't know where to go from there.

Do you have any idea?
[Android Apps and Games] rakesh.aggarwal:
Unable to uninstalll anyting getting error cannot link executable "cmd": "/vendor/lib/libbinder.so" is 32-bit instead of 64-bit

Miui 11, Android P

---------- Post added at 09:43 AM ---------- Previous post was at 09:43 AM ----------

Unable to uninstalll anyting getting error "cannot link executable "cmd": "/vendor/lib/libbinder.so" is 32-bit instead of 64-bit"

Miui 11, Android P
[Android Apps and Games] ElusiveZatchmo:
I'm having some trouble with the mounting script not mounting at boot with my Xperia Ultra XA. I've tried recreating the mount scripts and have the latest version installed, but I still get the mount error and the only thing that's working right now is to quick reboot after every hard boot. I'm open to anything anyone can suggest. Thanks
[Android Apps and Games] casouzaj:
I suggest you try the Folder Mount feature of the app App2SD, by Vicky Bonick, from the Play Store.
[Android Apps and Games] ElusiveZatchmo:
I'm familiar with App2SD, but I'm not familiar with folder mounting? How exactly do I do that?
[Android Apps and Games] RangoX:
Guys, is there any way to force mount (manually mount) the SD card with Link2SD or App2SD (or any other way)? Every time I have to restart my cellphone, I have to do it several times (even up to ten times) until the system recognises the SD card by itself.

Thanks!
[Android Apps and Games] casouzaj:
There's a Folder Mount item in the main page. As you progress there, click on the Folder icons (to the right) to select the folder pair you wish to bind.At the end, save the pair setup.
[Android Apps and Games] ElusiveZatchmo:
Does this require the 2nd partition to work or is it its own thing?
[Android Apps and Games] casouzaj:
No, it doesn't. You just link/bind a folder in the internal storage to another one in the SD card (I use the same folder name).
[Android Apps and Games] ElusiveZatchmo:
Neat, does it work similar to linking to the 2nd partition? I'm hoping for the same results with freed space on the internal storage atm.
[Android Apps and Games] casouzaj:
Yes, except that it doesn't require a specific partition.
[Android Apps and Games] ElusiveZatchmo:
Awesome, I'll give it a go. Is there more than one folder per app I should look for?
[Android Apps and Games] casouzaj:
For me, the most obvious big folder is the WhatsApp one. You could check the Folder Mount (app analyser) item too. It will present a list of folders per each app for you to decide which ones to bind.

Well, I used App2SD for a long time, but some time ago I decided to split my SD card in a way that half of it became adoptable storage (the internal memory contents automatically moved to the adoptable storage), and the other half as the actual external SD card.
[Android Apps and Games] ElusiveZatchmo:
Awesome. Thansk again.
[Android Apps and Games] casouzaj:
I have editied my last post. Take a look, if you wish!
[Android Apps and Games] DarkD3v1L:
Same to me, in all roms of pocophone android 10 same, i am trying to convert an application to the system, and I always get that error.
[Android Apps and Games] RangoX:
Hi, I have a strange problem with my SD card.

It is partitioned with Mini Partition Tool, 2 partitions (FAT32 and ext2). Suddenly Android doesn't recognize the SD card. When I try to mount it manually (via Storage menu where it does appear listed) it says the card is corrupted (however, when I plug the card in Windows no problem arises).

Despite all this, Link2SD is working and the ext2 partition apparently works well, every app being linked normally.

My question is, is there a way to solve this? Otherwise, can I link the camera folder DCIM to the ext2 partition (since photos and videos take the most space)?

Thank you!
[Android Apps and Games] cheeklitched:
After setting up a second partition and installing Link2SD my music player can no longer see the SD card. The music player is PlayerPro on Sony Xperia with Android 9. Any idea how to fix? The SD card is formatted as FAT32.
[Android Apps and Games] malc_b:
[FIX] Vodafone Smart Prime 6

Eventually got Link2SD working on Vodafone Smart Prime 6 so I thought I would share this.

I used a raspbery pi to create the 2nd partition in ext4. I used parted and mkfs. Long story short, issue with Link2SD was phone system was read only so (I assume) Link2SD trying to copy /data/data/com.buak/Link2SD/files/init-link2sd.sh to /etc/install-recovery.sh failed. Solution is install terminal such as Android Terminal Emulator, then do

mount -o rw,remount /system

to remount system as read/write. Then I copied init-link2sd.sh to install-recovery.sh (there was no install-recovery.sh so I didn't need to add the lines) and checked that this had copied ok. Reboot and Link2SD now see 2nd partition ok.

In hindsight it would have been simpler just to make /system rw and then tell Link2SD to recreate mount script which I think should do the same as my copy and would have saved me a lot of one finger typing on the tiny phone keyboard.

Update:

Needed to repeat the procedure on a Vodafone Smart Mini 7. This was running android 6 and the above didn't work. I eventually fixed it with a script in /data/adb/service.d (see here as I used Magisk with SP Tool to root the phone. This script was a cut down version of init-link2sd.sh, just keeping the 1st mount line and the chmod line. Also removed the redirects to $LOG which I think were causing issues (at least when I tried to run init-link2d from su in shell). The mount ../vold/... line did not work either but link2sd doesn't seem to need that to function. I don't think vold creates and entry for sdext2 partition.
[Android Apps and Games] ElijahZAwesome:
Not sure where else to ask this, I'm getting tons of issues trying to make a second partition for Link2SD on my Moto G7 Power running MSM XTended for Android 10. If I use FAT32 I get errors that it can't mount the vold/public thing (im sorry I can't give exact errors right now), if I use Ext2/3/4 I get [3]: can't create /system/etc/init.d/11link2sd: read-only filesysten. I tried create the boot script myself but it doesnt change anything (init.d support is working as far as i can tell.) I tried mounting / as read-write which didnt fix it (mounting /system doesnt work on this phone for whatever reason).
[Android Apps and Games] giuliolunati:
Android 10 -- Auto mount 2nd partition

This worked for LINEAGEOS 17, hope can help:

In terminal, as root:

mount / -o remount,rw
cat > /etc/init/link2sd.rc << EOF
on post-fs-data
mkdir /data/sdext2 0770 root root
mount ext3 /dev/block/mmcblk1p2 /data/sdext2
EOF
[Android Apps and Games] jcruzcruz35:
? Pocophone F1 MIUI 11 Android Q
[Android Apps and Games] jcruzcruz35:
I just updated my Room trough TWRP, may that be the cause?
[Android Apps and Games] giuliolunati:
Try

mount /system -o remount,rw

Please send the output of

mount
[Android Apps and Games] jcruzcruz35:
Not sure if I'm doing this right
[Android Apps and Games] giuliolunati:
Uhm... retry

mount / -o remount,rw

Then please post again

mount

output
[Android Apps and Games] jcruzcruz35:
After typing mount code I get a LOT lines of code, you need all of them?
[Android Apps and Games] Sammy1275:
Link2SD Plus

License not working.

I buyed Link2SD Plus on my Xperia Pro with GB years ago.

Now i updated it to ICS 4.0.4 and use the same google account.

I can download link2sd plus from playstore cause i already buyed it.

But when i start it, the app can not verfiy a license.

Are the servers down ? or did the app only work on newer phones ?