[Q] Need some help please. ref Synergy Rom and a2sd - EVO 4G Q&A, Help & Troubleshooting

This is a screen of TB. I just partitioned to ext3 by way of reapers tutorial and did a wipe and install of the new RC1. I have been reading this isn't required but a good idea. I actually had RC1 for awhile before this. Once I installed the 3d rosie I noticed some issues so I went the suggested route.
I have never seen the break down like this. System ROM, Internal, SD Card, and SDCard (a2sd).
I know what the top 3 are but had a question about the later. That thread is just moving WAY to fast so when I search I am getting a ton of useless info.
I am not to familiar with the a2sd, if someone could reference me to decent instructions I would be greatful. Preferably to this rom specific if that matters. Also, would moving apps over increase my System memory?
I should say I tried it once with CM7 but after I moved some apps it botched up a lot of things(not recognized, no widget available ect...). I also used TB to do it so I'm not sure if that was a no no or not.
Thank you

Anyone please?

Since this guide was posted, I'm getting questions ask on how to use Darktremor Apps2SD.
Darktremor Apps2SD is a command line interface (CLI) program (a GUI is planned, but has not been built).
You will need either a terminal program from the Android Marketplace, or you will need ADB from the Android Software Development Kit (SDK).
If you are using a terminal program, simply start up the program. Type su to allow the terminal program to gain superuser access (if you are using Superuser.apk to manage your superuser permission, this will automatically trigger a popup on the very first run. Press Accept to allow the terminal program superuser access).
If you are using ADB, simply navigate to the directory you stored the Android SDK in. Then navigate to the Tools directory under the SDK folder. Type adb shell in a command line on your computer (ADB can be found in the SDK under the Tools folder).
Both of these methods should bring you to a prompt that displays a pound sign (#).
Once you have the superuser prompt, simply type /system/bin/a2sd followed by the command you wish to use (i.e. /system/bin/a2sd check)
The list of commands are below.
Quote: Syntax
Syntax: /system/bin/a2sd command
command is one of the following:
Quote: Standard Apps2SD Commands: --------------------------------------------------reinstall Moves free and paid apps to the ext2/ext3/ext4 partition on your secure digital card. Removes the No A2SD flag file. This is used if you have already executed an a2sd remove command. Otherwise, this part is automatically performed when Apps2SD is started. File removed: /data/.noa2sd
remove Moves free and paid apps to the internal phone storage. Creates the No A2SD flag file. File created: /data/.noa2sd Quote: Swap Partition Commands: --------------------------------------------------reswap Removes the No Swap flag. Allows A2SD to activate the swap partition. This is used if you have already executed an a2sd noswap command. Otherwise, this part is automatically performed when Apps2SD is started. Note: This command has no effect in CyanogenMod 6. Swap space is disabled in the kernel. File removed: /data/.noswap
noswap Creates the No Swap flag. Prevents A2SD from activating the swap partition. Note: This command has no effect in CyanogenMod 6. Swap space is disabled in the kernel. File created: /data/.noswap Quote: Dalvik Cache Commands: --------------------------------------------------cachesd Moves Dalvik cache files to the ext2/ext3/ext4 partition on your secure digital card. Creates Dalvik Cache to SD flag. Quote: Caution: If your phone fails to mount the ext2/ext3/ext4 partition and your dalvik-cache is pointed to the SD card, you will likely end up in a boot loop. Execute a2sd nocache from adb shell to rectify the issue. File created: /data/.dalvikcacahe File removed: /data/.dcpartition
cachesdreset Same as cachesd above, but erases the contents of the dalvik-cache after move. This performs both the a2sd cachesd and a2sd resetcache all in one command. File removed: /data/.dcpartition
cachepart Moves Dalvik cache files to the /cache partition in your phone. Creates Dalvik Cache to Cache Partition flag. Quote: Caution: Some phones do not have enough space to put the dalvik-cache on the cache partition. Also, some roms that have SenseUI installed will not work well with the dalvik-cache on the cache partition. If you experience issues such as force closes, try moving the dalvik-cache to the SD card (a2sd cachesd) or internal storage (a2sd nocache) instead. File created: /data/.dcpartition File removed: /data/.dalvikcache
cachepartreset Same as cachepart above, but erases the contents of the dalvik-cache after move. This performs both the a2sd cachepart and a2sd resetcache all in one command. File removed: /data/.dalvikcache
nocache Moves Dalvik cache files to the internal phone storage. Removes all Dalvik Cache flags. File removed: /data/.dcpartition, /data/.dalvikcache
nocachereset Same as nocache above, but erases the contents of the dalvik-cache after move. This performs both the a2sd nocache and a2sd resetcache all in one command. File removed: /data/.dcpartition. /data/.dalvikcache
resetcache Clears the dalvik cache and restarts phone. Quote: Apps2SD Diagnostic Commands: --------------------------------------------------check Performs a symlink and flag file check on your setup. Outputs a report that shows you if there are issues with your Apps2SD setup.
repair Performs a repair of all symlinks based on flag file activation.
diskspace Shows disk space statistics for the ext partition.
sysinfo Displays information about your phone, partitions, swap, and more. Also writes a dump file that has an entire profile of your phone. This is for troubleshooting only. File Created: /data/dtsysdump.txt
swapspace Shows swap space statistics for all swap space active on the phone. Has no effect with CyanogenMod 6, as the swap space does not activate Quote: ZipAlign Commands: --------------------------------------------------align Performs a one-time zipalign on all APK files in /data/app and /data/app-private.
zipalign Allows ZipAlign to execute during the boot process. Creates the ZipAlign flag file. File Created: /data/.zipalign
nozipalign Prevents ZipAlign from executing during the boot process. Removes the ZipAlign flag file. File Removed: /data/.zipalign Quote: Dalvik Setting Commands: --------------------------------------------------jit Installs DalvikVM JIT. Quote: WARNING: Do not run this command if your phone has NAND protection active. nojit Removes DalvikVM JIT. Quote: WARNING: Do not run this command if your phone has NAND protection active. defaultheap Resets the Dalvik heap size to the default heap size. File Removed: /data/.smallheap, /data/.largeheap, /data/.jumboheap
smallheap Sets the Dalvik heap size to 16MB. File Created: /data/.smallheap File Removed: /data/.largeheap, /data/.jumboheap
largeheap Sets the Dalvik heap size to 24MB. File Created: /data/.largeheap File Removed: /data/.smallheap, /data/.jumboheap
jumboheap Sets the Dalvik heap size to 32MB. File Created: /data/.jumboheap File Removed: /data/.smallheap, /data/.largeheap Quote: Low Memory Killer Commands: ----------------------------------------------------lowmem-moderate Sets the internal memory killer to the following settings: Code: Foreground Apps: 1536 pages / 6 MB Visible Apps: 3072 pages / 12 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 7680 pages / 30 MB Content Provider: 8960 pages / 35 MB Empty App: 10240 pages / 40 MB Create File: /data/.lmmoderate Remove File: /data/.lmoptimum, /data/.lmstrict, /data/.lmaggressive, /data/.lmultimate, /data/.lmextreme
lowmem-optimum Sets the internal memory killer to the following settings: Code: Foreground Apps: 1536 pages / 6 MB Visible Apps: 2048 pages / 8 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 10240 pages / 40 MB Content Provider: 12800 pages / 50 MB Empty App: 15360 pages / 60 MB Create File: /data/.lmoptimum Remove File: /data/.lmmoderate, /data/.lmstrict, /data/.lmaggressive, /data/.lmultimate, /data/.lmextreme
lowmem-strict Sets the internal memory killer to the following settings: Code: Foreground Apps: 1536 pages / 6 MB Visible Apps: 2048 pages / 8 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 15360 pages / 60 MB Content Provider: 17920 pages / 70 MB Empty App: 20480 pages / 80 MB Create File: /data/.lmstrict Remove File: /data/.lmmoderate, /data/.lmoptimum, /data/.lmaggressive, /data/.lmultimate, /data/.lmextreme
lowmem-aggressive Sets the internal memory killer to the following settings: Code: Foreground Apps: 1536 pages / 6 MB Visible Apps: 3072 pages / 12 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 21000 pages / 82 MB Content Provider: 23000 pages / 90 MB Empty App: 25000 pages / 98 MB Create File: /data/.lmaggressive Remove File: /data/.lmmoderate, /data/.lmoptimum, /data/.lmstrict, /data/.lmextreme, /data/.lmultimate
lowmem-extreme Sets the internal memory killer to the following settings: Code: Foreground Apps: 1536 pages / 6 MB Visible Apps: 3072 pages / 12 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 38400 pages / 150 MB Content Provider: 40960 pages / 160 MB Empty App: 43520 pages / 170 MB Create File: /data/.lmextreme Remove File: /data/.lmmoderate, /data/.lmoptimum, /data/.lmstrict, /data/.lmaggressive, /data/.lmultimate
lowmem-ultimate Sets the internal memory killer to the following settings: Code: Foreground Apps: 1536 pages / 6 MB Visible Apps: 3072 pages / 12 MB Secondary Server: 4096 pages / 16 MB Hidden Apps: 51200 pages / 200 MB Content Provider: 57600 pages / 225 MB Empty App: 64000 pages / 250 MB Create File: /data/.lmultimate Remove File: /data/.lmmoderate, /data/.lmoptimum, /data/.lmstrict, /data/.lmaggressive, /data/.lmextreme
lowmem-default Sets the internal memory killer back to phone default settings. Remove File: /data/.lmmoderate, /data/.lmoptimum, /data/.lmstrict, /data/.lmaggressive, /
Sent from my PC36100 using XDA App

There is also a GUI in the market that makes this really easy its called a2sdGUI
Sent from my PC36100 using XDA App

When I setup Synergy the other day, for the first time,m I noticed I had only 124 mb free on Internal, even though I've had a 1 gig EXT3 partition and a 64 mb Swap partition.
Now, the way it was explained to me is that A2SD is not built into Synergy, but instead, in the Synergy Updater, you have to flash the modified version via the updater.
Then you can run your swap commands. However, when I run a2sd reswap, it failed on mine, so I was told to reformat my SD Card, and setup a 2 gig EXT3 and then run the a2sd again and that should fix it, which I haven't done yet.
Here's the results of my a2sd reswap, attached and my TB screen

Try using the reinstall command
Sent from my PC36100 using XDA App

james873 said:
Try using the reinstall command
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
That failed, too, attached

Try using /system/bin/a2sd reinstall
Sent from my PC36100 using XDA App

james873 said:
Try using /system/bin/a2sd reinstall
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Looks like it could be working... processing all my apps, now rebooting
EDIT! Same thing on a2sd reswap... command failed.
I think my next step is to back up my sd card, then reformat it, and repartition to a 2 gig EXT3 and try again

Thanks for the read and the help peeps! Its long so ill have to catch it at home instead of the app lol.
Thanks again
Sent from my PC36100 using XDA Premium App

Here's what I did/doing.
I reformatted my SD Card, repartitioned to 2 gig ext and 128 swap.
Then I wiped everything and reinstalled Synergy. After setting it up, but before I restored my apps, I'm at 363 free internal. That's a great thing.
Now, once my restore is done, I'm at 316 free internal, so it's looking good!

Ok I am still lost here, sorry guys.
I just moved over to Synergy/Kingdom with 7/14 and now I show this.
Also, in that thread I was doing some nosing around and tried 'link2sd'. The app2sd thing i am still trying to figure out some so I thought this would be a bit more novice but I still am not sure how this is working and where I am actually freeing up space.
With link2sd does it move apps from the system partition over? After moving about 10 apps of decent size I went to check the partitions in the app and nothing had changed.

hellppppp meeee /ET Voice
lol

Related

How to check if Apps2SD has been installed correctly...

The following information is for those who are still unsure of whether Apps2SD has been installed and if it is working correctly after root.
Open a Terminal Editor on your phone (I currently use ConnectBot, which is available for download via the Android Marketplace, comes with hotkeys, and it's free, link <here>).
When you have the client open, type "su" to gain super user access, and then hit enter. Now type "ls -l /data" and hit enter. You should see a few lines, a couple of which should read on the far right column:
dalvik-cache -> /system/sd/dalvik-cache
app-private -> /system/sd/app-private
app -> /system/sd/app
Notice the -> indicating symlinks and the 'sd'
You can also run: busybox df -h to check the /system/sd that the folder is being used
If this output is visible to you, then Apps2SD is working properly and you have installed it correctly. You will notice that by checking Menu > Settings > SD & phone storage, there is still some internal memory going down due to cache, other data, etc, but the main apps all go on the SD card given the above result. I currently have 29 apps installed (including Google Earth, which is 22.1 MB in size itself) and my internal memory currently shows 119MB of available space.
You can perform more extensive checks by executing the following command:
ls /system/sd/app (this will list all the apps which you have installed to the SD card)
If you prefer to run it from a PC with your phone connected, then this can also be checked via ADB by installing the relevant Android SDK for your OS. Downloads for SDK versions, link <here>.
Alternatively, you can use the script (written by theboxman from MoDaCo.com), which you can run via GScript Lite to test if Apps2SD is working correctly, link <here>.
how about unlock?
thank you for the info. btw, i havent seen in the forum if there a way to unlock the Desire form a certain network. any idea? sorry i know its the wrong place to ask and post this.
Hi Mastoid,
Could you tell me how exactly to run this from PC?
I've got the whole SDK installed but no idea what i have to do...open a prompt or something? Please inform as i'd really like to check.
You need to download the Android SDK and also Java.
http://java.sun.com/javase/downloads/widget/jdk6.jsp
http://developer.android.com/sdk/index.html
Then open a command prompt in Windows, plug in your Desire (your phone does not need to be in hboot/fastboot to access adb shell).
1) Open a command prompt on your computer and cd to your adb tools directory (it will be wherever you extracted the sdk; ie, c:\android-sdk_r04-windows\android-sdk-windows\tools
2) In that window enter the following commands:
adb shell
su
ls -l /data
this should list the top 2 items as:
lrwxrwxrwx root root 2010-04-28 22:54 app-private -> /system/sd/app-private
lrwxrwxrwx root root 2010-04-28 22:54 app -> /system/sd/app
ls -l /system/sd/app (will list apps on installed to your SD Card)
Now, for final proof, type:
busybox df -h
iom_jack said:
thank you for the info. btw, i havent seen in the forum if there a way to unlock the Desire form a certain network. any idea? sorry i know its the wrong place to ask and post this.
Click to expand...
Click to collapse
Do you mean to have it sim-unlocked?
http://uk.answers.yahoo.com/question/index?qid=20100328154024AA1abkl
Great!
That worked, though the items you mention are not at the top but a couple of rows down. Busybox did show the apps installed on the SD.....ah, peace of mind
thx for the instructions!
no problem bud, glad it worked out for you
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Question about APP2SD.....if anyone can answer
can it stop working halfway? i mean at first it really looked like apps were on SD but now it takes the flash memory instead....
i have 38m left with APP2SD
totorip said:
can it stop working halfway? i mean at first it really looked like apps were on SD but now it takes the flash memory instead....
i have 38m left with APP2SD
Click to expand...
Click to collapse
I posted a thread recently showing how to check if Apps2SD has been installed correctly and is working:
http://forum.xda-developers.com/showthread.php?t=677073
How to setup App2SD?
Anyone got a clear, easy guide on getting it working? Can you install it on the standard rooted ROM from MoDaCo? Do you need to have it cooked into a ROM?
A video or something would help but I'm interested in getting it setup incase I need to get a load of apps
î did your think i i use better terminal pro
app => system/sd/app
dalvik cache => /system/sd/dalvik cache
app private => /system/sd/ app private
so how can i have around 40mb left only?
Re: Question about APP2SD.....if anyone can answer
How many apps have you installed?
How have you partitioned your sd card? i.e. swap size?, ext2 size?
Have you applied the Apps2SD update zip?
-------------------------------------
Sent via the XDA Tapatalk App
ive got maybe 40/50apps
i partitionned , 66 cache 1280m EXT 2=> EXT3
and no update....i dont need with the latest modaco R2 custom rom do i?
im afraid to reboot everything again, spent the whole day to isntall everything
30mb left :x
Re: Question about APP2SD.....if anyone can answer
I would suggest that you apply the dalvik-cache update zip and that should hopefully fix it. Note that you should only allocate 512MB to 1024MB (max) for the ext2 size and, you do not require a swap of 66MB, it is not recommended. I have my swap set to 0MB, ext2 set to 512MB which is more than enough space for apps, and rest to FAT32.
Search google for the "Apps2SD mini guide" (found via MoDaCo website) click the link and scroll down to the bottom of page one, the update zip file is available there.
-------------------------------------
Sent via the XDA Tapatalk App
is it bad? (64 swap)
i calculated, i installed 170m worth of app. And i have "43" left (started at 138)
so , somewhere, APP2SD is working...but not verry effective
Re: Question about APP2SD.....if anyone can answer
I think it is working, run the command (ls /system/sd/app) in terminal editor in the link i posted earlier and check what apps are stored to the sd card. Also, download and install "cachecleaner" from the marketplace (free) to free up some cache space.
-------------------------------------
Sent via the XDA Tapatalk App
Re: Question about APP2SD.....if anyone can answer
You have something wrong. I have also this Rom with about 53 apps and have still 134MB free.
Sent from my HTC Desire
i installed the update.zip
i went from 38 to 53mb
then i use cache cleaner , i now have 60....
and still 170m worth of app...
so is my app2sd working in half?
Re: Question about APP2SD.....if anyone can answer
I ran the command in Su, and only the 2 app ones said sd, my dalvic cache didn't say SD card. I ran the suggested update fix but had bootloop, do I need to wipe anything first? I'm using evil 1. 0 Rom and thought it came pre app2sd. . .
Id like to get dalvic moved. . .
Thanks
-------------------------------------
Sent via the XDA Tapatalk App
Lol since thazt update zip i have no more wifi....cant start wifi it says. Great

[initrd][DL Data2SD/Ext4+ V1.5] Enable your build with fast ext4/data.img support

This is my development based on Takaaki's initrd, during I develop my build at http://forum.xda-developers.com/showthread.php?t=913597, I spent a lot of time to enhance the data2sd and ext4, after studying almost all the popular methods: App2SD, Data2SD, Data2ext, Data2whatever, I develop this:
Features:
1. Support both data 2 data.img or ext4.
2. Support SquareFS.
3. Auto-format the 2nd partition with block size of 4096.
4. Utilize the Nand data partition to improve the performance.
5. Switch the PPP/RMNET.
6. Config the gps_zone
7. Support the update without re-flash. (you can fully customize your build based on this feature)
8. Backup the ext4 to data.img (implement in future)
9. Restore the data.img to ext4 (implement in future).
To enable external data.img
1. create '.data' folde under sdcard (/sdcard/.data).
2. create 'config.txt' under '.data' directory.
3. copy old data.img to '.data' directory, otherwise a new data.img will be created.
4. boot into Android.
Config.txt for data2SD.
data_img=1
data_ext=0
sd_boost=1
nand_data=0
Click to expand...
Click to collapse
To enable ext4
1. create '.data' folde under sdcard (/sdcard/.data).
2. create 'config.txt' under '.data' directory.
3. Config.txt for data2SD.
data_img=0
data_ext=1
sd_boost=0
nand_data=0
format_ext4=0
Click to expand...
Click to collapse
For first installation, it is always good to set the format_ext4=1 to format your ext4 partition with proper block size, after 1st boot, change it back to 0.
To config PPP/RMNET and GPS_ZONE
ppp_mode=1 will enable the ppp, set to 0 will use rmnet.
gps_zone='your country code', - country code, us, fr, jp, etc
To update/customize your build
1. Create a folder /DLZUPDATE under your sdcard.
2. put your app's apk under AndroidApps in /DLZUPDATE, that apps will be automatically installed into your data partition.
3. put your kernel file or other under root in /DLZUPDATE, all the files under root will be copied to your build, if your want to upgrade your kernel, just put zImage in /DLZUPDATE/root/system, and module files under /DLZUPDATE/root/system/lib/modules. etc.
Download
View attachment 492146
Install
1. extract the zip to a folder on your pc
2. backup your existing initrd.gz using adb
3. In "command prompt" env, run install.
4. your existing initrd.gz will be backup at the same folder named backup.initrd.gz.
5. if your have problem to boot into the system, just try: adb push backup.initrd.gz /system/initrd.gz. (even system can not be booted into the launcher or sense, in some point of time, the adb still can function, so just keep trying.)
Caution: if your build current use app2sd, you have to disable it before using this, rename the init.local.rc under etc to init.local.rc.bak, remove the 00start, 04apps2sd from /system/etc/init.d.
If your build uses boot partition, you should change the installation script to push the initrd.gz to replace the existing one wherever it is.
Thanks to
- ownhere (he is the expert of the ext4 or other file systems, and developed the data2ext.)
- melethron (the author of data2whatever)
- Takaaki (the author of data2sd)
- Cedesmith (He is guru of initrd )
Donation
I do not work for money, but it is always nice to know people really like my work and encourage me carrying on.
Please could you provide also information in case that NAND rom already use EXT4 for data2ext4 (like AF403 DesireHD stock based 1.0a)?
Good stuff.. thank you!
I am trying your NAND ROM now....
Good knowledge ... keep up cool stuff
i already use ur nand rom
If you don't want to look into the code to find out the difference, then, how about just try 1st.
totalcmdext said:
Please could you provide also information in case that NAND rom already use EXT4 for data2ext4 (like AF403 DesireHD stock based 1.0a)?
Click to expand...
Click to collapse
Sent from my DL DesireZ v2.5 using XDA App
Ok, i've managed to understand the concept of data2ext, and when on initial setup everything gets what i expect, i've 1 GB (depends on ext partition size) of free memory space, but i get an horrible performance even if formated with your tool, i guess it's SD performance/quality because i can't run any ext build published here where most of users claim to get good performance. So i try data2sd but instead of the 512MB (img size created with this) of memory i get only the 80MB of the free nand internal ram. What is stored on this img file ? only settings ? On 20 applications i use only 4 are movable to sd, so after my initial setup (and of course with good performance) i get a lot of memory low warnings.
Thanks
Looks like the data2sd was not enforced, what's your configuration in config.txt?
jpl69 said:
Ok, i've managed to understand the concept of data2ext, and when on initial setup everything gets what i expect, i've 1 GB (depends on ext partition size) of free memory space, but i get an horrible performance even if formated with your tool, i guess it's SD performance/quality because i can't run any ext build published here where most of users claim to get good performance. So i try data2sd but instead of the 512MB (img size created with this) of memory i get only the 80MB of the free nand internal ram. What is stored on this img file ? only settings ? On 20 applications i use only 4 are movable to sd, so after my initial setup (and of course with good performance) i get a lot of memory low warnings.
Thanks
Click to expand...
Click to collapse
Sent from my DL DesireZ v2.5 using XDA App
This is good and detail steps http://forum.xda-developers.com/showpost.php?p=10666187&postcount=341 on how to config, better than mine
Sent from my DL DesireZ v2.5 using XDA App
If i understand this, this is only change existing inird with modified initrd?
I'm sorry but with all this flash/unflash install/uninstall download configure i've lost my config, but i'm sure data_img=1 and data_ext=0
(just a note gps_zone=pt should configure gps to be used here in Portugal right ?)
If you say that it should work i'm going further with my tests and post here results because i don't want to flame this thread.
Update:
I've a stock 8GB class 4 card swaped with 4GB class 2, results on nand/ext4:
Initial setup (with format ext4) 1/2 time, second boot 1 minute and everything runing muuuch smother and faster so or i've got a malfunction card (?) (and i've read someone complaining about a 16GB class 10) or lowest class gets more speed (?)
Update2:
The diference is really amazing, i've got a completly functional android now with this card.
You should mention on your threads that if you get bad results on initial setup forget about that nand, return to SD builds or get other card.
Can you please post your card type please ?
how long does it take to format the ext4?
Hi,
I am trying to setup this new initrd, i put the format ext4 parameter in the config file and start my HD2.
wondering how long will it take to format my 1G ext4 partition?
thanks!
data.img Question
3. copy old data.img to '.data' directory, otherwise a new data.img will be created. ... Can I somehow set how big will the data.img be ?
Default will be 512M, you can config it by data_size.
BoneMo said:
3. copy old data.img to '.data' directory, otherwise a new data.img will be created. ... Can I somehow set how big will the data.img be ?
Click to expand...
Click to collapse
Sent from my DL DesireZ v2.5 using XDA App
Looks promising
This new initrd and file management seems well thought through and very promising.
In other builds I experienced that there can be a huge performance difference between the different file management choices (full NAND > adsd > ads2+ > data2ext > data2sd). It's good to see that you got into this subject and tried to find an optimal solution which can be configured by other chefs.
I assume that you implemented all this in your own DL DesireZ v2.5 build? If I find time I'm certainly gonna give it a try!
Keep up the good work!
works with AF403 DesireHD stock based 1.0a
there are a lot of discussions on my nand build about mixing using all the parameters, some got the performance improved a lot, some got things worse, your can refer to that to config your build for the best performance.
Dear, i got this error message...
D:\a>install
back your initrd...
remote object '/system/initrd' does not exist
replace your initrd...
1442 KB/s (0 bytes in 1523605.001s)
failed to copy 'mkfs.ext4' to '/system/xbin/mkfs.ext4': No space left on device
1263 KB/s (0 bytes in 303212.000s)
1410 KB/s (0 bytes in 428664.000s)
Unable to chmod /system/xbin/mkfs.ext4: No such file or directory
Unable to chmod /system/xbin/e2fsck: No such file or directory
Press any key to continue . . .
please help... I am using Gauner1986 build
Looks like the system in Gauner1986 build is read only or have the boot partition, or really occupied all the space? anyway, your existing build should be unchanged.
you can try adb shell ls /system, or adb shell ls /boot, whether there is an initrd.gz under it, then, manually push all the necessary files.
rasumia said:
Dear, i got this error message...
D:\a>install
back your initrd...
remote object '/system/initrd' does not exist
replace your initrd...
1442 KB/s (0 bytes in 1523605.001s)
failed to copy 'mkfs.ext4' to '/system/xbin/mkfs.ext4': No space left on device
1263 KB/s (0 bytes in 303212.000s)
1410 KB/s (0 bytes in 428664.000s)
Unable to chmod /system/xbin/mkfs.ext4: No such file or directory
Unable to chmod /system/xbin/e2fsck: No such file or directory
Press any key to continue . . .
please help... I am using Gauner1986 build
Click to expand...
Click to collapse
dandiest said:
Default will be 512M, you can config it by data_size.
Sent from my DL DesireZ v2.5 using XDA App
Click to expand...
Click to collapse
So you mean data_size= ... (512,1024,2048)
This is in cofig.txt?
jan-willem3 said:
So you mean data_size= ... (512,1024,2048)
This is in cofig.txt?
Click to expand...
Click to collapse
Yes, but please don't use 2048.

[Q] missing space in /data partition

I have a really strange behavior on my data partition:
df show that the partition is almost full (1294 Mb used in a 1299 Mb partition). I got a low space warning this morning, that's how I noticed it, but I am not sure since when exactly I have so much in /data.
Now the strange thing is that I do not have so much apps installed, and indeed, using adb shell, a "du -a -d1 /data" report about 307 Mb used (157 Mb in /data/app, 83 Mbin /data/dalvik-cache, 60 Mb in /data/data). This is perfectly in line with what application manager tell me on my phone, if I quickly sum the reported spaces of the different apps installed.
I do not see any big file in the partiton (anyway, du -a should have counted files directly in data, not only directories), not even hidden files (starting with a ".", for those not familiar with unix conventions).
So now I wonder, where is this Gb of space gone? I should have at least 900 Mb free, but have 4 Mb (and this is after I removed an unused app, just after the low space warning I had 20 Kb free only!)
I suspect a rogue app doing something stupid (like keeping a very large log) or nasty (some malware), probably in the last ones I have installed....but how can it use memory without it showing somewhere (even with direct tools like "du")???
BTW, my last apps are, in reverse order of installation, blueputdroid, StabilityTest, CPU Spy, Barcode scanner,....
CPUSpy is a possible candidate for keeping a large log, but it is a quite well know app, so I somehow doubt it is the culprit...
Anybody had a similar problem, of some new ideas how to solve this? a tool that can check what use all this space on /data?
I am on CM7, nightly 110817-1717-BOOT179. I just finsihed a titanium backup of my apps, and my next step (once my battery is charged) is to reinstall CM7 after a data wipe (I am a little bit reluctant about it, cause I will have to reinstall all apps and swype.
[update]
Before cleaning data and doing a full reinstall of CM7, I did a simple reboot and tadaa, problem gone: df shows the same 340 Mb in /data partition as du gave, so missing space is back. Looks like a possible CM7 problem, I will report in CM7 thread...This is a little bit worying though, I fear fs corruption of my internal memory...
Thanks for any infos/solution about this,
cheers,
Greg.

Astro File Manager, A2sd and weird things

I am a real noob using Runny Rom on stock hboot, but my problem is not rom related (I think).
My rom has A2sd and I made an Ext4 partition of 1.5Gb, but after roughly 60 apps my memory was nearly full, so I kept symlinking the biggest apps and now all is working, with little lags but now I have about 130 apps on my phone and 70Mb free on my internal memory.
Titanium backup tells me that I have 1.2GB occupied on my ext4 and only 250Mb remaining. I need to see which app requests so much space, so I used Astro, but it says that /sd_ext is empty while using a terminal with ls I see all my apps. How can I find the space used by any app so I can delete it? And , anyway, so much space for only 130 apps, most of which are little utilities, some navigator (but maps are on fat), etc.
Use root exploter, or es file explorer. Astro isn't a root access app.
/com.android.htcprofile/anr-history.txt
The screen of the desire is too small, so I used adb to list my ext partition ( adb shell -lhR /sd-ext) and save the list on my pc (Win xp).
I found some apps I never used that I'll go to delete, but I found the file /com.android.htcprofile/anr-history.txt that uses about 102Mb of spaces (yes, I symlinked htcprofile because it occupied a lot of memory, but not so much).
What is this file? Can I destroy it or reduce his size? It's an history (by his name, I have not opened it so far) so may be I can delete a lot of rows, but what program can I use, because if I use the pc it will insert control characters that android will not recognize.
I apologize my english, it's not my first language and also not the second.http://forum.xda-developers.com/images/smilies/laugh.gif

[HowTo] Use swap to get much more performance !

What is Swap?
Linux divides its physical RAM (random access memory) into chucks of memory called pages. Swapping is the process whereby a page of memory is copied to the preconfigured space on the hard disk, called swap space, to free up that page of memory. The combined sizes of the physical memory and the swap space is the amount of virtual memory available.
Swapping is necessary for two important reasons. First, when the system requires more memory than is physically available, the kernel swaps out less used pages and gives memory to the current application (process) that needs the memory immediately. Second, a significant number of the pages used by an application during its startup phase may only be used for initialization and then never used again. The system can swap out those pages and free the memory for other applications or even for the disk cache.
However, swapping does have a downside. Compared to memory, disks are very slow. Memory speeds can be measured in nanoseconds, while disks are measured in milliseconds, so accessing the disk can be tens of thousands times slower than accessing physical memory. The more swapping that occurs, the slower your system will be. Sometimes excessive swapping or thrashing occurs where a page is swapped out and then very soon swapped in and then swapped out again and so on. In such situations the system is struggling to find free memory and keep applications running at the same time. In this case only adding more RAM will help.
Linux has two forms of swap space: the swap partition and the swap file. The swap partition is an independent section of the hard disk used solely for swapping; no other files can reside there. The swap file is a special file in the filesystem that resides amongst your system and data files.
I want that on my Phone, how to do that?
Okay, here goes the real story. Since Android is Linux, that would be possible.
What is needed:
- Fast (Class 10) Micro-SD Card, if you dont have class 10, class 4 would be great too..
- CWM or Partitioning software
- Root (of course )
- Terminal Emulator app
- Kernel with swap and init.d support (for example our CM7, 9, 10 and 10.1 ROM)
- Root Exploring app (for example Root Browser or Root Explorer)
Steps:
1. Partition your SD Card, Ask Google how to do that. Make new Swap partition, or you want SD-ext too..
2. Open Terminal Emulator, do:
Code:
su
fdisk -l dev/block/mmcblk0
3. You'll see something like this:
Code:
/dev/block/mmcblk0p3 1861 1924 514080 82 Linux swap
4. Do the following code, change with your exact swap partition:
Code:
su
swapon /dev/block/mmcblk0p3
*change 3 with yours
5. Now you can check your swap partition by doing:
Code:
free
Now we create the script to do that automatically at boot
1. Open Root exploring apps, head to /system/etc/init.d
2. Make a new file, named 05swap
3. Edit that file, copy this up:
Code:
#!/system/bin/sh
echo Swap enabled
swapon -a
4. Save it and change the permission to :
V V V
V V V
V V V
*tick all the boxes (rwxrwxrwx)
5. Now head to /system/etc and create new file named fstab
6. Open it and enter this:
Code:
/dev/block/mmcblk0p3 swap swap
*remember, change the 3 with yours
Now we set the swappiness value
*the normal value is 60, but you can change to what number you want (max 100). Higher may help to improve overall performance, while setting it to lower may increase interactivity and overall stability.
1. Do this on Terminal Emulator
Code:
su
echo vm.swappiness=60 >> /system/etc/sysctl.conf
2. Reboot and you're done.
Thanks to:
- Linux.com (for the swap definitions)
- Segnale007 (for the swap how to)
First! :laugh: No just kidding. Great guide! Maybe you should cover the Swapper 2, it does it without any second partition.
X-zone said:
First! :laugh: No just kidding. Great guide! Maybe you should cover the Swapper 2, it does it without any second partition.
Click to expand...
Click to collapse
Swapper2 doesn't working fine on my phone lol
I get a error on your first step
"fdisk: can't open 'dev/block/mmcblk0': No such file or directory"
EvilKing009 said:
I get a error on your first step
"fdisk: can't open 'dev/block/mmcblk0': No such file or directory"
Click to expand...
Click to collapse
u need to partition ur sdcard first
simple and exlcellent
Thank you very much for this. :good:
AngSanley said:
u need to partition ur sdcard first
Click to expand...
Click to collapse
EvilKing009 said:
I get a error on your first step
"fdisk: can't open 'dev/block/mmcblk0': No such file or directory"
Click to expand...
Click to collapse
Is because the command does not use system path, it assumes you're in '/'.
Just use
fdisk -l /dev/block/mmcblk0
Sent from my GT-S5660 using xda app-developers app
AngSanley said:
Now we set the swappiness value
*the normal value is 60, but you can change to what number you want (max 100). Higher may help to improve overall performance, while setting it to lower may increase interactivity and overall stability.
1. Do this on Terminal Emulator
Code:
su
echo vm.swappiness=60 >> /system/etc/sysctl.conf
Click to expand...
Click to collapse
I can't find this file! I am in JellyBean 4.2.2, maybe its different file?
/system/etc/sysctl.conf
blazzer12 said:
I can't find this file! I am in JellyBean 4.2.2, maybe its different file?
/system/etc/sysctl.conf
Click to expand...
Click to collapse
Create it, new file
Btw i say do it in the terminal emulator, its easier
Sent from my GT-S5660 using xda premium
Can Plead
Please provide a zip file
To install the Recovery
Thank
$ su
#
# fdisk -l dev/block/mmcblk0
Disk dev/block/mmcblk0: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Device Boot Start End Blocks Id System
dev/block/mmcblk0p1 129 195840 6262784 b Win95 FAT32
Partition 1 does not end on cylinder boundary
dev/block/mmcblk0p2 195841 228608 1048576 83 Linux
Partition 2 does not end on cylinder boundary
dev/block/mmcblk0p3 228609 242464 443392 82 Linux swap
Partition 3 does not end on cylinder boundary
# free
total used free shared buffers
Mem: 285732 277168 8564 0 2584
-/+ buffers: 274584 11148
Swap: 443388 63756 379632
# swapon /dev/block/mmcblk0p3
swapon: /dev/block/mmcblk0p3: Device or resource busy
# free
total used free shared buffers
Mem: 285732 279088 6644 0 2592
-/+ buffers: 276496 9236
Swap: 443388 63240 380148
# swapon /dev/block/mmcblk0p3
swapon: /dev/block/mmcblk0p3: Device or resource busy
#
What is wrong? Is swap partition already on? I'm on M'rage rom.
Sent from my GT-S5660 using xda app-developers app
Excellent work man! :good:
It works perfect, but you should make flashable zip file for this work
i made flashable zip but at the moment dont have phone.. is this ok?View attachment swap.zip
doctor-who said:
i made flashable zip but at the moment dont have phone.. is this ok?View attachment 2880098
Click to expand...
Click to collapse
Anyone that tried this that can confirm if it works?
thanks
i am using Joyos 2. 3. 7. (Android)rom and this is what i get flashing the swam.zip...
E:error in storage/sdcard0/swap.zip
(status 0)
installation aborted
also adding the command su
echo vm.swappiness=60 >> /system/etc/sysctl.conf
cannot create /system/etc/sysctl.conf read-only file system
#
even after adding the files etc/sysctl.conf (with the aromat zip file manager) with read wright permission
i am using
Joyos 2. 3. 7. (Android)rom
Sent from my GT-S5660 using XDA Free mobile app
devrieshh said:
Joyos 2. 3. 7. (Android)
Sent from my GT-S5660 using XDA Free mobile app
Click to expand...
Click to collapse
WIll the flashable zip work with this rom?
p.s. - ANy change you can suggest another way for increasing the internal memory of the Gio?
Not yet,
See the result with flashing It,
E:error in storage/sdcard0/swap.zip
(status 0)
installation aborted
this happend also with the mmb. 7.2 rom
perhaps those roms havent- Kernel with swap and init.d support
things you can do,make an extra ext4 partition so you can put apps on it with special appstomemorycard programms see forum somewere
Sent from my GT-5660 using XDA Free mobile app
devrieshh said:
Not yet,
See the result with flashing It,
E:error in storage/sdcard0/swap.zip
(status 0)
installation aborted
this happend also with the mmb. 7.2 rom
perhaps those roms havent- Kernel with swap and init.d support
things you can do,make an extra ext4 partition so you can put apps on it with special appstomemorycard programms see forum somewere
Sent from my GT-5660 using XDA Free mobile app
Click to expand...
Click to collapse
thanks for the help and will try that solution. found a thread here with some interesting tips, so I'll have a go from there.
do everything manualy and will work... but i didnt felt some better ezxeprience with swap on my devixe with class 10 sd card... just read/write became decreased after few days using swap

Categories

Resources