[Q] Multi-Booting

m11kkaa

Recognized Developer / Inactive Recognized Contrib
Jan 20, 2011
1,259
2,145
0
I released a dual boot version that uses 2nd-boot a few months back, hadn't have much time to improve it since.
I was using loop-back mount with /system and bind mount with /data since it's much more space efficient than just use an ext3 image.
The problem is that I have to modify the rom itself todo that.
I replaced the nodes in the dev-tree so the rom can do whatever she want(except remounting /dev) and it will alwas access the file-images instead of the real partitions.

Sure we could dynamically loop over the init-scripts and replace every mount but this method wouldn't be that compatible.


@epsilon: Thank you for integrating this into bootmenu. Makes much things easir :)
In which way you want to do that? An real effort would be an menu where you can choose between multiple installations.
 

m11kkaa

Recognized Developer / Inactive Recognized Contrib
Jan 20, 2011
1,259
2,145
0
The update-zip's are not able to remount /system.
I analysed this problem a little bit and it seems that this command doesn't work after lazy unmount of /system:
Code:
# mount system /system
mount: mounting system on /system failed: Invalid argument
but this is still working:
Code:
mount /dev/block/mmcblk1p21 /system
Is there any deeper difference which I don't see?

Edit: Seems the partition-name "system" is already linking to the original partition which cannot be mounted because she's busy.
Editing /proc/partitions didn't do the trick.
 
Last edited:

balika01

Senior Member
Dec 28, 2010
177
214
0
I uploaded a new version of my multiboot-script(v0.2)
changelog:
- "Install zip from SDcard" works now
- changed hook-method so it works with more ROM's(including ICS)

Download:
http://www.multiupload.com/UT0TLPR3ZW
THX! Good work! I will work on 3 partitions sdcard (ext3(system)-ext3(data)-fat) from your script.

EDIT: i forget the CACHE partition so 4 partitions
 
Last edited:

m11kkaa

Recognized Developer / Inactive Recognized Contrib
Jan 20, 2011
1,259
2,145
0
I didn't understand completely what you want to say but great that you like my work :)

MIUI-Installer-zip's currently cannot be installed because they have a problem remounting the partitions as I mentioned above.
 
Last edited:

m11kkaa

Recognized Developer / Inactive Recognized Contrib
Jan 20, 2011
1,259
2,145
0
Just created a new version: v0.3.1 ;)

Download:
http://www.multiupload.com/27LU9STUS6

Changelog:
- moving original system-partition to another location instead of lazy unmount so she will be accessible in 2ndBoot-system and will not be busy
- fixed recovery to improve installer-zip compatibility. MIUI works now
- internal script-changes

Have fun :D

PS: I currently noticed, that the system will continue running if you unmount the sdcard :)
Edit: Changed the version-number and some other details. No need to re-download since it will change nothing in functionality
 
Last edited:

szacuken

Senior Member
Jan 6, 2011
197
44
0
Trzebinia
So i must put folder fsimages on sdcard, instal defy_multiboot_v0.3.zip via CWM and reboot system. Then put for example: ICS.zip on sdcard and instal it via "lastet recovery" from boot menu? Then reboot phone to bootmenu again and select "2ndboot" option for boot ICS from sdcard right? :D

While selecting the "stable recovery" I can manage the default installed system?
 
Last edited:

m11kkaa

Recognized Developer / Inactive Recognized Contrib
Jan 20, 2011
1,259
2,145
0
Yes, that's right ;)

Edit: Yes, "Stable Recovery" is still for your real system.
I hope, the bootmenu-integration will be ready soon so this would be more clear.
 
Last edited: