Most of the ROMs with appropriate kernels come with ext2 for /system
and then convert the filesystems with the .convert file to data-ext4 and cache-ext2
so while i was messing around i tried this:
Required:
create cache.rfs (12,45,184 bytes) and datafs.rfs (14,82,752 bytes) using terminal editor/adb
For datafs.rfs
it will create a datafs.rfs file in your sdcard which is (4096 x 362 = 14,82,752 bytes)
For cache.rfs
it will create a cache.rfs file in your sdcard which is (4096 x 304 = 12,45,184 bytes)
now i packed it in a tar with a factoryfs.rfs (ext2) with recovery in it and flashed the rom
It showed CWM recovery on first boot,
Here i did a factory reset which formatted data cache and sd-ext into clean filesystems, then i fixed permissions superstitiously
This way ROM gets flashed and at the first boot itself the fs are converted to desired fs.
I don't know the quality of what i did or whether it has been done before or is it even correct..
but it worked
If you like it, thank me
if you don't, Ignore
Attached: my data (ext4) & cache (ext2) 2011-07-24
and then convert the filesystems with the .convert file to data-ext4 and cache-ext2
so while i was messing around i tried this:
Required:
- Kernel supporting filesystems,
- factoryfs.rfs is already ext2 and has cwm recovery in it
- stl7 and stl8 converted to desired filesystems
- use a freshly flashed rom without any private data on /cache and /data for "dd" if you packaging it for people to download (just in case, it wont matter because it will get formatted on first boot itself)
create cache.rfs (12,45,184 bytes) and datafs.rfs (14,82,752 bytes) using terminal editor/adb
For datafs.rfs
Code:
# dd if=/dev/block/stl7 of=/sdcard/datafs.rfs bs=4096 count=362
For cache.rfs
Code:
# dd if=/dev/block/stl8 of=/sdcard/cache.rfs bs=4096 count=304
now i packed it in a tar with a factoryfs.rfs (ext2) with recovery in it and flashed the rom
It showed CWM recovery on first boot,
Here i did a factory reset which formatted data cache and sd-ext into clean filesystems, then i fixed permissions superstitiously
This way ROM gets flashed and at the first boot itself the fs are converted to desired fs.
I don't know the quality of what i did or whether it has been done before or is it even correct..
but it worked
If you like it, thank me
if you don't, Ignore
Attached: my data (ext4) & cache (ext2) 2011-07-24
Attachments
-
7 KB Views: 126
Last edited: