yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] wstevew:
I created the gparted boot disc, deleted all partitions from the sd, applied changes. then created the FAT32 partition and then the ext4 partition.

recreated the mount script, rebooted the phone, same error

Continue ?mount: mounting /dev/block/vold/179:66 on /data/sdext2 failed: Invalid Argument. a reboot is required.

attempting to remount 2nd

Error! mount: mounting /dev/block/vold/179:66 on /data/sdext2 failed: Invalid Argument.

anything else i can try?
[Android Apps and Games] vickybonick:
Recreate the mount script by selecting file system(no need to format the card) as ext4 then ext3 then ext2 and see if works.
[Android Apps and Games] wstevew:
I just tried recreate mount script for each of the file systems ext4/ext3/ext2 selecting yes to reboot for each, on restart i get the same error.
[Android Apps and Games] vickybonick:
That means it's not formatted properly. Run the below command in terminal emulator
[Android Apps and Games] wstevew:
u0_a80@condor_umts:/ $ su

root@condor_umts:/ # mkfs.ext2 /dev/block/mmcblk1p2

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

448800 inodes, 1792000 blocks

89600 blocks (5%) reserved for the super user

First data block=0

Maximum filesystem blocks=4194304

55 block groups

32768 blocks per group, 32768 fragments per group

8160 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

root@condor_umts:/ #

After this still same problem
[Android Apps and Games] vickybonick:
Run below commands and post the output
[Android Apps and Games] wstevew:
u0_a80@condor_umts:/ $ su

ount -t ext4 -o rw "/dev/block/mmcblk1p2" "/data/sdext2" <

mount: Invalid argument

ount -t ext3 -o rw "/dev/block/mmcblk1p2" "/data/sdext2" <

mount: Invalid argument

ount -t ext2 -o rw "/dev/block/mmcblk1p2" "/data/sdext2" <

mount: Invalid argument

255|root@condor_umts:/ #
[Android Apps and Games] vickybonick:
Send me the output
[Android Apps and Games] wstevew:
u0_a80@condor_umts:/ $ su

root@condor_umts:/ # ls -l /dev/block/mmcblk*

brw------- root root 179, 0 1970-01-01 22:29 mmcblk0

brw------- root root 179, 1 1970-01-01 22:29 mmcblk0p1

brw------- root root 179, 10 1970-01-01 22:29 mmcblk0p10

brw------- root root 179, 11 1970-01-01 22:29 mmcblk0p11

brw------- root root 179, 12 1970-01-01 22:29 mmcblk0p12

brw------- root root 179, 13 1970-01-01 22:29 mmcblk0p13

brw------- root root 179, 14 1970-01-01 22:29 mmcblk0p14

brw------- root system 179, 15 1970-01-01 22:29 mmcblk0p15

brw------- root root 179, 16 1970-01-01 22:29 mmcblk0p16

brw------- root root 179, 17 2016-01-10 23:00 mmcblk0p17

brw------- root root 179, 18 2016-01-10 22:58 mmcblk0p18

brw------- root radio 179, 19 1970-01-01 22:29 mmcblk0p19

brw------- root root 179, 2 1970-01-01 22:29 mmcblk0p2

brw------- root radio 179, 20 1970-01-01 22:29 mmcblk0p20

brw------- root root 179, 21 1970-01-01 22:29 mmcblk0p21

brw------- root root 179, 22 1970-01-01 22:29 mmcblk0p22

brw------- root root 179, 23 1970-01-01 22:29 mmcblk0p23

brw------- root root 179, 24 1970-01-01 22:29 mmcblk0p24

brw------- root mot_dbvc 179, 25 1970-01-01 22:29 mmcblk0p25

brw------- root root 179, 26 1970-01-01 22:29 mmcblk0p26

brw------- root root 179, 27 1970-01-01 22:29 mmcblk0p27

brw------- root mot_tcmd 179, 28 1970-01-01 22:29 mmcblk0p28

brw------- root root 179, 29 1970-01-01 22:29 mmcblk0p29

brw------- root root 179, 3 1970-01-01 22:29 mmcblk0p3

brw------- root root 179, 30 1970-01-01 22:29 mmcblk0p30

brw------- root root 179, 31 1970-01-01 22:29 mmcblk0p31

brw------- root root 259, 0 1970-01-01 22:29 mmcblk0p32

brw------- root root 259, 1 1970-01-01 22:29 mmcblk0p33

brw------- root root 259, 2 1970-01-01 22:29 mmcblk0p34

brw------- root root 259, 3 1970-01-01 22:29 mmcblk0p35

brw------- root root 259, 4 1970-01-01 22:29 mmcblk0p36

brw------- root root 179, 4 1970-01-01 22:29 mmcblk0p4

brw------- root root 179, 5 1970-01-01 22:29 mmcblk0p5

brw------- root root 179, 6 1970-01-01 22:29 mmcblk0p6

brw------- root root 179, 7 1970-01-01 22:29 mmcblk0p7

brw------- root system 179, 8 1970-01-01 22:29 mmcblk0p8

brw------- root system 179, 9 1970-01-01 22:29 mmcblk0p9

brw------- root root 179, 32 1970-01-01 22:29 mmcblk0rpmb

brw------- root root 179, 64 2016-01-10 23:11 mmcblk1

brw------- root root 179, 65 2016-01-10 23:11 mmcblk1p1

brw------- root root 179, 66 2016-01-10 23:11 mmcblk1p2

root@condor_umts:/ #
[Android Apps and Games] vickybonick:
Are you on Lollipop? if yes then use the inbuilt partition tool to format the 2nd partition as f2fs
[Android Apps and Games] wstevew:
I used the partition tool to format the second partition as f2fs, it said successful, then recreated the mount script as f2fs and rebooted. I still get the same "invalid argument".

With any of the partition tools, including the inbuilt one they do not show the file system type for the second partition. it shows FAT32 for the first partition.
[Android Apps and Games] vickybonick:
You can give aparted android app a try.
[Android Apps and Games] wstevew:
I have that and have already tried. I can try it again.

Does this mean it is mounted already?

root@condor_umts:/ # ls -l /data/sdext2

drwxrwxrwx system system 2016-01-09 20:29 Android

drwxrwxrwx system system 2016-01-09 20:28 app-lib

drwxrwxrwx system system 2016-01-09 20:29 dalvik-cache

drwxrwxrwx system system 2016-01-09 20:28 data

root@condor_umts:/ #
[Android Apps and Games] vickybonick:
Run below command
[Android Apps and Games] wstevew:
u0_a80@condor_umts:/ $ su

root@condor_umts:/ # mount|grep sdext2

1|root@condor_umts:/ #
[Android Apps and Games] vickybonick:
It's not mounted. Try below

1) Disable mount namespace separation in SuperSu

2) Update busybox applets specifically mount applet
[Android Apps and Games] wstevew:
I disabled mount namespace seperation in SuperSu, updated all busybox applets.

recreated mount script and rebooted for filesystem as f2fs/ext2/ext4

all still give same invalid argument error
[Android Apps and Games] vickybonick:
I'm not sure i can help you then. It can be an issue with the card. See if Link2SD can mount it
[Android Apps and Games] wstevew:
Thanks for the help so far, Link2SD is giving same error. I will see if i can find another card to try.
[Android Apps and Games] Zereee:
first of all i want to say great works creating this app, i already using it for a week in my xperia M c1904 running cm 12.1 nightly without any single problem ( well except when i try to linked google play service to sd card everything went nuts when apps2sd disabled Play service, but problem solved haha). My first try to do sd partition with inbuild function are always fail though. so i use magic partition tools in PC to make ext4 partition then mounting script goes well till now. never occurs problem in auto remounting after restart.

So... i plan to flash new rom to my device, do i have to unlink everything first?? or can i leave all app i already linked as they are now? im sorry if someone already asking this.. but i already read the thread and cant find it.

Thanks in advance and keep the great work:good::good:
[Android Apps and Games] Adarsh1998:
[MENTION=6726362]vickybonick[/MENTION] can you add Toybox support in Next update? As AOSP 6.0 and CM13 based Custom ROMs has natively support Toy box instead of Busybox, Apps2sd not working on Latest CM13 because of this
[Android Apps and Games] wstevew:
Thank you for the help. I got another card and all is good.
[Android Apps and Games] vickybonick:
I'll not be able to add Toybox support in next release. Also next version will not be fully compatible with Marshmallow(Found lot of issues). Both will be done in later release.
[Android Apps and Games] vickybonick:
If you don't wipe data partition everything should be good. Linked system apps will be gone tough.
[Android Apps and Games] Adarsh1998:
Atleast possible to link dalvik cache in marshmallow ROMs? :(
[Android Apps and Games] vickybonick:
I'll try but can't promise. If possible can you send me the directory structure used in MM(specifically dalvik). I don't have MM and emulator don't help much
[Android Apps and Games] Adarsh1998:
Yes, see screenshots, There's no .dex file of an app in MM in /data/dalvik-cache, instead there's .odex file as ART Cache in /data/app/app_name/oat/arm/base.odex,

On Data/Delvik-cache, only system App's .dex files are there

BTW you can count me as tester if you need, PM/Hangouts me anytime, :)
[Android Apps and Games] Herbie_2005:
Thank you for this great app! I have used version 5.3.1 and it has always worked flawlessly, especially the foldermount feature.

Using the new version 6.0, the app acts quite slowly, and the foldermount feature does not really work anymore; the mount are not created.

My phone: Htc One M8 / Android 6.0 [root].
[Android Apps and Games] moinakbera:
Updated to 6.0 version amd mobile is freezing randomly share link for old version
[Android Apps and Games] vickybonick:
What error you are getting. Send the error report. Can you record a video
[Android Apps and Games] vickybonick:
Can you record a video and share. I'll upload the old version here tonight.
[Android Apps and Games] vickybonick:
Check if version 6 is working for you
[Android Apps and Games] Adarsh1998:
Woww awesome , its linking now
[Android Apps and Games] Herbie_2005:
If I try to define a new moint point, the new app takes more time than the 5.3.1 used to do, but, finally, I get no error. The app says "successful" (green). However, using a file manager I can see that the desired mount point is not really established.

I went back to version 5.3.1, and it works flawlessly for me.

Greeting from Herbie_2005
[Android Apps and Games] vickybonick:
After you create a mount point you have to turn it on
[Android Apps and Games] vickybonick:
Great :good:
[Android Apps and Games] Herbie_2005:
Thanks for your reply. Of course, I know that. I have used the old version 5.3.1 of your app – with success.

With new version 6.0: App says "mountpoint is active"; in the file manager, I can see: it is not actiive.
[Android Apps and Games] vickybonick:
Can you record a video and attach
[Android Apps and Games] Herbie_2005:
[MENTION=6726362]vickybonick[/MENTION]:

I have sent you a PM.
[Android Apps and Games] Yahzee Skellington:
...I've just found out this app is not compatible with Marshmallow. It worked great on Lollipop and waaaay better than Link2SD and saved me the headaches of having to decide what apps I can install. I see you added a paid version, and as soon as there's Marshmallow support I'll buy it. Keep it up!
[Android Apps and Games] vickybonick:
Yes it's not fully compatible with MM. Soon I'll start working on it.
[Android Apps and Games] Adarsh1998:
Just noticed , uc browser dissapearing after linking and reboot, all apps have no problem except this, I attaching block partition ss for reference.....
[Android Apps and Games] der_Kief:
i can confirm this. With new version 6 foldermount part is broken. Same behaviour as Herbie_2005
[Android Apps and Games] vickybonick:
I'll check that
[Android Apps and Games] gnidorah:
Now installed an update of Apps2SD. Unfortunately not fixed.

It recreated mount script, but the problem

"Android is starting...

Optimizing app N of M."

is still there. Checked few times.

I'm on Android 5.1

Suppose I should wipe user data and reflash system partition and then retest.
[Android Apps and Games] vickybonick:
First i thought it's Apps2SD issue but it seems it's a ROM issue. See the below thread. Also, I've read that it happens when you reboot while connected to charger. May be you can test

http://xdaforums.com/moto-x/moto-x-qa/lollipop-restarting-optimizing-apps-t3142721
[Android Apps and Games] vickybonick:
Can any one of you test the attached apk and confirm if Folder mount is working?
[Android Apps and Games] der_Kief:
tried test version but problem remains.

- creating Mount Point(s) is working without problems.

- activate the Mount Point(s) is working without problems

- reboot device is working without problems and startup notification report success

BUT no access to data. Linked folder(s) are empty.
[Android Apps and Games] vickybonick:
Both source and destination are empty? can you select a row and in menu choose unbind only and see if both folders are empty
[Android Apps and Games] der_Kief:
when unmounted:

Source (Internal Storage) is empty

Destination (External Storage) has data

when mounted and check source folder with file manager it is empty
[Android Apps and Games] vickybonick:
Disable the mount namespace separation or disable selinux and check again
[Android Apps and Games] der_Kief:
selinux = permissive do you mean that with disable selinux ?

where to disable "mount namespace separation" ?
[Android Apps and Games] vickybonick:
SuperSu app
[Android Apps and Games] der_Kief:
yeah found it :) BUT doenst help ....
[Android Apps and Games] vickybonick:
Which explorer are you using?
[Android Apps and Games] der_Kief:
Solid Explorer (tried also ES File Explorer)

weird thing is that with previous version it is working ....
[Android Apps and Games] vickybonick:
Can you send me the output of mount from both versions
[Android Apps and Games] vickybonick:
Found a change i did in the module let me revert it and build
[Android Apps and Games] der_Kief:
will try that later ...

Just send you a PM with mount outputs !
[Android Apps and Games] vickybonick:
Can you try now it will take 10 minutes. i need to release. Lot of people are complaining about it
[Android Apps and Games] der_Kief:
doesn't work :(
[Android Apps and Games] vickybonick:
Do you have 10-15 minutes?
[Android Apps and Games] der_Kief:
yes ... if i can help :)
[Android Apps and Games] vickybonick:
Building it. I think it should fix it. i reverted everything
[Android Apps and Games] vickybonick:
Attached
[Android Apps and Games] der_Kief:
New test version is working as expected. No problems with FM anymore
[Android Apps and Games] vickybonick:
great. thanks
[Android Apps and Games] der_Kief:
no problem ... glad to help you

Do i get a reward now :D
[Android Apps and Games] vickybonick:
Haha. How about a pat on the back :)
[Android Apps and Games] der_Kief:
That's all ? ;)

btw: do you need a german translator ?
[Android Apps and Games] Herbie_2005:
Thank you for your hard work, vickybonick. Foldermount works now, as der_Kief already confirmed. There is one thing I wanted to mention:

If you switch off an existing mountpoint, Apps2sd always wants to transfer (copy/move) all data from the destination folder "back" to the source folder. In my opinion, this does not always make sense. For example, I have established a mountpoint with source folder /storage/emulated/0/external_sd and destination folder /storage/<EXTSD> which means that the external sd card can be treated as a subfolder of the internal sd card.

If I switch off this mountpoint, Apps2sd tries to transfer all data from the external sd card to /storage/emulated/0/extern_sd. But it cannot be completed because the internal sd card does not have enough space. And I do not want this transfer to be done.

Would it be possible to create the option to switch off a mountpoint without data transfer to the source folder?
[Android Apps and Games] der_Kief:
[MENTION=4419635]Herbie_2005[/MENTION]

... you have to select a row and in menu choose unbind only.
[Android Apps and Games] vickybonick:
The translation link is in the app
[Android Apps and Games] Adarsh1998:
+1, same happened with me, cant disable mount point becoz of rhis :(
[Android Apps and Games] vickybonick:
As [MENTION=5929147]der_Kief[/MENTION] mentioned

you have to select a row and in menu choose unbind only.
[Android Apps and Games] gnidorah:
Thanks. Weird it happens only with linked apps. Also have no random reboots and charging state makes no sense.
[Android Apps and Games] Dark-Coder:
Have a Question...

What's New in Pro Version ??? Benefits of PRO version ???
[Android Apps and Games] vickybonick:
Pro version is ad free and new features will be added in pro only
[Android Apps and Games] vickybonick:
May be you can try a different ROM
[Android Apps and Games] vickybonick:
If anyone is interested in translating the app please goto http://os3pxnq.oneskyapp.com/collaboration/project/54276
[Android Apps and Games] Adarsh1998:
Why system apps are showing as partially linked, i didn't touched those apps, its a clean flashed ROM
[Android Apps and Games] vickybonick:
In MM data is symlinked by default. So it is showing partially linked.
[Android Apps and Games] eracet:
The last 2 updates I have problems getting the app to run. It crashes shortly after startup, does not matter if I do any commands or not.

Mostly just gives load (Circle) screen then crashes.
[Android Apps and Games] vickybonick:
Send me the logcat. Also how much ram you have. Last version is little bit ram intensive i'm working on reducing the ram usage.
[Android Apps and Games] Herbie_2005:
Hi!

New version 6.2:

Foldermount feature is quite good. For example: source folder = "/storage/emulated/0/Test" – destination folder = "/storage/<EXT_SD>/Test" workes flawlessly.

But: source folder = "/storage/emulated/0/external_sd" – destination folder = "/storage/<EXT_SD>" does NOT work; the mount is NOT created.

Old version 5.3.1:

No problem with foldermount feature. For example: source folder = "/storage/emulated/0/Test" – destination folder = "/storage/<EXT_SD>/Test" workes flawlessly.

And: source folder = "/storage/emulated/0/external_sd" – destination folder = "/storage/<EXT_SD>" also works without any problem.

So I keep to version 5.3.1 at the moment.
[Android Apps and Games] vickybonick:
Are you getting any error?
[Android Apps and Games] Herbie_2005:
No, I don't get any error. Mountpoint is simply not crea5ed with new version.
[Android Apps and Games] vickybonick:
Can you record a video. I'm able to create it
[Android Apps and Games] vandermark:
My motog3 only has 8 GB of internal storage. I can try your app but i was thinking about the following since I use marshmallow: I have a 64gb sdcard. What if I partition 2 fat32 partitions and format one of them as internal storage (new marshmallow function)? That way I keep sdcard for twrp and nandroid but my internal storage will become much larger. Will this work? It seems like a lot easier option.

Verstuurd vanaf mijn Nexus 10 met Tapatalk
[Android Apps and Games] vickybonick:
Not sure. I haven't check that fuction
[Android Apps and Games] eracet:
No way to get you logcat when the app crashes within a minute.
[Android Apps and Games] vickybonick:
Use adb to pull the logcat. or terminal emulator app
[Android Apps and Games] eracet:
I think this is what you want.

The last thing that was ran is Apps2sd before this log.
[Android Apps and Games] vickybonick:
Is this full logcat? Run below command after Apps2SD crashes and send me the output file

logcat -d -v time > /storage/sdcard1/crash.txt
[Android Apps and Games] eracet:
That method didnt work right , so I reloaded (VIA titanium backup ) apps2sd Version 5.3.1

5.3.1 crashes when trying to do link apps to sd.

But at least it got me the logcat file.

This log is after 6.2 crash .

Reload 5.3.1.
[Android Apps and Games] vickybonick:
I'll check it out. How much ram you have?
[Android Apps and Games] eracet:
Its Galaxy s5 , 2gb

Tim
[Android Apps and Games] Adarsh1998:
I tried that, that trick won't work [emoji14]
[Android Apps and Games] vickybonick:
Try this and let me know if it works
[Android Apps and Games] eracet:
Tried that one and it worked fine.

Thank you.
[Android Apps and Games] vickybonick:
Great!!
[Android Apps and Games] vickybonick:
Fix released
[Android Apps and Games] vickybonick:
Guys, since i don't have MM I'm looking for some beta testers. Please pm me if anyone is interested.
[Android Apps and Games] jib@rmi.ge:
Free version works flawlessly on CM13 (chil360's build for u8833, with opengapps 6.0). Want to buy pro, found it but google play says "not available in your country". Even more strangely when I click the OP link it says instead "incompatible with your device". Is there any other way to buy it?
[Android Apps and Games] ktl20:
What is the difference between pro and free? ,only ads?
[Android Apps and Games] vickybonick:
It's available in play store only. I might publish in other markets
[Android Apps and Games] vickybonick:
Yes. And I'll add features(e.g. widgets) in Pro version only. Free version will get bug fixes and performance improvements.
[Android Apps and Games] CptTd:
Apk Links Broken, App unusable

Hey when I try to link the Apks of the Apps, they get unusable and the link is broken!? Im on CM 13, LG G3 Beat, Root, SuperSu and BusyBox installed and working. I can move data but it crashes with Apks.. I just saw its also with lib. folders. OH I just saw youre working on the Android 6 Version. Then who am I to complain^^
[Android Apps and Games] Adarsh1998:
Make sure you set selinux permissive, without it, any linked apps giving fc, and if possible give log when it gives error,

[MENTION=225032]vickybonik[/MENTION] can you add permissive command in Mount script? In MM With Enforce selinux, linked apps gives fc, i added

su 0 setenforce 0

In your init.d mount script and it's sets permissive during boot now.... [emoji7]
[Android Apps and Games] vickybonick:
Unfortunately i can't add setenforce, google bans apps which changes selinux.
[Android Apps and Games] Adarsh1998:
Hmm, ya, sorry, i forgot about that rules...
[Android Apps and Games] vickybonick:
No problem :)
[Android Apps and Games] CptTd:
[MENTION=6138124]Adarsh1998[/MENTION]

Can you help me with how to do this for my device and rom? :confused:

Sorry Im a total noob, I just learned how to flash etc. :mad:
[Android Apps and Games] jib@rmi.ge:
I also tried to donate from here, paypal says you cannot receive anything
[Android Apps and Games] Hecker Vo_oV:
First, you have to root your device.

To do that you have to search for a tutorial on google exactly for your device.

Looked like this for me: Samsung Galaxy S5 SM-G900F root.

Be careful because if you choose a bad one you may get into boot loops or worse.

After that you have to download Apps2SD from Google Play.

Then make two partitions with your own tool or with Apps2SD's partitioning tool. After that you go to link apps to SD card and make the mount script but trust me this is pretty obvious.

After that you are free to go and link apps to the SD card
[Android Apps and Games] lookgod88:
Hi Vicky, you are so great to write this app!

Mine is xiaomi redmi 1 (not 1s). I've the same problem as cablespider, it keeps on saying reboot is necessary on a red bar, then close. When I get this message for the first time, I reboot the phone. Open the app again and the same message shows up. Here below is the process:

- get my phone rooted

- install the app2sd

- open the app, then go to setting>partition, move the slider to create 1st/ 2nd partition in approximately 1.5/ 2.5g respectively on my 4g SD card

- reboot my phone. First check the SD card details through the native explorer, found that it wasn't changed anything, still 1 partition and all data were still there (all data can be deleted, no problem for me)

- Then open the app2sd, somehow it comes up telling me to install busybox, I tap yes then it brings me to play store to install this

- After successful installation I open it, on the lower part of the screen a scanning process was carrying, when finished I scroll down until I saw the fdisk roll and it's checked in the box

- then I tap install

-open the app2sd, the red bar shows that reboot is necessary, then it is closed

- reboot my phone and open the app again, the red bar still there. And I further tried to reboot and open the app several times further, all is same.

Can I have the solution?

Thank you so much!

我從使用 Tapatalk 的 SM-T700 發送
[Android Apps and Games] vickybonick:
Please clear Apps2SD data and try to partition again. If you still get reboot required error(even after reboot) that means fdisk applet might not be working in your devices. Please wait for my next release these issue will be fixed.
[Android Apps and Games] lookgod88:
Hi Vicky, thanks for your prompt reply. I'll try as you said here. Will post the result