yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
How do you mean? Flash a rom and then flash this, or do you mean integrade into an installer or?
[Android Software/Hacking General [Developers Only]] ateeq72:
i mean to integrade into it bro!! i tried doing it ... but it didnt work :( and am using HTC Explorer with sense ROM!!!
[Android Software/Hacking General [Developers Only]] ateeq72:
:(

Dude i always get error in logcat!!! when i try to use your script!!!

- waiting for device -
--------- beginning of /dev/log/main
W/HtcEbdLog( 97): /system/bin/logcat2
W/HtcEbdLog( 97): -v
W/HtcEbdLog( 97): time
W/HtcEbdLog( 97): -f
W/HtcEbdLog( 97): /devlog/system_log
W/HtcEbdLog( 97): -F
W/HtcEbdLog( 97): /system/bin
W/HtcEbdLog( 97): -r
W/HtcEbdLog( 97): 512
W/HtcEbdLog( 97): -n
W/HtcEbdLog( 97): 40
W/HtcEbdLog( 97): *:w
W/HtcEbdLog( 97):
W/LogCat2 ( 97): [SLog_Size,Rotate_Bundary,Sys_Level] = [512,1048576,3]
W/HtcEbdLog( 92): Version = V2.5.8
W/HtcEbdLog( 92): [KLog_Size,Rotate_Bundary,Ker_Level] = [512,1048576,4]
W/HtcEbdLog( 92): [htc_ebdlog_kmsg_main] g_outByteCount = 458227
V/mounts2sd( 191): Initiating Mounts2SD (v:4.6.2) [Sun Jan 6 00:02:30 GMT 1980]
V/mounts2sd( 206): Checking configurations...
V/mounts2sd( 403): Optimizing /system readahead...
V/mounts2sd( 409): Disabling /system atime,diratime and enabling relatime...
V/mounts2sd( 422): Optimizing /data readahead...
V/mounts2sd( 429): Disabling /data atime,diratime and enabling relatime...
V/mounts2sd( 436): Waiting for sdcard to initiate...
V/mounts2sd( 449): sdcard found at /dev/block/mmcblk0...
V/mounts2sd( 462): Setting sdcard readahead to 512kb...
V/mounts2sd( 497): Running e2fsck on sd-ext...
I//system/xbin/busybox( 88): e2fsck 1.41.11 (14-Mar-2010)
I//system/xbin/busybox( 88): /dev/block/mmcblk0p2: recovering journal
I//system/xbin/busybox( 88): /dev/block/mmcblk0p2: clean, 11/65536 files, 12328/262144 blocks
V/mounts2sd( 508): Disabling sd-ext atime,diratime and enabling relatime...
V/mounts2sd( 530): The sd-ext partition was mounted successfully at /sd-ext using auto detection of the file system type!
V/mounts2sd( 592): Creating link between /data/dalvik-cache and /sd-ext/dalvik-cache...
V/mounts2sd( 628): Moving content from /data/app to /sd-ext/app...
V/mounts2sd( 647): Creating link between /data/app and /sd-ext/app...
V/mounts2sd( 682): Creating link between /data/app-private and /sd-ext/app-private...
V/mounts2sd( 728): Creating link between /data/app-system and /sd-ext/app-system...
V/mounts2sd( 1039): Mounts2SD has been loaded!
I/logwrapper( 88): /system/xbin/busybox terminated by exit(0)

can you tell me where i went wrong????
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I don't see any errors? I see a regular M2SD log entry. And then some warnings, but that is not from M2SD and it is even before M2SD starts running so it has nothing to do with the script.
[Android Software/Hacking General [Developers Only]] kidnice15:
Just a question. Will this work with the galaxy s3? I am running stock just rooted
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Have not tried it. These scripts are mostly made for phones with less than 1GB internal memory and not phones with 16GB. But I don't see why not. The device names is pretty much linux standard so it should work fine. Worst case is that your card will not be found and nothing on your phone is touched. So try it out and see.
[Android Software/Hacking General [Developers Only]] kidnice15:
Thanks. I am going to try it later and see what happens.. For some reason I am running out of space on my s3 even though I never had a problem with internal memory on my maxx
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
If it does not work, let me know. I can easily make it work by adding whatever device name are used on the S3 (If the standard one does not exist). If you want do check before flash, just see if (/dev/block/mmcblk0) exists on your device.
[Android Software/Hacking General [Developers Only]] kidnice15:
Yes it is there. So does that mean it should work?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes. Then you should have no problems using it.
[Android Software/Hacking General [Developers Only]] aik099:
tmpfs not detected

Hi,

I'm using Mounts2SD 4.6.2 script with BCM ICS 4 ROM for HTC Desire (http://xdaforums.com/showthread.php?t=1403113).

However inspecting logs (with debug enabled) revealed, that due tmpfs not being detected (line "[mounts2sd.cache.device]: [tmpfs]" is missing from "m2sd log" command output) "/cache" folder is mounted to /sd-ext/cache resulting in all market downloads being extremely slow.

Is there any way to fix tmpfs detection, maybe by setting custom property?
[Android Software/Hacking General [Developers Only]] MarkAtHome:
Hi dk_zero-cool -- I have not tried Mount2SD yet, in part due to time contraints, and in part due to the fact that I have no issues with what I am running.

Anyway, I thought I would mention that the insufficient storage space message (presuming that your reference to Not enough space is the same thing) is

not

Google Play specific. You can/will intermittently receive this message if you try to sideload the same (or other) app. I have also come across users reporting this message with only 6 apps installed. I have over 1000 apps installed (for evaluation), utilizing a 10G 4ext SD-EXT partition, with no issues (I have, within the last couple of weeks, seen the space message and have not found a definitive cause).

I occassionally rebuild my device out of habit, as this is what I have done to my PC, every so often, over the last 30+ years. I agree that it is always good to err on the side of safety (aka ya never know... ), but I have never found

any

need to Task29 (a total myth as to its importance), or clear any caches whenever I update, upgrade or change a ROM, subsequently finding 99% of everything intact (a couple random apps' settings are sometimes lost) afterwards. While it has worked for me, it does not mean it will work for anyone else, so I do not recommend following my lead.

My questions, after reading a good portion of this thread is whether your reference to Not enough space is meant to be the same as the insufficient storage space message, and if so, would you provide your solution?

Edit: For those interested, and reading via an app like Tapatalk and XDA Premium, relevent device info is in my signature -- viewed via web at http://xdaforums.com/showpost.php?p=29946431&postcount=639 if it is of any importance.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
There is no fix since there is no problem. I had a lot of complaints about using tmpfs (Ram) when there is plenty of space available on other partitions. So I re-wrote the script to first try an use /data or /sd-ext (Depended on which has the most available space left) for the cache redirect. If none of those two has above 128MB, the tmpfs solution is used instead as a failsafe.

I cannot please everyone, so I go with the solutions that will make most people happy.

Yes I am referring to the "insufficient storage space". Although keep in mind that there are more than one of these it seams. At least one for the download manager, and another for the package installer. And since a lot of apps uses the download manager, it is no surprise that other apps besides the market are producing this issue.

As for fix, beats me. A lot of people have tried to get rid of this issue, I have made several attempts myself. But every time you hack one condition, another one comes along. Think the ultimate solution is to completely rewrite some of the Android API's.

I have had this issue even on my HTC One X with only a few apps installed and with a couple of hundred MB on /cache and two gigs on /data. Something is not doing a proper work checking the available space of something.
[Android Software/Hacking General [Developers Only]] aik099:
After playing around with the options I've found which caused market download to be slow: "m2sd data enable" option (which is disabled by default). In "/data/data" there are "*.so" libraries that I guess were slow to load. I've then moved all dalvik cache to sdcard and moved /data/data back to nand. After that everything became super fast.

I was using Link2SD script before and haven't experienced any slowness because of moving app/data/dalvik to sdcard. But it weren't allowing to move dalvik cache of system apps to sdcard. This was very important because I'm having 148MB only in /data partition.
[Android Software/Hacking General [Developers Only]] MarkAtHome:
Very frustrating, for sure. Will keep you in the loop if I trip over anything. ;)
[Android Software/Hacking General [Developers Only]] evrod20:
I just have to follow these instruction and that's it? Other thing, there are two files in the OP, aroma and legacy installer, which one is the right? Or I need both of them, sorry :confused:
[Android Software/Hacking General [Developers Only]] aik099:
I've used Aroma installer because it looks nice. I believe both installers have same functionality. Just make sure to do nandroid backup before doing anything.
[Android Software/Hacking General [Developers Only]] :
aroma installer hangs on welcome screen,, legacy installer works do

do i need to set up anything or is there a default setup?
[Android Software/Hacking General [Developers Only]] aik099:
It's up to you. I've used default setup and later on I enabled "dalvik cache" to sdcard using "Terminal Emulator".

But if your phone doesn't have custom init scripts, then some option might not work for you.
[Android Software/Hacking General [Developers Only]] evrod20:
Thanks.
[Android Software/Hacking General [Developers Only]] ateeq72:
But ma phone doesn't boot after that.... Its just stuck their and nothing appears next in the logcat..... :(
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Then I would check whatever comes after M2SD, because M2SD is loading just fine without errors. So the issue must be whatever is executed/launched after the script, A.K.A rom issue.
[Android Software/Hacking General [Developers Only]] ateeq72:
k..... waiting for your reply!!! :)
[Android Software/Hacking General [Developers Only]] kelalitillo:
I Have A Very Big Problem.

Every Times That I Try To Install This Or Other Script Like It´s In A Custom Rom Based On Ktm (Samsung Galaxy Ace 2.3.6) The O.S Doesn´t Boot After Flash The Script.

Please Help :crying:

And Sorry For My English
[Android Software/Hacking General [Developers Only]] MarcoToo:
Remove the battery, wait a few minutes, put the battery back in, start your phone.

And depending on how much the script has to move the first boot might take quite a while.
[Android Software/Hacking General [Developers Only]] antr34:
im currently using link2sd (move app, dalvik n lib), but since it doesnt move app data to sdext (only move lib). so i wanna try this script but i doubt it will compatible with already linked app by link2sd. is it safe to use this script to move app data? or should i start all over again with fresh rom?
[Android Software/Hacking General [Developers Only]] aik099:
I was exactly in same situation before installing m2sd script. Here is what I've did:

did nandroid backup (just in case)

installed m2sd using aroma installer (all default options)

rebooted phone (link2sd seems still working, but widgets that were linked using link2sd may have broken)

in shell (via adb or "Terminal Emulator" app) I executed this commands "su ; m2sd dalvik enable"

rebooted phone (all dalvik cache was moved from phone to sdcard)

manually inside link2sd move all apps back to phone (but internally they just symlinks are enabled, but apps/dalvik cache stays on sdcard)

Somewhere in the middle I have used this command "m2sd data enable", which moved /data/data into sdcard, but this resulted in major slowdowns and I reverted it back.
[Android Software/Hacking General [Developers Only]] antr34:
thanks for reply, btw is this script automatic move any new installed app to sdext just like link2sd?
[Android Software/Hacking General [Developers Only]] aik099:
Link2SD moves original files to sdcard and creates symlinks in their place, while m2sd create symlinks to whole folders (/cache, /data/data, /data/app, etc.). This way new apps are installed on sdcard by default and there is no way to manually exclude some app from being moved to sdcard.

m2sd is better then link2sd in a way, that due whole folder symlinking it can have system apps, that live in /data folder be moved to sdcard too.
[Android Software/Hacking General [Developers Only]] antr34:
ah great gonna try it now
[Android Software/Hacking General [Developers Only]] solibra:
I have massive slow downs especially with system apps (e.g. Gmail) since enabling mount2SD.

I have only enabled APP and DATA. I am pretty sure this happens because system apps data as well are moved to the (slower) SD card?

How can i configure the app so that system apps data rest on internal memory?
[Android Software/Hacking General [Developers Only]] aik099:
Please read first post in this discussion with m2sd manual with all commands explained in details. Also reading one of my previous posts reveals, that moving "data" to sdcard will give you slowdowns. At least it gave me slow downs with HTC desire.
[Android Software/Hacking General [Developers Only]] annson08:
I think it's possible to add menus to aroma installer where we could choose what to configure. I would love to help out but I'm really new to aroma. Anyway, great script, will switch to this script later :)
[Android Software/Hacking General [Developers Only]] aik099:
Aroma installer is multi-step install wizard wich has rich explanation after each option. No need to do anything.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It's already added to the aroma version
[Android Software/Hacking General [Developers Only]] annson08:
You're right! :)) thanks.
[Android Software/Hacking General [Developers Only]] vikasb32:
I want to move download cache to /data but i also have /sdext so when i try m2sd dlcache enble then download cache didnot move to /data partition.
[Android Software/Hacking General [Developers Only]] aik099:
There is a trick here. When "dlcache" option is used, then cache is actually moved to /st-ext/cache or /sd-ext/data/cache.

You can check that by looking at m2sd log.
[Android Software/Hacking General [Developers Only]] FlemishDroid:
I want to use this script but I have 1 question. In my ETC/Init.d folder there is already a file "05Mountsd". Delete this before installing mount2sd? Great script!

#!/system/bin/sh

#

# mount ext partition from sd card

BB="logwrapper busybox";

if [ "$SD_EXT_DIRECTORY" = "" ];

then

SD_EXT_DIRECTORY=/sd-ext;

fi;

# find SD Card

for MMC_NUM in `seq 0 9`;

do

MMC_TYPE=`cat /sys/block/mmcblk$MMC_NUM/device/type`

if [ "$MMC_TYPE" = "SD" ];

then

# 2nd partition of sdcard should be the sd-ext if exist

SD_EXT_PART=/dev/block/mmcblk${MMC_NUM}p2

break

fi

done

if [ -b "$SD_EXT_PART" ];

then

log -p i -t mountsd "Checking filesystems..";

# fsck the sdcard filesystem first

if [ -x `which e2fsck` ];

then

e2fsck -y $SD_EXT_PART

e2fsk_exitcode=$?

else

echo "executable e2fsck not found, assuming no filesystem errors"

e2fsk_exitcode=0

fi

# set property with exit code in case an error occurs

setprop cm.e2fsck.errors $e2fsk_exitcode;

if [ "$e2fsk_exitcode" -lt 2 ];

then

# mount and set perms

$BB mount -o noatime,nodiratime,barrier=1 -t ext4 $SD_EXT_PART $SD_EXT_DIRECTORY;

if [ "$?" = 0 ];

then

$BB chown 1000:1000 $SD_EXT_DIRECTORY;

$BB chmod 771 $SD_EXT_DIRECTORY;

log -p i -t mountsd "$SD_EXT_DIRECTORY successfully mounted";

else

log -p e -t mountsd "Unable to mount filesystem for $SD_EXT_DIRECTORY!";

fi

else

log -p e -t mountsd "Unable to repair filesystem, disabling apps2sd";

fi

fi

Sorry but I can't add an attachment with xda premium app.
[Android Software/Hacking General [Developers Only]] FlemishDroid:
Delete 05mountsd?
[Android Software/Hacking General [Developers Only]] rivelta:
hello bro finally i found my mmc partition where located i have been searchin for my swap partition , my device have emmc internal and i type command as bellow :

- fdisk /dev/block/mmcblk0 >>> this my internal mmc called emmc

- fdisk /dev/block/mmcblk1 >>> this is my mmc partition where

- mmcblk1p1 >> fat partition

- mmcblk1p2 >> ext3 partition

- mmcblk1p3 >> swap partition

then previous install log its failed , may i ask u how i can activate my swap partition where mounted every device reboot ?

thanks for help ;)
[Android Software/Hacking General [Developers Only]] FlemishDroid:
I <3 this script! First it didn't work but after a clean install of my rom it works great! Much better than s2e because with s2e I lost my apps a couple of times cause it can't handle sd-ext ext2... and cwm recovery change my sd-ext from ext4 to ext2 every time I restore a nandroid backup!
[Android Software/Hacking General [Developers Only]] ic92:
Is it possible to make dalvik cache for system apps remain on internal storage?? While 3rd party apps dalvik moved to sd-ext??

Sent from my amazing GT-S5570
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes

That should work just fine. mmcblk1 is the only one that will be registered as SD while the other is registered as EMMC. So the script will use the external one.

To activate swap, just type "m2sd swap enable". Then swap will be loaded on every boot.

No that is possible at this time. This script does not move single content. It moves the entire location where the content is held.
[Android Software/Hacking General [Developers Only]] hisun2006in:
Getting insusfficient strogae error

Hi,

After i installed this script, my applications have moved safely into ext partition.

Its better than Link2SD.

But am facing one problem, When am trying to download any new application, it says insufficient storage space available and stops.

I checked and found almost the whole internal phone memory free and also there is around 200 mb free on ext3.

Please help.

Thanks.

Sorry but i just now checked again and found that all my internal memory is still fulll.

Can anyone tell me how to check whether the scripts is working or not?
[Android Software/Hacking General [Developers Only]] Cinctus:
In terminal type

>su

>m2sd status

Read the output then, check log

>m2sd log

Sent from over the rainbow through my Revolutionized and Liberated Aria (2.2.2).
[Android Software/Hacking General [Developers Only]] hisun2006in:
scrpt is woring fine.

still my internal partition is full.

cn anyine tell methe reason??

what i did was, I installed the script.

My internal partition was shwoing almost empty after that.

But i had link2sd on my phone linking all the apps to ext3 partition already...so i thought it might create a problem.

So, i removed the link of all the apps.

After that, my internal memory got filled with the apps that could come in it and the rest of the apps remained in ext3 without linked.

thanks.
[Android Software/Hacking General [Developers Only]] pbaden:
I've been having the same problem.
[Android Software/Hacking General [Developers Only]] wali8822:
sd-ext become read only

Why my ext partition become read only???? My phone is htc desire!!

:confused::confused:
[Android Software/Hacking General [Developers Only]] wali8822:
Help

I encounter the same ,have you fixed it and how????
[Android Software/Hacking General [Developers Only]] hisun2006in:
Hi,

As i meantioned above the problem i was facing.

I thought that maybe a fresh installation of all of the OS may solve the problem.

So, i did the same.

I wiped all the things and then install CM7.2 Kang 15/8, then i installed the script.

Then i started my phone checked the status of script, it was enabled for data and apps and cache.

I started installing appps.

Then simulataneously i was checking df -h

What I noticed was that though the ext3 parttion was being used to install apps, but the whole application was not being installed in ext3 because my phone memory was also getting filled slowly.

I could only install 75 apps and my phone memory got completely filled, there is still 1.2 gb free space in ext3 parttion out of 1,5gb.

Can anyone help me how to free my internal memory?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
By default the script only moves the applications. But you still have things like data and dalvik-cache which each uses almost the same amount of space as the application it self.

You can enable more options to move more content to sd-ext. Read the first page.
[Android Software/Hacking General [Developers Only]] mzcl-mn:
Can I just copy the extracted 10mounts2sd file to init.d folder?

Sorry guys, I removed some unnecessary apps (because this was a nightly) and then copied the script to the init folder (changed its permissions to 755 and rebooted)

Now I've got this status (which I believe is the default one and that proves too that everytihing is ok):

shell@android:/ $ su
shell@android:/ # m2sd status

Status:
-------
* Mounts2SD [loaded]
- Apps [loaded]
- Data []
- Dalvik []
- CmDalvik []
- Cache [loaded]
- SWAP []
- RMount []

Device info:
------------
* SD-EXT device [/dev/block/mmcblk0p2]
* Swap device []

Locations:
------------
* Cache [/cache -> /sd-ext/cache]

Best regards.
[Android Software/Hacking General [Developers Only]] hurin8:
I used the script @sandvold ICS and the result was awesome! I gained 100mb more free mem, stopped seeing the dreadful "there is not enough space"!

I use 1tap cleaner pro and shows 50mb of cache which it can't remove it (probably because the script moved it). Is there an easy way to wipe cache, other than checking each app one by one?
[Android Software/Hacking General [Developers Only]] hoomoon:
Try App2sd app from GPlay. It cleans it for me...

Desire (bravo) with unbelievably stanley NikeZ JB P7...kudos!!!
[Android Software/Hacking General [Developers Only]] ic92:
@dk_zero-cool

hey,, I think u might be interested to review this script posted by michie

http://xdaforums.com/showpost.php?p=29407722&postcount=3

in that script, it is able to differentiate the dalvik and data for system apps, so it could stay on internal storage..

while 3rd party app, data and dalvik moved to sd-ext.

this approach delivers bigger "internal storage" while minimizing the lags also

Edit: so basicly it is amarulz script, but maybe get edited by him
[Android Software/Hacking General [Developers Only]] hurin8:
It doesn't work :confused:
[Android Software/Hacking General [Developers Only]] Suranjan16049:
Currently I m using link2sd to link my apps ....but it does not allow moving apps data to sd card..... can I use this script ?.if so, then how can I disable link2sd and use this one?
[Android Software/Hacking General [Developers Only]] poeartpl:
I've beed used a lot of scripts "to making free-space" at my HTC Desire, which is known as "without memory phone". I've beed used A2SD, A2SD+, INIT2SD, A2SDX... and always something was wrong - either too little space or terrible performance.

And yesterday it changed, due tu M2SD. It's THE solution for all of my problems!

Thanks a lot for a great job!
[Android Software/Hacking General [Developers Only]] rocketero:
@dk_zero-cool

I don't have a sysinit in /system/bin

can you help me with that?
[Android Software/Hacking General [Developers Only]] sansp00:
Noob here,

I just installed the script on my N1 using Evervolv ICS and can't get the options to 'stick'. When I enable apps and reboot, it stays disabled. Am I missing something ? Any pointers I could look for ?

Many thanks
[Android Software/Hacking General [Developers Only]] sansp00:
I just figured it out, my sd card does not contain sd-ext.
[Android Software/Hacking General [Developers Only]] dumperk:
Hi, :)
[Android Software/Hacking General [Developers Only]] 2012katas:
Thanks:good:
[Android Software/Hacking General [Developers Only]] twoxx:
just disable "safemode"

AND/OR use rmount- methond instead of moving apps,cache .etc.