Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q&A] Mounts2SD - Storage & Memory Management

OP dk_zero-cool

29th November 2011, 11:01 AM   |  #11  
Senior Member
Thanks Meter: 188
 
228 posts
Join Date:Joined: Jan 2011
Donate to Me
More
I am not sure what is going on in boot. I just saw your replies and haven't had a chance to update the script and mess with the phone. I do know that when I was playing with it before it kept using the busybox minimal that was in the kernel loaded in sbin I tried copying your version of busybox into bin and xbin (and now reverted back) but it would still use the one in sbin. What I would really like to do and would recommend is you design the script where you can put busybox in a certain location and the script will use that version over any other versions. I am still learning with all this and despite being able to create the files throw them in the correct places I don't know the code well enough to do this myself. Thanks again for all your help.
29th November 2011, 04:04 PM   |  #12  
dk_zero-cool's Avatar
OP Recognized Contributor
Flag Horsens
Thanks Meter: 4,424
 
3,277 posts
Join Date:Joined: Nov 2010
More
Ok i have changed the script so that it now forces the usage of /system/xbin/busybox or /system/bin/busybox and ignores /sbin/busybox

Place a full busybox version in one of the system bin folders, update the script and see what happends.

Otherwise paste a copy of "df -h" and "cat /data/mounts2sd.log | grep mounts2sd" here so that I can see what it does during boot.
The Following User Says Thank You to dk_zero-cool For This Useful Post: [ View ]
10th December 2011, 02:25 PM   |  #13  
virus2013's Avatar
Senior Member
Flag Waimes
Thanks Meter: 18
 
289 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Thanks for this. Just flashed the ICS beta 0.1 with your a2sd embedded. Just a suggestion, I added $CMD_CHMOD 777 $CMD_BUSYBOX at line 260, just after the affectation of CMD_BUSYBOX.
For now, it seems to work very well !
10th December 2011, 04:20 PM   |  #14  
dk_zero-cool's Avatar
OP Recognized Contributor
Flag Horsens
Thanks Meter: 4,424
 
3,277 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by virus2013

Thanks for this. Just flashed the ICS beta 0.1 with your a2sd embedded. Just a suggestion, I added $CMD_CHMOD 777 $CMD_BUSYBOX at line 260, just after the affectation of CMD_BUSYBOX.
For now, it seems to work very well !

That I don't get? $CMD_CHMOD is undefined at line 260 and why use busybox to change permissions on itself?
10th December 2011, 08:09 PM   |  #15  
virus2013's Avatar
Senior Member
Flag Waimes
Thanks Meter: 18
 
289 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by dk_zero-cool

That I don't get? $CMD_CHMOD is undefined at line 260 and why use busybox to change permissions on itself?

Sorry, I'm tired... :-\
In fact, I just wanna be sure that the busybox in /system/bin was executable as I pushed it into the rom zip. And as chmod was already used upper, I was thinking it could be a good idea. However, I'm not a script writer! ;)

Sent from my Desire running ICS
14th December 2011, 01:18 PM   |  #16  
jukyO's Avatar
Senior Member
Flag Ogulin
Thanks Meter: 333
 
1,768 posts
Join Date:Joined: Feb 2011
More
Hello Cool,

trying ICS with your script. Here is the output of logcat an df -h command:

Code:
# cat /data/mounts2sd.log | grep mounts2sd
cat /data/mounts2sd.log | grep mounts2sd
12-14 13:05:12.905 V/mounts2sd(   96): Initiating Mounts2SD (v:1.1.1)...
12-14 13:05:12.985 V/mounts2sd(  101): Including configuration file...
12-14 13:05:14.897 V/mounts2sd(  212): Searching for sdcard...
12-14 13:05:15.277 V/mounts2sd(  231): Searching for sd-ext partition (/dev/block/mmcblk0p2)...
12-14 13:05:16.198 V/mounts2sd(  254): sd-ext partition was mounted successfully...
12-14 13:05:16.728 V/mounts2sd(  278): Moving /data/app to /sd-ext/app...
12-14 13:05:17.049 V/mounts2sd(  297): Moving /data/app-private to /sd-ext/app-private...
12-14 13:05:17.209 V/mounts2sd(  305): Searching for the sd-cache partition (/dev/block/mmcblk0p3)...
12-14 13:05:18.050 V/mounts2sd(  326): sd-cache was mounted successfully...
12-14 13:05:18.280 V/mounts2sd(  335): A device is already mounted at /cache. Umounting it...
12-14 13:05:18.420 V/mounts2sd(  341): Moving /cache to /sd-cache...
12-14 13:05:18.440 V/mounts2sd(  342): Done!

df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   202.9M     32.0K    202.9M   0% /dev
tmpfs                   202.9M         0    202.9M   0% /mnt/asec
tmpfs                   202.9M         0    202.9M   0% /mnt/obb
/dev/block/mtdblock3    250.0M    165.0M     85.0M  66% /system
/dev/block/mtdblock5    147.6M     62.4M     85.2M  42% /data
/dev/block/mmcblk0p2    960.7M      1.2M    959.4M   0% /sd-ext
/dev/block/mmcblk0p2    960.7M      1.2M    959.4M   0% /data/app
/dev/block/mmcblk0p2    960.7M      1.2M    959.4M   0% /data/app-private
/dev/block/mmcblk0p3    295.9M    168.0K    295.8M   0% /sd-cache
/dev/block/mmcblk0p3    295.9M    168.0K    295.8M   0% /cache
/dev/block/vold/179:1
                          6.2G      4.6G      1.6G  75% /mnt/sdcard
/dev/block/vold/179:1
                          6.2G      4.6G      1.6G  75% /mnt/secure/asec
This looks good, can you please confirm?
Also, why is /data not on ext partition but on phone memory?

Thanks for the script though!

Cheers, keep up the good work.
14th December 2011, 03:35 PM   |  #17  
dk_zero-cool's Avatar
OP Recognized Contributor
Flag Horsens
Thanks Meter: 4,424
 
3,277 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by jukyO

This looks good, can you please confirm?
Also, why is /data not on ext partition but on phone memory?

Thanks for the script though!

Cheers, keep up the good work.

That looks as it should.

The whole /data is not moved to the /sd-ext for that simple reason that there are no hboot out there with 0mb /data.

I have options in my script to move both the .apk files (The applications) and the dalvik-cache which are the biggest things in the /data partition. If I moved everything to sd-ext, there would be nothing using the remaining space available on the internal data which is a waste of good space. It's like having an extra room in your house that is not used for anything at all. If we have to have it, we might as well use it

BTW:
You don't have dalvik-cache aktivated. So if you ever need more space on /data, activate it in /system/etc/mounts2sd.conf
Last edited by dk_zero-cool; 14th December 2011 at 03:39 PM.
The Following 2 Users Say Thank You to dk_zero-cool For This Useful Post: [ View ]
3rd January 2012, 12:58 PM   |  #18  
uzi2's Avatar
Senior Member
Thanks Meter: 588
 
2,367 posts
Join Date:Joined: Jun 2008
More
Quote:
Originally Posted by dk_zero-cool


BTW:
You don't have dalvik-cache aktivated. So if you ever need more space on /data, activate it in /system/etc/mounts2sd.conf

Could you provide an example mounts2sd.conf file, so that all settings could be established at first boot. This would make it much easier when updating ROMS.
3rd January 2012, 01:00 PM   |  #19  
Dunc001's Avatar
Recognized Developer
Flag Hiding out south of the border...
Thanks Meter: 1,436
 
2,656 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by uzi2

Could you provide an example mounts2sd.conf file, so that all settings could be established at first boot. This would make it much easier when updating ROMS.

You don't need a .conf file now - it's not used. You simply install the zip and then use the m2sd commands in terminal to make changes (see instructions in OP - type m2sd help for more info)
The Following User Says Thank You to Dunc001 For This Useful Post: [ View ]
3rd January 2012, 01:04 PM   |  #20  
dk_zero-cool's Avatar
OP Recognized Contributor
Flag Horsens
Thanks Meter: 4,424
 
3,277 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by uzi2

Could you provide an example mounts2sd.conf file, so that all settings could be established at first boot. This would make it much easier when updating ROMS.

The config files is deprecated and replaced with the "m2sd" command, as said above. Settings is saved to /data/.m2sd which means that it keeps your settings when you flash new ROM's as long as you don't wipe data.

The Following User Says Thank You to dk_zero-cool For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes