yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 2] Khaon:
From the ramdisk

on fs exec /sbin/busybox sh /check_fs.sh
exec /sbin/dualboot_init ./fstab.aries
mount_all ./fstab.aries.patched

I cannt boot with a data partition formated with f2fs(it is not mounted) and yet the original fstab.aries is correct(cat-ing from adb shell). But there is no information about mounting /data in the outputed fstab.aries.patched.

check_fs.sh is a sh script I added to dynamically edit mounting flags accordingly to the fs's partition were formatted with.
[Xiaomi Mi 2] m11kkaa:
[MENTION=358371]linuxx[/MENTION] you're wrong :)

Yes the fstab gets patched. if TDB is enabled the userdata partition gets mounted the same way as in MIUI - via mount_ext4.sh (for compatibility reasons). removing "-t ext4" from that script for filesystem detection should work.

Please note that CWM replaces this script everytime you boot to recovery.
[Xiaomi Mi 2] Khaon:
Okay thank you! Just came across the source of dual_boot. Will be able to run f2fs on /data.

Do you know if there is any writes done beside in /data/dalvik-cache && /cache by chance ? For now I run an init.d script that link data cache to /cache. Wouldn't even bother to format data with f2fs if it is not the case
[Xiaomi Mi 2] B3!CrAZy:
Works great! Thank you
[Xiaomi Mi 2] eranyanay:
Hi guys,

I was trying to apply CWM after changing filename to update.zip as explained & placing it in root sdcard,

yet it reaches 98% and then says "Install update.zip failed! Error applying update".

Any ideas why?
[Xiaomi Mi 2] linuxxxx:
Mirecovery doesn't allow u to install other recoveries. U must use fastboot or xiaomitool
[Xiaomi Mi 2] Khaon:
@m11kkaa @linuxxxx

A little question. Don't yell at me for not looking to the code :D

How is cmw recovery mounting partition?

Does it mount accordingly to the fstab it has been built with?

Does it mount some partition as if their fs was ext4?

Does it mount accordingly to the partition's fs?

Asking that because TWRP is mounting dynamically as long as the kernel's build has f2fs drivers.

Omnirom's TWRP doesn't support dual boot right?

Thanks in advance guys;)
[Xiaomi Mi 2] eranyanay:
I have question regarding TDB.

I have it enabled and cm rom in system 1. System2 with mokee rom.

I want to recover my notes from MIUI notes app.

I have it backed up with titanium backup. What are my easiest possibilities to recover my notes, taking into consideration that:

1. (update) I tried to override CM with MIUI5 and restoring the data will cause Notes to crash

2. CWM & MIUI6 together is a no-go.
[Xiaomi Mi 2] jordan87:
Is there any chance to get running CWM TDB with Miui6 maybe with this modification http://en.miui.com/forum.php?mod=viewthread&tid=53651&extra=&highlight=dual&page=1 ?
[Xiaomi Mi 2] linuxxxx:
Why arent u able to run cwm if you have miui6?

Miui 6 fb packages replaces the cwm with mirecovery but u can install it via fastboot or xiaomitool
[Xiaomi Mi 2] jordan87:
Yes, but I can't use TDB with Miui6

If I will install MiRecovery I won't be able to use two separate systems.
[Xiaomi Mi 2] linuxxxx:
I dont see the problem. Just flash cwm, enable tdb and its done
[Xiaomi Mi 2] jordan87:
I try new oficial Miui6 KK but it ends with bootloop. Only Wiui V6 works but Wajk will not continue this rom :-/

I haven't try only one way . Standard procedure to flash Miui 6 with miflash and then install CWM using fastboot
[Xiaomi Mi 2] CBpbxEcmecmBeH:
Check xiaomi.eu there's new a development for TDB and MIUI 6
[Xiaomi Mi 2] linuxxxx:
Lol wiui is based on miui. There are no differences on partition table side.
[Xiaomi Mi 2] jordan87:
Acid on Polish MIUI forum has agreed that I can't use True Dual Boot with Miui6

I have installed many roms and Wiui V6 KK but official Miui6 doesn't work for me.

As I understand Miui6 needs to be flashed with Miflash (later can be updated with zip files) but will not work with custom recovery.
[Xiaomi Mi 2] linuxxxx:
Can u upload the flash-all.bat/sh script of the miui6 fb package? I want to see it it deletes/disables system2
[Xiaomi Mi 2] jordan87:
Here You have :)

Thanks
[Xiaomi Mi 2] linuxxxx:
This sitty rom should have a new stupid misc partition that disables tdb. U should take any miui 5 fb package, replace the modem, system and boot files from miui 6 one and flash the new package to have 6. The rom has nothing to do with the tdb, it's just that stupid Chinese OEM that does the things that apple does: they add bugged stuffs and they remove features so users will buy new devices. But we won't buy xiaomi devices anymore... Cwm has nothing to do. You have to do what I said above.

Sent from my mi²s
[Xiaomi Mi 2] jordan87:
Is there any option to use Miui6 without flashing with fastboot? Wajk's rom was modded with some way.

Wiui6 was in zip file.
[Xiaomi Mi 2] linuxxxx:
You can extract both system.IMG and boot.IMG and make a flashable zip then ull have to update the radio etc.. It's easier to make an hybrid fb package as I explained above. Btw this is ot here

Sent from my mi²s
[Xiaomi Mi 2] henry0504:
Thanks!!
[Xiaomi Mi 2] m11kkaa:
well you all should backup your data and say good bye to both CWM and TDB.

Read more: https://plus.google.com/+MichaelZimmermann/posts/ZBatads5HLR
[Xiaomi Mi 2] jordan87:
Long way to recieve Android L :)
[Xiaomi Mi 2] cogano:
Well, it may not be such a loss for many: I use only CM anyway and the other system became redundant many months ago.

And I do miss encryption.
[Xiaomi Mi 2] m11kkaa:
yea but since TDB will be replaced by GRUB that really shouldn't be a problem.
[Xiaomi Mi 2] lampacz:
Hello,

i've problem with flashing cwm on mi2s over fastboot

md5sum recovery-clockwork-6.0.5.0-aries-20140718-signed.zip

46ba033b7299a0e6548c733f4a89f390 recovery-clockwork-6.0.5.0-aries-20140718-signed.zip

fastboot flash recovery recovery-clockwork-6.0.5.0-aries-20140718-signed.zip

sending 'recovery' (9384 KB)...

OKAY [ 0.700s]

writing 'recovery'...

FAILED (remote: image is not a boot image)

finished. total time: 0.702s

Bad image ? md5sum is ok, any idea ?

Little stupid - not flash whole zip but img inside :D
[Xiaomi Mi 2] linuxxxx:
Lol. Why do u flash zip files as img files? The zip file is for recovery. Fastboot uses img files
[Xiaomi Mi 2] pc323:
My Mi2's screen has been broken and it does not show anything. I would like to pull out the data in internal storage via adb of CWM Recovery before I replace the new screen. However, it seems that the device cannot mount the /sdcard and read all files in internal storage. :crying:

Can I mount the internal storage manually? Since I haven't set USB debugging on my device and the MTP seems not working, I should have to pull the files via recovery mode. Is there any ways to extract them? Thanks
[Xiaomi Mi 2] johnsk:
i have flashed MIUI v6 on my MI2S and so i lost CWM.

Now i trie'd to reflash CWM but i got an error.

I think, a have to flash the CWM with MiFlash, but i downt no how the settings have to be.
[Xiaomi Mi 2] Rataplan626:
I keep having issues with CWM on MIUI 6 special edition on my mi2s. When I flash through fastboot, CWM is in fact installed. When I poweroff and enter recovery, CWM is started and I can work with it. When I just boot MIUI though I only get system.ui errors and can't use the phone at all. It doesn't matter if I enable CWM 'recovery protection' or not. Anyone?

---------- Post added at 06:15 PM ---------- Previous post was at 05:31 PM ----------

Never mind, just found that formatting the cache partition makes MIUI go berzerk. CM / HTC version I have used before as well as MIUI 5 didn't have that issue. I always format cache and clear dalvik cache before creating a backup to keep them as small as possible (although I know there are some options for that in CWM as well).

So for anyone having this issue: flash cache.img from the original MIUI6 install file (aries_beta_images_4.9.19_4.4_cn_924f0ac59b.tgz) and you are good to go again!
[Xiaomi Mi 2] Khaon:
what their cache requires mandatory files to work???????????????????????????????????????

I suggest moving to twrp btw.
[Xiaomi Mi 2] m11kkaa:
yes, u can download TWRP from here: http://d-h.st/myfiles?fld_id=41800#files

TDB isn't supported anymore anyway.

Dualboot still is supported. TWRP always manages the activated system.
[Xiaomi Mi 2] Rataplan626:
I keep having issues with CWM. I know how to trick it into working again, but it's really cumbersome. While I will sure try TWRP, but are there other people with these issues on MIUI v6? Does TWRP work better with MIUI v6?
[Xiaomi Mi 2] m11kkaa:
tbh both CWM and TWRP should work just fine. If MIUI really stores anything important on the cache partition they're just stupid.
[Xiaomi Mi 2] gonewild87:
Cool rainbow mode on Cwm! lol
[Xiaomi Mi 2] zinko_pt:
I second that. I have no clue how to flash CWM. I´ve flashed V6 special edition and selecting the IMG of CWM, but the recovery installed is the Mi one.

Do I have to select a V5 ROM with the CWM img as boot image?

Can anyone point me how-to, please?

EDIT:

After using this (xiaomi.eu) procedure for weekly updates - For first installation of Mi2S v6 SPECIAL EDITION, Install v6 via MiFlash (flash_all) - image, Then install our multilang via Updater app like usually

I used the updater app, inside ROM, and flashed the recovery.
[Xiaomi Mi 2] MyNameIsKappa:
Edit: I posted in the wrong place, sorry. I don't know how to delete post
[Xiaomi Mi 2] riowong:
format bad block

I suspect I've bad blocks in the nand on \data or \sdcard0. Can CWM format \data or \sdcard to detect and fix if there're bad blocks?

Pls advice.

---------- Post added at 02:27 PM ---------- Previous post was at 02:23 PM ----------

See if this works.

Installation:

Download latest recovery-signed-***.zip

if you are on stock recovery: Copy the file as “update.zip” in the root directory of your sdcard

Reboot into recovery and install the zip file​
[Xiaomi Mi 2] B3!CrAZy:
Is it possible to get 6.0.5.1 in English?
[Xiaomi Mi 2] m11kkaa:
CWM is dead - don't use it :)
[Xiaomi Mi 2] AndyYan:
Hmm, I've seen that CWM stopped getting updates long ago, but what's the exact reason behind its death? Is that the implementation of CM Recovery?

(Not that I ever liked CWM/PhilZ anyway...)

Sent from Google Nexus 4 @ CM12

[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
[Xiaomi Mi 2] B3!CrAZy:
So what recovery is best these days?
[Xiaomi Mi 2] AndyYan:
TWRP for darn sure :D Others are mostly dead anyway.

Sent from Google Nexus 4 @ CM12

[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
[Xiaomi Mi 2] B3!CrAZy:
And which version do you recommend for mi2sc?
[Xiaomi Mi 2] AndyYan:
...aren't recoveries totally interchangeable between all variants of 2/2S?

Sent from Google Nexus 4 @ CM12

[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
[Xiaomi Mi 2] B3!CrAZy:
Not sure. That is why i am asking :) and what about 4ext recovery? Did you try it?
[Xiaomi Mi 2] AndyYan:
Nope, but back in the Incredible S days, it was far more powerful than CWM but far less intuitive than TWRP.

Sent from Google Nexus 4 @ CM12

[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
[Xiaomi Mi 2] B3!CrAZy:
Ok, i installed TWRP 2.8.5.0. One more thing. What should i wipe before weekly update? I mean if i do not want to do full wipe. Is data and cache enough?
[Xiaomi Mi 2] AndyYan:
Weekly update? I never wiped anything even when I update monthly... The update package should automatically wipe cache for you, but that should be all you need.

(Wiping /data means you have to set the phone up all over again - you don't do that every week, do you? ;))

If it's jumping between major Android version though (e.g. 4.4 to 5.0, or the upcoming 5.0 to 5.1), I would definitely do a full wipe (data, cache, system) to ensure there are no compatibility issues.

Sent from Google Nexus 4 @ CM12

[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
[Xiaomi Mi 2] zipalign:
TWRP 2.8.5.0
[Xiaomi Mi 2] MikelFuchs:
Maybe a new thread should be opened, but as Micha said cwm is dead I add some questions here:

How does this twrp 2.8.5.0 handle system 1 and 2?

Does it automatically work on the active system?

As I didn't find a possibility to switch between system 1 and 2, it might have the drawback that you cannot switch back to the other system if your current system got screwed up and cannot start any longer.
[Xiaomi Mi 2] zipalign:
never used any recovery to manage 2 systems.. so I can't help you.

sorry.
[Xiaomi Mi 2] arzuakay:
How can i install ClockWorkMod Recovery on miui rom?

I follow these steps but

my phone still have mi-recovery v2.0.1 not CWM-recovery.

mi-recovery persistent

c:\adb>fastboot devices
5f37eba fastboot

c:\adb>fastboot flash recovery recovery.img
sending 'recovery' (9270 KB)...
OKAY [ 0.308s]
writing 'recovery'...
OKAY [ 1.807s]
finished. total time: 2.118s
[Xiaomi Mi 2] MikelFuchs:
In case that you have the MIUI 6 Developer ROM 5.4.10 please check the thread below:

[Device Team] How to get Custom Recoveries working again on Mi 2/2S with MIUI 6

http://en.miui.com/thread-102413-1-1.html
[Xiaomi Mi 2] arzuakay:
thanks

solved my problem
[Xiaomi Mi 2] m11kkaa:
TWRP from my devhost: http://d-h.st/myfiles?fld_id=41800#files

The difference to other Recovery ports(and TWRP versions from other people) is that this recovery is clean from any dualboot hacks etc because most ROM's don't support CWM's Dualboot/Truedualboot anymore.

Now things are like Xiaomi intended them to be and if anyone needs Multiboot he has to wait for the GRUB4Android release.

Reasons behind this:

- CWM got replaced by CMRecovery - but since CMRecovery is for OTA only(no backups) TWRP is the only good alternative

- new ROM's - especially L - need more space. So we get rid of all Dualboot functionality to make space for these ROM's

- MULTIboot is a totally different story and should not be included by default in any ROM/Recovery(see my G4A comment ebove)
[Xiaomi Mi 2] B3!CrAZy:
Ty for your answer. I do not use dual boot anyway and TWRP seems pretty good so far :)
[Xiaomi Mi 2] MikelFuchs:
Thanks a lot for your continued work for Mi2/2S.

Could you think about integrating the possibility to switch between system 1 and 2 as active system like possible in your CWM recovery? This is useful to switch back to the other system if your current system got screwed up and cannot start any longer (e.g. due to flashing a bad ROM).
[Xiaomi Mi 2] hieron123:
link is broken...
[Xiaomi Mi 2] zipalign:
go:

http://d-h.st/users/M1cha/?fld_id=41800#files
[Xiaomi Mi 2] spezi77:
Hi [MENTION=3530648]m11kkaa[/MENTION]

Thanks for your hard work!

Unfortunately the folder is empty. Someone has a mirror?

Edit: found a mirror on Russian MIUI forum. ;)
[Xiaomi Mi 2] zipalign:
it'd be good if you mind sharing it.
[Xiaomi Mi 2] spezi77:
Sure! ;)

View attachment recovery-clockwork-6.0.5.0-aries-20140718-signed.zip
[General Topics] Menneisyys:
I’ve elaborated a lot on Massive Multiplayer Online Role-Playing Game (MMORPG) games in my Multiplayer Bible and Pocket PC 3D Acceleration Bible. Up to now, unfortunately, there only have been two clients available for the Pocket PC; namely,

the Java-based Wyvern, which did have some Java incompatibility and / or speed problems

the Russian-language, non-free Sphere by Nikita.

Fortunately, this seems to change in the future. SmartCell, of which I’ve reviewed several products of (see for example this AquaForce 1.1 and this TextPlus review / tutorial) is working on a really promising, Pocket PC-compliant (!) MMORPG called Shadow of Legend, which even has its own top-level homepage here, which may be worth checking out. There still isn’t much tangible stuff in there (unfortunately, the first demo game clients will only be released in early January as can also be read in here); however, at least there are three MP3 files and two trailers to download.

This is indeed a very promising project. I’ll report as soon as a playable demo is released.

By the way, in addition to the above links, I also recommend this PPCT thread on similar subjects.

(By the way, still speaking of SmartCell’s product line, they still (?) haven’t ported RemotePlus to the Pocket PC. Hope they change their minds soon – as will also be explained in my forthcoming, biiiiiiiiig roundup of all Pocket PC -> PC remote controller solutions, Pocket PC-based Terminal Server / Services clients are all pretty bad and a decent alternative would be more than welcome.)
[General Topics] Menneisyys:
Some weeks ago, I’ve elaborated on the forthcoming, highly anticipated Massive Multiplayer Online Role-Playing Game (MMORPG) called Shadow of Legend.

Now, there are some news on the title; most importantly, some screenshots and two CES videos (without really showing in-game videos). Unfortunately, nothing tangible – that is, no downloadable client is available as yet.

However, the two new videos (directly accessible on the video download page) may be worth checking out.
[Galaxy Note II Q&A, Help & Troubleshooting] jon1011:
Need help fellow Note 2 users,

I am having problems with my phone's charging time.

I usually charge while the phone is turned on, and charging time usually takes around 4 hours from critical level to full while turned on (on power outlet, 6hrs on USB source). This was normal, it has been that long since I got the phone back in 2012.

But recently, there are times that it takes 8 hours or more and the phone isn't full yet (on outlet).

I could not isolate whether the problem is with my charger or battery as I don't have a spare charger to use/battery to swap.

Anyone experiencing the same issue?

My phone (GT-N7100) is all stock, never rooted. Running on 4.4.2 DXUFND2 Philippines XTE.
[Galaxy Note II Q&A, Help & Troubleshooting] sarkar_007:
Your charging cable has gone kaput. Replace it with another. Bandridge BCL 4901 / 4902 is a good option.
[Nexus 5 Q&A, Help & Troubleshooting] sanju14feb:
Hi,

The display and sound of my Nexus 5 was not working for a whole day.

When I pressed the power button to unlock my device, the display was not coming up. Normal trouble shooting is to remove the battery and switch on, but that will not work since it is embedded.

I have tried calling to my phone to check whether it is switched off. Surprisingly, it was ringing from the calling end but there was no display or sound on my phone.

I have connected to the charger and the battery icon was not coming (may be because of display issue).

Next morning when I called to my phone it was saying as switched off and when I tried to charge again, the battery icon came and it started charging from 0%. It was charged completely on the previous day (I used to get up to 2 days on battery) and now it is completely drained.

Not sure what happened on that day. Any one faced an issue like this before? I am not sure whether it is because of any hardware issue.

When I contacted Google, they started giving troubleshooting tips. But I am not sure how to find the root cause of this.

Please help.
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
Try a different charger and cable. Sounds like it was dead and not charging.

Or worse case would be a defect in the phones mini USB port.
[Nexus 5 Q&A, Help & Troubleshooting] sanju14feb:
--------------------

To make it more clear, the issue was happened only for a day and when i tried to call to the mobile, it was ringing in the calling end.

In that case i don't think it was an issue with the charger or port.
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
So all is fine now? Then I wouldn't worry about it. Stuff happens occasionally. ?
[Nexus 5 Q&A, Help & Troubleshooting] sanju14feb:
Do you meant, screen display and sound of the device will not work occassionally?
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
I just mean if it was a one time thing, I wouldn't worry about it unless it starts to happen more. ?
[G3 General] rickriego:
calls and messaging audio work, just no touch, lock, unlock sound. d850, checked all system/media, audio/ui files.. all there. any ideas how to fix?
[G3 General] rickriego:
figured it out. had a corrupted build.prop after making some mods. found an unmodified version online and fixed the problem.
[Xiaomi Mi 2] m11kkaa:
Since the gapps for 4.4 need very much space wee need bigger system partitions.

I've created a script which automates this process and increases them both to 840MB.

the space is taken from the userdata partition.

You should backup your whole phone before doing this(storage will not be touched but you shouldn't take the risk)

I tested it with 32GB version only so if you want to know if it will work for 16gb, too give me the output of this command:

parted -s /dev/block/mmcblk0 print

Download:

http://d-h.st/FWz

Instructions:

1) boot into CWM

2) adb push repartition.sh /tmp

3) adb shell chmod 0777 /tmp/repartition.sh

4) adb shell /tmp/repartition.sh

5) adb reboot recovery

6) now you can do all the usual stuff like enabling TDB and installing ROM's
[Xiaomi Mi 2] sebsch1991:
Sounds great but I cannot test it, since I dont have any parted binaries (at least in my 4.1.1 Wajk Wiui ROM) ? Can you please tell me where I can get them.

Second Question:

Im currently running TDB:

System 1 latest WIUI 4.1.1 v5 ROM

System 2 MIUI v6 1.9.19

Both system partitions are completely full (usage 98 %) and the same with the data partitions ( usage 97 % )!

Would it be possible to decrease /sdcard space and repartition it like the following with TDB enabled:

system 800 mb

system1 800 mb

data 1500 mb

data1 1500 mb

sdcard *the rest*

thanks in advance
[Xiaomi Mi 2] m11kkaa:
sounds like you tried to repartition from Android ;)

You need to boot to CWM - you have parted there.
[Xiaomi Mi 2] sebsch1991:
Sorry I hate people who just ask stupid questions before reading the instructions carefully ...silly me sorry for that...

What about the second question, is it possible to either increase the data partitions for less space on /sdcard ?
[Xiaomi Mi 2] m11kkaa:
there isn't sth. like a data1 partition. we have one data partition only that's why we need the TDB hack.

other than that it's possible but you should backup all your data and restore it afterwards.
[Xiaomi Mi 2] sebsch1991:
Ok got it.

So following your instructions and editing script like the following should work ?

change_table() {
ui_print "parted: delete"
parted -s /dev/block/mmcblk0 rm 23 || return 1 # system
parted -s /dev/block/mmcblk0 rm 24 || return 1 # system1
parted -s /dev/block/mmcblk0 rm 25 || return 1 # cache
parted -s /dev/block/mmcblk0 rm 26 || return 1 # userdata
parted -s /dev/block/mmcblk0 rm 27 || return 1 # storage

ui_print "parted: create"
parted -s /dev/block/mmcblk0 mkpartfs primary ext2 336MB 1176MB || return 1
parted -s /dev/block/mmcblk0 mkpartfs primary ext2 1176MB 2016MB || return 1
parted -s /dev/block/mmcblk0 mkpartfs primary ext2 2016MB 2419MB || return 1
parted -s /dev/block/mmcblk0 mkpartfs primary ext2 2419MB 6515MB || return 1
parted -s /dev/block/mmcblk0 mkpartfs primary ext2 6515MB 31.3GB || return 1

ui_print "parted: name"
parted -s /dev/block/mmcblk0 name 23 system || return 1
parted -s /dev/block/mmcblk0 name 24 system1 || return 1
parted -s /dev/block/mmcblk0 name 25 cache || return 1
parted -s /dev/block/mmcblk0 name 26 userdata || return 1
parted -s /dev/block/mmcblk0 name 27 storage || return 1
return 0
}

ui_print "format partitions"
for NUM in 23 24 25 26 27
do
if ! format_partition "$NUM"; then
ui_print "Failed format partition $NUM"
exit 1
fi
done

already did full backup of sdcard, i just dont know if i should disable TDB before i stat repartitioning ... I dont know how TDB works to split the data partition thats my problem :/
[Xiaomi Mi 2] m11kkaa:
yes that should work.

You don't need to disable TDB because your whole data partition will be wiped and it stores the TDB configuration(that means that TDB automatically gets disabled).
[Xiaomi Mi 2] sebsch1991:
Had some errors but now its working fine ..thanks :)
[Xiaomi Mi 2] m11kkaa:
unmount sdcard in CWM. It's a bug of this script.

Nice to hear it works now.
[Xiaomi Mi 2] Aternus:
Xiaomi Mi2 32GB

XIAOMI MI2 32GB ONLY

For those using a single MIUI ROM I've made a partition table with system1 set to 1024Mb.

Run the attached from CWM (in /tmp).