Interesting scripts for ext file system - HTC Pico (Explorer)

Hi there! I hope it's ok to post here and not in "general"
I've found some scripts about align ext partition.
What do you think about them, are they doing any good thing?
In order of upload:
I think:
1. converts ext3 to ext4 and align file system
2. align an ext4 file system
3. align an ext4 file system and disables journaling for better performance
Developers maype you can study a little those scripts and maybe you can use in roms or in flashing roms...
I tried all of them with twrp 2.2.2.1 and fail it does an error...maybe you can manage and make it work on our devices...

Thank's

Related

[Q] Reformat data partition as ext4

Rather than making a loopback filesystem, I've been trying to reformat the data partition as ext4, but haven't been able get past the galaxy "S" screen yet (the big S on boot). Here's what I did
* Compile a kernel with ext4 and modified init.rc to mount /data as ext4.
* Reboot into recovery and format /dev/block/mmcblk0p2 as ext4.
* Reboot into download and flash the custom kernel.
It was stuck at "S" for a while, then the screen went dark, and the only thing I could do was to pull out the battery. Then I went into recovery mode and found the partition was trashed, i.e. I couldn't mount it as ext4 again. I had to format it back to rfs and restore the stock kernel to get it to boot. I have to believe that there's something other than init.rc that assumes data partition to be in a certain format. Has anyone had success on a similar task?
BTW, the same process DID work for /dbdata, but I see no visible improvement in Quadrant score...
I has a similar thing occur on my first attempt with nilfs2. Did you remove anything that would attempt to mount as rfs? I think the rfs driver will claim pretty much anything that might be rfs, so if your format left the backup FAT intact, that might be your problem. By the way, the nilfs2+user_init kernel I posted in the mimocan fix thread does support ext4 as well, and allows you to customize the mount without rebuilding your kernel.
Sent from my SAMSUNG-SGH-I897 using XDA App

Nandroid backups - Why Yaffs2 and not Ext3

Hey guys!
It has been already a while messing around with my Defy but one question still remains unanswered for me.
If /cache, /data and /system partitions are Ext3 formatted (you can check this by typing mount in Terminal Emulator), why do nandroid backup images have Yaffs2 filesystem then? Why does this conversion occur? Doesn't it make much more sense to image the partition in its original filesystem?
Thanks in advance...
Nandroid backup - image with YAFFS filesystem. - not dump of partitions.
When recovery is simply unpack files on the ext3 partition.
i suppose earlier (android) adoption of yaffs2 played a big part of that decision, but now it may very well be tar.
it's just a lot easier not to change what's not broken, isn't it?
Will soon be changed to TAR format (Recovery 4.0 will support the two formats)
It sounds good.
Wish the recovery would be more powerful after its source open.

ext, app2sd & strange behaviour

I have a complex problem i'm trying to get around to for month now. Maybe someone has a tip for me:
When installing a new ROM, there are always preinstalled programs turning up that are not part of the ROM. I assume those are on my SDCard because of the Apps2SD/Link2SD setups i have been running for awhile. Was still a bit wondering why they are turning up, because they are not "linked" (didnt reinstall apps2sd or link2sd), but they are available nevertheless ...
What remains is that i need to check/fix my apps2sd setup, but i cant access the linux partitions from my PC because of USB/cardreader problems..
Is there an app out there that lets me access (and maybe even change) my ext partitions content ? Commandline stuff is fine for me.
System: CM7 XT70, 16GB SD with SWAP and Ext3
Ps.: If i can even change to ext4 that way, that would be awesome.
One thing you can do is make an nandroid backup of the "SD Data" partition (that's what nandroid calls the ext partition). For that partition, nandroid backs everything up into a *.tar and a *.md5. You can then copy the tar file to your computer, extract it, modify it etc. When you're done create a new *.tar file and a corresponding *.md5 and use nandroid to restore your new *.tar. When nandroid restores the "SD Data" partiton, it first reformats the entire partition to ext2 and then extracts the tar onto it. If you use XT720 OpenRecovery there's a "SD utilities" function that you can use to convert the existing ext2 to ext3 or ext4 (be aware that ext4 requires ROM support--I think most of the recent ones do...). The regular OpenRecovery does not support ext4 (you won't be able to make a nandroid of "SD Data")--you next XT720 OpenRecovery.
If you want to repartition... I don't know if that can be done on the phone itself.
If you want to just disable app2ext, look inside /system/etc/init.d and find the script that mounts /sd-ext and then move/delete/rename it.
i reclaimed control over my phone! thx
it turned out all /data/app was linked to the ext3 partition ... another reason why my phone was slow.

[Q] How to convert to ext2?

Is there any recovery or script for Desire S that can convert filesystem type to ext2?
Standard CWM 5.x does not have any convert option, 4EXT which I installed moment ago only converts to ext4 (pointless...).
You can use Linux commands in adb shell. Google the one you need.
Edit: this should do
If you do not have the binaries (e.g. commands) download the package from here, post 7, point 2. In the same post there is a description how to transfer them to the phone
why you what to downgrade to ext2
Who told ext4 is upgrade to ext2? Higher number does not mean better. Agree, ext4 originates from ext2, but these are just another file system types with different purpose.
And I think ext4 is an overkill because I just don't need journaling on... mobile phone.

Question f2fs read-write

I wanted to start customizing a ROM for our s22 and I was wondering how can I make system and vendor partitions read-write
to edit the files inside
for ext4 it was possible to unshare_blocks. not sure it's possible for f2fs. but you could convert into ext4 still..
https://forum.xda-developers.com/t/...s-rw-in-super-partition.4120963/post-87115427

Categories

Resources