• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

App2sd link2sd how to show mount view sd card 2nd ext2 partition

kumaranil13k

Well-Known Member
Question :App2sd link2sd how to show mount view 2nd micro sd card ext2 partition

I had loaded twrp recovery (fastboot boot twrprexovery.img) in bootloader mode and installed SU and rooted and then installed app2sd and link2sd apps.

I had partitioned my 64 gb memory card 30gb fat32 and remaining 32 gb. As ext2 and then when I tries to view partitions in android 5.1.1 settings>storage it show only one fat 32 partition in sd. Card and not second sd card for ext2

As I want to install 2nd sd card and from recovery or adb pull take NANDROID image backup
Of second partition backup in cloud and want to see pace and access file system so that I can recover if any thing goes wrong or memory card got corrupted

My queries:-

1. How can I view second partition of external micro sd card partiton through file manager or in setting> storage

2. Can I be mounted In boot.init through any aap

3. App2sd auto created a mount script to run through recovery to mount the ext2 partition how to run it in twrp so I have to run through install

4. How to take NANDROID image backup of system boot recovery internal (userdata partition) and external sdcard 1st and 2nd partitiion and save it in usb drive or cloud storage through adb pull or twrp. Or any other apps how can these files be secured in password or encrypted in cloud

5. As app2sd pro or link2sd plus card link apps and moves lib hex odb files to which files which are randomly access should be not moved to sd card and should be left in internal memory.
 
Apologies in advance if my answers are imprecise or not completely accurate (though I'll try to avoid that), as it's about 8 years since I used any of this stuff.
Question :App2sd link2sd how to show mount view 2nd micro sd card ext2 partition

I had loaded twrp recovery (fastboot boot twrprexovery.img) in bootloader mode and installed SU and rooted and then installed app2sd and link2sd apps.
Why both? Surely you want to use one or the other?
I had partitioned my 64 gb memory card 30gb fat32 and remaining 32 gb. As ext2 and then when I tries to view partitions in android 5.1.1 settings>storage it show only one fat 32 partition in sd. Card and not second sd card for ext2

As I want to install 2nd sd card and from recovery or adb pull take NANDROID image backup
Of second partition backup in cloud and want to see pace and access file system so that I can recover if any thing goes wrong or memory card got corrupted

My queries:-

1. How can I view second partition of external micro sd card partiton through file manager or in setting> storage
The first thing you'll need is to mount the second partition on boot. The phone's operating system doesn't expect there to be a second partition, so won't do that by itself. Fortunately the app you use will create that mount script (as you mention below) and add it to the phone (probably as an init.d script), so you shouldn't need to do anything there.

However, that doesn't mean that your storage settings will recognise it. I honestly don't recall whether it ever showed up there or not, but I suspect not. A file manager capable of using root privileges should be able to look at it though (something like Root Explorer or Solid Explorer), but the built-in one probably won't have that ability. So if you want to have a look around and see what's in the partition you might need to install a capable file manager.
2. Can I be mounted In boot.init through any aap
I don't understand the question. The app you are using for moving stuff to the partition should have added the necessary mount script in the right place and you should not have to do anything. Is the moving of apps working at all? Or perhaps more importantly, if you move apps do they still work after a reboot? If they do then the mount script is working as it should (if they don't then either the app has failed to install it or your operating system doesn't support init scripts, in which case there used to be resources for adding init support to ROMs around the web but I really don't recall much about that as I never had to use them back when I did this stuff).
3. App2sd auto created a mount script to run through recovery to mount the ext2 partition how to run it in twrp so I have to run through install

4. How to take NANDROID image backup of system boot recovery internal (userdata partition) and external sdcard 1st and 2nd partitiion and save it in usb drive or cloud storage through adb pull or twrp. Or any other apps how can these files be secured in password or encrypted in cloud
If the mount script is installed and working you should not have to do anything special to make TWRP include it in a nandroid. I think I remember there being a "mount" setting somewhere in TWRP, but I think that may have been for external drives (e.g. USB memory). You might want to check TWRP's settings and options though.

TWRP can write a nandroid backup directly to a flash drive connected with a USB to MicroUSB adapter (also known as an OTG adapter). I used to do that regularly a few years ago. I never bothered with trying to put backups onto someone else's server (what people call "the cloud").

If you want to encrypt it, copy it to a computer and run your own encryption there. But I'd keep an unencrypted copy on your own hardware somewhere, to be safe.
5. As app2sd pro or link2sd plus card link apps and moves lib hex odb files to which files which are randomly access should be not moved to sd card and should be left in internal memory.
Libraries (lib) should be fine. obb are probably just data storage, so again probably fine. I don't know what "hex" means in this context (any computer file can be read as a bunch of bytes which you can represent as hex characters, so that tells me nothing about what the file is for. Like "bin" it's not a terribly informative file extension.
 
@Hadron bro thanks a lot for details point to point reply and sharing your precious time knowledge opinion suggestion to obliged for ur kind and great opinions and suggestions. Thanks a lot bro.

Apologies in advance if my answers are imprecise or not completely accurate (though I'll try to avoid that), as it's about 8 years since I used any of this stuff.
@Hadron bro nothing to aplogise I can understand I am with old technology and I can understand answers tricks always varies on many aspects mobile device it can't be accurate it's on which one works on which device so nothing to matter bro so it's great for u brother to share ur old experience thanks a.lot bro

Why both? Surely you want to use one or the other?
.

@ Hadron bro yes I want o use one either link2sd or app2sd but link2sd gave error previously I have pasted below but now after creating partition from app2sd it's showing but not able.to.link or move apps the. I .trying which one works I currently using link2sd version 4.3.4 patched by apkmos.com


The first thing you'll need is to mount the second partition on boot. The phone's operating system doesn't expect there to be a second partition, so won't do that by itself. Fortunately the app you use will create that mount script (as you mention below) and add it to the phone (probably as an init.d script), so you shouldn't need to do anything there.
.

@Hadron bro when I created partition from app2sd it flashed a eroor dialog box which said to mount or install a script through recovery in boot.init as its unable to edit boot.init script but I didn't saved the path where the script is locates and how to embed it boot.inir through twrp recovery. For testing i just linked one app to sd card through App2sd it moved linked sucessdully Now on every reboot app2sd gives an error to softboot and recreate mount script which option I could not.able.to find
app2sd eroor booting screenshot


znPN1.png



nhbae.png


when I launch or start link2sd it gives to error for recreating mount script but on recreating it gives following error

link2sd error on recreating mounting script



ttFp9.png




Libraries (lib) should be fine. obb are probably just data storage, so again probably fine. I don't know what "hex" means in this context (any computer file can be read as a bunch of bytes which you can represent as hex characters, so that tells me nothing about what the file is for. Like "bin" it's not a terribly informative file extension.

@Hadron bro I was asking from.folowi g files typo not hex it's dex ODEX apk lib obb cache data which should not be moved or linked and should be kept.in internal memory as external micro sd card are slow and randomly accees files should be kept.in internal.memory for not only this apps but all games.other apps.to.

**types of files to moved app2sd link2sd**

XhJ4W.png



TRZfl.png


kzQnb.png
 
Ah, odex is just a part of the installed app. So it will be updated when the app is updated, but otherwise is not written to. That should be fine to move.

As for that "mount script cannot be created" error, an old discussion of that error at XDA-developers had a very odd solution that seems to have worked for a number of people: tell link2sd that the partition is ext4 rather than ext2! I've no idea whether that would work for you, but it might be worth a shot.
 
I am using Infinix Note 4 nougat with APP2SD and Magisk to link Apps to SD. Make sure you're using an original memory card and you partitioned the card properly with Apartedgpt, Aparted or Partition Tool
 
If you're using magisk systemless root then go to settings of APP2SD , check su.d/post-fs-data.d/service.d and paste this in the box /data/adb/post-fs-data.d/. This is where your APP2SD mount script will stored for execution
Use a file explorer to navigate your ROOT folders, go to data/adb to confirm that's where your magisk is installed. Recreate mount script in APP2SD and then reboot your device. Magisk daemon will help you execute the APP2SD mount script for SD card second partition at every start up or reboot
 
Last edited:
Any sh script kept in /data/adb/post-fs-data.d/ gets executed at device start up by magisk daemon. I set my phones selinux policy to permissive at every reboot by using a file manager to create a blank file, then I edit the file and add this sh commands--

#!/system/bin/sh
setenforce 0

Then I save it as permissive.sh in /data/adb/post-fs-data.d/ with chmod or file permission 755.
 
Mount scripts error in APP2SD or link2SD isn't because of ext2 or ext4 Second partition format. Just make sure you're using an Original SD so that your Second partition wont appear as OTHER but as ext2,ext3 or ext4 format. Download DiskInfo.apk , go to settings of the app and tick all the boxes there so that you can see if your 2 partition is mounted properly on data/sdext2
 
Last edited:
As added bonus , install xposed in your phone and look for XInternalSD xposed module and activate it. This modules allows files and folders of Application to save on Memory card because it forks the process of recognising the SD memory as Internal Memory for Applications.
 
Last edited:
Back
Top Bottom