Saturday 16 July 2016

[Solved] Link2sd "mount warning" fix for all samsungs and android 5.1.1+ stock ROM



Hi.
I suppose every one samsung has the problem "mount warning" generated by Link2sd after installing it for manage second partition on external sd card. You do not have to generate scripts and restart system by Link2sd's own menu option. This solution let to mount second partition auto in boot option.
Thanks to Warre101 for the idea.

If you want to use Link2sd you have to have rooted device. I did it on samsung galaxy tab 4 with stock ROM 5.1.1..

The best application for make all operation is Total Commander (TC).

1. Create subdirectory su.d in directory /system where you store your script in left window of TC.
/system/su.d
2. Set 700 (RWX) permision for new created directory in Propertis TC's menu option .
3. In the right window of TC open directory :
/data/data/com.buak.Link2SD/files/
4. Copy the file init-link2sd.sh from right to left window.
5. Change name of this file in left window (/system/su.d directory) to 11link2sd
6. Copy renamed file back to right window and open it here in Totalcmd-Editor (installed with TC)
7. Remove not needed text , the result should be:

Code:


#!/system/bin/sh
sleep 4
mount -t ext2 -o rw /dev/block/mmcblk1p2 /data/sdext2


8. Write changes and leave editor.
9. Copy changed file back to /system/su.d (left window). Overwrite existing file.
10. Set 700 (RWX) permision for this file . /system/su.d/11link2sd

Each boot of your device new created script will mount partition needed be Link2sd for manage second partition on your external sd card.



No comments:

Post a Comment