Need help about swap partition - Sony Ericsson XPERIA X10 Mini

Several days ago, I make a 128 MB swap partition as a 3rd partition on my sd-card (the 2nd one is an ext-4 partition). It works flawlessly and going well...
Yesterday, I tried to flash another ROM... So, I make a backup via CWM, clear data, cache partitioon, and dalvik cache.. At the same time, I delete the ext-4 partition, and enlarge the swap partition to 256 MB...
Since I'm found the new ROM is unstable, I revert back to my old one, via CWM restore... But now, if I type 'free' on the terminal emulator, the swap size is 0 (before doing those things, the size is about 133000KB, since its 128MB). I tried to enable and disable compcache, but when I disabled it, the size returns to 0 again...
Any help ?
Thanks in advance..
Sent from my U20i using xda app-developers app

StardustGeass said:
Several days ago, I make a 128 MB swap partition as a 3rd partition on my sd-card (the 2nd one is an ext-4 partition). It works flawlessly and going well...
Yesterday, I tried to flash another ROM... So, I make a backup via CWM, clear data, cache partitioon, and dalvik cache.. At the same time, I delete the ext-4 partition, and enlarge the swap partition to 256 MB...
Since I'm found the new ROM is unstable, I revert back to my old one, via CWM restore... But now, if I type 'free' on the terminal emulator, the swap size is 0 (before doing those things, the size is about 133000KB, since its 128MB). I tried to enable and disable compcache, but when I disabled it, the size returns to 0 again...
Any help ?
Thanks in advance..
Sent from my U20i using xda app-developers app
Click to expand...
Click to collapse
this happens because when doing a full-wipe or restore, CWM format the swap partition to ext2 (some ppl say that if you have an ext partition this doesn't happen) so you need to reformat the partition to swap (sometimes I have to do it 2 times before the system acknowledge the swap partition) so, mount the sd in your pc, and reformat the partition. that should fix it.

Dont reformat only that partition, you have to format whole memory card and create partitions again.
Dont forget to backup your data from SD card.
btw. I wiped data too and only reformating swap partition didnt work.

Ok, thank you for your answers
Sent from my U20i using xda app-developers app

penthaler said:
Dont reformat only that partition, you have to format whole memory card and create partitions again.
Dont forget to backup your data from SD card.
btw. I wiped data too and only reformating swap partition didnt work.
Click to expand...
Click to collapse
In my case sometimes works with the first try, sometimes I need to re-format the swap partition 2 times. but I haven't format the whole sd in more than a year, and I go testing roms almost every week.

Related

App2SD with ext2,3,4 support xRecovery installation

Download here - app2sd.ext4(modified 3.1.11)
Or if you want both, apps and dalvik-cache on SD - download here - app2sd.dc2sd.ext4
First of all make backup in xRecovery
Install app2sd through xRecovery - install custom zip
ext2 or ext3 or ext4 partition on SDcard needed
After app2sd installed, don´t turn the phone on without SD card with installed apps inserted, until it is really necessary
First boot after installation takes longer, depending on the amount of installed apps
If you make backup with xRecovery after installation -
- your personal data and setting of your apps will be backed up
- installed apps will no longer be backed up, but still remaining in the ext partition on SD card
If some app won´t work correctly, please reinstall the app from Market or from the file browser (rootexplorer) - you can find your apps in /system/sd/app directory
Compatible with JIT?
Yes, it is.
peetr_ said:
Download here - app2sd.ext4
Install through xRecovery - install custom zip
Click to expand...
Click to collapse
Could u upload the file on megaupload.com
Thanks,...
Ok... now it´s on megaupload.
Installed it, how can i check it? This is my first app2sd try
Sent from my E10i
In rootexplorer, /data/app - shows used and remaining space, added together it should be size of your ext partition.
Ok at first i didnt have a ext2 partition.
Now i have formated my sd card and app2sd seems to waork, my problem is after installing the uptade.zip my phone reboots and at first it shows all the apps in menu then they dissapear, i think theyre transfered to sd card. and then i can do nothing just have the standart apps, appbrain doeasnt works, cant start root explorer etc... but all m apps appera in the menu for deinstallation. Hope you can help me
EDIT//
after another restart everything seems to work fine
I am glad to hear that
Works well with my previous ext2 partition.
I already had app2sd working, and it still works this way.
I'm now trying a new sdcard. I formatted an ext4 partition in ubuntu, but the phone enters into an eternal loop. Don't know why, but it seams that it is not recognizing the partition.
Any Ideas?
Regards
Use ext3,for mini is better - stable
I made ext4 partition making first ext3 and then ext4 manually in xrecovery through adb with this tutorial http://forum.xda-developers.com/showthread.php?t=534714 and its stable.
But maybe ext3 is faster with our kernel. Dont know, didnt compared.
peetr_ said:
Ok... now it´s on megaupload.
Click to expand...
Click to collapse
Thanks brader.....
This sounds awesome but does this mean that I can have apps on ext2 + ext 3 which means double the amount of apps?
NO.On ext3 is better performance.
No, but you can double the amount of partition size
Nice so say I've doubled it, will it increase the amount of apps I can put on my mini? just want to know a bit more about this
peetr_ said:
Download here - app2sd.ext4
Install through xRecovery - install custom zip
ext 2,3 or 4 partition on SDcard needed
Click to expand...
Click to collapse
THANK YOU VERY MUCH !!!
now i have a question, i got a 1gb ext2 partition, would it be better when i format it in ext3 or ext4 ? i dont know wich class the microsd card is, its a 8gb....
I have ext4 but few people said ext3 has better performance.
I had no time yet, to try ext3.
I think 1 GB is too much, because there are still some data, that are stored in internal memory and when you run out of internal memory, remaining place in ext partition is unused.
500 MB is enough, this is not high-end phone and too many apps means more slowness and less stability, i think.
M
peetr_ said:
I have ext4 but few people said ext3 has better performance.
I had no time yet, to try ext3.
I think 1 GB is too much, because there are still some data, that are stored in internal memory and when you run out of internal memory, remaining place in ext partition is unused.
500 MB is enough, this is not high-end phone and too many apps means more slowness and less stability, i think.
Click to expand...
Click to collapse
Can I skip doing ext2 just make ext3 n 4..then intall the zip file using recovery?to make partition ext3 or 4 using same method of make partition ext2?
sent from my E10i

[Q] Clockworkmod and sd-ext

Just installed link2sd earlier (formatted partition as ext3). Wanted to flash a different rom. Trying to backup my phone, and clockworkmod tells me it can't mount sd-ext. Anyone know a reason and/or work around?
I think CWM works only with ext4 partition AFAIK. So, you can re-partition your sd card to a ext4 partition using CWM, or you can format the ext partition only to ext4 using a computer.
YouArePoop said:
Just installed link2sd earlier (formatted partition as ext3). Wanted to flash a different rom. Trying to backup my phone, and clockworkmod tells me it can't mount sd-ext. Anyone know a reason and/or work around?
Click to expand...
Click to collapse
which version of CWM have you got?
3.0.2.4, which I've used for a while now, always tries to back up my 6GB ext2 debian partition unless I remember to change cards first. no way I leave room in the vfat partition to back up that much data.
I'll put it up on 4shared if you want it.
mihir287 said:
I think CWM works only with ext4 partition AFAIK. So, you can re-partition your sd card to a ext4 partition using CWM, or you can format the ext partition only to ext4 using a computer.
Click to expand...
Click to collapse
Guess when I get home I'll copy the contents to computer, reformat, and copy back. Hopefully link2sd will notice the formatting has changed and reset itself
Sent from my LG-VM670 using XDA App
Doesn't work with extra either. Version 3.2.0.1 I believe it was.
Guess it doesn't really matter, can just use titanium since its all app stuff on there anyways...
Sent from my LG-VM670 using XDA App
i use CWM to back up my 512MB ext2 partition for my data2ext all the time (with the rest of the backup) and it seems to have no problem, and just to check i just mounted the partition in mounts and storage and it mounts fine. I know some recoveries ive used in the past on other phones would have problems with partitions that were not in 64-128-256-512-1024 MB, etc. format because of block size issue errors that i would get (when mounting or trying to set block size to 4096). I also found that when partitoning/formatting to ext2/3/4 some programs do not properly write the drive formatting and certain systems/recoveries/apps could not properly read them on the android. the best most consistent (android friendly) formats that i have gotten to date were in ubuntu (or any other) linux using "gparted". It seemed to always be the best and usually better than the format done by the phone recovery. Hope this helps. Sorry to drone on and on.
Partitioned originally with gparted. Have since resized to be 2048, and set its label to 'sd-ext'. Now instead of getting an error saying sd-ext might not be supported on my device, it just gives me a generic 'error mounting sd-ext'
I've had ext partition mounting problems before, I'm not sure if the cause is something to do with vold or what, but
after unmounting a sd card to exchange it with another one, it changes the device partitions in /dev/block like
/dev/block/mmcblk1p2
for the sd-ext partition instead of the normal
/dev/block/mmcblk0p2
you can see if this has happened by
Code:
ls /dev/block
in adb shell.
to mount it manually, if the numbering is off,
Code:
mount /dev/block/mmcblk1p2 /sd-ext
I've only had this happen with android running, but it might work in recovery too
Switched over to using data2ext. Mounts the 2nd partition as the /data partition instead of /sd-ext. Can manually mount 2nd as /sd-ext from within rom, but it doesn't carry over to recovery.
A possible solution... Create a symbolic link pointing /sd-ext to the 2nd partition? But then again, since /data now points to 2nd partition, is recovery picking up on that unknowingly and backing up the 2nd's contents when it thinks its backing up the normal /data?
I suppose I should investigate.
Edit: Yep it does backup the 2nd partition, thankfully. Just tried to install a theme made in UOT Kitchen, it borked some stuff, and the restore worked.

Low in internal memory

hi yal
my internal memory have about 40mb left and is startting to get low ..
so is there a way to increase it ? i use tita backup to move apps but there still traces of bytes left ...i have about 60apps / games and themes ...so any help?
Look for "Link2Sd" in the market that's the easiest way I think.
Greetings !
Sent from my GT-S5830 using XDA App
link2sd needs partition sd card yes? how do i partition it by the way?
Flash cm7 and use s2e ..after that ull be trying to find apps to fill the memory but u will never be able to fill it cause even if u have 130apps (like i had) it uses ONLY 50 MB ..reamaning goes to sd ext..u can partition ur sd card using CWM5/CWM4...
Sent from my SGA rocking CM7.2 by vo-1 + all-in-one script
Link2SD:
What is needed:
- Root Permission
- The second partition on the SD Card, and both MUST PRIMARY
The first partition is the default storage of data on the SDcard. The second partition (which will be created) is a partition for storage applications for Link2sd.
download "MiniTool Partition Wizard Home Edition" on the PC, then plug the sdcard in the PC (u can directly use the phone, or card reader). by using this program, agan no need to format, partition, or delete data in the beginning, to create a new partition.
Install and open minitool, select the drive which will be partitioned sdcard, select resize the unallocated area. for PRIMARY, NOT logical. Free partition size is up. klo above 2GB FAT32 file system should pake. FAT32 support is generally on all phones. APPLY, and then turn on the phone.
(for more secure data back up anyway in the SD Card)
- Install Link2sd, have mounted, select FAT32, restart again and Tada!! Applications can be moved to SD, ga who need to use complicated script
Good luck. and must have successfully ...
Good Tutorial !
Sent from my GT-S5830 using XDA App
is there a difference between s2e and apps2sd? i used link2sd before on my old w8 (forgot how to partition now ) but it's quite unstable since apps constantly force crahses
oh oh ! can i partition using cwm ? like this
http://acetips.wordpress.com/2011/10/03/how-to-partition-your-sd-card/
i don't dare to use yet since i fear it will screw my phone
Do NOT use ClockWorkMod !!!
You can flash ClockWorkMod Recovery ,from where you can partition your Sd Card.
For cwm recovery there is no root needed,just flash it from stock recovery.
I hope that helped
Sent from my GT-S5830 using XDA App
oh ok then so i reboot to cwm then partition?
Yes, under the "advanced" tab
Select the Size of your 2nd Partition and 0mb for cache (not needed)
Remember that all your data from SD Card will be deleted !
Then reboot your Phone and start link2SD. When you´re asked about 2nd partition format, choose ext2 (I hope, I didn´t use this for ages!) If you get an error, it was the wrong format
Link2SD will ask you for a reboot and after that you can start to move your apps.
One Question, the build-in option to move apps is not enough ? I am not using so many apps, so I really don´t know.
Greetings!

[Q]full wipe, when having a swap partition.

Hi, just wondering if is just my case, that when doing a full wipe from the recovery and having a swap partition, this partition gets formated in ext3, has someone experience this? is this normal? thanks.
Experienced something similar. When full wipe data, minicm7 tells me I have 500MB large EXT partition.
In PC memory card still formated as "linux swap".
I formated card and created swap partition again and after that phone recognized it right - as swap - again.
Yeah, my phone did that. I fixed it. By doing this:
I made my 15GB fat data partition, a 1MB EXT4 for /sd-ext not to be used but stops phone formatting swap as ext. Then my 500MB swap partition. This works
X10man
Sent from my Fender Stratocaster to your face via XDA Premium
x10man said:
Yeah, my phone did that. I fixed it. By doing this:
I made my 15GB fat data partition, a 1MB EXT4 for /sd-ext not to be used but stops phone formatting swap as ext. Then my 500MB swap partition. This works
X10man
Sent from my Fender Stratocaster to your face via XDA Premium
Click to expand...
Click to collapse
yeah... I have started using swap not so long ago, and I tend to flash and reflash roms, and always when doing the full wipe the partition ends formated, so I unplug the sd from the phone, mount it in the pc, reformat the partition as swap, mount it on the phone restart it and it remount it again as swap (sometimes I need to do it twice).
going to try making the 1MB partition the next time.

[Q] Problems increasing internal memory with link2sd

Hello all,
few days ag I asked how to move internal apps to SD with Titanium Backups. Hitesh2626 recommeded me to use another method : http://forum.xda-developers.com/showthread.php?t=2082465 and I did so.
I've followed the guide but I did not succeed and I think I konw why: when I run CWM I don't have any /sd-ext partition.
I've followed all the steps under "Partition SD Card" , and I've used ext2 for formatting the new "memory" .
Anyone has had the same problem? Anyone could help me to find what am I doing wrong?
TIA,
Arnau
pelacables79 said:
Hello all,
few days ag I asked how to move internal apps to SD with Titanium Backups. Hitesh2626 recommeded me to use another method : http://forum.xda-developers.com/showthread.php?t=2082465 and I did so.
I've followed the guide but I did not succeed and I think I konw why: when I run CWM I don't have any /sd-ext partition.
I've followed all the steps under "Partition SD Card" , and I've used ext2 for formatting the new "memory" .
Anyone has had the same problem? Anyone could help me to find what am I doing wrong?
TIA,
Arnau
Click to expand...
Click to collapse
Were you able to create the mount scripts? Can you elaborate the problem that you are facing?
mahithm said:
Were you able to create the mount scripts? Can you elaborate the problem that you are facing?
Click to expand...
Click to collapse
Hello, first of all, thanks for your answer.
I guess you are talking about step 11, just after chossing the filesystem type:
10) First , Choose ext2. If it don't work then restart Link2SD and when then don't choose ext2 but ext4. ( Don't worry , it works )
11) It will say mount script created. Reboot your phone now.
Click to expand...
Click to collapse
If so, yes, after chossing ext2 it does not complain. After reboot I see a second partition "/data/sdext2" : Total:0.89GB used 64,91MB Free: 850MB.
(is it ext2? If I plug the mobile into my linux box it says it's FAT32):
Code:
Device Boot Start End Blocks Id System
/dev/sdc1 1 13564453 6782226+ c W95 FAT32 (LBA)
/dev/sdc2 13564454 15564799 1000173 83 Linux
Teh "problem" comes when doing "Placing the 2nd partition of SD Card to internal." :
18) Foramt /data /sd-ext /system
Click to expand...
Click to collapse
I don't have that "/sd-ext" partition, so I cannot format it.
But I've continued with the manual and tried to install an app (whatsapp). Now Link2sd says that the app has been linked, the /data/sdext2 partitoin now shows 85,97MB used but when I go to apps, manage apps, I see that my mem has decreased in ~ 20 MB . Is that the expected behaivour?
This I explain myself clear? if not, sorry but I'm newb to this world
TIA,
Arnau
pelacables79 said:
Hello, first of all, thanks for your answer.
I guess you are talking about step 11, just after chossing the filesystem type:
If so, yes, after chossing ext2 it does not complain. After reboot I see a second partition "/data/sdext2" : Total:0.89GB used 64,91MB Free: 850MB.
(is it ext2? If I plug the mobile into my linux box it says it's FAT32):
Code:
Device Boot Start End Blocks Id System
/dev/sdc1 1 13564453 6782226+ c W95 FAT32 (LBA)
/dev/sdc2 13564454 15564799 1000173 83 Linux
Teh "problem" comes when doing "Placing the 2nd partition of SD Card to internal." :
I don't have that "/sd-ext" partition, so I cannot format it.
But I've continued with the manual and tried to install an app (whatsapp). Now Link2sd says that the app has been linked, the /data/sdext2 partitoin now shows 85,97MB used but when I go to apps, manage apps, I see that my mem has decreased in ~ 20 MB . Is that the expected behaivour?
This I explain myself clear? if not, sorry but I'm newb to this world
TIA,
Arnau
Click to expand...
Click to collapse
Yes, that's how Link2SD works. It will link the data associated with the app to ext partition. If you go to the Settings> Storage, you will see that the total internal memory remains the same. But you can still see the available memory has increased due to linking to ext. To see how much of the ext partition is used, just go to Link2SD> Storage. Now if you are not satisfied with Link2SD, you can try the CronMod Unofficial. First backup all the SD Card data. Also if you want to try CronMod Unofficial after installing Link2SD, it better to flash the custom rom again after formatting /system and /data from CWM. This will get rid of all Link2SD files which can otherwise mess with CronMod Official. Now go to CWM> Format /sdcard. This will delete the ext partition. Now CWM> Advanced> Partition SD Card> Size (Max 1GB, anymore and system will lag)> Swap (0MB) and wait for it to say "Partitioning done". Now download and place CronMod Unofficial to SD Card. Now again go to CWM> Mounts & Storage> Mount /system then flash the Cronmod Unofficial zip from CWM and finally unmount /system. Reboot and you are good to go. Now go to Settings>Storage to see the newly increased internal memory. Here is the link,
Cronmod Unofficial
Hope I Helped
Hi mahithm,
mahithm said:
Yes, that's how Link2SD works. It will link the data associated with the app to ext partition. If you go to the Settings> Storage, you will see that the total internal memory remains the same. But you can still see the available memory has increased due to linking to ext. To see how much of the ext partition is used, just go to Link2SD> Storage.
Click to expand...
Click to collapse
ops... I expected more space for installing apps, not just for data. Ok, I can install more apps than before, but not all the ones I want.
Now if you are not satisfied with Link2SD, you can try the CronMod Unofficial. First backup all the SD Card data. Also if you want to try CronMod Unofficial after installing Link2SD, it better to flash the custom rom again after formatting /system and /data from CWM. This will get rid of all Link2SD files which can otherwise mess with CronMod Official. Now go to CWM> Format /sdcard. This will delete the ext partition. Now CWM> Advanced> Partition SD Card> Size (Max 1GB, anymore and system will lag)> Swap (0MB) and wait for it to say "Partitioning done". Now download and place CronMod Unofficial to SD Card. Now again go to CWM> Mounts & Storage> Mount /system then flash the Cronmod Unofficial zip from CWM and finally unmount /system. Reboot and you are good to go. Now go to Settings>Storage to see the newly increased internal memory. Here is the link,
Cronmod Unofficial
Click to expand...
Click to collapse
A couple of questions:
1.-) So, with this method I'll be able to install all the app in SD?
2.-) 7-Flash your desired script : what does it refer to?
3.-) It also refer to sd-ext, but I can't format that partition... (as it was my original problem). is cronmod going to use it even if I don't format it? (as link2sd has done).
Hope I Helped
Click to expand...
Click to collapse
Yes!! Thanks a lot!
Arnau
pelacables79 said:
Hi mahithm,
ops... I expected more space for installing apps, not just for data. Ok, I can install more apps than before, but not all the ones I want.
A couple of questions:
1.-) So, with this method I'll be able to install all the app in SD?
2.-) 7-Flash your desired script : what does it refer to?
3.-) It also refer to sd-ext, but I can't format that partition... (as it was my original problem). is cronmod going to use it even if I don't format it? (as link2sd has done).
Yes!! Thanks a lot!
Arnau
Click to expand...
Click to collapse
1. Yes with this method you'll be able to install all apps to the ext partition of the SD Card as long as you have free space on ext partition
2. Flashing the desired script refers to flashing the script in question, i.e., CronMod Unofficial
3. Can you tell me what happens when you try Mounts & Storage> Format /sd-ext? CronMod uses you ext partition even if you don't format it. Its not compulsory and CronMod should work fine.
Sorry for the late reply. If you have anymore doubt, post here. I'll be glad to help
mahithm said:
1. Yes with this method you'll be able to install all apps to the ext partition of the SD Card as long as you have free space on ext partition
Click to expand...
Click to collapse
Great. But since yesterday I've been experience speed "problems". I'm wondering if makes snes to gain space but lose speed... Maybe I try and decide with this new method. (Maybe the ROM also affects? ace-i-sure 8 to 12 could cause such speed issues?)
2. Flashing the desired script refers to flashing the script in question, i.e., CronMod Unofficial
Click to expand...
Click to collapse
Why just say so thanks!
3. Can you tell me what happens when you try Mounts & Storage> Format /sd-ext? CronMod uses you ext partition even if you don't format it. Its not compulsory and CronMod should work fine.
Click to expand...
Click to collapse
I'll let you know after trying it, it will take a couple of days
Sorry for the late reply. If you have anymore doubt, post here. I'll be glad to help
Click to expand...
Click to collapse
You don't have to apologise!! Many thanks for your detailed answers and for your time!!
Cheers,
Arnau
Hi,
after a couple of days I've seen that the speed problems do not compensate teh fact of having more apps installed, so I'm not going to try this new approach.
I've re-flashed the rom without using externad SD and it's running really fine.
Many thanks for your help dude!
Cheers,
Arnau
pelacables79 said:
Hi,
after a couple of days I've seen that the speed problems do not compensate teh fact of having more apps installed, so I'm not going to try this new approach.
I've re-flashed the rom without using externad SD and it's running really fine.
Many thanks for your help dude!
Cheers,
Arnau
Click to expand...
Click to collapse
Glad I could help And yes irrespective of what method you choose to increase the internal memory, there will always be a lag after you exceed a certain number of app install. This is because in all cases the /data is moved to ext partition of the SD Card. SD Card R/W speed is always lesser than internal memory R/W speed. You can control this lag to a certain extend by using class 8 or higher SD Card and only installing necessary apps.

Categories

Resources