[Patch] OpenRecovery with ext4 support patch

dateno1

Senior Member
Oct 15, 2010
217
44
0
my recovery alrealy support ext2,3,4, nilfs2 (6 month ago)

if you want to add filesystem support edit switch.sh (insmod your modules) and edit to
echo "/dev/block/mmcblk0p2 /sddata auto defaults 0 0" >> /etc/fstab
 
Last edited:

dateno1

Senior Member
Oct 15, 2010
217
44
0
echo "/dev/block/mmcblk0p2 /sddata auto defaults 0 0" >> /etc/fstab

We already have it in switch.sh.
But thanks! =)
i edit this part
#app2ext partition on sdcard
if [ -b /dev/block/mmcblk0p2 ] ; then
mkdir /sddata
insmod "$MODPATH/jbd.ko"
insmod "$MODPATH/ext3.ko"

insmod "$MODPATH/ext2.ko"
insmod "$MODPATH/crc16.ko"
insmod "$MODPATH/jbd2.ko"
insmod "$MODPATH/mbcache.ko"
insmod "$MODPATH/ext4.ko"
insmod "$MODPATH/nilfs2.ko"
echo "/dev/block/mmcblk0p2 /sddata auto defaults 0 0" >> /etc/fstab
#e2fsck -p /dev/block/mmcblk0p2

fi

i remove e2fsck for nilfs2
 
  • Like
Reactions: fjfalcon

dateno1

Senior Member
Oct 15, 2010
217
44
0
#chek linux version
LVER=`uname -r | awk '{split($0,a,"-"); print a[1]}'`
MODPATH="/lib/modules/$LVER"


also i add it

it will auto recognize kernel's version and auto mount current modules :D
 
Last edited:
  • Like
Reactions: fjfalcon

Mioze7Ae

Retired Recognized Developer
Dec 27, 2010
2,153
2,053
0
Queen City of the West
I took your OpenRecovery and added/fixed some things:

  • 'Power Off' menu option
  • 'Toggle Display Brightness' menu option (to reduce battery drain--alternates between bright/dim)
  • Fixed nandroid backup all (by hiding the partitions that don't work)
  • Fixed 'Wipe Dalvik Cache'
  • Renamed 'Applications Menu' to 'Utilities'
  • Added a symbolic link: /sd-ext -> /sddata
  • Updated e2fsck to a 1.41.10 (for ext4 support)
  • Added 'SD Card Utilities'
    • 'Scan FAT partition for errors'
    • 'Scan ext partition for errors'
    • Can convert ext2->ext3, ext2->ext4, ext3->ext4 (requires ROM support)
    • 'Save diagnostics to /sdcard/sdcard-info.txt' for debugging
    • Eventually this will also manage the app/link2sd directories
Github: https://github.com/Mioze7Ae/openrecovery_xt720

EDIT: updated with statically-compiled fsck_msdos, tune2fs, e2fsck, and mke2fs from the CM6.3.0 source
 

Attachments

Last edited:

hellmonger

Senior Member
Oct 9, 2010
778
263
0
Laval
I took your OpenRecovery and added/fixed some things:

  • 'Power Off' menu option
  • 'Toggle Display Brightness' menu option (to reduce battery drain--alternates between bright/dim)
  • Fixed nandroid backup all (by hiding the partitions that don't work)
  • Fixed 'Wipe Dalvik Cache'
  • Renamed 'Applications Menu' to 'Utilities'
  • Added a symbolic link: /sd-ext -> /sddata
  • Updated e2fsck to a 1.41.10 (for ext4 support)
  • Added 'SD Card Utilities'
    • 'Scan FAT partition for errors'
    • 'Scan ext partition for errors'
    • Can convert ext2->ext3, ext2->ext4, ext3->ext4 (requires ROM support)
    • 'Save diagnostics to /sdcard/sdcard-info.txt' for debugging
    • Eventually this will also manage the app/link2sd directories
Github: https://github.com/Mioze7Ae/openrecovery_xt720
Awesome nice wok man :)
 

Mioze7Ae

Retired Recognized Developer
Dec 27, 2010
2,153
2,053
0
Queen City of the West
The SD Card Utilities aren't working if CM6 isn't installed. I need to find a tune2fs that is statically linked. I thought this one was, but I was wrong.

Edit: fixed now in -fix4
 
Last edited:

Mioze7Ae

Retired Recognized Developer
Dec 27, 2010
2,153
2,053
0
Queen City of the West
I compiled static binaries for e2fsprogs and fsck_msdos and updated the zip. I should be working now. http://forum.xda-developers.com/showpost.php?p=16812349&postcount=7

What would it take to incorporate these changes into Androidiani OR?
Some of these changes are pretty easy. Others are a little more involved. You can look at the diffs in github and port ones that you'd like. Eventually I'd like to merge the functionality of both but I'm focusing on OR for now. You can look at what went into each change by looking at the "Commits" tab at github and then clicking on the commit number on the far right side for a particular change and you'll see what changes were made to which files. For example this is the Toggle Display Brightness change.
 
Last edited:

LibertyMonger

Senior Member
Mar 13, 2011
6,280
2,283
0
Cincinnati
I can't get neither one of my sdcards ext4 to mount. I wonder if it might be cause I started with CM6.3? Instead of upgrading from CM6.1 to CM6.3? Just a thought since some of us can and can't mount ext4
 

Mioze7Ae

Retired Recognized Developer
Dec 27, 2010
2,153
2,053
0
Queen City of the West
I can't get neither one of my sdcards ext4 to mount. I wonder if it might be cause I started with CM6.3? Instead of upgrading from CM6.1 to CM6.3? Just a thought since some of us can and can't mount ext4
Can you install the *-fix4 openrecovery and use

OR > SD Card Utilities > Save diagnostics

And then post the /sdcard/sdcard-info.txt?

Do you have a nandroid of your ext2 partition? If so, try restoring it and the using SD Card Utilities to convert it to ext4.

Sent from my MilestoneXT720 using XDA Premium App
 

LibertyMonger

Senior Member
Mar 13, 2011
6,280
2,283
0
Cincinnati
Can you install the *-fix4 openrecovery and use

OR > SD Card Utilities > Save diagnostics

And then post the /sdcard/sdcard-info.txt?

Do you have a nandroid of your ext2 partition? If so, try restoring it and the using SD Card Utilities to convert it to ext4.

Sent from my MilestoneXT720 using XDA Premium App
Yeah I will post the /sdcard/sdcard-info.txt here but it says the same as what fjfalcon was quoting. And yes I do have a Nandroid of ext2 but never tried to restore it yet. I will try now...
 

Mioze7Ae

Retired Recognized Developer
Dec 27, 2010
2,153
2,053
0
Queen City of the West
Are you referring to the info.txt that fjfalcon posted in the CM6 thread? The commands I gave there weren't correct. In any case the sdcard-info.txt produced by *-fix4 are much expanded and look quite different... I can't find any other post by fjfalcon...

Sent from my MilestoneXT720 using XDA Premium App
 
Last edited:

LibertyMonger

Senior Member
Mar 13, 2011
6,280
2,283
0
Cincinnati
Are you referring to the info.txt that fjfalcon posted in the CM6 thread? The commands I gave there weren't correct. In any case the sdcard-info.txt produced by *-fix4 are much expanded and look quite different... I can't find any other post by fjfalcon...

Sent from my MilestoneXT720 using XDA Premium App
Oh sorry Mz didn't mean to make you look for it, I was talking about when he was saying how some aren't mounting. Anyway I posted it above your last post. I have my ext2 restored. I will try to convert it tomorrow. thanks man.