yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] K3n H1mur4:
My 2 cents: Since I think apps in SD have a considerably slower performance, I keep all my apps in internal storage.

I somehow managed through all these FCs to redo the apps backups (unfortunately, my call logs and SMSs got lost - call logs backup app FC'ed when tried to run the backup, and SMS stated that there were no SMS at all to be backed up - dunno why they got erased), and simply wiped data in normal recovery then got everything back with Titanium Backup.

Wiping data on the virtual recovery didn't help a lot, though I got less issue trying to at least boot the NAND system (at first I had to use "2nd init + adb" option, though it didn't work every time - after wiping data on the virtual recovery, normal 2ndinit booted flawlessly). The actual issue was that, when moving files to the SD in the virtual system (FCs on statusbar process didn't allow me to do so in the normal system), they wouldn't appear actually in the SD card after reboot. Worked through it by using another phone to get the zip file in the SD, which has later proved in vain, because only a data wipe (with no need to reflash the system) saved me from complete doom (I love a tiny bit of drama :). But, at that time, it was a possible escape for me not having to wipe data (but, as I said, it gave no results).

About the possible causes: maybe, as antukubo said, it was an issue with MoKeeOS (I really liked this ROM, so I'm not considering changing it to see if I can get multiboot working with another FW). The other possible explanation was that both recoveries I use are exactly the same version (though they are, in fact, separate recoveries: I could wipe data in custom/virtual recovery without affecting the NAND system, and didn't have any issue with this specifically), and that somehow may have confused the system. But I'm 100% sure that the issue was on the multiboot files (though I'm NOT saying it's m11kkaa's fault - I'm saying that they didn't "like" my phone, or something like this), because I tried renaming the fsimages folder, changing data.img extension, removing the folder from the SD and even booting the phone without any SD card attached (I think I've never ever done this before). None of these worked, so the problem definitely wasn't on data.img or in the fsimages folder at all.
[Defy Android Development] wyumhk:
cm9 froyo kernel is ok.

cm9 gb kernel has no signal.

I'm using cm7 (main) + cm9 (virtual) froyo kernel dual boot.
[Defy Android Development] bone101:
Be me it appears that, the stabe sytem dont boot after a time....

It get stuck in bootloop......

first ive got cm7.1 & cm9 froyo in 2nd boot with cm 7 kernel - i wiped because of bootloop in stable

Then i tryed my old backup of an stock froyo (only system and data) it works.. for the first time. After a few days usin cm9 i wanted to taks some piktures so i boot the stable and get stuck in boot loop with the blinking android skript.......

Cm9 works

Confuse....
[Defy Android Development] syllogyking:
multiupload links don't seem to be working. can anyone provide links for multiboot zip and fsimages? thanks!
[Defy Android Development] jpchopper:
this isn't working for me.	What am I doing wrong?

First I unzip and extract fsimages with astro, then wipe cache and dalvik in stable, then install multiboot .04 (also in stable)

Re boot

Latest recovery wipe data

Install CM7 kernel, install CM9 froyo version, wipe dalvik install gapps CM9 for froyo, reboot.

At no point does second boot complete boot, it either force reboots or stays at the Motorola symbol until i pull the battery...and twice it's even put ics on stable recovery.

What am I doing wrong?
[Defy Android Development] hailmary:
-extract the fsimages using your PC-its better :place extracted files in the root.

-you need to install zip multiboot in the stable recovery-reboot.

-then go to custom recovery (not stable recovery) will take long up to 5mins w/ red led light.

-install the ICS rom-reboot

-now set the boot to 2nd boot

reboot,will take long as usual.
[Defy Android Development] jpchopper:
Will try again soon as can borrow a computer. Come to think of it I believe the last time I had multi boot working I had similar issues.

Thanks
[Defy Android Development] remix96:
Help me :(

Please, see my thread:

http://xdaforums.com/showthread.php?t=1460759

:( :( :(
[Defy Android Development] Mcdomms:
I don't know why the 2nd boot doesn't work, but wiping data on the latest recovery for sure broke app installation on your base ROM.

See OP, in the list of known bugs:
[Defy Android Development] jpchopper:
I knew about it wiping Android_secure, normally I just restore data from a backup and get it back.

I think it may be something with the fsimages folder, I've been trying to unzip it with Astro and a few other file managers but I'm not sure they are actually creating the ext3 files properly, and as of yet haven't had access to a computer that I could work this on.

Has anyone had luck unzipping these from within Android?
[Defy Android Development] brajesh.sharma87:
I did with root explorer.

Sent from my Moto Defy
[Defy Android Development] leodfs:
I just want to share some information that may help those who can't make things work. I tried multboot some time ago with my original 8Gb that come with phone.

That was a WIU(real)/CM9(virtual) configuration, i had some problem that involved installing different kernels to make works, but it did work. Than I replaced my card for 16Gb and tried all procedures again. This time with WIUI(GB)/WIUI(V4) .

Strangely the installation of the virtual system was a little fast. After finished, I selected 2nd-boot option, the system reboots, a red light blinks very fast and system keeps on M logo. I repeated all the steps 5 times and nothing.

Then a replaced for the 8 Gb one, did all the steps and this time it worked. I moved the fsimages folder for the 16 Gb, replaced cards again and now the virtual system is booting.

It could be a problem with the size/class of new card or defective card but as I did all possible test for the 16 GB, I think this option is not very likely.
[Defy Android Development] jpchopper:
This may be something as well?

I have recently switched from a 8 to a 16 SD card...

Is there some specific type I should look for?
[Defy Android Development] leodfs:
Try this after you have installed multiboot: place another card, may be empty, put the zip of the system you want to install as virtual on it and the folder fsimages. Do all the steps of OP. If the system boots, it is actually card related, you could try to move the fsimages folder that succeded booted to your 16Gb card. It worked for me
[Defy Android Development] jpchopper:
Will try the above when I can get a non crippled computer;

Meanwhile when I select 2nd boot +ADB, it cannot find system/boot menu/scripts/2nd boot sh.

What does this mean? I can see the supposedly nonexistent file using root explorer, but for some reason the phone cannot....
[Defy Android Development] dlhxr:
hi, there is a little problem when i am using multiboot.

since i am a chinese, there are some files and folders named in chinese. when i look for the files in root explorer, it appears like ???????.

i think about this problems a while and have a conclution that the cause is the method multiboot uses to mount the partitions. because the property of every file and folder is rwxrwxrwx, it is not like the property i see in the main system.

i am not capable of changing the code by myself. could you help me to change the mount method into the one main system uses?
[Defy Android Development] m11kkaa:
Multiboot does only mount the system-partition - the rest is done by the android-system.

The way multiboot works is manipulating the dev-tree to redirect access to partitions.

"rwxrwxrwx" only means chmod-rights 777. But that shouldn't be the problem.
[Defy Android Development] brajesh.sharma87:
@m11kkaa: any further improvement in the Mod?
[Defy Android Development] dlhxr:
there must be some differences. when i am using the main system, the rights of my sdcard files are --xrwxr-x, but the multiboot system says the rights are rwxrwxrwx. do you know what causes the fact above?

if it is not concerned with mounting method, could you help me solve the chinese character problem?

thank you so much!:)
[Defy Android Development] wyumhk:
In my virtual system, it seems that all my files/directories in the sdcard are rwxrwxrwx, but no problem for the virtual system so far.

Chinese file and directory name :

Do you mean copying file to the sdcard ? I used swiftp + Filezilla (forced utf8), there is no problem in the filenames.
[Defy Android Development] dlhxr:
yes, i don't mean the /system partition... sorry for my english.

when i have a file with a chinese name in my sdcard, the root explorer and other apps to view the catagory of the sdcard will show ??????? as the file name, not the Chinese character.

the function is flawless and i have no problems viewing the file like pdf, xls, doc and so on, just the catagory or the file name is in wrong code...

i wish i expressed myself and you got me! haha:)

by the way, thanks for your attention
[Defy Android Development] wyumhk:
m11kkaa is correct : multiboot related to mounting only, it has nothing to do with the filenames.

Your ?????? filenames should be due to wrong encoding. Most probably your filenames are encoded in gb2312. I believed that you have copied the files / created the directories by invoking internet explorer from some apps like WanDouJia. My Windows is Traditional Chinese encoding while my Defy's language is Simplified Chinese, I also have problems in copying Chinese name files to the phone by this way.

Please use ftp, forced utf-8 in the ftp-client. Andriod should be no problem in handling unicode filenames.
[Defy Android Development] m11kkaa:
Especially because the sdcard isn't touched. As far as I know you can set encoding-options when mounting a partition but as already said: Multiboot don't mount partitions by itself(except system).

I have the problem that I can't successfully compile CyanogenMod for any reason.

I managed to compile so far that bootmenu is ready. Maybe know I can add multiboot-features directly into the menu.

And please note that I have many (commercial and non-commercial) projects and some have a higher priority than others.
[Defy Android Development] wyumhk:
[Q] Renaming /sdcard/fsimages when running virtual system

I have more than 1 virtual system in the sdcard, say :

/sdcard/fsimages (CM9 froyo now)

/sdcard/fsimages1 (WajkIUI froyo 1.2x)

If I want to switch to WajkIUI, can I rename :

fsimages ==> fsimages2

fsimages1 ==> fsimages

directly when running the virtual system, then reboot ?

So far, I boot into the main system before renaming fsimage, is this necessary ?
[Defy Android Development] hackergnome:
Nope u can rename while ur in virtual system...
[Defy Android Development] m11kkaa:
I managed to make a successful build of CM7 and now I can start developement of a new bootmenu with multiboot-features :)
[Defy Android Development] brajesh.sharma87:
was waiting for this to happen. thanx :-)
[Defy Android Development] Gazm4n:
Congratulations! I´m curios about it!
[Defy Android Development] antukubo:
sounds yummy! :D
[Defy Android Development] leodfs:
Maybe you can, but this not a good idea, you are changing the root, and other stuffs, of your virtual system while it is running...

I have 3 virtual systems and i did that:

1- Create 3 folders, in my case : wiuiv4, cm9Quarx, cm9Epys.

2-Copy the image files for those folders.

3- Create 3 copies of multiboot.zip. (in my case, named wiuiv4Multiboot.zip and etc ... the name is not important here, just for organization )

4- For each one, open, but don't extract, the multiboot.zip with a zip application(I recommend 7-zip on windows), and look for this file: system/bootmenu/2nd-boot/fshook.edit_devtree.sh, extract this file for your desktop, and after bellow edits move it back for zip file.

5- For each copy of multiboot replace fsimages(there are 9 occurrences, I think ) in fshook.edit_devtree.sh for the folder name created in step 2. Name here is important, must match the folder name.

6- Now you just have to flash you personal multiboot on stable before 2nd-boot'ing, or latest recovering, for desired system.

I hope that with the good news of OP, we would be able to have some grub-wise stuff on boot menu :D
[Defy Android Development] zed_fauji:
[confused] help

Here what i did..

i was on ms2ginger 3.0 by walter. i had stable recovery and custom recovery. then i installed cwm 5.0.3.1 and bootmenu by stable recovery. then i got latest recovery.

now i flashed multiboot with latest recovery. i went to then stable recovery wipe everything and installed cm9. after that there was no ms2 ginger. and even cm9 was also not booting properly. getting boot loop then i wiped everything and installed cm9. then it boots. but didn have multiboot.. [help guys] where i was wrong. what i did?
[Defy Android Development] syllogyking:
flash multiboot with stable recovery, not latest.

Please follow this post: http://xdaforums.com/showpost.php?p=21401063&postcount=249
[Defy Android Development] TJKV:
Also, read the first post fully. Stable recovery is for your main ROM, which you wanted to be MS2ginger. When you wiped everything and flashed CM9 in stable, you over wrote MS2ginger.
[Defy Android Development] crakeron:
Is there a way to have correct battery stats using both main and secondary ROMs?

I'm thinking of both roms sharing the same battery status file or something like that

Sent from my 1Ghz CM7 + CM9 Defy
[Defy Android Development] sykoism:
I also have a question about things sharing between roms.

I have already known that kernel and .android_secure are shared by roms, but anything else?!
[Defy Android Development] Epsylon3:
please report when you have something working...

remember, scripts in bootmenu git folder are just samples and are not used to build the rom... jordan scripts are in device/motorola/jordan/bootmenu folder
[Defy Android Development] Anthony2002:
Hello guys,

I 've installed defy_multiboot recently 0.4. Main firmware is MIUI and virtual Cyanogenmod. Everything works fine on stock 2GB microsd card, but after replace card to 16GB microSDHC class 10 got error messages:

E:Can't mount /cache/recovery/command

E:Can't mount /cache/recovery/log

E:Can't open /cache/recovery/log

E:Can't mount /cache/recovery/last_log

E:Can't open /cache/recovery/last_log

Can't re-install virtual firmware and wipe it.

Does anybody tested multiboot with 16 microSDHC card?
[Defy Android Development] jpchopper:
I had the same problem, and nothing I did seemed to work...

I don't think it is related but that sd finally quit completely. Multiboot works just fine on my old 8GB card.

Not sure why our what the difference was though.
[Defy Android Development] hailmary:
WOWOWOW thats good news.keep it up.:D
[Defy Android Development] wyumhk:
I'm using Kingmax class 10 16GB microSDHC, no problem.
[Defy Android Development] crakeron:
Me too. No prob

Sent from my 1Ghz CM7 + CM9 Defy
[Defy Android Development] Anthony2002:
so the problem not in the card size.

just for statistic, who's your cards manufacturer?
[Defy Android Development] duendetuc:
Multiupload link is down. Pleas reupload.
[Defy Android Development] iammodo:
http://db.tt/dEWMvCQZ
[Defy Android Development] hemil:
Can someone plzz upload the link to fs images since multiupload is down...
[Defy Android Development] crakeron:
Megaupload is down for the FSimages. Please reupload
[Defy Android Development] iammodo:
multi boot flash file

http://www.mediafire.com/?d1qdwm80umpjczn

fsimage

http://www.mediafire.com/?vvkmy2tx4yeg32m
[Defy Android Development] diamond_lover:
Any news? :rolleyes:
[Defy Android Development] m11kkaa:
My knowledge in C is very basic so I have some very trivial problems -_-
[Defy Android Development] Chelsea888:
Any MD5 checksum?
[Defy Android Development] diamond_lover:
I see.. but here you can find lot of developers, maybe someone can help you..! :rolleyes: Maybe with github or something like that..
[Defy Android Development] sykoism:
Has anyone flashed multiboot over ms2ginger bootmenu?

Can I do that, or I need to flash a new bootmenu first?
[Defy Android Development] wizwin:
Dead links

@m11kkaa - Please update the links on your post or please re-upload as Megaupload links are not working any more.

Thank you m11kkaa for making this.

Thank you iammodo for re-uploading.

Thank you crakeron for asking.
[Defy Android Development] m11kkaa:
I attached the files to the first post ...
[Defy Android Development] xblosa:
Works great, you just have to remember carefully in which world you are :)

I marked my multiboot.zip as

---1--multiboot.zip
---2--multiboot.zip
...

so that I can find them easier between all those files without using glasses ;)
[Defy Android Development] brajesh.sharma87:
@m11kkaa: please have a look on this post. I had this problem many times but cud not express it in words. Thanks to this guy.
[Defy Android Development] mpunkt:
Trouble since using 32GB card

I am trying for to get multiboot working with my new 32GB sdcard. I was happly using multiboot with my old 16GB sdcard.

I am running CM7.2 nightly as "stable" and CM9 with 2nd boot.

Running the 32GB card - fsimages are in the right place - CWM shows errors mounting the images. Of course it is not possible to install CM9. Putting back the 16GB everything works great...

I have reformatted the new card and copied the empty fsimages attached in this thread with no luck again.

Is there a problem with 32GB cards? I would be thankful for any idea.
[Defy Android Development] slstr:
32 GB cards

Yes there are problems with some 32GB cards, you can find info about it if you use search function in the defy forum.

There are many threads/posts, here are two examples:

http://xdaforums.com/showthread.php?t=1133548&highlight=32gb+card

http://xdaforums.com/showthread.php?t=1159877&highlight=32gb+card
[Defy Android Development] mpunkt:
I know that there are issues with a lot of sdcards. But my 32GB CnMemory Card works fine except for the case I reported yesterday.

It is filled with ~20GB mp3 files and never had an issue with any app using the sdcard for r/w-access.

It seem to be just about the multiboot feature - that is what amazes me.

BTW: I am using the search function a lot - that is, why I am posting so little ;-)
[Defy Android Development] mpunkt:
After moving my data from the sdcard to my pc I had the sdcard formatted with sdformatter 3.1. This program has an option called "format size adjustment" which cuts a few bytes off and is recommended for compatibility issues.

After moving my data back to the sdcard and ... It is behaving nicely again!

Installed CM9 in 2nd-boot/custom.

This could be working for different 32GB cards and should be worth testing. Maybe it is not - as often discussed the size and class of the card, but the way it is formatted?
[Defy Android Development] antukubo:
Does that mean that you have to flash 'every time' before going to your virtual? I think renaming the folder is much more easier and straight forward. Plus, i'm using scripts which giving me just a few clicks to go to my desire virtual. No need to type anything... less confusion :)
[Defy Android Development] xblosa:
It's only reinstalling the multiboot, but with different directory names.

From where do you run your script ? If you run it from boot menu, I would like to get a copy. Running it from a running system does not help. You should not rename the folders while you are in a virtual system. It is unpredictable what might happen.

So, switching from virtual1 to virtual2 is not possible.

I really would like to see mulitboot integrated into cwm with a proper boot selector.
[Defy Android Development] leodfs:
No, only when you want to change the virtuals. If you change names when you are running virtual system you are not doing a safe thing.
[Defy Android Development] antukubo:
Ok! now I get it. I might be confused before :p. I thought you're booting from nandroid to virtual. So, that's mean it is for 'booting from 2nd boot straight away to 3rd boot', am i right?
[Defy Android Development] leodfs:
2nd, 3rd, 4th, 5th, 6th :). I think is easier when you have more than one virtual system to make a custom multiboot(where you customize the fsimage folder name), because is hard to get track which name you have to rename the present fsimage folder. You just have to:

1- restart the phone in stable recovery;

2- flash the customized multiboot;

3- 2nd-boot;
[Defy Android Development] Anthony2002:
Super ! Thank you for solution.

Had the same issue, but with 16GB class 10 card. After re-format with sdformatter works great.
[Defy Android Development] wizwin:
I was using Multiboot with CM 7.1 and CM9 for a week now. I have booted to CM9 (virtual) a few times and it was all well until today.

I booted to CM9 today and it took more time than usual and came to a screen telling "Android is updating" and updated 188 apps which where installed on CM7.

I do not understand how this happened. When I went back to CM7 most of the processes crashed.

Fortunately I have a nandroid backup of last week. Going to restore it now.

I tried clearing Cache and Dalvik cache from Stable Recovery but it was of no use.

Any ideas?
[Defy Android Development] xblosa:
During my first Installation of Multiboot, the same happened to me. Thought I had done a wrong step, but you probably did no mistake.

Mine was just a couple of minutes old.

Could it be that one of those remounts failed and we had a mixed system?

Repeated all steps and have currently no problems using 4 virtual systems.
[Defy Android Development] antukubo:
Anybody manage to install Quarx's CM9 Nightly 120215 on virtual?

I got problem. The system is looping at 'Android is updating'. Tried to wipe dalvik, cache & data but useless :confused:

edit: solved the problem by flashing the new build, Quarx's CM9 Nightly 120218
[Defy Android Development] wizwin:
Well, if I remember correctly, I installed NFS HP and Project M in CM7, updated a few settings in CM9 like 'Disable boot animation' and 'Always render using GPU' in 'Development' to test how it goes and maybe a backup using Recovery.

Even I suspect this might have happened and then it defaulted to one of the non-virtual partitions.

4 virtual systems :cool:! Is there an app to automatically switch between these images and reboot?
[Defy Android Development] leodfs:
@m11kkaa, I sent you a pm.
[Defy Android Development] xblosa:
There is no real tool available but I just followed the idea in Post #305.

Basically you have a couple of folders fsimages1, fsimages2 ... and activate one of them as a selected virtual system.

You have a real system, an "activated" virtual system and a couple of not activated virtual systems.

The activated virtual system may directly be booted as if you have only a single virtual system.

If you want to boot a "not activated" system, you have to run the corresponding (and prepared as in Post #305 described) xx_multiboot.zip from Stable Recovery. This makes the referenced virtual system active and it may be started with 2ndboot.

If you want to go the simple way, you may rename the fsimages-folder of the desired system to fsimages. But be careful, this is not allowed from a running virtual system. So if you want to switch from virtual1 to virtual2, you have to boot your real system, rename and than you can boot virtual2.
[Defy Android Development] diamond_lover:
Is anybody able to use MS2ginger as 2nd boot image? I tried but it reboots. Thanks.
[Defy Android Development] hackergnome:
+1
[Defy Android Development] brajesh.sharma87:
I even tried to boot MSGinger2.1 as main system and cm7, miui and CM9 as virtual but didn't work.

It's surely due to kernel issue.