[Q&A] Mounts2SD - Storage & Memory Management

Search This thread

pedrofidalgo

Senior Member
Jan 16, 2012
535
95
Every time i used the re-mount option, and i install pimp my rom, i get a lot of fc's .. i think its related to davilk cache, since the recovery cant wipe it .. it should appear something like: optimizing app 3 of 99 and it dont .. i think its because it dont wipe davilk
 

dk_zero-cool

Senior Member
Nov 6, 2010
3,529
4,996
Horsens
Every time i used the re-mount option, and i install pimp my rom, i get a lot of fc's .. i think its related to davilk cache, since the recovery cant wipe it .. it should appear something like: optimizing app 3 of 99 and it dont .. i think its because it dont wipe davilk

Almost all recoveries has sd-ext included, which means that they wipe both /data/dalvik-cache and /sd-ext/dalvik-cache. I would switch my recovery if yours don't.

However, if your phone runs m2sd in safe-mode and you disable this in order to use r-mount, then there is your problem. Safe-mode means that the device will not work well with r-mount which is why safe-mode was added. Some times it will work with dalvik-cache, and maybe moving /data/data, which is why I made an option to disable it. But r-mount will almost never work in this situation.
 
Last edited:

Prof.Dr.Moura

New member
Dec 17, 2012
2
0
São Paulo
It means that the command "mount --move /data /sd-ext" failed. I will need a complete bootup logcat in order to find the issue, it will contain any shell errors which is not in the regular log.

I am no Windows shell expert, in Linux I would turn the phone off, plug-in the USB cable, run the command "adb logcat | grep -i mounts2sd" (which will sort out any non-m2sd related log entries) and turn the phone on.

This is most likely an issue with the init.d method. If evervolv runs init.d as a service rather than an execute command, the boot process is not stalled while init.d is running, and /data might be used by some boot process making it impossible to move the mount point do to a busy signal. But again, a complete logcat will help more.

In the mean time, I will look for script bugs regarding this issue

Ok... this is the best I could do!!! Any ideais?
 

Attachments

  • logcat__the_best_I_could_do.jpg
    logcat__the_best_I_could_do.jpg
    110.3 KB · Views: 209

dk_zero-cool

Senior Member
Nov 6, 2010
3,529
4,996
Horsens

rkmiks

Senior Member
Jul 1, 2012
505
183
My samsung galaxy Y keeps on showing the boot animation and doesn't start with the new script and application. However the older script used to work perfectly.
 

dk_zero-cool

Senior Member
Nov 6, 2010
3,529
4,996
Horsens
My samsung galaxy Y keeps on showing the boot animation and doesn't start with the new script and application. However the older script used to work perfectly.

Not in any way to sound like an ass, but how do you expect me to help you with this little infomation? I have a Galaxy Y my self as test Phone which is working perfectly fine with this. I need more if I am to help. Grap a logcat while you try to boot your phone. That should contain some infomation about the reason to this issue.

You can search google on how to get a logcat if you don't already know how.
 

CsabiDuke

Member
May 27, 2008
17
0
Budapest
www.htpc.hu
The software on my Xperia Arc S is always stops after the initialize. :(
Somebody know this issue?
After I reboot with the script, the /sd-ext size is 0.0/0,0MB in "Partition Table" program from Market. Like if not mounted.

My config:
Kernel: [KERNEL]ARC/S-Advanced stock-4.1.B.0.587-[ROOT+INIT.D+CWM+SD-EXT]
Rom: [ROM]=- Xperia Ultimate HD™ 2.0.2 -= [ Fastest ICS ROM ] & [ Most Stable + Best UI ]
Rooted, open bootloader.
 

dk_zero-cool

Senior Member
Nov 6, 2010
3,529
4,996
Horsens
The software on my Xperia Arc S is always stops after the initialize. :(
Somebody know this issue?
After I reboot with the script, the /sd-ext size is 0.0/0,0MB in "Partition Table" program from Market. Like if not mounted.

My config:
Kernel: [KERNEL]ARC/S-Advanced stock-4.1.B.0.587-[ROOT+INIT.D+CWM+SD-EXT]
Rom: [ROM]=- Xperia Ultimate HD™ 2.0.2 -= [ Fastest ICS ROM ] & [ Most Stable + Best UI ]
Rooted, open bootloader.

It it shows 0Mb, then it is most likely not mounted. Could you please provide the log? You can save it to the sdcard from within the Log Viewer. I cannot guess what the problem is, as it could be a lot of different things. So the log for starters would help.
 

ForMartha

Senior Member
Jun 26, 2011
237
42
It it shows 0Mb, then it is most likely not mounted. Could you please provide the log? You can save it to the sdcard from within the Log Viewer. I cannot guess what the problem is, as it could be a lot of different things. So the log for starters would help.

Hey DK,
I'm using Evervolv's (Derwis - Texasice) 4.2 rom for N1, and i wanted to use the APK that you provided.
after restarting the phone - i saw that the R-mount didnt work..

i had to Nandroid back to 4.1,
what can cause the problem?

BTW why the BCM project has stoped? i miss it a lot! it was the best!!...

Bye.
 

dk_zero-cool

Senior Member
Nov 6, 2010
3,529
4,996
Horsens
Hey DK,
I'm using Evervolv's (Derwis - Texasice) 4.2 rom for N1, and i wanted to use the APK that you provided.
after restarting the phone - i saw that the R-mount didnt work..

i had to Nandroid back to 4.1,
what can cause the problem?

Many things, a log would help. However, the script do have safe guards for this that makes sure that even if rmount fails, the other settings adapt so that all content remains on the same partitions. So don't see why you would need to do a nand restore?

BTW why the BCM project has stoped? i miss it a lot! it was the best!!...

It did not stop. It moved to the SpazeDog thread which should be getting an update soon. Just had other projects, like this one, that also needed some more attention. It can all be a little time consuming and it can be difficult to find the time for everything.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 276
    Mounts2SD - Storage & Memory Management

    The Opening Post (OP) has been moved to a new DevDB Section

    This Thread has been assigned as an Q&A.
    You should see a new pane above where you can navigate this project.
    16
    About dalvik-cache? It remains in phone memory?

    dalvik-cache remains, so does all of the app related data. Only the APK's is moved.

    Hi I cant understand How to use it ! any guide ?!

    First of all you need a custom rom. If you have a stock rom it will not work since you need a rom that will allow custom scripts during boot.

    You will also need to know how to use ADB (An android tool for communicating with your phone. It is used to enter the android shell and also to transfer files to and from the phone, among other things).

    And last, you will need at least 2 or 3 partitions on your sdcard (Otherwise it's a waste of time, although the script is build to adapt for these scenarios). One as a regular fat32 sdcard partition, one for the sd-ext and one for the cache. (Use ext2 for the last two. ext3 will eat your card to fast)

    Here is the steps (You need to have ADB working on your computer).

    1. Copy/Paste the script content into a file editor and safe the file with the name "99mounts2sd"
    2. Plug your phone to your computer using a usb cable (Select charge only on your phone))
    3. Open a terminal on your computer (In windows use "run" and type "cmd")
    4. Type in shell: "adb shell mount -o remount,rw /system"
    5. Type in shell: "adb push <path to script> /system/etc/init.d/"
    6. Type in shell: "adb shell chmod a+x /system/etc/init.d/99mounts2sd"
    7. Reboot your phone

    The first time you boot your phone using the script it will take some time, because the script needs to copy all of your APK's from internal storage to the sd-ext partition.
    13
    Within a week or so, I will release a new major update of Mounts2SD, which will contain


    1. New Re-written script with additional new option
      1. Seperate option for app libraries (Android 4.x)
      2. New option to move /data/media (The new type of internal sdcard used on Samsung among others)
      3. Ability to enable ZRAM
      4. Ability to set preferred scheduler on external and internal MMC
      5. Ability to also set readahead on internal MMC
      6. Ability to set preferred storage threshold, or disable it (Instead of hard coded value)
      7. The finalising part has been added to a sub-process which is started by the app itself. This is no longer depended on the app to execute it after boot
      8. Default values will be configured based on the device and it's abilities
      9. And more....
    2. New Re-written app
      1. Live overview (No more pre-defined onboot status properties)
      2. New layout
        1. 3 different layout's for small phones screens, normal phone screens and tablet screens (And of cause different landscape/portrait layouts for each of them)
      3. Only allow the owner to control the script (Android 4.2 multi-user)
      4. New Re-written RootFW (Spazedog Root Framework)
      5. New and better extended AsyncTask for background loading
      6. Overview and Configure will now adapt to the abilities available on the device (For an example, SWAP will not be displayed at all on devices without SWAP suppport)
      7. And more...


    However, before this is finished, I would like it very much if someone could provide me with a version of /system/etc/recovery.sh after Link2SD has added whatever content it adds to this file, so that I can update the auto sd-ext deletion script to better remove Link2SD from a device. I have tried installing Link2SD on two of my test devices, but on neither was anything added to this file. So for now I have just update the deletion script to also include the Link2SD app, which should take care of most of the problems when migrating from this.
    9
    Test Package Available

    I have added a test package to the OP under the category "Testing Downloads" containing a preview of the upcoming version. This package is NOT a recovery package. It is just an archive containing the app and the script, you will have to manually copy the script to the init.d location (Not yet implemented in the app) and you will have to manually configure the script using the /data/property/m2sd.* files (also, not yet implemented in the app). There are two APK's in the package which uses two different themes (will be changeable in the app when it is done).

    The script should be finished, I have used it myself for the past month, but some more test devices would not hurt. The app however still have some work to be done. The overview is working fine, but I have yet to add some persistent storage for the configurations, so there will be a lot of loading each time you open it. Also there is still no configurations, no log viewer and no app settings for script installation, theme changer and so fourth.

    This is only meant for some early testing, mostly to test the script. It is not a finished product, so don't provide bug reports about missing app features, extensive app loading, missing Aroma installer and so on. All will be available soon. At this point I am only interested in script issues and possible issues with the app overview screen.

    The Script

    • Move Applications, Application Data, Application Libraries, Dalvik-cache and Data Media (Internal Storage) to sd-ext
    • Supports any file system type supported by the kernel
    • Handles Unix Lost+Found folder content to avoid having it take up to much disk usage
    • Supports SWAP and ZRAM (If kernel supports it)
    • Move the main cache partition to data or sd-ext, depending on available space
    • Change storage threshold to minimize the Android low storage market issue
    • Set Readahead and Scheduler for both internal and external MMC
    • Sets optimized mount parameters on the internal partitions
    • Safe-mode and new alternative work-around for service implemented init.d ROM's
    • Compares content with available disk space before moving content around to avoid corrupted data
    • More than a half dozen mount operations to ensure successful sd-ext mount, despite possible issues
    • File system check and repair
    • Enable/Disable ext4 journal
    • Supports storing system applications on /data and /sd-ext
    • A large number of different safe guards to avoid all kinds of thinkable issues
    • Fully adapts to different shell environments
    • 100% functional programming structure (Much better code overview)
    • Properly more...

    The APP

    • Fully working live overview (No more comparing static status properties)
    • Uses my TaskManager project (Handles background work much better)
    • Uses my latest RootFW from the development branch
    • Contains 5 different tab layouts which will be used depending on screen size and rotation
    • Contains both a light and dark theme
    9
    New release is out, and Play Store is finally updated as well. Just missing the recovery package, which I will have ready during the weekend.

    One notice about this release.
    I have added an additional tab entry with the feature of converting apps into system apps. This feature is a paid one, as this seamed like a good way of adding some donations. And because this is only more or less meant as a donation, the downloads on XDA is fully unlocked. Just note that if you install or update from Play Store, you will get a locked version without this additional feature.

    Also, the current feature is only a small start. I am going to add more individual application features to this tab.