CUstom Recovery +a2sd on EXT4 not working - Optimus One, P500, V General

i will keep it simple ..Custom recovery is unable to take a nandroid backup if i have a2sd on ext4 partition that same run nandroid-mobile.sh via adb...please fix it or tell me how to.. i m new to android but m good with C and Linux

i had same as your problem , every time when i try to include .android and ext files with my backup it gives me error message , but after i installed a new rom everything went fine!!

For me mounting of ext in recovery helped as well.

The_ERROR said:
For me mounting of ext in recovery helped as well.
Click to expand...
Click to collapse
And doing this, did you managed to restore the backup successfully ??

Well this thing happens with BOTH megatron and void roms...when i boot into custom recovery /cache is the only one mounted and i tried unmounting it before trying a nand+ext+.android_secure backup...doesn't work my sd card is like 3 gb free and ext4 a2sd has only 130Mb of apps in it..

Guys I had made a simple nandroid backup after rootingand installing custom recovr and before installing void. Now if I restore the nandroid backup, will I still have the custom recovery or not?
Sent from my LG-P500 using Tapatalk

lekhwani said:
Guys I had made a simple nandroid backup after rootingand installing custom recovr and before installing void. Now if I restore the nandroid backup, will I still have the custom recovery or not?
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
u made nandroid after instaling custom recovery :|
how can u lose it?? i dnt think so ..

i cant mount the sd-ext partition from the custom recovery.. it says:
E:Can't mount /dev/block/mmcblk0p2
even nadroid back up with ext ends: run nandroid-mobile.sh via adb
any solution??

Boot in recovery mode.
Connect phone to pc.
Mount ext partition via adb.(after that in Custom recovery mount menu you will found ext partition mounted)
Do nandroid

sugaritos said:
i cant mount the sd-ext partition from the custom recovery.. it says:
E:Can't mount /dev/block/mmcblk0p2
even nadroid back up with ext ends: run nandroid-mobile.sh via adb
any solution??
Click to expand...
Click to collapse
//Edit: First try to create backup ONLY of system, without any other option. If this will be work, you probably done same mistake as I did.
Same as me. I didn't do wipe of EXT after creating of ext-part and I had same symptoms. Backup all your data with Titanium Backup, backup data on SDcard, delete ext, create ext2 again, convert ext2 on one, that you want, do wipe of it. Than it should be working (I had).

anotherloony said:
Boot in recovery mode.
Connect phone to pc.
Mount ext partition via adb.(after that in Custom recovery mount menu you will found ext partition mounted)
Do nandroid
Click to expand...
Click to collapse
i tried via adb but it keeps saying the same thing:
mounting /dev/block/mmcblk0p2 on /sd-ext failed: invalid argument
i dont know if i am doing it right..

The_ERROR said:
//Edit: First try to create backup ONLY of system, without any other option. If this will be work, you probably done same mistake as I did.
Same as me. I didn't do wipe of EXT after creating of ext-part and I had same symptoms. Backup all your data with Titanium Backup, backup data on SDcard, delete ext, create ext2 again, convert ext2 on one, that you want, do wipe of it. Than it should be working (I had).
Click to expand...
Click to collapse
thankss!! i will try it..
i read somewhere that ext4 has problems and is better or recommended the ext2 even though it is slow..

sugaritos said:
thankss!! i will try it..
i read somewhere that ext4 has problems and is better or recommended the ext2 even though it is slow..
Click to expand...
Click to collapse
ext2 is faster, because it haven't journal. But it on some I/O output error is not possible to recover it by itself. Ext3 have journal - is slower, but in case of problem will (can) repair itself. ext4 is better ext3.
under partition section - http://forum.xda-developers.com/showpost.php?p=10377391&postcount=4

At the time I made the recovery kernel sources were not out so I couldnt add ext3 & ext4 support to recovery. I'll try to update it as time allows.

mount -t ext4 /dev/block/mmcblk0p2 /sd-ext
be shure /se-ext exists

drellisdee said:
At the time I made the recovery kernel sources were not out so I couldnt add ext3 & ext4 support to recovery. I'll try to update it as time allows.
Click to expand...
Click to collapse
i know that.. but in ext4 i couldnt take a nandroid +ext backup because the ext4 partition could not be mounted. in ext2 and ext3 i managed to do nandroid backup +ext and mount the ext partition only through adb..

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] SD card change+Rom change from xpart to a2sd+ and taking over ext4?

Hey guys.
I've read some threads about moving ext4 from one SD to another, but this isn't exactly what I need.
I am currently on MIUI XJ 1.8.12 XPart rom and I want to change to 1.8.12 A2SD+ and a bigger SD card.
Changing the rom isn't the problem, but backing up my ext4 partition from the old SD is!
I used the newest ubuntu live CD(11.04 I believe) to partition the new SD card to FAT32/ext4. Everything is fine.
The SD gets recognized as it should. FAT32 and EXT4 partition mount and I can access them.
But with my old SD it doesn't work.
If I plug it in, FAT32 and EXT4 partition get recognized. FAT32 partition is named "195" and EXT4 is "userdata".
When I try to click the EXT4 it just dissappears. In the media tab it is listed, but I can't access it because I am not the owner of it/I am missing permissions/rights to access it.
I partitioned it with CWM recovery, but meanwhile I changed my recovery to RMD 1.03 (I don't think that this matters though...).
Now my questions:
1. How can I access my EXT4 partition to backup its content?
2. If I can't access it because I can't change permissions... do I really need to copy it or will it be enough to restore my apps that I backed up under xpart with MIUI Backup?
3. Is it a problem to restore a app backup done under xpart-script with a a2sd+ rom?
Thank you for reading!
you can backup your ext partition in recovery. i think you can also just open a file explorer and copy the folder /sd-ext (i havent tried this, so im not sure if this will work)
Ok, I haven't tried to backup it with recovery.
Will it then be possible to flash a new rom (a2sd+ instead of xpart) and restore only the ext partition?
I want a clean install with a2sd+ but I don't want to loose settings and savegames.
Just a small "up" for my thread.
I backed up my sd-ext partition and I could wipe right now.
Will there be any problems with restoring the ext partition on a new rom?
What will happen if I just wipe sd-ext and restore MIUI Backup?
Will sd-ext will just be "rebuilded" from the MIUI Backup?
Bananebieger said:
Will there be any problems with restoring the ext partition on a new rom?
Click to expand...
Click to collapse
there will only be problems if your rom does not support either your a2sd or your current ext filesystem (which is to say, does it support ext4 or does it only support ext2 or ext3?)
Bananebieger said:
What will happen if I just wipe sd-ext and restore MIUI Backup?
Will sd-ext will just be "rebuilded" from the MIUI Backup?
Click to expand...
Click to collapse
i believe so (please dont take my word for it as i have not done this before. however, im pretty sure it will be "rebuilt" as you have it included in your backup)
Thank you again.
Its the MIUI rom from XJ for Desire Classic with XPART script. Your ext Partition gets converted to ext4 if you install this rom.
Will there be problems with using sd-ext content from XPART after update to A2SD+?
Maybe I'll bother the dev from this rom

[Q] after restoring through CWM 5.0.2.0 failed to mount my sd-ext (link2sd)

I used link2sd to move apps to sd-ext
link2sd created a script to mount the sd-ext
then i made a backup in CWM, and something went wrong last night
I did a restore, but now when I first open the link2sd, the following message appear
Code:
Mount script error
Mount script cannot be created.
mount: mounting /dev/blocl/vold/179:2 on /data/sdext2 failed: Invalid argument
so now I cannot see all the apps I have moved to sd-ext
any advice?
thanks
make sure you have proper ext2, ext3 or ext4 file system support in your rom/kernel
calhotel said:
make sure you have proper ext2, ext3 or ext4 file system support in your rom/kernel
Click to expand...
Click to collapse
thanks for the reply.
sd-ext was working fine, when i did the backup (so rom/kernel sure can support this)
it is having issue now, because i did a full restore (i suppose nand backup in CWM would backup sd-ext as well)

Problem mounting sd-ext in Jelly Blast V-3.5

Hey guys, wondering if you could help me. I'm running Jelly Blast V-3.5, with Rafaels Kernel 2.6.35-7 on my S5380i. I've been trying to increase the internal storage on my device by partitioning my 32gb card in CWM with a 1gb ext. I've tried every solution I've found on this forum but I simply cannot get it to mount. Link2sd yields 'invalid argument' no matter where I point it, and when trying to format/mount the ext. in CWM it just says 'apps 2 sd partition not found'.
Here's a list of the things I've tried which have failed to solve this:
Partitioning in minitool, with various sizes and exts, and setting the partition as active.
Flashing conrod script, doesnt seem to be effective.
Script to mount sd-ext at boot, followed iamareebjamal's guide found here http://forum.xda-developers.com/showthread.php?t=1971689
S2E
Mount2SD
I'm completely at a loss, and with the internal storage of the S5380i being what it is, it would be great if anyone could offer me any advice.
Thanks!
do one thing , I'm recovery check if sd-ext is mounted
it used to happen to me that when I flashed new roms I had to mount sd-ext from mounts and storage
so mount it then reboot your phone
go to link2sd and create mount script as ext4
if problem persists , go in storage info of link2sd so see if the partition is mounted
if not you will have to enable auto mount at boot ( if option present in rom ) or mount using terminal emulator
Sent from my GT-S5670 using xda premium
soham jambhekar said:
do one thing , I'm recovery check if sd-ext is mounted
it used to happen to me that when I flashed new roms I had to mount sd-ext from mounts and storage
so mount it then reboot your phone
go to link2sd and create mount script as ext4
if problem persists , go in storage info of link2sd so see if the partition is mounted
if not you will have to enable auto mount at boot ( if option present in rom ) or mount using terminal emulator
Sent from my GT-S5670 using xda premium
Click to expand...
Click to collapse
Thanks for responding.
Attempted to mount in CWM but just receive an error. It's as if the partition isn't there at all. Re-partioned the card but still, no luck.
My rom doesn't have the auto mount at boot option, so it looks I'll have to mount with terminal emulator. Could you run me through the process, or point me towards a guide? Cheers
what error did you get in cwm while mounting ?
yry this line in terminal
mount -o rw /dev/block/
mmcblk0p2 /sd-ext
also is mount2sd file present in your /etc /init.d folder ?
Sent from my GT-S5670 using xda premium
The error in CWM when attempting to mount is: 'Error mounting /sd-ext!'
'mount -o rw /dev/block/mmcblk0p2 /sd-ext' in Terminal Emulator yields the following line: 'Usage: mount [-r] [-w] [-o options] [-t type] device directory'
The mount2sd file is not currently present in my init.d folder as I restored my phone from a backup, though when it has been there, the error in CWM is still the same.
The only difference I have noticed is that when partitioning with MiniTool, Link2SD will say that the partition is not mounted, but when partitioning with CWM it will say that the partition is not found.
galaimo said:
The error in CWM when attempting to mount is: 'Error mounting /sd-ext!'
'mount -o rw /dev/block/mmcblk0p2 /sd-ext' in Terminal Emulator yields the following line: 'Usage: mount [-r] [-w] [-o options] [-t type] device directory'
The mount2sd file is not currently present in my init.d folder as I restored my phone from a backup, though when it has been there, the error in CWM is still the same.
The only difference I have noticed is that when partitioning with MiniTool, Link2SD will say that the partition is not mounted, but when partitioning with CWM it will say that the partition is not found.
Click to expand...
Click to collapse
Did you format ext2 in the secind partition? Normally when you format with cwm, first partition is fat32 and the second partition is ext2. Try to format all available space to 1 partition and using cwm format the card to two part. May be partitioning before makes cwm recognize the wrong part and gives error.
:: Today is the first day of what's left of your life. ::
ChelebiTech said:
Did you format ext2 in the secind partition? Normally when you format with cwm, first partition is fat32 and the second partition is ext2. Try to format all available space to 1 partition and using cwm format the card to two part. May be partitioning before makes cwm recognize the wrong part and gives error.
Click to expand...
Click to collapse
Ensured all the space on card was unallocated and partitioned in CWM recovery.
Attempted to mount /sd-ext again and still receive the following error: 'Error mounting sd-ext!'
Attempted to format /sd-ext and receive the following error: 'No apps2sd partition found. Skipping format of /sd-ext'
Tried so many different ways/combinations of partitions now. Do you think it could be a kernel or rom issue?
galaimo said:
Ensured all the space on card was unallocated and partitioned in CWM recovery.
Attempted to mount /sd-ext again and still receive the following error: 'Error mounting sd-ext!'
Attempted to format /sd-ext and receive the following error: 'No apps2sd partition found. Skipping format of /sd-ext'
Tried so many different ways/combinations of partitions now. Do you think it could be a kernel or rom issue?
Click to expand...
Click to collapse
Make sure you have backed up all your files in your sdcard they will all be deleted and recreated with two partition.
In CWM enter Advanced --> use Partition SD Card
Set your second (ext2/3/4) partition size then set swap to zero (0).
ChelebiTech said:
Make sure you have backed up all your files in your sdcard they will all be deleted and recreated with two partition.
In CWM enter Advanced --> use Partition SD Card
Set your second (ext2/3/4) partition size then set swap to zero (0).
Click to expand...
Click to collapse
This is exactly what I've done, countless times. It simply will not mount. Really struggling to understand this problem.
galaimo said:
This is exactly what I've done, countless times. It simply will not mount. Really struggling to understand this problem.
Click to expand...
Click to collapse
Using a card reader enter your sd card to a computer and test if card has a problem or partitions are correctly created. If your answer is yes you may have a misconfig on your phone. Make sure u have the latest busybox available, have rooted your phone correctly, vs...
Or create your partitions in computer and try...
Ps: I created my partition in Stock Rom. So it must NOT depends on kernel or rom...
ChelebiTech said:
Using a card reader enter your sd card to a computer and test if card has a problem or partitions are correctly created. If your answer is yes you may have a misconfig on your phone. Make sure u have the latest busybox available, have rooted your phone correctly, vs...
Or create your partitions in computer and try...
Ps: I created my partition in Stock Rom. So it must NOT depends on kernel or rom...
Click to expand...
Click to collapse
Partitioned with CWM again. Plugged in to laptop and in MiniTool and this is the result:
galaimo said:
Partitioned with CWM again. Plugged in to laptop and in MiniTool and this is the result:
Click to expand...
Click to collapse
That unallocated space is your problem. Try to create an ext2/3 partion with mini tool. And if minitool gives error than you probably have a defected sd.
And one more suggestion try the cwm in rafaels kernel thread.
Edit: Sorry for cwm use http://forum.xda-developers.com/showthread.php?p=23715776
:: Today is the first day of what's left of your life. ::
ChelebiTech said:
That unallocated space is your problem. Try to create an ext2/3 partion with mini tool. And if minitool gives error than you probably have a defected sd.
And one more suggestion try the cwm in rafaels kernel thread.
Edit: Sorry for cwm use http://forum.xda-developers.com/showthread.php?p=23715776
Click to expand...
Click to collapse
Thanks for taking the time to talk me through this.
Turns out my SD card is defective, swapped for another card and I've now increased my internal storage!
I'll be sending the other one back.
Thank you again for your time :good:
ChelebiTech said:
That unallocated space is your problem. Try to create an ext2/3 partion with mini tool. And if minitool gives error than you probably have a defected sd.
And one more suggestion try the cwm in rafaels kernel thread.
Edit: Sorry for cwm use http://forum.xda-developers.com/showthread.php?p=23715776
:: Today is the first day of what's left of your life. ::
Click to expand...
Click to collapse
Thanks for the link! seems like my CWM wasn't detecting sd-ext.. this fixed!! feared my sd card was ruined.. really thanks a lot!

CM12.1 Bootloop

So, i;ve repartitioned my phone, and tried to install cm11...all good...., ..but with cm12.1 it seems it have a problem.
I tried, reflash/full wipe/format system , data ( preload i cant format ..it gives me this error )
formatting /preload....
E:format_volume: make_extf4fs failed on /dev/block/mmcblk0p12
Error formatting /preload
When im installing cm12..at the end i get this error : warning: no file_contexts detected filesystem ext4 for /dev/block/mmcblk0p12 ..but at the end it says that the script was succesfully installed
I thinks ..i get bootloop because of the repartition...how do i fix this ? ..can someone help me ?
The error indicates, that /preload partition is not having a proper ext4 filesystem. This is strange, as imo CM doesn't need this partition.
Try to flash a different recovery like TWRP (Link in CM12.1 Thread) and format /preload in there.
Afterwards I would wipe /system and /data and then flash CM12.1.
disclaimer: formatting /data or sdcard0 will result in loosing all your data, so backup your data before doing so.
fireburner-de said:
Did you format /system /data and sdcard0 after re partitioning? Don't forget to flash a ROM or Kernel after formatting /system, because formatting deletes your recovery.
disclaimer: formatting /data and sdcard0 will result in loosing all your data, so backup your data before doing so.
Click to expand...
Click to collapse
well..i did ...sdcard0 trough windows i think... is it because of that?..i thinks its fat32
Sorry, pls read my edited post. That may be more helpful.
But I would not suggest formatting sdcard0 through windows. I would suggest formatting it inside the recovery with vfat (fat32).
But that shouldn't be the cause of this problem.
well, i did format it with twrp ..doesnt show me any error..but i still get a bootloop
Okay, so the first problem is solved.
I then would suggest wiping /system /data /cache out of TWRP and then flash CM12.1 again.
diclaimer: wiping /data will delete your App data
welll..i did...still doesnt work..bootloop/.
Booting up CM12.1 for the first time may take some minutes. Are you sure you got a bootloop`?
i waited 10 minutes...
Did you try again, wiping all above mentioned and reflashing CM12.1?
disclaimer: formatting /data or sdcard0 will result in loosing all your data, so backup your data before doing so.
ill try it right now
same thing
ultravy said:
Use this guide for repartition by @gsstudios , and format your partitions correctly (ext4 cache, data, sys & vfat/fat32 sdcard0 your internal storage) . worked for me 1 gb system, 3 gb data!
Click to expand...
Click to collapse
Did you try formatting again like ultravy suggested?
yes
i have used the modified preload pit files I9100_6GB data - 45mb preload.pit
still bootloop
detected filesystem ext4 for /dev/block/mmcblk0p9
detected filesystem ext4 for /dev/block/mmcblk0p10
Patginking system image unconditionally...
Script succeeded: result was [0.20000]
How big is your /system partition with that PIT?
Else I don't know what's wrong here.
8gb system
Are you sure? Because that would lead to like 2-3GB left on sdcard0, when /system is 8 and /data 6. Stck /system is 512MB and suggested when repitting is 1GB or 1.5GB.
its working now..please close this topic
Thank you !

Categories

Resources