yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I got to hand it to you, you provided all the information I properly would have asked you :)

If you, when the device reboot into recovery, navigate (using an ADB shell) to /data/local, you should find some M2SD logs there. It keeps the last log and the one from before that. If we are lucky, it might give us some clue as to where in the script it goes wrong. Then we can take it from there and figure out the why.
[Android Software/Hacking General [Developers Only]] mixednuts:
OK, attached are the logs. Crossing my fingers :p

Took a quick gander and everything seems fine, :(
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
This looks like another strange issue that I have been working on figuring out.

Remove the script and get the device booted. Open the app and reinstall the script. Before rebooting, go into the configure tab at set Scheduler to anything else but CFQ, like SIO.
[Android Software/Hacking General [Developers Only]] mixednuts:
OK... looks as though I couldn't set the IMMC to CFQ, so your suggestion resulted in a successful boot :cool:

Within the ROM performance configurations I can set the I/O to CFQ and boot successfully, however, I noticed that it would only set the mmcblk0 to that scheduler with the others remaining on ROW by default (without Mounts2sd set-up and running).

With Mounts2sd successfully running and I/O set to ROW for both IMMC and EMMC, and I/O within ROM preferences set to CFQ, the mmcblk0 remains as CFQ with everything else as ROW.

Just looks as though, with this ROM / kernel anyway, anything other than mmcblk0 cannot be set to CFQ. Ever encountered this before?

Question - are the default settings recommended settings?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
No I have not, but you just confirmed this issue so I will have to figure out a solution so that it will not stop other devices from booting. But it seams like a strange kernel issue.

Not really. The default settings are the once that is sure to work on most devices and do the least harm if anything goes wrong, as they are 99% to work with all kinds of init.d types.

The recommended is whatever people like them to be.
[Android Software/Hacking General [Developers Only]] mixednuts:
Jeez... that just complicated things for me as I have very little idea what preferences to change / use. :p
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
If you don't know what something does, then don't change it. The defaults are fine, and there is no reason to change it if you don't know what for.

Just configure where you want to place what content (apps, data, dalvik ...) and/or whether you want SWAP, ZRam etc.
[Android Software/Hacking General [Developers Only]] mixednuts:
Do I want SWAP / ZRam? :p I think default is SWAP off and ZRam 18%.... in the past I've always had ZRam off (reason - performance, maybe?). I always have a SWAP partition... haven't always used it (due to wear and questionable performance advantages). Read Ahead is something I'm always unsure of (lowest better than highest and vise versa).

Is there a reason why you included SWAP and ZRam configurations in your app (maybe for stock ROMs)?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I included SWAP because it is part of the sdcard just like SD-EXT. And I included ZRam because I got a lot of requests for it. There are many ROM's, Stock and Custom, that does not include this feature.

Readahead is a bit so and so. It is better to have a very low value when doing a lot of small reads and writes, like when you store apps, dalvik-cache and app data on it. It is better to have a high value if you make large transfers, like uploading, downloading or transfers between Phone and PC, which many do on their Fat32 partition. So when you use your sdcard for both, you will need to find something in the middle. 512kb is the recommended when using sd-ext, but unless you make a lot of daily large transfers between the Phone and PC, I would set it at 128kb to gain a better system performance.
[Android Software/Hacking General [Developers Only]] TopperBG:
Am i feeling so, but after last update (and new script version) I feel on my device terrible lag to irresponsible :(

Battery drain is too terrible - 10-12 hours in better case. The process draining so bad is "Android system" whatever this means.

Before that device was superb, get easily 22-24 hours with one charge.

But lag is killing :(

I've not made any other changes I'm pretty sure because was fully satisfied from config ... till now :(

Some advice Dev ?

PS: No changes between two updates, not touched any options. Everything is on C10 Samsung 32G SD-card except Dalvik Cache.
[Android Software/Hacking General [Developers Only]] mixednuts:
Do the set read ahead values take effect on-the-fly or is a reboot required?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Everything is script controlled and requires reboot. I don't want options to be split between an app and a script, I like structure. So app is for overview and configuration, the script does the work.
[Android Software/Hacking General [Developers Only]] mixednuts:
Understood. Just thought that if someone anticipates making a large transfer they could change the ReadAhead on the fly from 128 to 2048, and when done change it back again. :cool:
[Android Software/Hacking General [Developers Only]] mixednuts:
Error detected while checking...

dk, should I be concerned about data loss / corruption as I consistently get this message in the log:

"Error detected while checking '/dev/block/mmcblk1p2'. Everything was left uncorrected!"
[Android Software/Hacking General [Developers Only]] mistermagic87:
mounts2sd and restoring apps after a fresh rom install

I recently updated my ROM to LiquidSmooth 2.37 for my Verizon Galaxy note 2. I had a quick question regarding restoring my apps after doing a factory reset + new rom installation.

I use titanium backup to restore my apps+data after I do a factory restore, and wanted to clarify on a couple of things.

I did do a search regarding this question on this support thread and I found the following info:

_____________________________________________________________________________________________________________________

So from this I understand if I don't wipe data and dirty flash a new rom all I will need to do is install the zip in the OP to restore mounts2sd.

The following below is my assumption regarding wiping and restoring applications and the mounts2sd script - please correct me if I'm wrong.

If I do decide to wipe data/factory reset before I install a update to a ROM that by doing so it will wipe the ext4 where my apps were and then I can do a titanium backup after the flash of the new rom once my apps are restored I should install the mounts2sd script and reboot?

Will my apps still be on ext4 and not get wiped or will all that data be wiped when I do a factory reset?

I don't currently need to update my ROM - liquidsmooth 2.37 is the first version I have used mounts2sd on and I want to be prepared for the future when the next ROM update is released.

Thanks ahead of time for any replies and if you need any clarification on what I'm asking please feel free to ask or PM me.
[Android Software/Hacking General [Developers Only]] tannalein:
Problem with Mounts2SD

I'm having a problem with Mounts2SD and would appreciate any help you could give me. I've been using it for about a month, and it was working perfectly. I transfered everything on the card, apps, app data, dalvik cache... And everything was working nice until yesterday, when the phone crashed in the middle of a call, and when it restarted, all the apps were crashing (a whole lot of messages on top of each other saying "The process com.android.phone has stopped unexpectedly. Please try again." and so on) over and over again, the screen is black since the launcher has crashed as well... If I wait a while, some apps manage to start, I can see them in the action bar, along with the notification from Mounts2SD. I've managed to get to it through all the messages of apps crashing, and the notification in the action bar says that Mounts2SD can't open the configuration file. When I open the app, it tells me that it doesn't have root privileges and it just closes.

I've tried wiping the dalvik cache and it worked once, it looked as if everything was working again, but as soon as the phone rebooted, everything started crashing again. I've tried wiping the cache again, mounting everything from CWM, fixing permissions, but nothing works, it still crashes every time I boot the phone.

Do you guys have any idea how to fix this? I'd hate to reinstall the phone again, I just did it a month ago, after wasting a whole month testing all the scripts and apps to find one that actually works (and I was SO impressed with the way Mounts2SD worked before this happened). Or if there's a way to reinstall the rom without having to reinstall all the apps?
[Android Software/Hacking General [Developers Only]] mixednuts:
If it's a custom ROM, or a stock ROM that's been made flashable, you can reinstall it, affecting only the system partition.

After flashing the ROM, also flash the Mounts2sd script before rebooting. Better still, use Aroma File Manager to copy the script from \system\etc\init.d to your SD card, then copy it back after re-flashing the ROM.
[Android Software/Hacking General [Developers Only]] mixednuts:
My suggestion is not to do a factory reset as it wipes ext4... wipe data and cache manually.

Once you're using Mounts2sd with your ROM, and your apps + data grow beyond your internal limits, I'm not sure if there'll be much point in using Titanium Backup as you won't be able to actually restore it, unless you restore just the app data.
[Android Software/Hacking General [Developers Only]] iPusak Gaoq™:
Hmmmm...i'm having a bit trouble about this apps....i have install it on my Xperia Miro, work fine btw but the problem is CWM and TWRP refuse to backup my ext partition while using this apps...CWM and TWRP doesn't have any problem backup my ext partition if i use Link2SD but with this apps, it just refuse or best way to say it, it can't detect my ext partition at all...

Phone : Xperia Miro

Roms : Slimbean v4.1.2

Kernel : Riches 0.6 Kernel

Ext Partition : EXT4
[Android Software/Hacking General [Developers Only]] ErecDeGraal:
Hi,

I just found your script and I would like to try it. Currently I'm using likn2sd and my question is if by installing your script I have to re-install all my apps or not? I mean I can run your script, uninstall linkk2sd and I will keep my apps up and running in sd-ext?

Thanks a lot in advance
[Android Software/Hacking General [Developers Only]] TopperBG:
Yes, you can install it - the script will take care about link2sd files and apps.

If you have luck, don't have to reinstall anything.

I've done it the same way with a lot older version.
[Android Software/Hacking General [Developers Only]] ErecDeGraal:
Hi, I did it and it's working fine. Two reboots and I had all my apps :good:
[Android Software/Hacking General [Developers Only]] ErecDeGraal:
[MENTION=3147360]dk_zero-cool[/MENTION] I've been using this script for a while, really wonderful. I've notice one thing, before I was using link2sd and my battery consumption was 1.9%/h (according to bbs) in 2G and without data sync. Now I get 3.9%/h, which annoys me. I have a Xperia neo V with LX 11 (kitkat 4.4.1). The governors I'm using are smartassh3 and noop, and I changed the readahead I currently have are 4Kb for internal mmc and 512Kb for external. The sd card is 32Gb class 10.

Is there a better governors/readahead combination? Or this increase has nothing to do with mounts2sd use?

I will appreciate if you can help me

Regards
[Android Software/Hacking General [Developers Only]] douginoz:
<deleted>

Sorry, can't find anywhere in the edit menu or advanced edit that allows me to delete (even after clicking the "edit/delete" button, and yes its still the latest posting and I only made it 3 mins ago)
[Android Software/Hacking General [Developers Only]] aidennwitz:
Hello,

I searched for this a bit, but couldn't find anything:

1. Is Android's Storage menu reporting x (currently 300 MB) used out of 420 MB (my internal storage size) correct? Won't this hit the threshold anyway? My SD-EXT partition is 1.5 GB.

Also, Apps menu shows -1724416.00... used and 420 MB free as well as Mounts2SD shows that only 5 MB is used on the internal storage, so everything appears to be working, however, my question with the threshold remains due to weird behaviour of the Storage menu.

2. I'm using a Class 10 card, which vastly outperforms my internal storage speed, therefore I moved everything to it, including Cache and Dalvik, is this good?

Cheers and thanks for this great app!

-- edit --

Oh, and I just had a random reboot (probably caused by Spotify) and now I'm getting following warnings on each proper startup:

W Not everything from '/data/user' could be moved to '/sd-ext/user'

W Not everything from '/data/media' could be moved to '/sd-ext/media'

I Failed while trying to move the mount point '/cache' to '/cache-int'. Trying manual procedure!

I got the last one also just after installing it, but a reboot solved it. Now I'm getting it all the time.

As for /data/user and /data/media, there are directories named '0' in both of them, in /data/user it contains a lot of com.blahblah directories in it, in /data/media it contains another '0' dir (/data/media/0/0/), which is empty and there's also an 'obb' dir which is also empty (/data/media/obb/obb/).

3. How do I solve the above? Logs: https://dl.dropboxusercontent.com/u/743494/Mounts2SD-aidennwitz.zip
[Android Software/Hacking General [Developers Only]] TopperBG:
I've don't have good results when move Dalvik to C10 card. But Cache is good.

---------- Post added at 07:15 PM ---------- Previous post was at 07:12 PM ----------

Also one question (indeed suggestion) - after last update my SD card stopped to mount on PC?

I'm pretty sure that nothing else, working on such low level with SD card is changed/updated.

Is it possible that nasty effect to become from script ?

In log I've got only one warning - not everything from /data/user could be moved to /sd-ext/user.
[Android Software/Hacking General [Developers Only]] mixednuts:
I don't think SD performance would ever out perform internal memory.
[Android Software/Hacking General [Developers Only]] aidennwitz:
On cheap MDPI devices it does. See for yourself:

8 GB SDHC C10 - Read 20.01 MB/s; Write 9.22 MB/s

Internal storage - Read 8.08 MB/s; Write 1.22 MB/s

Measured a few times with accurate mode (with rebooting to clear RAM cache) of A1 SD Bench, no significant deviations between tests.

And I do see the difference, apps are installing much, much faster than before.

Oh, and another problem popped up, I edited my post above.
[Android Software/Hacking General [Developers Only]] mixednuts:
Interesting... I got some measuring to do.
[Android Software/Hacking General [Developers Only]] procter:
So I'm new to this SD-ext game for my old 512mb Optimus S. Used Link2SD for the first time yesterday and so far so good. I realize that there are a lot of similar scripts/apps around that accomplish similar thing, app2sd, data2sd, mount2sd etc. Can anyone give me a brief comparison?

This is my wife's phone, and she's not a savvy user, so the requirement is actually fast response and stable system (she does not play games on the phone, mostly just browsing, and occasionally map/gps). Would mount2SD do any good on top of link2sd? Should I uninstall link2SD first?

Thanks a lot.
[Android Software/Hacking General [Developers Only]] Skippernl:
You can only have ONE script active. Installing Mounts2SD will remove all others scripts.

I have not used another script so I can not compare for you.
[Android Software/Hacking General [Developers Only]] Barleyman:
This seems to be more bug report thread than the bug report bit..

..I installed mounts2sd on RK3188 based china tablet, FNF iFive X2. Running Kasty's modified (including init.d) firmware v1.20, android 4.2.2. There are two definite problems I discovered.

1. init.rc calls "/system/bin/run-parts" which points to "busybox", which does not work. It should be "/system/xbin/busybox"

2. init.d script wants to use "/system/xbin/busybox sh" as shell command, it does not work, "sh" is not a busybox applet. At least not when you grab stericson's install APK.

I'm not sure if #1 has anything to do with mounts2sd, I need to nandroid backup my ROM and check with fresh ROM install, it could be bug in the rom.

#2 is definitely mounts2sd issue. busybox sh just returns "cannot find applet" error. When I edited the init.d script to call instead

sh /scriptpath/scriptname.sh "sh" /system/xbin/busybox

things work copacetic.

It's possible that the rom again installs "sh" and stericson's installer then bypasses "sh" but there should not be reason to call "busybox sh" instead of just "sh" in either case, is there?

..

There is a huge difference in lag and lack of it with cache and dalvik-cache running from sd-ext of a mobile-enchanced Class10 usdhc with ext4 extended partition. The sdcard outperforms EMMC on random writes by about factor of 20. Linear writes are slower but those are rarely a problem. I could use the tabled with modest lag when I hit "update" from play store for 20-odd apps. Running from EMMC the tablet would have been completely unusable for 10-20 minutes.
[Android Software/Hacking General [Developers Only]] Nightshadow931:
What is the best readahead and governor to use with class 10 sdcard ?
[Android Software/Hacking General [Developers Only]] happyBOY78:
I make translation of app strings to my language (czech).

I´m on github but i don´t know, how and where i upload it to Mounts2SD project.

Anybody help me, with simple instructions ? :angel:
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
You need to fork the project, commit your localization to your forked project then send a merge request to dk.

There is a good and simple tutorial on github itself to learn how to be collaborative ;)

Envoyé de mon Nexus 4 en utilisant Tapatalk
[Android Software/Hacking General [Developers Only]] happyBOY78:
[MENTION=2822685]PerfectSlayer[/MENTION] or others.... Please, check my work in github. I do it, with help of tutorial, but i don´t know, if is all correct :angel:

My nick is the same, as here.
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
You made a pull request to [MENTION=3147360]dk_zero-cool[/MENTION]. Mounts2SD is his app on his github. He is the only one who can validate your contribution ;)
[Android Software/Hacking General [Developers Only]] blöd von west:
Anyone got advice for a n00b?

Hi,

I am trying to understand which files I should move to my sdcard using mounts2sd script.

I am using xperia arc lt15i with legacy xperia CM11 020311 build, along with a sandisk class10 sdcard.

I did a benchmark of my internal memory and SDcard speeds with A1 SD bench. Accurate test shows the SD is 5-10X faster at read or write; Random I/O results are similar between int&ext (int read 3.79Mb/s & write 0.94 Mb/s vs ext read 4.92 Mb/s & write 0.53 Mb/s).

Considering these speed tests, which files should I move to SD, options being cache, apps, libs, data, dalvik. (also recommendations on other settings are welcome.)

Thanks for the awesome app&script.
[Android Software/Hacking General [Developers Only]] Skippernl:
Reading your post.

You state that the SD card is faster than internal memory. I would move all data to SD.
[Android Software/Hacking General [Developers Only]] blöd von west:
Even Dalvik and Cache? I don't know which speed readings to consider: by accurate test it makes sense to move everything, but by random I/O test, maybe I should keep write intensive stuff like data or cache in the internal memory?
[Android Software/Hacking General [Developers Only]] ErecDeGraal:
I will move everything except system apps and data. That's my configuration and it works quite well

Sent from my Dark neo V
[Android Software/Hacking General [Developers Only]] procter:
I've seen a lot of posts regarding SD-ext partition and they all advised that this ext partition better not go beyond 1024 Mb for SD cards 4GB or larger. Why is that?

Most of the posts were back in 2012 though, is it still the same? Say if I have a 32Gb card to put into a more recent phone such as GS3 (so the apps takes a lot more space with better graphics etc compared to earlier android version), is the 1gb ext partition gonna be enough? Thanks.

And also, when doing it in my GS3, looks like the ext2 is not supported or recognized by either link2SD or mount2SD, changed it to ext4 worked fine.
[Android Software/Hacking General [Developers Only]] xTiNct26:
is there other flashable script without aroma? the one on op is not working. always install aborted.
[Android Software/Hacking General [Developers Only]] wizard3:
Whenever I make an ext2 partition on my Micro SD I get the message "SD Damaged" from my device. Does this mean that my device doesn't support ext partitions or am I making doing something wrong while partitioning?
[Android Software/Hacking General [Developers Only]] metaljoker:
Can someone put the best/default configuration as a picture or text so people could know how to use it!??

In my case, my version is Mounts2SD v3.4.8
[Android Software/Hacking General [Developers Only]] lyrabee:
mounts2sd - root always enabled?

hey guys,

as i'm thinking to finally some more space for apps on my xperia ray (urushi) i want to install mounts2sd. the phone is rooted, and i have fxp cm10 on it and will switch to lx cm11 soon.

as far as i understand - at least for installing mounts2sd and get it running "root" has to be enabled. but after that can i disable root and all will work fine, or does root have to be enabled all the time?

thx :)
[Android Software/Hacking General [Developers Only]] ela1103:
dk_zero-cool

Is there any new update for this apps .because cause some error

anyone tell the correct configuration mounts2sd .Because some time i got in boot loop stuck at rom
[Android Software/Hacking General [Developers Only]] magi44ken:
I'm using Mounts2sd with 4.4.2 on my Supersonic phone. My phone crash because it is not responding and I have to take my battery out to reboot the phone. But all the app data and settings is gone. How do I relink them? Is this a common problem when the phone crashed? I flash install Mounts2SD and then install again from Play Store in order to get the app icon appear in the draw.
[Android Software/Hacking General [Developers Only]] ErecDeGraal:
Try the recovery script. It's on the app thread

Sent from my Dark Nexus 5
[Android Software/Hacking General [Developers Only]] dying4004:
which sd card class is best for mounts2sd?
[Android Software/Hacking General [Developers Only]] MarcoToo:
UHS-II. The faster, the better. And do yourself a favour and buy a brand.
[Android Software/Hacking General [Developers Only]] dying4004:
are you sure about it?

i think i have seen users saying that class 4 or class 6 is best with mounts2sd.

i have samsung UHS-I and UHS-II with 90MBPS speed and both of them works way slower than my sanndisk 32gb class 4 card.

are you actually using a UHS-I or UHS-II card yourself with mounts2sd? If so, can you tell me what settings you are using?

cheers
[Android Software/Hacking General [Developers Only]] Sandro8771:
Edit:

Will post later.Some issues now.Just take alook at screenshots.
[Android Software/Hacking General [Developers Only]] Sandro8771:
Sorry for earlier post.Other screenshots did not go through

.View attachment 2794335

View attachment 2794340
[Android Software/Hacking General [Developers Only]] Abhaysinh:
Bug? And Development?

[MENTION=3147360]dk_zero-cool[/MENTION]

1)system apps isn't moved in sd-ext?

Phone:HTC Explorer.

2)Development is continued....?