yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Pa¡nk¡ller:
It was not possible to attach '/dev/block/mmcblk0p2' to '/sd-ext'

Guys, can you explain what is the problem?

V/Setting up the script enviroment
V/Using the shell environment '/data/local/busybox sh'
V/Using the busybox binary located at '/data/local/busybox'
V/Collecting MMC partition information
V/The external MMC was located at '/dev/block/mmcblk0'
V/Located the sd-ext partition at '/dev/block/mmcblk0p2'
V/Located the SWAP partition at '/dev/block/mmcblk0p3'
V/The internal MMC was located at '/dev/block/mtdblock0'
V/Located the 'system' partition at '/dev/block/mtdblock8'
V/Located the 'data' partition at '/dev/block/mtdblock10'
V/Located the 'cache' partition at '/dev/block/mtdblock9'
V/Optimizing MMC devices and partitions
V/Setting readahead on '/dev/block/mtdblock0' to '4kb'
V/Setting scheduler on '/dev/block/mtdblock0' to 'deadline'
V/Setting readahead on '/dev/block/mmcblk0' to '512kb'
V/Setting scheduler on '/dev/block/mmcblk0' to 'cfq'
V/Setting optimized mount parameters on '/dev/block/mtdblock8'
V/Setting optimized mount parameters on '/dev/block/mtdblock10'
V/Setting optimized mount parameters on '/dev/block/mtdblock9'
V/Attaching '/dev/block/mmcblk0p2' to '/sd-ext'
E/It was not possible to attach '/dev/block/mmcblk0p2' to '/sd-ext'
I/The system partition is S-On protected and it is therefore not possible to link system content to the '/system' location!
V/Enabling 'ZRAM' on '/dev/block/zram0'
V/Enabling 'SWAP' on '/dev/block/mmcblk0p3'
V/Setting swappiness to '0'
V/Storage threshold is already set for '1%'. Leaving it as is
[Android Apps and Games] nussbaum:
E/It was not possible to attach '/dev/block/mmcblk0p2' to '/sd-ext'

I/The system partition is S-On protected and it is therefore not possible to link system content to the '/system' location!

Look like you have to remove S-On protection from your device. Search for S-Off and your device name.
[Android Apps and Games] dosgringos:
There is no startup script present on your device...

...go to application settings and install it!

I get this message when I first start mounts2sd. All settings are greyed out.

I'm on rooted Android 2.3.5 with init.d support. Can't find any option to install a startup script anywhere.

What am I missing? Anyway to create said startup script manually?
[Android Apps and Games] Alefello:
Some problems/bugs found

Hello

I'm on official CM11 on GT-I9195 with f4k kernel (F2FS support for /data /cache /system partition). I have a class 10 64GB Kingston microSDXC card with primary ExFAT partition of 40GB and a secondary EXT4 partiton of 20GB

I found a pair of problems using the app:

- when I installed it, it says that I have S-ON, so it cannot create the startup script, even if I have root permissions and updated busybox binaries (I tried both with internal and external busybox binaries in settings). I "solved" that flashing the zip for rom-upgrading from recovery and then everything went fine

- 2nd and more critical problem. I installed the app to move app data and media (/data/data and /storage/emulated) to the 2nd partition freeing memory for the apps on the internal eMMC, but when I enable app data moving, OS became cyclically extremely slow, I mean it "freezes" or is very slow for about 5 seconds and then works normally for a couple of seconds, then again unresponsive for 5s and so on. This is really frustrating.

I know that the project is maybe dead, but if someone could help me I'll be very happy

Thank you
[Android Apps and Games] nussbaum:
Leave /data/data on internal memory, most random writes do happen here, and sd is extremely slow in random writes. Move /data/app, that will only be written when updating apps.
[Android Apps and Games] Alefello:
I'm sorry but apks contained in /data/app are not read when you open an app? Moving them on external sd card will not slow down app opening?

Thank you
[Android Apps and Games] nussbaum:
AFAIK apps open from /data/dalvik-cache. /data/app/ is only written on when installing an app, and read once when creating the executable in dalvik-cache. Just try it, it worked for me on kitkat.
[Android Apps and Games] Rashed97:
Hi DK, me again ;)

A few things: Thanks for updating the Play version, very helpful to all of us.

Second, thanks for the new app manager feature (yes, of course I bought it). Makes it much easier to change apps to system apps rather than moving the APK manually.

Now for the issue: Last night I tried the SQLite3 fix but I ran into a bootloop. I've since fixed it and updated to 3.3.4 but now I get an error on start up relating to changing the threshold. (SQLite3 binary returned error code 132). Do you have any idea what might be causing this?
[Android Apps and Games] dk_zero-cool:
Well thanks for donation :)

About your issue, if you enable debug and check in the log below the sqlite error message, you should have another message explaining the issue. Could you tell me what it says?

Also did you use the Sqlite Fix in 3.3.4? Because I have fixed the boot issues with it.
[Android Apps and Games] Rashed97:
Yes I did use the SQLite Fix from 3.3.4 after I fixed the bootloop from 3.3.2.

And enabling debug doesn't display anything more in relation to SQLite error 132 sadly :(
[Android Apps and Games] dk_zero-cool:
Check to see if you have /system/lib/libsqlite.so and /system/lib/libsqlite_jni.so on your device?
[Android Apps and Games] Soundy106:
Hey there! REALLY liking Mounts2SD on my freshly-fully-wiped-and-re-flashed HTC Desire HD with JellyTime ROM! BUT I've run into a little oddity... I already created a bugtracker report for it, but the formatting is a mess, so just to keep things a little cleaner, I'll repost it here:

Latest version off Play Store (6.x), was working great with a 4GB ext4 partition on my 32GB card, until I used Titanium Backup's "Integrate updates of system apps into ROM". Phone rebooted partway through that process... now every time it starts up, Mounts2SD gives me a notification that there are warnings or errors.

Upon checking the log, I find the following errors:

V/Handling the cache partition

D/Retouching the directory '/cache-int' with permissions '0771' and ownership 'system.cache'

V/Moving the mount point '/cache' to '/cache-int' I/Failed while trying to move the mount point '/cache' to '/cache-int'. Trying manual procedure! D/Shell Error [mount: mounting /cache on /cache-int failed: Invalid argument ...]

V/Detaching '/cache'

D/Could not detach '/cache', trying with force

D/Shell Error [umount: can't umount /cache: Device or resource busy ...]

D/Could not detach '/cache', trying lazy unmount instead

D/Shell Error [umount: can't forcibly umount /cache: Device or resource busy ...]

V/Attaching '/dev/block/platform/msm_sdcc.2/by-num/p27' to '/cache-int'

D/Mounting '/dev/block/platform/msm_sdcc.2/by-num/p27' to '/cache-int' as 'ext4' with options 'rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered,noauto_da_alloc'

V/Attaching '/sd-ext/cache' to '/cache'

V/Attaching '/cache-int/dalvik-cache' to '/cache/dalvik-cache'

V/Attaching '/cache-int/recovery' to '/cache/recovery'

D/The finalizing sub-process has been started

The rest of the log contains no error messages. At the end of it all, on the Contents tab, it lets me select "Applications - Move applications to sd-ext", but all the other options are greyed out.

I tried booting to CWM and formatting /cache, and wiped the Dalvik cache... no difference. Checked permissions on all cache folders as well, all look right (0771).
[Android Apps and Games] MetinKale38:
Seems like you havent a proper init.d implementation, you could try dkzerocools init.d injector, it may not work, it is untested on that device yet.

I tried it a long time ago on my brothers dhd and it did not worked, may it is fixed now.

Tapatalked... just Tapatalked...
[Android Apps and Games] dk_zero-cool:
I don't see any errors? Errors start with "E" and warnings with "W". You don't have any.

Also, is there a yellow notification at the top of the app? Does it possibly say something about safe-mode? In that case, disable safe-mode in the configure tab and you will have all options again.
[Android Apps and Games] ilmosca:
I had the same issue as Rashed97. I've a Galaxy Mini with CM 10.1.3 on it. I used to work with M2SD 2.2.0 without any problem. After updating to the last version (3.3.4) and installing the unlock part (to make a donation), I got the sqlite3 error, so I used the fix it option. my phone entered a kind of reboot loop. Actually, it didn't loop, but when initiliazing something went wrong and made it shut down.

I wiped everything out, reflashed, re installed M2SD 3.3.4 and the unlock... did the same as before... same issue. wipe everything out, re intalled everything, DID NOT use the fix it option. same issue. I was kind of fed up and upset. so I decided to make the last try. wipe everythig, re installed M2SD 3.3.4 BUT DID NOT INSTALL the unlock part. everything is perfectly working, I don't even get the treshold error message (the log is totally clean).

I really don't know why, and you surelly will figure it out, but it seems to me that the unlock app was the cause of my issue.

hope this helps. btw many thanks for the great work you guys do :svetius:
[Android Apps and Games] dk_zero-cool:
Not possible sorry. The unlock is nothing more than an empty package with an icon. There is no files, no classes, no run time, nothing. Just an Android package containing an icon. Even if it was possible for it to have any impact on dexopt (Which it can't), there is no way it could have any impact on a regular linux binary. So boot loop issues by this is not possible. Broken binary because of it is completely out of the question. Especially since regular apps (Which it is) cannot leave it's own sandbox. This is what you call a coincidence. Something else changed during your last reflash of everything. A log from before might have cleared it up :)
[Android Apps and Games] rexxxxx:
hi, just instaled the app from Play store and I am getting this message.

I am on Xperia SP stock .254 firmware rooted. I have 32 Gb microSD sandisk class 10. around 3 Gb free at this time !

any suggestions !
[Android Apps and Games] TopperBG:
Do you have partitions on SD card? You must have at least two separate partitions, second one will be used for sd-ext !

Use MiniTool Partition Wizard home edition to check and/or make second partition.

[MENTION=3147360]dk_zero-cool[/MENTION] Hi dev, can I request - is it possible to make move to system app reversible? Now when move some app to system_app the app disappear in list and can't be moved back.
[Android Apps and Games] dk_zero-cool:
You need to restart the device in order for the changes to take affect. It also says so in the popup when you click on an application :) Once you have restarted, the app will return in the list.
[Android Apps and Games] TopperBG:
Wow hanks for a fast response, I haven't noticed that feature !
[Android Apps and Games] rexxxxx:
I made second partition on the SD card 5 GB in size and FAT32 formatted with the MiniTool Partition Wizard. But now the phone don't recognize the SD card at all when I insert the card.

EDIT: after restart the card is recognized - it is strange because when before restart I tried with some other smaller microSD card and it worked.
[Android Apps and Games] ilmosca:
ok then, I'll give it a try... so how do you explain the issue I had? thanks :good:
[Android Apps and Games] dk_zero-cool:
I can't. All I know is that no device would break by placing an empty ZIP file (Applications is nothing more than ZIP files) on it. It would not make sense at all. Like I said, there is nothing in that package except for the icon. All the package is used for, is compare it's signature against Mounts2SD to validate, nothing more. There is nothing that can be executed and thereby nothing that can break anything.
[Android Apps and Games] ilmosca:
ok, no problem... anyway, as you predicted, I installed the unlock and everything works perfectly... so probable I messed up something in my first reflash... thanks
[Android Apps and Games] xeraphael:
Waiting for the recovery ZIPs to be updated so I can flash a new ROM!
[Android Apps and Games] dk_zero-cool:
That is right, they are still missing. Will get in that once I get home.
[Android Apps and Games] TopperBG:
Congrats to dev, the app is in the spot of lights :)

http://www.xda-developers.com/android/manage-your-storage-space-with-the-open-source-mounts2sd/
[Android Apps and Games] Soundy106:
Oooooh, okay... I was looking for something like that and didn't see any, so I figured all the complaining about problems with mounting /cache were what it was referring to. I went back and looked again and did find the one Warning line:

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

That'll teach me to post the ENTIRE log next time, instead of just what I THINK is important! :D (I've done enough time in tech support, I should really know better... :silly:)

Yeah, it was going into safe mode... I was leery about disabling that for fear of bricking the phone if something was really amiss... figured if it was getting errors and going into safe mode, there was a good reason for it.

Anyway, I ticked the "Disable safe mode", and everything returned to normal, and the sun still came up this morning :)

Thanks for the help, and for a great product!
[Android Apps and Games] bayustev:
hai. i installed this app to my gt-s6310..

1. installed script succes

2. update binary sqlite done..

but..it seem can't locate my extsdcard partiions..do i have manualy create the partitions?

thanks:)
[Android Apps and Games] bogdan_gy:
Will this application be useful for my Gionee P2 smartphone?the memory of this phone is splitted in 2 partitions,one of 494mb and one of 1.8gb!I have only 120 mb free of 494 mb and when I try to download a game bigger it tells me that there is not enough space on external storage,but i have 1.5gb free on the other partition which is called root memory in xplore app!what i have to do in order to install apps in 1.8 gb partition?
[Android Apps and Games] Skippernl:
Yes you need to partition the SD card yourself. The sd-ext needs to be the second partition.

Skippernl

Verstuurd vanaf mijn GT-P7510 met Tapatalk 4
[Android Apps and Games] dk_zero-cool:
I don't know what this "root" memory is, but this application moves applications away from the data partition (Your 494mb) and into a SECOND partition on your EXTERNAL sdcard (Which you will have to create yourself). So yes, it will be useful on your device because you decide yourself how much space you should have for applications, since you are the one creating the partition for them.
[Android Apps and Games] Silentbob999:
Hi,

Do you think you can add a setting to enable an addon.d script from inside the app so the mount2sd dont get erase if you only update your current rom? That would be nice for people that use OTA.

With cyanogen if the rom that you flash is the same major/minor version of the current rom the addon.d folder is backup, script in it are ran to backup files then the partitions are wiped, rom is flashed, addon.d are restored and script restore the files...

I made what I think should work but for an obscure reason addon.d do not work on my current rom so I would appreciate if somebody else can test it.

Is there anything else in system other than this 2 files that are part of mouns2sd ? :

/system/etc/init.d/10mounts2sd-runner

/system/etc/mounts2sd.sh

I never had your recovery zip in my hand, that's why I come with that idea.
[Android Apps and Games] king200:
I'm not understanding. If a mapset of a navigation app is on internal storage or data/media/0 and I prefer it on storage/extSdCard, must it go to an Ext partition of the card?

I really don't care if the app is in /data/app and the appdata is in /data/data.
[Android Apps and Games] bogdan_gy:
I have attached screenshot of my memory partitions with xplore
[Android Apps and Games] bayustev:
sir, i already partitions my sdcard into :fat32 (primary), ext4, linuxswap using minitools parttions..mount2sd is working fine without any error log..

only option can't be activated is swap,zram...any sugestion...thanks in advance:)
[Android Apps and Games] shurane:
So uh, after using "Fix Sqlite3 binary", my sqlite3 binary was borked. It could be useful to find a way to backup the old sqlite3 binary and have an option to restore it for those who may not know what they are doing. This happened to me on Mounts2SD 3.3.2.

I got the following error message while trying to use `sqlite3` after using "Fix sqlite3 binary":

# sqlite3
[1] + Stopped (signal) sqlite3
# su
link_image[1969]: 25257 could not load needed library 'libandroid_runtime.so' for 'app_process' (link_image[1969]: 25257 could not load needed library 'libnativehelper.so' for 'libandroid_runtime.so' (link_image[1969]: could not load needed library 'libsqlite.so' for 'libnativehelper.so' (reloc_library[1318]: 25257 cannot locate '__aeabi_llsl'...))) CANNOT LINK EXECUTABLE

I replaced {"/system/xbin/sqlite","/system/lib/libsqlite.so", "/system/lib/libsqlite_jni.so"} with the ones that came with my CM7 rom and the problem about sqlite3 disappeared.

This problem may not exist on the latest version of Mounts2SD, 3.3.4, I don't know.
[Android Apps and Games] dk_zero-cool:
Had the same idea, but been a little busy with other things in the app. But it will be added at some point.

That is the only two files yes.

You cannot merge two folder in android. The kernel is to much trimmed down and never includes the modules needed.

The SD-EXT partition is used to extend the data partition, not your external storage partition (The first external sdcard partition). So yes, everything within data will be placed on sd-ext. If you want your internal storage (/data/media) to act as your external, you should go with one of the swap internal apps on the market instead. But then your external will become your internal. Like I said, we cannot merge folders in Android due to limited kernels.

It was fixed in 3.3.4, but if your sqlite was working, why did you try to fix it? The option is meant for devices that does not ship with the sqlite binary?
[Android Apps and Games] Mad_Wolf:
I have a problem

I'm using note 2 with omega rom v18 and latest perseus kernel

I installed the mounts2sd app and the startup script also made 2 partitions to my ext sd card primary 10gb and the other one with 22 gb

When I was creating the second one windows gave an info that I will not give a letter to the second partition

I connected the sd card to my phone and restarted it for the script to take effect

I got stucked on boot screen... I remove the sd card and my phone starts normaly but when I try to restart it with the sd card it gets stucked

What can I do any suggestion ?
[Android Apps and Games] TopperBG:
Use MiniTool partition wizard home to make your second partition and make it EXT3 or EXT4, dont let Windows touch it.
[Android Apps and Games] Mad_Wolf:
I used EASEUS Partition Master 9.1.1 Professional Edition

The first one is fat32 primary

The second one is ext3 logical
[Android Apps and Games] dk_zero-cool:
Don't make logical volumes. They both need to be primary.
[Android Apps and Games] Mad_Wolf:
They are both primary first one fat32 second one ext4 but no use

still at boot screen
[Android Apps and Games] mikebeatrice:
I like the addon.d idea. In the meantime, I decided to try pushing the two files while still in recovery before rebooting..after updating my rom.

I verified the two files are where they should be after boot, but the script never starts doing it this way.

I'm probably just missing something stupid....Any ideas? What does your update file do that pushing the files isn't?

Thanks
[Android Apps and Games] dying4004:
i am trying with galaxy note 8.0

first partition is fat32 and second partition is ext4.

after installing rebooted fine. then rebooted again and stuck in bootloop.

reflashed rom and tried again and same issue.

any idea?
[Android Apps and Games] Silentbob999:
You probably just need to set permission on those files. (chmod 755)

I made some other file to be run from windows. The backup/restore batch are working great. The addon.d scipt I still have no proove that it work at the moment.

prerequist : windows, adb, debuging mode activated

List of files in the zip Mounts2SD-ScriptForUpdate.zip

Mounts2SD-script - BACKUP.bat

Meant to be run from windows before flashing your new rom. It will pull /system/etc/init.d/10mounts2sd-runner and /system/

etc/mounts2sd.sh from the phone to the pc.

Mounts2SD-script -RESTORE.bat

Meant to be run from windows after flashing your new rom. (But still in recovery, before first boot is the best moment). It will push 10mounts2sd-runner and mounts2sd.sh to the phone and set permission on files.

Mounts2SD-install-addon.d.bat

Meant to be run from windows at any moment. Install 55-Mounts2SD.sh on /system/addon.d/ and set permission on the files.

55-Mounts2SD.sh

Mean to be in addon.d, should be enouph to backup and restore automaticly Mounts2SD when you update your rom if it support addon.d mecanism. No prove that it work at the moment.
[Android Apps and Games] TopperBG:
Guys guys, listen - do not make logical, but primary partition !
[Android Apps and Games] Mad_Wolf:
Did exactly as told

have a 15 gb fat32 primary(first partition) and a 15 gb exfat primary(secondry partition)

uninstalled and installed the apk and the boot files

restarted my phone and got stuck at the boot screen

Removed the sdcard and now half of my apps are gone
[Android Apps and Games] dk_zero-cool:
exFat is a Microsoft file system, just like Fat32. And like Fat32, it does not support linux file permissions. And if Android cannot set correct file permissions on it's system and data files, it refuses to boot.

And to everyone else with boot issues.

Primary partitions only (Only few devices can detect logical, so I did not add the support)

Linux file systems only on the second one. No Fat32, no exFat and defiantly no NTFS.

Try with a clean install if the above has no result (It might be some old configs from either older m2sd versions or other a2sd scripts that creates conflicts)

Still no? Provide a log. I cannot tell you anything without one as it can be one of multiple millions of different issues. And by log I mean logcat output.

Also note, that most of these devices that have been reported issues on, is working fine for a lot of other people. So it CAN work. For an example the Galaxy Note, I have a couple of hundreds active of both the Note and Note2 registered at Play Store with all kinds of different ROM's. So do try with a clean install and see if that helps (This means format data and sd-ext). Do a recovery first and it will be fast and easy to return your current state if it does not work.
[Android Apps and Games] Mad_Wolf:
sorry mate my bad I wrote it wrong not exfat its ext
[Android Apps and Games] dk_zero-cool:
Okay :)

Did you try with a clean device? And if so, could you get a log so that I have a chance of seeing what is going on behind the scenes?
[Android Apps and Games] mikebeatrice:
Thanks for the addon.d script. Worked great flashing an updated cm10.2 rom on my htc sensation
[Android Apps and Games] enotar:
3.4.1 crash on launch just after looking for information, previous version didnt.S4 stock odexed rooted 4.2.2

Thank you
[Android Apps and Games] yecarrillo:
Latest version deleted all my apps.

Nexus One - Jelly Bean With Ext as Internal
[Android Apps and Games] dk_zero-cool:
Well can't fix it as I don't know where it is. Need a logcat if I am to do anything about it.

Well don't know what to tell you, accoording to the log it all looks fine. Could be something else.

And about the app creash, need a logcat.

EDIT:

Managed to reproduce this on one of the test devices, so that will make it easier to get it fixed. But still need a log of the crash, this I cannot reproduce on any of my devices.

No it did not, nether the script or the app has that option. But something could have gone wrong with the sd-ext partition so that it did not get mounted. But the apps is still there, just not linked to data.