[MOD] Back to ext 4 / ext 3 - LG Optimus 2x

This script will convert your system & data partition to ext 4 filesystem
only use it when your ROM / KERNEL supports ext4 filesystem ! Read description carefully !
example for use :
use it when you try out MCR ROM FR19 (you have to convert to ext3 before) or CM (will auto convert to ext3 when installing) and want to revert back to your older backup (FR18 for example)
restoring your backup in CWM recovery will restore your data but will not convert your filesystem back to ext4, that´s why i made this zip.
so, if you plan reverting to your backup (which supports ext4), simply apply this zip in recovery & restore your backup afterwards ;
back_to_ext4
------------------------------------------------------
This script will convert your system & data partition to ext 3 filesystem
(courtesy of Paul / MoDaCo)
If you have been using a EXT4 ROM and you want to restore a stock ROM that only has EXT3 support, it's a bit of a faff. Introducing BackToEXT3.
This ClockworkMod update zip simply converts your /system and /data partitions back to EXT3. It wipes them both in the process, so you need to have an existing backup / ROM to restore to.
Click to expand...
Click to collapse
example for use :
use it if you are running an ext4 ROM at the moment and want to revert to your stock ROM or CM backup. (which both only support ext3 at the moment)
r1-backtoext3-2x-unsigned

Niceee, just what a lot of people need.

How do I tell if I´m running Ext 3 or 4 ?

Filgaliel said:
How do I tell if I´m running Ext 3 or 4 ?
Click to expand...
Click to collapse
quick on phone :
open "terminal emulator" (free in market) on phone
type in command : "mount"
check output
example (sys+data : ext4) :

Anyone know if the CM7 (offical) kernel has support for EXT4? Then we could use this to convert from EXT3 to EXT4, right?

sibbor said:
Anyone know if the CM7 (offical) kernel has support for EXT4? Then we could use this to convert from EXT3 to EXT4, right?
Click to expand...
Click to collapse
you could use, but ...
CM system partition still running ext 3 ...
Code:
format("ext3", "EMMC", "/dev/block/mmcblk0p1");
mount("ext3", "EMMC", "/dev/block/mmcblk0p1", "/system");

Can we ext4 on cm7 with a custom kernel?

ermacwins said:
Can we ext4 on cm7 with a custom kernel?
Click to expand...
Click to collapse
afaik, no custom CM kernel supports ext4 atm ...
added backtoext3 script from paul in 1.st post ...

75markus said:
added backtoext3 script from paul in 1.st post ...
Click to expand...
Click to collapse
I used this backtoext3 in order to return to my nandroid stock rom v10d backup.
Restore completed, but then on boot, it stucks on the 2nd LG logo (one with blue statusbar underneath it).
Am I missing a step here?

75markus said:
afaik, no custom CM kernel supports ext4 atm ...
added backtoext3 script from paul in 1.st post ...
Click to expand...
Click to collapse
I'm working on a universalEXT4converter. It will convert your filesystem to ext4 and edit your ramdisk (works on every rom). Currently not working and I can't bugfix it (because erm something went wrong hehe ).
But will be ready soon and p999 support will follow too

viluve said:
I used this backtoext3 in order to return to my nandroid stock rom v10d backup.
Restore completed, but then on boot, it stucks on the 2nd LG logo (one with blue statusbar underneath it).
Am I missing a step here?
Click to expand...
Click to collapse
strange ...
it should work for that case ...
you have also changed baseband to newer version , perhaps that´s the reason ?

Benee said:
I'm working on a universalEXT4converter. It will convert your filesystem to ext4 and edit your ramdisk (works on every rom). Currently not working and I can't bugfix it (because erm something went wrong hehe ).
But will be ready soon and p999 support will follow too
Click to expand...
Click to collapse
sounds good

75markus said:
sounds good
Click to expand...
Click to collapse
hehe But first need to fix up my device so I can test this zip. First only data convertion. Strange stuff happend last time : /

Well I'm running the latest Slick2x-G which is CM7 and I've tried a new kernel (Morfic's EXT4 Trinity Test Kernel) from OP of this topic http://forum.xda-developers.com/showthread.php?t=1067939
Converted to EXT4 with CM7 and it seems to be running ok, not having any problems, battery life not too bad either.
One thing I was wondering though was I was to wipe and put a different CM7 based rom on without the above kernel would it automatically convert back to EXT3?

[vertigo] said:
Well I'm running the latest Slick2x-G which is CM7 and I've tried a new kernel (Morfic's EXT4 Trinity Test Kernel) from OP of this topic http://forum.xda-developers.com/showthread.php?t=1067939
Converted to EXT4 with CM7 and it seems to be running ok, not having any problems, battery life not too bad either.
One thing I was wondering though was I was to wipe and put a different CM7 based rom on without the above kernel would it automatically convert back to EXT3?
Click to expand...
Click to collapse
Cm update Script formats system ext3 when installing...
Sent from my LG-P990 using Tapatalk

Related

[KERNEL] Gingerbread with EXT4 support and FS converter

Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
As many people where demanding a Ext4 Kernel I created one and added a Filesystem conversion script.
This does only work on Gingerbread ROMs cause the bootloader is different!
On Froyo it will cause the device not to boot into the normal android system. Don't flash it if you are not on a Gingerbread ROM.
I have tested it with KPH but it should work on all Gingbread ROMs that have a updated bootloader.
FS converter? WTF???
This converts (formats) all your internal partitions (system, data, cache) with Ext4.
This way you don't have to use RFS which performance is pretty poor.
How to install?
Install CWM (there some threads here how to do this)
Make a Nandroid backup of your system (this is essential otherwise all your data will be lost!!!)
Install the ext4-update.zip (this will format your partition into EXT4 and flash a new Kernel)
Go into "mounts and storage" -> unmount cache (if it is mounted)
Go to "backup and restore" -> "advanced restore"
Choose the backup you made before -> Restore System & Data (cache is not needed it is rebuild on the next reboot)
Reboot
Don't panic (it will take some time to rebuild the dalvik cache,
just like the first boot after you flashed a new rom with ODIN)
Follow those instructions otherwise all your data will be lost and i make fun of you!
This will install a Kernel that has EXT4 support and a modified init.rc to mount both ext4 and rfs partitions.
Ok enough talked, where can I get this ****? Here MD5: 369808990ff8d45065f0cdd8fbb3f8b8
WTH you bricked my Phone
This is impossible. Except your CWM is buggy. You phone doesn't boot up, you are stucked at the samsung logo?
Ok then we need some information from you. Did you hear the start-up sound the the samsung logo player?
How long did you wait?
Try to adb to the phone and give me the output from "mount" and "logcat" on pastebin.com pls.
Please tell us witch rom you were running. I am not sure if this will work with any custom rom cause i only tested stock
You can fully revert by flashing a Full ROM with ODIN. Then install cwm and restore the backup you created before.
How did you create this?
I simply build the kernel source added Ext4 support. Kernel source is on github
Then I created a new initramfs by dumping the stock one doing the modifications and repacking it. The Initramfs is also on github. This should help anyone of you trying to the some on your custom kernel.
Cool dude ....
Is this a OC kernel ?>???
Nice work dude for this 1 ....
Appreciate ur work
Great work...
Getting ext4 support means it will format the sd card fully or just creates a partition with the free memory left in the sd card?
Sent from my GT-S5830 using XDA App
Aadigoku13 said:
Cool dude ....
Is this a OC kernel ?>???
Nice work dude for this 1 ....
Appreciate ur work
Click to expand...
Click to collapse
nope nothing touched except FS support. I think i won't add anything like that cause it want to save my time to work on CyanogenMod. But everyone feel free to modify the source and do it
adiles said:
Great work...
Getting ext4 support means it will format the sd card fully or just creates a partition with the free memory left in the sd card?
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
it does not touch your sd card. it simply formats the internal partitions to ext4.
hot bro just waited for this......
waiting to see your other work....
and what is FS converter????sry for noob question..
coolya said:
nope nothing touched except FS support. I think i won't add anything like that cause it want to save my time to work on CyanogenMod. But everyone feel free to modify the source and do it
Click to expand...
Click to collapse
Are you working on CM for ACE? Thx for kernel, nice work. )
There is no RFS filesystem's source in your source, how do you compile a kernel supporting RFS?
fzn0268 said:
There is no RFS filesystem's source in your source, how do you compile a kernel supporting RFS?
Click to expand...
Click to collapse
samsung just give we modules for rfs support.
it included in boot.img
what are the advantages of using EXT4 as filesystem?
downloadonlyaccount said:
what are the advantages of using EXT4 as filesystem?
Click to expand...
Click to collapse
Its a journaled file system, meaning it keeps track of all changes made to the file system in a journal making it much faster than samsung's rfs file system.
@coolya
Thanks for this!
Does this Kernel only support SD card EXT4 partitions or does it convert the phone memory to EXT4 as well(thats what i understand by the FS coverter script).
kills999 said:
Its a journaled file system, meaning it keeps track of all changes made to the file system in a journal making it much faster than samsung's rfs file system.
@coolya
Thanks for this!
Does this Kernel only support SD card EXT4 partitions or does it convert the phone memory to EXT4 as well(thats what i understand by the FS coverter script).
Click to expand...
Click to collapse
it converts all internal partitions into Ext4, /system, /data and /cache
But how to use them? I want to build a Froyo kernel supporting ext4 and RFS.
coolya said:
it converts all internal partitions into Ext4, /system, /data and /cache
Click to expand...
Click to collapse
thanks!!
that means it will also support SD card EXT4 APPS2SD partitions right??
kills999 said:
thanks!!
that means it will also support SD card EXT4 APPS2SD partitions right??
Click to expand...
Click to collapse
the kernel is Ext4 enabled you can use where ever you want, you just have to mount the partition right.
is there any way to revert changes made? just in case we may want to claim warranty..
thank you for this awesome work!
guyz i am having a problem...
i just installed this file and after that my phone just got stuck on the samsung logo after reboot...
i followed all the steps but dnt know what happ..
tj_style said:
samsung just give we modules for rfs support.
it included in boot.img
Click to expand...
Click to collapse
How to use these modules?
digkong said:
guyz i am having a problem...
i just installed this file and after that my phone just got stuck on the samsung logo after reboot...
i followed all the steps but dnt know what happ..
Click to expand...
Click to collapse
i had the same problem , just restore cache too and it will be working again
mundixx said:
is there any way to revert changes made? just in case we may want to claim warranty..
thank you for this awesome work!
Click to expand...
Click to collapse
Flash stock kph with odin...

[Q] Need help with ext3 and ext4.

Hi i'm new here and i have some question need you guys help.
1)I'm now on stock rom and kernel with ext3 file.Do i need to do anything if i want to load new rom or kernel with ext4 from cwm 5.0.2.0?
2)If my current rom or kernel is ext4 and i want to load back to ext3,what should i do?
Sorry for my bad english.
You don't need to do anything to switch to EXT4, ROMs convert on install. Take a backup of your stock setup, you can restore that to get back to EXT3 as you're using CWM v5.
Thanks you Rusty!
So the newest cwm will automatically convert it to ext4 right?!Except for ext3,i need to convert it using backtoext3 from Paul or restore back to stock.
No.
A ROMs updater-script will convert to EXT4 if it needs it. CWM v5 will convert back to EXT3 when restoring a backup of an EXT3 ROM.
Thanks again Rusty!
I get the picture now!

How to check EXT3 or EXT4 on LG O2X

How to check partition EXT3 or EXT4 on LG O2X, coz i have nandroid backup of 2.3.4 when i tried to restore on cm7 it stucks on lg logo, i used nvflash method http://forum.xda-developers.com/showthread.php?t=1007825 now im on stock 2.2 so want to sure the partition before to try nandroid restore.
I hade that once .. if u r still stuck on lg logo, then unplug battery and then plug it .. hopefully it will resolve this .. this froyo rom is EXT3 .. u have to root and install recovery first if u want to restore ..
You can try nvflash rom directly.
The official rom is ext4 format.
Stock ROM is ext 3, flash BackToExt3 from recovery and then restore.
i want to know too how to check that im on miui latest
dandeli21 said:
i want to know too how to check that im on miui latest
Click to expand...
Click to collapse
Install Android System Info from the Market. Then go to Mount Points and you'll get the FS of all the partitions. Look for /system /data and /cache.
MUI which is CM based should be EXT4. Stock LG roms are EXT3 and will be the same until they update the kernel.
Cheers!
el_charlie said:
Install Android System Info from the Market. Then go to Mount Points and you'll get the FS of all the partitions. Look for /system /data and /cache.
MUI which is CM based should be EXT4. Stock LG roms are EXT3 and will be the same until they update the kernel.
Cheers!
Click to expand...
Click to collapse
thanks for the info

[Q] Does ACE support ext2?

Hello,
I want to know whether the original ROM for ACE support ext2, ext3, and ext4 filesystems. I have partitioned my sdcard in 3 partitions one is FAT32 and the others two are ext.
Thanks.
ext2, yes. its supported even on stock samsung rom with stock kernel.
ext3 and ext4 no, need custom kernel.
an0nym0us_ said:
ext2, yes. its supported even on stock samsung rom with stock kernel.
ext3 and ext4 no, need custom kernel.
Click to expand...
Click to collapse
Thanks I will check it.
Just installed EXT2 for Link2SD on a Samsung Ace stockrom 2.3.5. This works.:good: First tried EXT3, didn't seem to work.
Stock rom plus stock kernel supports ext2 but stock rom with stock kernl doesnt support ext4 or 3
I would recommend you to flash nims kernel and use ext4 type and use ext4 tweak by mr slaid to improve performance
Give it a shot
kzintest said:
Just installed EXT2 for Link2SD on a Samsung Ace stockrom 2.3.5. This works.:good: First tried EXT3, didn't seem to work.
Click to expand...
Click to collapse
.ext4 partions works fine in 2.3.5... tested by me
I think you failed the installation procedure

CM7/Zeus v7 alongside any rom with GB bootloader and CM7 alongside v28a

CM7/Zeus v7alongside any rom with GB bootloader and CM7 alongside v28a
Hi!This is my"how to" for installing two roms on one OB.
1.We need to partition sdcard
partition #1 : format it to fat(will be used as sdcard)
partition #2 : format it to ext4(will be used as system of zeus and must be at least 320 MB)
partition #3 : format it to ext4(will be used as data of zeus and must be at least 400 MB)
2.Now if u want:
1.Zeus flash this
2.cm7 flash this
(DO NOT FORGET TO PUT YOUR INTERNAL ROM`S KERNEL TO /sdcard/boot/ and name it nandboot.img!)
3.cm7 alongside v28a flash first this, then flash v28a with SFT, then root your v28a and after that put files from this bin.zip to the /system/bin
3.Now if u want to boot:
1.Zeus type in the terminal
Code:
su
bootzeus
2.cm7 type in the terminal
Code:
su
bootcm7
3.v28c ICS
Code:
su
bootsd
4.your nand rom
Code:
su
bootnand
NOTE:If u change your nand rom first install your new rom and after that copy your new rom's boot.img and put it to /sdcard/boot.img and after that rename it to nandboot.img and after all this install this if your sdrom is cm7 and if Zeus this
Now partition table is:
Code:
Zeus/CM7/v28c ICS
system /dev/block/mmcblk1p2
data /dev/block/mmcblk1p3
CM10
system /dev/block/mmcblk0p8
data /dev/block/mmcblk0p9
YouTube
suleymanovemil8 said:
Hi!So is it possible to boot android from sdcard?I think changing root directory to mmcblk1 in the default kernel kommand line could help, have anyone done smthing like this before?
Click to expand...
Click to collapse
Even if it works you'll still be using the same kernel and ramdisk which will only work on ROM very similar to your base.
Sent from my LG-P970
look what i've found http://forum.xda-developers.com/showthread.php?t=1642185
suleymanovemil8 said:
look what i've found http://forum.xda-developers.com/showthread.php?t=1642185
Click to expand...
Click to collapse
I had a look. It looks promising. Its quite a cheap trick and should work on our phone.
I am on my phone now so I can't study what he did in detail and I'm not entirely sure how he handles kernel switching (yet).
It's a good find.
EDIT: Nothing to do with kernel root or command line though.
Sent from my LG-P970
xonar_ said:
I had a look. It looks promising. Its quite a cheap trick and should work on our phone.
I am on my phone now so I can't study what he did in detail and I'm not entirely sure how he handles kernel switching (yet).
It's a good find.
EDIT: Nothing to do with kernel root or command line though.
Sent from my LG-P970
Click to expand...
Click to collapse
I`ve made script for OB and it works
HTML:
cat /sdcard/boot/sdboot.img > /dev/block/mmcblk0p3
echo Rebooting to SD Rom. Please wait...
sleep 3
reboot
return 0
I have repacked zeus rom`s kernel with sd mounts and put the system partition to mmcblk1p1 but it looks like smthing goes wrong(if sdcard is inserted it reboots to recovery in a few seconds but if I remove sd card it stucks at lg logo) and it have created app, data, etc. folders on data (sd) partition
suleymanovemil8 said:
I`ve made script for OB and it works
HTML:
cat /sdcard/boot/sdboot.img > /dev/block/mmcblk0p3
echo Rebooting to SD Rom. Please wait...
sleep 3
reboot
return 0
I have repacked zeus rom`s kernel with sd mounts and put the system partition to mmcblk1p1 but it looks like smthing goes wrong(if sdcard is inserted it reboots to recovery in a few seconds but if I remove sd card it stucks at lg logo) and it have created app, data, etc. folders on data (sd) partition
Click to expand...
Click to collapse
Make so that it only mount the sd partitions if the sd card is present and is made to be bootable.
Reflashing the boot.img isn't a nice way of doing it since bad flash would result in a bootloop. Linux has the ability to reload a kernel without shutting down. I don't know if the kernel that we use can do that maybe it's worth looking into.
Sent from my LG-P970
xonar_ said:
Make so that it only mount the sd partitions if the sd card is present and is made to be bootable.
Reflashing the boot.img isn't a nice way of doing it since bad flash would result in a bootloop. Linux has the ability to reload a kernel without shutting down. I don't know if the kernel that we use can do that maybe it's worth looking into.
Sent from my LG-P970
Click to expand...
Click to collapse
as i said "and it have created app, data, etc. folders on data (sd) partition"
What if i will move /system #2 to /data partition and both of the systems will have data partition on sdcard?
PS. It worked!Now I have data partition on mmcblk1p2
here it is(this is kernel for cm10(26.10.2012))
suleymanovemil8 said:
What if i will move /system #2 to /data partition and both of the systems will have data partition on sdcard?
PS. It worked!Now I have data partition on mmcblk1p2
Click to expand...
Click to collapse
What are you going to do with the GB thats on the phone and not used?
EDIT: its rebooting to recovery because the kernel is set to reboot to recovery when it's 'panicking'.
Sent from my LG-P970
xonar_ said:
What are you going to do with the GB thats on the phone and not used?
Sent from my LG-P970
Click to expand...
Click to collapse
no this kernel boots with normal system and data at sdcard and now i will make kernel with booting from data directory and with data at sdcard)
YES! I have now two roms on one phone!
suleymanovemil8 said:
YES! I have now two roms on one phone!
Click to expand...
Click to collapse
Do a walkthrough for us! :laugh::laugh:
genarinho said:
Do a walkthrough for us! :laugh::laugh:
Click to expand...
Click to collapse
Yes ,pls
sent from my Nokia 1100 with droid 4.0
Just everyone thats reading this know that it still booting from phone and then reading data from sd. (Not true dualboot yet )
@ sulley
Why not use recovery as the phone boot.img and then normal boot then goes of two sd. CWM sources are available and can be modified so that it works as a boot manager. It will then be actual dual boot because from there you can load kernel from either sd or phone (and unload the recovery kernel and with its dying breath start the new kernel ).A project like this will take A LOT of time and will definitely be more than 6 months. Since it would be based on recovery it should be able to make it work for all phones that can use CWM and have similar boot structure. I will help out on a project like this but I can't be that involved with it since my studies will take up most of my time.
As much I understand, bootloader is needed for dualboot and it applies same on Android. So you got access to our bootloader or just directing the boot.img from 1st ROM to 2nd one? Like handshaking?
xonar_ said:
Just everyone thats reading this know that it still booting from phone and then reading data from sd. (Not true dualboot yet )
@ sulley
Why not use recovery as the phone boot.img and then normal boot then goes of two sd. CWM sources are available and can be modified so that it works as a boot manager. It will then be actual dual boot because from there you can load kernel from either sd or phone (and unload the recovery kernel and with its dying breath start the new kernel ).A project like this will take A LOT of time and will definitely be more than 6 months. Since it would be based on recovery it should be able to make it work for all phones that can use CWM and have similar boot structure. I will help out on a project like this but I can't be that involved with it since my studies will take up most of my time.
Click to expand...
Click to collapse
Well I have installed rom's kernel to the recovery partition but after booting to this new kernel i couldn't boot back tonormal kernel till i reflashed recovery from rom manager
ps.recovery partition is at mmcblk0p4 and boot mcblk0p3
genarinho said:
Do a walkthrough for us! :laugh::laugh:
Click to expand...
Click to collapse
tada!
As I expected, not real dualboot. But very much appreciting try. Keep it up
Anyway i still want to make one rom at nand and anouther on sdcard, but if i set in kernel system directory to mmcblk1p1(sdcard) it starts to boot but smthing goes wrong but it starts to boot and i know it because it creates app, data, app-private etc. folders on data partition of sdcard(mmcblk1p2), i think this is because it remounts sdcard or smthing like this.Any ideas about soving this problem?

Categories

Resources