yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] thegoo:
Stops working.

Mounts2SD works for a limited time then apps do not get installed onto the ext partition. This results in internal space being used and I get the "System is running low on space" message. This seems to happen after about a day or so. I've tried it on every build/ROM and receive the same results.

Any suggestions? Currently running CM11 on SGS4G
[Android Software/Hacking General [Developers Only]] mausolï¿½e:
bonjour , qu'elle zip je doit flashé pour réinstallé mount2sd aprés installe d'un zip de mise a jour ?

l'option de réinstallé mount2sd + le script + le redémarrage + réglage + redémarrage et fastidieux

translate

Hello, it zip I must flashed to reinstalled mount2sd after installed an update zip?

the option of reinstalled mount2sd + script + reboot + settings + restart and tedious.

or how to create this zip from my setting!
[Android Software/Hacking General [Developers Only]] Skippernl:
Hi,

If you have installed and configured Mount2sd and then dirty flash a rom you need to flash the recovery zip after the rom.

Then you do not have to install the script and reboot
[Android Software/Hacking General [Developers Only]] tinyXperia:
I can't use FAT32 apps partition with mounts2sd? Coming from link2sd, where fat32 worked. So I have to repartition?
[Android Software/Hacking General [Developers Only]] Skippernl:
Yes Mounts2sd only works with a EXT partition. The FAT partition can be used for data but not to move apps
[Android Software/Hacking General [Developers Only]] dwsco:
Boot times

Instructions say first boot will take 'some time'. Is an hour beyond reasonable? I am running the new lollipop rom on my sensation and after installing the app, reboot took over an hour. I finally pulled my battery and restored the rom. Tried again several times but no matter what I do I never get past the startup animation. I would just leave it but the battery also gets hot after 30 minutes...
[Android Software/Hacking General [Developers Only]] Masrepus:
[MENTION=320436]dwsco[/MENTION] On most phones, when the boot process is about to complete, you get a short vibration and the display brightness gets adjusted to the previously selected value. If you notify this vibration a second time and even more often, the current situation is a bootloop and leaving it for 30 more minutes will just result in some hundred more failed boot attempts.

--------------------

Phone: Nexus 4

OS: rooted Lollipop LRX21T

Bootloader: unlocked

stock Recovery
[Android Software/Hacking General [Developers Only]] dwsco:
Thanks..
[Android Software/Hacking General [Developers Only]] mohammed fayed:
Does the app requires my phone to have "S-off" enabled?

my phone is desire 816 dual sim, rooted with unlocked bootloader & init.d support.. will it work?

thanks in advance
[Android Software/Hacking General [Developers Only]] xxqxpxx:
i run CM12 on my htc 816 device .

and when i install the app it says you are s-on ( we havn't had s-off yet ) and redirect me to fallback recovery installation . and after that when i reboot it can't mount my ext4 card . any ideas ?

also it works fine on CM11
[Android Software/Hacking General [Developers Only]] mohammed fayed:
Installed the app then installed the script with no problem.. after reboot nothing happened, and found this message in log :

"E/The script has been invoked without super user permissions!"

what does it mean?! I have a rooted desire 816 with init.d support & system write enabled..
[Android Software/Hacking General [Developers Only]] mandayugana:
In my phone, sd-ext failed to mount.

Log file:

It seems failed when checking /dev/block/mmcblk0p2 as block special.

init.d support is manually added to init.rc by adding "exec /system/bin/sysinit" before "class_start default". Here is my init.rc.

And here is my /system/bin/sysinit.

My Device is Samsung Galaxy Ace GT-S5830, Froyo 2.2.1.

What could be wrong? Should I enable init.d using service instead? Proper init.d and shared standard
[Android Software/Hacking General [Developers Only]] kitu34:
Only applications are linked

But I read it links data, dex etc also but there is green dot in front of apps only.

*Phone has become extremely slow even though it shows I have good enough space, even then I removed two apps, cleared cache and dalvik but no results.

This site is not active I guess.

Oh God hahaha there was tick mark against everything so I thought it's pre-selected but accidentally now I hit one of them and it turned green. Now I'll check. But it's not user friendly like link2sd. Even in the start I couldn't make out..,eventually rebooted and apps disappeared, then I powered off and started to get the apps back
[Android Software/Hacking General [Developers Only]] kitu34:
Nope. Everything linked but very slow. Black screen always comes before any app starts, mostly crashes.

Till yesterday I was using link2sd free version but hardly faced such a problem.

If anybody did something which helped please do share.

Thank you
[Android Software/Hacking General [Developers Only]] RicardoCervera:
Hi.

I am not sure if I am asking a new question regarding Mounts2SD or Replying to somebody else's question here...

I am desperately trying to increase the system storage of any android phone to use ONLY as mp3 player, before i get a bunch of questions why!?... every android base mp3 player app only lets you add library from either internal or sd storage, SOME apps might let you play a track if you open file explorer app in the phone navigate to an usb storage and select 1 track at the time for the music app to play, you can not import a whole folder into the app nor get access from the music app to reach the usb storage to import multiple mp3 files, the only way this can be achieve is IF all the files are with in the android system storage...

No!, Using a sd card is not an option, I have 10tb of music and my "most played tracks" is just under 2tb.

So I need to figure out, if i can use a usb ssd connected to the phone over otg, and use Mounts2SD to use that ssd as system storage then move all the tracks to the storage?...

Thanks.
[Android Software/Hacking General [Developers Only]] daniel_m:
Maybe the Magisk module fbind would do the trick? I mount an image file on my SD-card to /data/data/ of an app that only accepts /data as its storage space.

https://xdaforums.com/t/fbind.3621814/
[Android Software/Hacking General [Developers Only]] mfolnovic:
Mount2sd on cm7.2

Hello!

I tried to install m2sd on my desire with cm7.2, freshly installed. First, I partitioned my sdcard to:

sdcard 1 GB fat32

sd-ext ~2.5 GB ext4

SWAP 200 MB

After that, I downloaded mounts2sd-3.0.4_legacy.zip and installed via recovery (clockworkmod 5.0.2.0). Everything seemed to install successfully.

Then, I booted up my phone, launched terminal and ran:

# su
# ms2sd status

And the output I got is:

mkdir: can't create directory '/system/etc/m2sd': Cannot allocate memory
chown: /system/etc/m2sd: No such file or directory
chmod: /system/etc/m2sd: No such file or directory

Status
-------
...

So what I would like to know is, what I did wrong? :)

Thanks!

EDIT: Fixed after rooting with Revolutionary. Didn't work with previously rooted with unrevoked.
[Android Software/Hacking General [Developers Only]] alexctk:
hi guys

i cant understand, i did everything and everything is fine, the commands in the terminal works....but how i can know that the script is working, i used freespace to check the sd-ext space and i didnt notice a thing...a guide line or some care to explain how i can check if the apps are being move to sd-ext

thks
[Android Software/Hacking General [Developers Only]] agismaniax:
edited... need more testing.

what happened if i run "m2sd apps disable"? because after i install m2sd from recovery, m2sd apps are already enabled.
[Android Software/Hacking General [Developers Only]] boonkeat8:
My bad, only custom rom
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The option 'apps' moves /data/app, /data/app-private and /data/app-system into /sd-ext and links them to /data/.

The option 'dalvik' does the same with /data/dalvik-cache and the option 'data' does it with /data/data.

The option 'rmount' reverses /data and /sd-ext so that the sd-ext partition becomes /data and the data partition becomes /sd-ext. Thereby it also reverses the options since it keeps moving things from /data to /sd-ext regardless of which partition is mounted to which folder.
[Android Software/Hacking General [Developers Only]] voyager20021:
i used some a2sd apps on my optimus one and i always get bootloops at some point, after filling about 2/3 of sd ext space. This script does the same? I`ll test anyway, but maybe someone knows already.

Nice to see some dev it`s on this.

OK, so i have 2 gb sd ext, no swap, apps enabled, dalvik enabled, cmdalvik enabled, data enabled and after 900 mb of apps installed i get bootloops and lately kernel panic. Any ideeas?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Do not go above 1500mb on the sd-ext partition. Keep it at 1gb.

Also NEVER create sd-ext using CWM Recovery. Those always creates problems.
[Android Software/Hacking General [Developers Only]] voyager20021:
So bootloop problem not solved yet. I`ll try to set partition with amonra at 1 gb and test, but is there really no way to get rid of those bootloops? Or maybe just to let us know that the system is about to become unstable if more apps are installed?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It is common knolege that android cant handle more than 1gb sd-ext partitions.
[Android Software/Hacking General [Developers Only]] MaKTaiL:
I can't enable dalvik-cache on my LG P500.

It can't create the link.

Everything else is working fine though.
[Android Software/Hacking General [Developers Only]] voyager20021:
My firend told me what follows. Could this be the real problem? And can it be solved?

"yup ive read that before, imo, that might be the problem! however we need to check/study that whether there are dalvik-cache changes while we "move apps to sd card" (android native) when using a2sd+?

if that does rebuild some dalvik cache in the /cache/dalvik-cache partition, then maybe if we "move a lot of apps to sd" (android native), the new dalvik caches are over 70mb which exceeded our phone's limit and the system crashes before our script moves them to /sd-ext/dalvik-cache

so maybe, therefore, assume our scripts CAN function like the "cm dalvik" as mentioned in Mount2SD, (moving /cache/dalvik-cache to /sd-ext/dalvik-cache) we still cannot move a lot of apps AT ONCE to the android native "sd card", but we can if we separate them into phrases with reboots in between.

as you can see temasek has made it function like Mount2SD for me as i guess he already knew about the cm team's fault ages ago when he made the "cm7 version" for me, or, even trikton the darktremor developer had already made that too.

see my screenshot - my /cache/dalvik-cache is already linked to /sd-ext, so our reboot problems MIGHT NOT because of whether the script has that function, but because of whether we fill up the /cache partition BEFORE the script MOVES them to /sd-ext AFTER we "move to sd" for a lot of apps with the android native function."
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
That is not a problem. Everything is done before the system starts booting and thereby before any dalvik-cache changes are made. By the time dalvik-cache starts changing, it is already linked to the original dalvik-cache folder, which brings me to the next point. The cmdalvik option does not link /cache/dalvik-cache to sd-ext. It links /cache/dalvik-cache to /data/dalvik-cache. Whether or not the dalvik-cache is moved to sd-ext, depends on the "dalvik" option.

To avoid problems, keep sd-ext below 1500mb and stop using CWM to create it with.
[Android Software/Hacking General [Developers Only]] Dakling:
Grreat script you got there!:D
[Android Software/Hacking General [Developers Only]] vivebatu:
Hi..just saw the changelog for the latest version...does it mean that the m2sd script will now support roms which have init.d run as a service, rather than through the sysinit method?
[Android Software/Hacking General [Developers Only]] Raul027:
I keep getting a status 6 error with the legacy installer. I also get a syntax error with the aroma installer. Line 98 column 3
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
M2SD does support this, just not with all the options and it cannot be done, so will never happen.

But which ROM are we talking about?

There might be support for a custom RC file.

I will fix that right away
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
All downloads has been fixed
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It does work. But it only moves the APKs. Data, dalvik and r-mount is disabled in safe-mode.

Do you have a link to that ROM?
[Android Software/Hacking General [Developers Only]] vivebatu:
Here is the link

http://miuiandroid.com/community/threads/miui-rom-2-4-6-ics-gb.16068/

My device is the HD2

Edit- seems that link is for the next immediate next version of the ROM...but the booting method should be the same

Cheers
[Android Software/Hacking General [Developers Only]] voyager20021:
Do i need to reboot between commands?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You need to reboot in order for the changes to take affect. But you can use multiple commands without reboot.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Well they have not made it possible to add a custom rc file like CM Roms do. So I added the correct sysinit to the ramdisk my self and uploaded a zip for you below. This will only work with the miui rom for your device.
[Android Software/Hacking General [Developers Only]] vivebatu:
thanks so much dev..this is pretty awesome

Is this a CWM flashable zip?

I will test and come back with the results, give me some time

GUess you can also update the OP with this because I'm sure many HD2 owners would be looking at your script as a solution for their internal storage problems

Cheers

Edit - the zip seems empty, can you reupload pls?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Done :)

And yes, this can be flashed from CWM or any other recovery.
[Android Software/Hacking General [Developers Only]] vivebatu:
Hi ..I tried your zip but the phone does not go beyond the HTC logo (boot animation does not start)...I tried twice ( after first fail I restored nandroid and tried again) but no luck...if possible, request you to check if there is a bug in the sysinit script..tks much

Cheers
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Well that's the problem programming for a phone you can't test on, and is not all that familiar with.

You could provide the output of "ls -l /system/bin". Maybe you are missing some binaries used by sysinit.
[Android Software/Hacking General [Developers Only]] dimebagdan65:
Sorry to interject, but has anybody tried this with MeanROM? *politely bows out*

http://xdaforums.com/showthread.php?t=1466362
[Android Software/Hacking General [Developers Only]] DirkStorck:
Hi...after i wiped my phone, flashed the ROM and the mount2sd why phone doesn't boot. I lgcat I found

D/mounts2sd( 880): Checking if sub-directory /data/misc/bluetoothd exists...
D/mounts2sd( 886): Checking if sub-directory /data/misc/bluetooth exists...
D/mounts2sd( 892): Checking if sub-directory /data/misc/keystore exists...
D/mounts2sd( 898): Checking if sub-directory /data/misc/vpn exists...
D/mounts2sd( 904): Checking if sub-directory /data/misc/systemkeys exists...
D/mounts2sd( 910): Checking if sub-directory /data/misc/vpn/profiles exists...
D/mounts2sd( 916): Checking if sub-directory /data/misc/wifi exists...
D/mounts2sd( 922): Checking if sub-directory /data/local/tmp exists...
D/mounts2sd( 928): Checking if sub-directory /data/local/download exists...
D/mounts2sd( 1035): Connecting /cache/dalvik-cache with /data/dalvik-cache...
V/mounts2sd( 1043): Creating link between /cache/dalvik-cache and /data/dalvik-cache...
V/mounts2sd( 1053): Mounts2SD has been loaded!
I/run-parts( 81): [1] Terminated logcat >${M2SD_L...
I/DEBUG ( 1101): debuggerd: Apr 15 2012 00:29:39
D/AK8973 ( 1108): AK8973 daemon 1.3.4 Start
D/AK8973 ( 1108): (Library version : 1.2.1.620)
--------- beginning of /dev/log/system
I/Vold ( 1099): Vold 2.1 (the revenge) firing up
D/Vold ( 1099): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 1099): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/Vold ( 1099): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
D/Vold ( 1099): USB connected
D/Vold ( 1099): Share method ums now available
I/Netd ( 1100): Netd 1.0 starting
D/Vold ( 1099): USB connected
I/Netd ( 1141): Netd 1.0 starting
I/Netd ( 1150): Netd 1.0 starting
I/Netd ( 1157): Netd 1.0 starting
I/Netd ( 1166): Netd 1.0 starting
I/Netd ( 1173): Netd 1.0 starting
I/Netd ( 1180): Netd 1.0 starting
I/Netd ( 1187): Netd 1.0 starting
I/Netd ( 1194): Netd 1.0 starting
I/Netd ( 1201): Netd 1.0 starting
I/Netd ( 1208): Netd 1.0 starting
I/Netd ( 1215): Netd 1.0 starting
I/Netd ( 1222): Netd 1.0 starting
I/Netd ( 1229): Netd 1.0 starting
I/Netd ( 1236): Netd 1.0 starting
I/Netd ( 1243): Netd 1.0 starting
I/Netd ( 1249): Netd 1.0 starting
I/Netd ( 1256): Netd 1.0 starting

and that goes on and on.... :(

Any help please :)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I have had that issue on my ROM to once. That is not caused by the script. That is a problem with one of libs or the init.rc in your ROM and should be reported to the ROM dev.
[Android Software/Hacking General [Developers Only]] DirkStorck:
I have removed the script 05mountsd from /system/etc/init.d and than I have flashed the mound2sd and get the problem.

When I dont remove that script and flash only the ROM I dont get that problem but mound2sd won't start...something about "sd-ext allready mounted" or so :(

EDIT: Even if I flash ony the ROM without that 05mountsd it boots normaly!

--------- beginning of /dev/log/main
I/cm ( 78): Welcome to Android 2.3.7 / CyanogenMod-7-UNOFFICIAL-20120415-Desire
I/cm ( 79): _
I/cm ( 80): __ __ _ ___ _ _ __ ___ __ _ _ _ _ __ __))
I/cm ( 81): ((_ \(/'((_( ((\( ((_)((_( (('((\( ((`1( ((_)((_(
I/cm ( 82): )) _))
I/cm ( 83):
I/run-parts( 73): chown: no such tool
I/run-parts( 73): chmod: no such tool
V/mounts2sd( 139): Initiating Mounts2SD (v:4.2.0) [Mon Apr 16 10:38:03 GMT 2012]
V/mounts2sd( 178): Checking configurations...
V/mounts2sd( 315): Optimizing /system readahead...
V/mounts2sd( 320): Disabling /system atime & diratime...
V/mounts2sd( 332): Optimizing /data readahead...
V/mounts2sd( 338): Waiting for sdcard to initiate...
V/mounts2sd( 347): sdcard found at /dev/block/mmcblk0...
V/mounts2sd( 359): Setting sdcard readahead to 512kb...
V/mounts2sd( 432): Running e2fsck on sd-ext...
I/run-parts( 73): e2fsck 1.41.10 (10-Feb-2009)
I/run-parts( 73): /dev/block/mmcblk0p2: clean, 11/98304 files, 14377/393216 blocks
V/mounts2sd( 455): The sd-ext partition was mounted successfully at /sd-ext using auto detection of the file system typ
e!
I/run-parts( 73): chown: no such tool
I/run-parts( 73): chmod: no such tool
V/mounts2sd( 520): Creating link between /data/app and /sd-ext/app...
I/run-parts( 73): chown: no such tool
I/run-parts( 73): chmod: no such tool
V/mounts2sd( 562): Creating link between /data/app-private and /sd-ext/app-private...
I/run-parts( 73): chown: no such tool
I/run-parts( 73): chmod: no such tool
I/run-parts( 73): chown: no such tool
I/run-parts( 73): chmod: no such tool
V/mounts2sd( 622): Creating link between /data/app-system and /sd-ext/app-system...
I/run-parts( 73): chown: no such tool
I/run-parts( 73): chmod: no such tool
V/mounts2sd( 817): Mounts2SD has been loaded!
D/AK8973 ( 860): AK8973 daemon 1.3.4 Start
D/AK8973 ( 860): (Library version : 1.2.1.620)
I/DEBUG ( 853): debuggerd: Apr 15 2012 00:29:39
--------- beginning of /dev/log/system
I/Vold ( 851): Vold 2.1 (the revenge) firing up
D/Vold ( 851): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 851): USB disconnected
D/Vold ( 851): Share method ums now unavailable
D/Vold ( 851): USB disconnected
D/Vold ( 851): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/Vold ( 851): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
D/Vold ( 851): USB connected
D/Vold ( 851): Share method ums now available
I/Netd ( 852): Netd 1.0 starting
D/Vold ( 851): USB connected
I/Netd ( 893): Netd 1.0 starting

There must bes something wrong....after I have flash the mount2sd i get that error with "Netd 1.0 starting"

and strange ist

"I/run-parts( 73): chown: no such tool"

too....
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
First of, if you have 05mountsd then you have another script using the sd-ext partition besides mounts2sd. Try give me the content of the init.d folder.

Second, I find it strange that it complains about the chmod and chown commands. Check to make sure that /system/xbin/busybox.m2sd exists.
[Android Software/Hacking General [Developers Only]] DirkStorck:
I have downloaded the ROM from http://fitsnugly.euroskank.com/gigglebread/index.php?id=bravo

I have attached the content of the init.d folder.

Thanks for your help :)

EDIT: The ROM booted normaly and after I have installed mount2sd with default settings I get those problems with "Netd"....:(

EDIT2: busybox.m2sd exists!

# ls busybox*
ls busybox*
busybox busybox.m2sd

#

And here is the logcat after restart

I/mountsd ( 97): Checking filesystems..
I/run-parts( 73): e2fsck 1.41.10 (10-Feb-2009)
I/run-parts( 73): /dev/block/mmcblk0p2: clean, 11/98304 files, 14377/393216 blocks
I/busybox ( 104): mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: Invalid argument
I/logwrapper( 104): busybox terminated by exit(255)
I/busybox ( 107): chown: /sd-ext: Read-only file system
I/logwrapper( 107): busybox terminated by exit(1)
I/busybox ( 109): chmod: /sd-ext: Read-only file system
I/logwrapper( 109): busybox terminated by exit(1)
I/mountsd ( 111): /sd-ext successfully mounted
I/run-parts( 73): chown: /data/property/m2sd.*: No such file or directory
I/run-parts( 73): chmod: /data/property/m2sd.*: No such file or directory
I/run-parts( 73): chown: no such tool
I/run-parts( 73): chmod: no such tool
V/mounts2sd( 158): Initiating Mounts2SD (v:4.2.0) [Mon Apr 16 11:08:10 GMT 2012]
V/mounts2sd( 197): Checking configurations...
V/mounts2sd( 378): Optimizing /system readahead...
V/mounts2sd( 383): Disabling /system atime & diratime...
V/mounts2sd( 395): Optimizing /data readahead...
V/mounts2sd( 401): Waiting for sdcard to initiate...
V/mounts2sd( 410): sdcard found at /dev/block/mmcblk0...
V/mounts2sd( 422): Setting sdcard readahead to 512kb...
V/mounts2sd( 494): Running e2fsck on sd-ext...
I/run-parts( 73): e2fsck 1.41.10 (10-Feb-2009)
I/run-parts( 73): /dev/block/mmcblk0p2: clean, 11/98304 files, 14377/393216 blocks
V/mounts2sd( 517): The sd-ext partition was mounted successfully at /sd-ext using auto detection of the file system typ
e!
I/run-parts( 73): chown: no such tool
I/run-parts( 73): chmod: no such tool
[Android Software/Hacking General [Developers Only]] lyg73:
Same

I have a same issue in same ROM...

The issue occurred in both of eurosKank's ROM and oxygen based WildMild..

So I using mount2sd 3.0.4...
[Android Software/Hacking General [Developers Only]] caballon:
Can this can be USed by galaxy nexus thanks in advance.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Will try this weekend to install the mentioned ROM and see if I can locate the problem. Since the ROM is for an Desire and I own one, it should not be to much of a problem. But don't have time before then.

Not sure. Think that the /dev layout is a bit different on that one. But it can be made to work on it, if I can get some output from you as I don't own one.

However, does the Galaxy Nexus not have plenty of internal space for apps? Why would you want this? These scripts are originally made for phones with about 500mb of internal nand or less.