[Q]full wipe, when having a swap partition. - Sony Ericsson XPERIA X10 Mini

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.

Related

[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.

[Q] Moving dalvik cache to sd-ext doesn't work?

I've searched and read on other sections. but I can't find a solution to this.
I've also done the specific instructions, and still got problems with moving dalvik to sd-ext. Every time I try it even with the ext3 or trying to mount as ext4 I get the HTC screen stuck on boot and can't pass that.
I can move applications but not dalvik and I need the space, as my data folder was almost completly full after a month of use in the device.
Any suggestions?
What ROM and apps2ext method are you using?
cyanogen 7.1.0 and S2E latest version.
I'm using an ext3 partition. I've wiped phone, formatted sd card with fat32, ext3 and linux swap. and if I move only apps everything works fine. if I move apps + dalvik the phone stuck on the HTC white screen.
Also is there a recovery for Aria that supports ext4?
CaptainMaki said:
cyanogen 7.1.0 and S2E latest version.
I'm using an ext3 partition. I've wiped phone, formatted sd card with fat32, ext3 and linux swap. and if I move only apps everything works fine. if I move apps + dalvik the phone stuck on the HTC white screen.
Click to expand...
Click to collapse
I dunno what's causing that. I'd probably try doing a 100% clean install to see if it fixes it. (In particular, wipe data/factory reset and format system and boot partitions before installing CM7 and Gapps again.)
Also is there a recovery for Aria that supports ext4?
Click to expand...
Click to collapse
I don't know, but there's very little benefit to using ext4 over ext3 for this particular purpose anyway. Also mounting ext3 as ext4 is equivalent in performance to ext4, if you really care about that.
how do you format boot and system partitions? I've re installed rom and s2e again. I will try to move dalvik later today after I'll have time to backup. for now the apps moved and works fine and the option to move dalvik is available.
when I mount ext3 as ext4 the recovery shows no sd-ext available. I think it's also mark the sd-ext as ext4 again, even without any action on it, which makes the sd-ext unusable when the phone boots up. it also not allows to backup the partition.
CaptainMaki said:
how do you format boot and system partitions?
Click to expand...
Click to collapse
In CWM recovery, select "mounts and storage". The options to format the boot and system partitions will be there.
CaptainMaki said:
when I mount ext3 as ext4 the recovery shows no sd-ext available. I think it's also mark the sd-ext as ext4 again, even without any action on it, which makes the sd-ext unusable when the phone boots up. it also not allows to backup the partition.
Click to expand...
Click to collapse
Yeah, honestly, just use ext3. No one would actually notice a difference in performance between ext3 and ext4 for this particular purpose, and it's a lot more convenient to be able to make backups of the ext partition without any issues.
thx for all the help. I really don't know what is happening.
I've wiped boot + system, did factory wipe, wiped cache, installed CM 7.1.0 + Gapps, didn't even insreted sim card, installed only S2E and when i select Apps + Dalvik the phone is stuck on the HTC white screen.
Really frustrated with this.
CaptainMaki said:
thx for all the help. I really don't know what is happening.
I've wiped boot + system, did factory wipe, wiped cache, installed CM 7.1.0 + Gapps, didn't even insreted sim card, installed only S2E and when i select Apps + Dalvik the phone is stuck on the HTC white screen.
Really frustrated with this.
Click to expand...
Click to collapse
Can you confirm that the ext partition is formatted as a primary partition (not logical)? Have you tried a different SD card? Beyond that I'm not sure what is going on.
The first boot after enabling "dalvik cache" should take a while, but it shouldn't be at the HTC white screen, it should be at the CM boot screen.
I've formatted and re formatted the card, I will try another one.
Even if it's the card, how the apps are moving fine and the dalvik doesn't.
I've tried another thing: I've partitioned the card through ROM Manager, and it created a 512MB partition. I then moved the dalvik cache to the SD-ext and it worked. then I've used gparted to resize the partition to 1024MB. it also worked. I suspect that something in the formatting process wasnt right although I've always kept on creating primary partitions.

How to use ext2

How do i use ext2 partition on native ap2sd? i used to have link2sd but i heard native is better so i made an ext2 partition anyone know how to set it? minicm7 2.2.1
EXT2 is not supported with this ROM, must create EXT3 or EXT4.
I was tested EXT2 + link2SD but that didnt work. Tested FAT32 + link2sd = same fail.
If you create EXT3/EXT4 it could be auto-mounted, but some bugs could appear...
I recomended to not use EXT, just that SWAP you created. If you use native "move to card", they will be stored on mmc too, but will be visible in some "xxx-secure" folder (not stored in ext part.) - I spent almost whole day to recover all files after testing SWAP and EXT3 (both auto-mounted via minicm) - dont do the same mistake
penthaler said:
EXT2 is not supported with this ROM, must create EXT3 or EXT4.
I was tested EXT2 + link2SD but that didnt work. Tested FAT32 + link2sd = same fail.
If you create EXT3/EXT4 it could be auto-mounted, but some bugs could appear...
I recomended to not use EXT, just that SWAP you created. If you use native "move to card", they will be stored on mmc too, but will be visible in some "xxx-secure" folder (not stored in ext part.) - I spent almost whole day to recover all files after testing SWAP and EXT3 (both auto-mounted via minicm) - dont do the same mistake
Click to expand...
Click to collapse
srry but i didnt realy understand i have a 3gb normal and 300 swap and 300 ext2 what should i change ext2 to?and dunt worry i have backups
LukBoy99 said:
srry but i didnt realy understand i have a 3gb normal and 300 swap and 300 ext2 what should i change ext2 to?and dunt worry i have backups
Click to expand...
Click to collapse
you should change ext2 to ext3 or ext4, but i think he is saying: get rid of the ext-partition and just keep fat for app2sd/link2sd, and keep swap.
You must format the ext2 to ext3 or EXT4. There is a command for this built into minicm and I think it's something like a2sd format in terminal. Or you can use something like gparted from linux
X10man
Sent from my Fender Stratocaster to your face via XDA Premium
x10man said:
You must format the ext2 to ext3 or EXT4. There is a command for this built into minicm and I think it's something like a2sd format in terminal. Or you can use something like gparted from linux
X10man
Sent from my Fender Stratocaster to your face via XDA Premium
Click to expand...
Click to collapse
made ext3 how do i activate it?
EXT3 is automatically mounted by ROM, so you dont have to enable it.
You can just choose if you want to use NONE / A2SD / DC2SD mode in cyanogenmod settings.

Need help about swap partition

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.

[Q] use unmounted partitions in INTERNAL storage?

Hi,
My phone has 4gig of internal storage, but the system seems to be using only 3 500mb partitions... /system, /cache, and /data... and a couple of other small partitions.
At the end of mmcblk0 is p6 that is about 2GIG and NOT MOUNTED! Is that space needed for something, or can I add it to /data (p5)? or create a mount point for it? and if so, HOW?
Thanks in advance.
Well... Responding to my own post, it turns out that the extra space was supposed to be my internal SD that my phone somehow lost... It has since been recovered with the help of an app I and a lot of cold sweat and reflashing... I'll see if I can find the app again - it's here on XDA somewhere...
Sent from my JY-G3 using xda app-developers app

Categories

Resources