yashsingh1/xdaforums huggingface dataset:
[Epic 4G Android Development] The_Legendary:
Yeah I'm pretty sure copying it will change the md5. I found a fix for everyone though. Just use a md5 checksum program and check the md5 of each file and open the nandroid.md5 file with notepad. you will see some numbers then two spaces then boot.img the numbers are the md5 of boot.img. So change this to whatever the md5 program told you the md5 for boot.img was. Then your will see a rectangle then some more numbers then two spaces then cache.yaffs2.img or .tar whatever you have. Then change them numbers with whatever the md5 program told you the md5 for cache.yaffs2.img was. Then keep doing this for the rest of the files it names in nandroid.md5 Then when you restore the backup in MTD all the md5's will match because it reads the files then the nandroid.md5 to check. I'm not sure if this is safe but will work but you can't add even one space in the .md5 so make sure your only replacing the numbers with what it tells you in the md5 program.
[Epic 4G Android Development] flastnoles11:
That's the thing though... I checked the md5 when I copied it and they were exactly the same... but forgot to check again when I renamed the files... so it may have messed up there... I still have the copy on my laptop I believe, so I will copy back to my phone when I get home and check...
[Epic 4G Android Development] pablomentabo:
Thanks for that info and the rest of the steps of course. Trying this out now :cool:
[Epic 4G Android Development] The_Legendary:
Yeah I updated step 4 of the guide so check it out
[Epic 4G Android Development] pablomentabo:
Yep, thanks for that. I'm going to make one post here showing I'm on MTD once my Kernel is updated. Will hit the thanks button too. Loving the increased internal storage and I'm hoping that ICS comes to us soon since I've read this is supposed to push us towards that :D
[Epic 4G Android Development] pablomentabo:
Ok, just finished and flashed the Kernel I wanted. I didn't do this part of step 5:

"I do one final Wipe 3X and wipe data/factory reset because last time when I didn't I kept getting the download error in the market. But I just had to do the factory reset in the "Privacy" menu under settings on your Phone"

I was fine with downloading from the market so it's all good. Here's the screenshot showing mine is all set. Thanks a ton The_Legendary, this really should be a sticky.

Almost forgot to say... I did a lot of this setup while playing Skyrim :P
[Epic 4G Android Development] The_Legendary:
Thanks man I'm glad you got it working and you don't have to wipe i did because i was having wifi issues but that was only one time. And yeah this isn't really that hard i was playing mw3 when doing it also ironically lol

Sent from my Legendary RC 2.2 MTD Converted Epic
[Epic 4G Android Development] superlungz420:
Is that 238mb more space or 238mb total?
[Epic 4G Android Development] The_Legendary:
I think 238 total.
[Epic 4G Android Development] MДЯCЦSДИT:
Its 600 something total
[Epic 4G Android Development] The_Legendary:
See I stand corrected. So that would be 238 more mb :)
[Epic 4G Android Development] jeffro18:
I think it was 191mb extra in my case.
[Epic 4G Android Development] DCRocks:
Tried this over the break..

Was able to backup and convert my Legendary RC2.2 ROM to MTD with no issues.

Backed up, edited files, flashed clean GB rom and it did conversion to MTD, wiped 3x, did advance restore of Leg 2.2 System, did advance restore of Leg 2.2 data, flashed Samuari TW MTD kernel, rebooted and everything is flying right along, with all my data restored

Awesome write up!!!
[Epic 4G Android Development] Gavisann:
What I meant was that I now have 238MBs of free space compared to when I use to only have 50MBs free. My total currently is 677MBs.

Still, everything is running smooth, and I notice that some apps respond slightly quicker.
[Epic 4G Android Development] pablomentabo:
Quck question, not sure if it's related. After going thru this install and resetting the phone a couple times I was warned by my Ad Blocking software that there was an update to it's definitions (well idk if it's called that but it's not an update to the app but the sites it blocks). I went into the app to do this and get the following message. Is this something that is removed with converting to MTD? Should I just be able to follow the link to the Market and install BusyBox again?
[Epic 4G Android Development] kush621:
I was able to convert to MTD and restore a backed up Legendary ROM, and everything seems to be working well, I even working with almost 250mb after fully restring everything. Great job.

I did notice that if you try to reboot into clockwork from the Phone Options screen when you press the power button, it just reboots the phone, not into clockwork. Also if I try to use the 3 finger salute to boot into clockwork, if i keep the buttons pressed for too long the SAMSUNG screen just keeps looping. I have to let go after the bottom lights come on, then the screen goes black, then the SAMSUNG screen comes back, and then it boots into clockwork, just a little weird in my opinion. not sure if anyone else is noticing this.
[Epic 4G Android Development] KennyG123:
It has been noted that MTD script to boot into clockwork from power menu is broken....in every ROM.
[Epic 4G Android Development] kush621:
Guess I missed that, thanks
[Epic 4G Android Development] algorhythm:
Okay so I think I get this. I'm about to do this, but I have one question. Why do we flash to a rom that is MTD before we convert the backup? Does it really make a difference?

The way I see it is: CWM backup BML rom, flash MTD rom, pull CWM backup of BML rom and rename ext4 to yaffs2, then restore the CWM backup.

What does flashing to MTD first do?
[Epic 4G Android Development] flastnoles11:
It converts you to mtd... changing the filename. In the backup doesn't actually convert you... it just restore the bml rom as an mtd rom... technically your fooling the backup to think it was mtd but without the conversion already done you have no mtd to go to... if that makes sense...
[Epic 4G Android Development] kush621:
I already had a converted backup on my SDcard before I flashed the MTD ROM and everything is working fine.
[Epic 4G Android Development] algorhythm:
No I know what's going on, but I don't get why we flash to MTD before modifying the BML backup to restore as a YAFFS2 filesys rather than ext4/rfs filesys.

It sounds like the BML->MTD backup change can be done at any point, not after you flash MTD. Is this right?
[Epic 4G Android Development] flastnoles11:
Lol.... yes... you can do that last week! Lol sorry guess I read that wrong... sorry haven't been to sleep in about 42 hours now... been fixing my laptop! But done now and bed soon!
[Epic 4G Android Development] algorhythm:
Haha figured you could, thanks :)
[Epic 4G Android Development] pablomentabo:
Same thing here for the 3 finger salute. I already knew I wouldn't auto boot into Clockwork before I did this though
[Epic 4G Android Development] pablomentabo:
Ok, not sure why this happened but the re-install of Busybox fixed the issue with the add blocker app. Before the MTD conversion it never said I needed to make sure it was installed since it saw it from it being included in Legendary 2.2 I thought. Not sure if it was related but it's working now
[Epic 4G Android Development] Flint420:
This worked flawless for me coming from legendary 2.2. Increase in space is nice.

Before:

System 264/79.3 free. 184.7used

Internal 508/98.6 free 409.4 used

After:

System 281/89.4 free. 191.6used

Internal 709/292 free 417used
[Epic 4G Android Development] DCRocks:
This was by far the easiest way I tried to convert my BML ROM to MTD

my tips:

1) you can do the renaming/editing of the files before doing anything else if you so wish

2) use notepad++ to edit the file (nandroid.md5) and change RFS and/or EXT4 to yaffs2, as it makes it so much easier then using notepad

3) be sure to mount system and data in recovery before you do the restore

4) do an advanced restore of system and then an advanced restore of data instead of a standard restore of everything

5) be sure you flash a MTD kernel BEFORE you reboot into your ROM for the first time, or your ROM will NOT boot

These tips made my conversion from Leg 2.2 BML to Leg 2.2 MTD a breeze

I did no wipes at any point, and it kept my theme, data, everything, and after a week, it has been running flawlessly
[Epic 4G Android Development] KennyG123:
You forgot that they should flash an MTD ROM like CleanGB first to convert the file system.
[Epic 4G Android Development] DCRocks:
It was much less of a step-by-step, then just a collections of tips that helped me make the conversion

But yah, I did use CleanGB for the MTD conversion, and it worked perfectly
[Epic 4G Android Development] intulsa:
This worked really well, thanks.
[Epic 4G Android Development] The_Legendary:
No problem glad I could help, and thanks to everyone that have been helping everyone that was having problems out, you guys are the coolest :)
[Epic 4G Android Development] mikeblock:
Legendary has been working great, but I don't really see any difference in my available RAM. Should I start over?
[Epic 4G Android Development] Gavisann:
You should notice a difference in onboard NAND storage , about 200 MB more.

Send from my SPH-D700 (Samsung Epic 4G)
[Epic 4G Android Development] KennyG123:
Yes it is not RAM but Phone memory storage. You should gain close to 200MB for apps.
[Epic 4G Android Development] mikeblock:
Thank you guys, I thought this was the case, but I saw a few references to "big RAM increases" here and there, and was wondering wtf? Yes I do have a significant amount more useable space, and very little left over in my "System ROM" section. I love it, I always got annoyed every time I would look and see all that wasted space :P
[Epic 4G Android Development] Ignorance1:
If I'm currently on a bml rom, do I have to odin back to stock and click re partition sd card. And re-root to flash an mtd rom?
[Epic 4G Android Development] KennyG123:
Nononono. Nothing but format touches your sd card. You back up with Titanium, Factory reset data and flash the MTD ROM. Restore 3rd party apps and only data you absolutely must have with Titanium.
[Epic 4G Android Development] Ignorance1:
So format sd card, then flash mtd rom and it will convert me to mtd then restore neccessary apps and data?
[Epic 4G Android Development] flastnoles11:
You don't have to format the sd card!!! Just flash the mtd rom and then restore your apps and app data that is a must... you don't have to touch the sd card...
[Epic 4G Android Development] Comando156:
Plan in doing this tomorrow to my legendary rom backup. So I can try miui and cayogen mod.... Haven't used them since my nexus one... Kind of excited to give them a try again but Pretty sure I'll revert to legendary do to pure satisfaction and performance. Thanks again legendary and other commenters.
[Epic 4G Android Development] ashbuly:
To convert or not...that is the question

For those that have converted with Legendary 2.2, do you find it to be worth the conversion? Are you seeing any other increases besides memory?
[Epic 4G Android Development] KennyG123:
Stability. Ext4 has possible journaling issues, MTD does not so there is little chance of data corruption. You also can easily try and switch between CM7 or MIUI.
[Epic 4G Android Development] RandomKing:
I can't speak for that particular rom, but I support MTD. My rom will be converting to MTD.
[Epic 4G Android Development] Comando156:
This worked perfectly. Legendary working smooth for me on mtd.... get to play with miui and cm7 now too. Thanks!
[Epic 4G Android Development] iceman19631:
Thanks...

Very nice Guide, used this Guide to convert EL30 Stock deodexed after I had it customized to my liking. Everything flashed smoothly without a hitch. Thanks again.
[Epic 4G Android Development] ashbuly:
Now that I have taken the plunge and got Legendary 2.2 up and running in MTD, if I make a nandroid, do I still have to go back through the advanced restore or can I just do a regular restore to get back to Legendary if I go and play with Muiu and CM9?
[Epic 4G Android Development] flastnoles11:
Regular restore should work just fine if you have made a backup AFTER converting it to mtd...
[Epic 4G Android Development] ashbuly:
Yep...Thanks
[Epic 4G Android Development] antmon:
when opening the backup folder from my pc, all the files there are .img

then rename them or should i be seeing .rfs or something else extensions??
[Epic 4G Android Development] KennyG123:
What Flast said and remember you cannot restore any BML backups wiothout Odining and repartitioning back to BML.

---------- Post added at 07:38 AM ---------- Previous post was at 07:37 AM ----------

It is just before the file extensions, in the center it says ext4 or rfs.
[Epic 4G Android Development] xtrezpasor:
Does the newest acsrecovery based on cwm5 work for this or do I still need to flash cwm5 over acsrecovery first?

Thanks
[Epic 4G Android Development] KennyG123:
You need CWM 5.027. I thought it specifically states no ACS recovery in the directions.
[Epic 4G Android Development] xtrezpasor:
It does, but I also know back in nov acsrecovery was based on cwm4 so I didn't know if now that its been updated to cwm5 if I could use it. Ill switch over tonight. Thanks
[Epic 4G Android Development] antmon:
[QUOTEIt is just before the file extensions, in the center it says ext4 or rfs.[/QUOTE]

ok...i just did a nandroid backup from CWM and currently on Legendar 2.2..

the files in the clockworkmod\backup\2012-02-07.12.16.27 are:

.android_secure.img

boot.img

cache.img

data.img

nandroid.md5

recovery.img

system.img

what am i missing here? :confused:

---------- Post added at 10:01 PM ---------- Previous post was at 09:58 PM ----------

oh, nevermind....

that was the earlier backup that was from CWM3.1 not CWM5 :)
[Epic 4G Android Development] xtrezpasor:
Does Rom Manager work still after you converted the ROM to MTD or not any more?
[Epic 4G Android Development] flastnoles11:
If you have a compatible kernel yes... but you need to go into seetings and choose manual flash override, then epicmtd, and then 3.x.x.x... this will allow it to use the mtd version of cwm you will get when flashing a rom that converts you to mtd
[Epic 4G Android Development] xtrezpasor:
So I'm not sure if I did something wrong but I am still running clockwork 5.0.27 but I converted to mtd and have an mtd kernel running? I thought it would switch to clockwork 3.x
[Epic 4G Android Development] flastnoles11:
No.... rom manager boots you into you existing recovery... when you picked manual override you pretty much told rom manager to not use its own recovery and to use the one that you already have...

IMPORTANT!!!!- DO NOT FLASH ANOTHER RECOVERY WHILE ON MTD!!! The version of cwm 5.0.2.7 that the mtd rom installed is the ONLY recovery that will work with mtd... it is a slightly modified version of the original cwm made to work with mtd
[Epic 4G Android Development] sasmitadani:
big big thx.. follow yours guide running well

add link2sd script work well too

more more room now

sent from Legend 2. 2-epic4G-on MTD
[Epic 4G Android Development] antmon:
nice guide...smooth transition to MTD...

question, if you had Legendary 2.2 BML running and a Titanium Backup of all your apps...can you just flash any MTD rom, then restore apps with Titanium Backup??

do you have to go through this process anyway?
[Epic 4G Android Development] Nashdogg:
Yes, it should work fine now. Try using the newest tw. mtd samurai kernel. All the restore issues with titanium backup have been resolved in the latest versions of all the kernels I believe.
[Epic 4G Android Development] antmon:
very good, thanks...

also, when i originally did the conversion, i was confused with the last step of wiping everything 3x...espcially after restoring the rom in three parts (data, cache, etc)

sounds like it would offset what was restored, so i did it anyway and then i Titanium Backup all of my apps back...

is that correct?

i thought that after i restored the rom in three parts, i would just boot up back to my Legendary Rom BML, now as MTD.
[Epic 4G Android Development] KennyG123:
You should have wiped only once prior to doing all restores. You can do all 3 in succession with no wipes between or after. Then it will look exactly as it did on BML only with more app space now.
[Epic 4G Android Development] antmon:
ok, i had read this...

" I do one final Wipe 3X and wipe data/factory reset because last time when I didn't I kept getting the download error in the market. But I just had to do the factory reset in the "Privacy" menu under settings on your Phone. Also Fix your permissions while you are in CWM."

so after the 3 separate restores, i should've just rebooted the phone and that's that? and then not needed to do Titanium Backup?
[Epic 4G Android Development] PoorCollegeGuy:
Hello,

Just wanted to say hello and let everyone know that this thread (along with AproSamurai's explanation of MTD) has been featured on the XDA Portal:

http://www.xda-developers.com/android/convert-your-favorite-epic-4g-rom-from-bml-to-mtd/

:)
[Epic 4G Android Development] KennyG123:
Yeah that is all I did. 1 full wipe then 3 advanced restores and boot...Legendary 2.1 on MTD was my result.
[Epic 4G Android Development] VicH3:
I was on CM9, followed instructions as above string to convert a Mostly Stock CWM backup and it just hangs on the Galaxy S Cyanogen(mod) screen at reboot.

Any ideas?

Thanks
[Epic 4G Android Development] Nashdogg:
What where your exact steps in your conversion? Also what did you use to edit your nandroid backup?

I have converted every rom that was bml to mtd so I have had lots of practice. I will help out if I can.

Edit.. Did you wipe data/factory reset before advance restoring your conversion? You shouldn't see the cyanogen mod kernel splash if it restored correctly and you wiped.

Edit.. check your pm
[Epic 4G Android Development] Ragnar:
You shouldn't have any cyanogenmod logo if your restoring a tw rom. Does the nandroid you converted have a kernel? Did you wipe all data, cache and dalvik?

You also renamed the system, cache and data files with yaffs2?

Remember you flash rom and flash an mtd kernel before booting.
[Epic 4G Android Development] zman519:
any one have problems restoring nandroids made with rom manager?
[Epic 4G Android Development] Nashdogg:
I did back when I first switched to gb. I never figured it out and just make my nandroids through cwm. Are you trying to restore the nandroid as a whole or advance restoring system,data,cache?
[Epic 4G Android Development] VicH3:
I was already on CM9 which I believe is MTD.

I then renamed the CWM backup files: cache, data and system from rfs to yaffs2.

Then modified all the rfs instances in the nandroid.md5 to yaffs2.

I wiped all 3 times including davlik

Then did the advanced restore on system, data and cache.

Wouldn't running CM9 qualify as the flash rom and mtd kernal before booting?

Sorry I am new at this.
[Epic 4G Android Development] Nashdogg:
You would normally flash an mtd rom to convert you to mtd but seeings you are already there you can do a full wipe and advance restore system,data, then cache.

Edit..what program did you use to edit the nandroid? I use notepad for all my editing. I tried a few conversions from my phone and they didn't work out so well. I can put that together for you if you can't get it figured out.
[Epic 4G Android Development] Ragnar:
No the Cm7 nor cm9 kernel will not work! You need a tw mtd kernel, and you must flash it right after you do the restore, before booting
[Epic 4G Android Development] VicH3:
Edfunkycold - I understand, will take that approach. THANKS!!!!

Nashdog, THANKS for your help too!!!
[Epic 4G Android Development] Nashdogg:
No problem. Edfunkycold helped me out alot too when I was new to this process. Let us know how you make out.
[Epic 4G Android Development] zman519:
I did the convershion just fine the other day & had/have it working

Well i tried something & its didn't work. Then i go to restore my nandroid that i made right b4 trying. ( had this all set up & working) & it would just do nothing after after the boot anie.
[Epic 4G Android Development] Ragnar:
Mine always works, I flip between legendary and cm all the time. All my nandroids work and restore all made with cwm5
[Epic 4G Android Development] zman519:
so you three finger boot in to cwm & you never make them with rom manager? I made two nandroids & nether of them worked.:mad: So i started all over agian with the first one i use to switch to MTD.

I swear rom manager is totally junk it has faliled me more times than i can count. Maybe it works on other phones
[Epic 4G Android Development] xtrezpasor:
I had the same problem... if you find a solution lemme know....
[Epic 4G Android Development] Ragnar:
No I use rom manager to boot into recovery then create my nandroid. I used the rom manager backup option one time it gave me a problem so never used it again. But I love the auto download feature, the reboot into recovery I barely ever 3 finger salute anymore.
[Epic 4G Android Development] KennyG123:
Yes. It must be a straight 3 finger backup. And to the guy stuck at Cyanogen screen try flashing CleanGB MTD first then do your advanced restores.

Edit...looks like I was a page behind...lol.
[Epic 4G Android Development] zman519:
Well dam THAT WOULD BE SOME THING TO PUT IN THE OP!

Thanks Kenny

Sent from the Drivers Seat of my Suby txting and Driving doing 100MPH+ in a school zone! Ha.
[Epic 4G Android Development] antmon:
just did another Epic, thanks :)

and this time just rebooted after the 3 separate restores in the last step.

gained a bunch of memory too.
[Epic 4G Android Development] zman519:
Any one try using Rom Manager to rename your nandroid that you made by booting in to cwm5 via 3 finger or power menu or using rom manager to boot in to cwm?

The reason i like to use Rom Manger to make nandroids is because you can name it "date_CleanGB_Kernel you have_b4 x tweeking" etc... & i can keep track of whats what.

I don't want to have my backup become useless again.
[Epic 4G Android Development] KennyG123:
After converting to MTD, in ROM Manager hit menu, choose manual flash override, then Epic-MTD then clockwork 3.x.x.x and then you can use ROM Manager like you are used to and rename all you want. I couldn't survive without it. Got 4 different ROMs backed up..LOL.
[Epic 4G Android Development] zman519:
Yes Kenny i did do that. but they all failed to do any thing. I tried out the Odexing script form the sleeper rom thread. It didint seem to work on my rom. So i had a few nanadroid from before & neether of them worked so i had to start all over.
[Epic 4G Android Development] KennyG123:
From before MTD or before odexing? I had trouble restoring Sleeper ROM 2.03 but have no trouble with CM7, CM9 (with no theme) nor CleanGB. When Sleeper would restore I would lose the notification bar. But other than that as long as you are backing up and restoring on MTD it should work fine.
[Epic 4G Android Development] zman519:
After MTD. UpBacks I made b4 I tried out odexing

O ya the rom I'm using is kinda my own rom baced somwhat off of acs5.5

Sent from the Drivers Seat of my Suby txting and Driving doing 100MPH+ in a school zone! Ha.
[Epic 4G Android Development] KennyG123:
Are you using a kernel that supports ROM Manager with it? Maybe flash CleanGB 1.12 and try a backup and restore renaming with ROM Manager to see if it works there.
[Epic 4G Android Development] zman519:
Shadow TW-MTD_v0.5

I'm almost afraid to test it out i dont want to start over again. But i know that the only way to know :-(
[Epic 4G Android Development] KennyG123:
Isn't shadowkernel up to 3.0 TW MTD?
[Epic 4G Android Development] zman519:
lol ya "shadow "

i'm on EI22 isn't 3x EL30
[Android Q&A, Help & Troubleshooting] hulkman1992:
hey guys my mmc (memory card) got corrupted and i had to format it and i had few apps installed on it and before formatting some how i managed to recover android secure folder in which i have asec files.

can anyone tell me that is it possible to recover apps from those files if yes how