MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.
Sign in to follow this  
Followers 0

[solved,tutorial updated]Dual boot possibility...

16 posts in this topic

Posted (edited) · Report post

Hi all, I just wonder if anyone have interest in this.

As we all know, GB has less battery consumption and more smoothness while ICS+ have more features and better looks.

And technically it's possible to have both system install in our phones. I think all need to do is to hack the recovery a little bit and then can install a send rom in internal SDcard.

I hope someone, Romers, developers, anyone ,, can make this happen, 'cause I ( myabe not just me)really like it but I'm a nooob for this..

Search "boot manage" on Play market you can also see apps that serve this purpose(unfortunately G300 not supported).

Finally I manage to do it on my G300. It works, now I have Stock GB & ICS installed

 

Here is a how to tutorial, Please do read ervery detail and do it carefully if you want to proceed.

 

How it works: make internal sd smller so have free space to make 2 new partitons(system&data);, then modify boot.img(init.rc) to change default mount point to new partitions, and flash new boot.img to recovery block..Thus we lost recovery program but boot to new os. There's a way to keep both, but i don't konw how and no time to figure it out. so you can see , default os is not affected, can always start you phone with no problem.

 

 

update:

1. KK doesn't mount internal SD。same in newest recovery using kernel 3.4. 

2.script to switch systems,recovery:

(1) reboot recovery               #reboot to recovery or OS2

(2)dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p16               #flash recovery ( be careful with dd command, make sure you write the correct partition!)

(3)dd if=/sdcard/boot2.img of=/dev/block/mmcblk0p16                    #flash sencond boot image to recovery for OS2 to boot.

(4)reboot oem-1                   # reboot to bootloader(fastboot)mode in case you want to flash something via fastboot.

 

you can save these scripts in gscipt for convenient use.( here assume you have recovery.img & boot2.img under /sdcard)

 

 

Edit: 1. if you don't want to touch internal storage for safety reason, can just do it on external sd( mmcblk1p1).make 3 primary partiton(fat32 first), it shall work too.

        2. second os must be ICS+.

 

 

Ok, Steps

 

1. Backup your internal SD data, because all data on it will be lost

2. boot your phone into recovery, connect phone with PC, and open a CMD window

3. Re-partition internal SD

adb shell
su
fdisk /dev/block/mmcblk0
p

then you should see current internal storage partitions;

post-902214-0-82478900-1395299288_thumb.

 

on G300 the correspondence is

mmcblk0p12-------system

mmcblk0p13-------Data

mmcblk0p15-------boot

mmcblk0p16-------recovery

mmcblk0p19-------internal SD only list the partitions that matters)

 

all we need to change is mmcblkop19!!! don't touch any other partitions

First, we need to delete mmcblkop19,

in CMD window, enter d, then 19

Command (m for help): [6nd
19
 

Now Create a new internal SD partition with smaller size.(it's very necessary to have a internal sd on most ROMs) the size is up to you.

Here I make a 500MB size for internal sd(mmcblk0p19)400M (second)system, and the rest for (second)Data.

 

Notes: 1). fdisk usagem for help d to delete a partiton, n to create new partition, p to print partition info, w to save all changes!

           2). First cylinder should be upper partition's last cylinder+2. ( it should be +1,but here don't know why have to be 2).

Command (m for help): [6np
p

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

              Device Boot      Start         End      Blocks  Id System
/dev/block/mmcblk0p1   *           1           3          20  4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2               3          41         300  45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3              41       16681      133120   c Win95 FAT32 (LB
A)
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4           16681      477184     3684031+  5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5           16897       18432       12288  6a Unknown
/dev/block/mmcblk0p6           18433       43008      196608  83 Linux
/dev/block/mmcblk0p7           43009       43520        4096  63 GNU HURD or Sys
V
/dev/block/mmcblk0p8           43521       43904        3072  58 Unknown
/dev/block/mmcblk0p9           44033       44544        4096  46 Unknown
/dev/block/mmcblk0p10          44545       44928        3072  4a Unknown
/dev/block/mmcblk0p11          45057       45440        3072  4b Unknown
/dev/block/mmcblk0p12          45569       94720      393216  83 Linux
/dev/block/mmcblk0p13          94721      193024      786432  83 Linux
/dev/block/mmcblk0p14         193025      193536        4096  47 Unknown
/dev/block/mmcblk0p15         193537      194560        8192  48 Unknown
/dev/block/mmcblk0p16         194561      197120       20480  60 Unknown
/dev/block/mmcblk0p17         197121      197632        4096  6c Unknown
/dev/block/mmcblk0p18         197633      207872       81920  83 Linux

Command (m for help): [6nn
n
First cylinder (16682-477184, default 16682): [6n207874
207874
Last cylinder or +size or +sizeM or +sizeK (207874-477184, default 477184): [6n
+500M
+500M

Command (m for help): [6np
p

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

              Device Boot      Start         End      Blocks  Id System
/dev/block/mmcblk0p1   *           1           3          20  4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2               3          41         300  45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3              41       16681      133120   c Win95 FAT32 (LB
A)
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4           16681      477184     3684031+  5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5           16897       18432       12288  6a Unknown
/dev/block/mmcblk0p6           18433       43008      196608  83 Linux
/dev/block/mmcblk0p7           43009       43520        4096  63 GNU HURD or Sys
V
/dev/block/mmcblk0p8           43521       43904        3072  58 Unknown
/dev/block/mmcblk0p9           44033       44544        4096  46 Unknown
/dev/block/mmcblk0p10          44545       44928        3072  4a Unknown
/dev/block/mmcblk0p11          45057       45440        3072  4b Unknown
/dev/block/mmcblk0p12          45569       94720      393216  83 Linux
/dev/block/mmcblk0p13          94721      193024      786432  83 Linux
/dev/block/mmcblk0p14         193025      193536        4096  47 Unknown
/dev/block/mmcblk0p15         193537      194560        8192  48 Unknown
/dev/block/mmcblk0p16         194561      197120       20480  60 Unknown
/dev/block/mmcblk0p17         197121      197632        4096  6c Unknown
/dev/block/mmcblk0p18         197633      207872       81920  83 Linux
/dev/block/mmcblk0p19         207874      268909      488288  83 Linux

Command (m for help): [6nn
n
First cylinder (268911-477184, default 268911): [6n268911
268911
Last cylinder or +size or +sizeM or +sizeK (268911-477184, default 477184): [6n
+400M
+400M

Command (m for help): [6np
p

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

              Device Boot      Start         End      Blocks  Id System
/dev/block/mmcblk0p1   *           1           3          20  4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2               3          41         300  45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3              41       16681      133120   c Win95 FAT32 (LB
A)
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4           16681      477184     3684031+  5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5           16897       18432       12288  6a Unknown
/dev/block/mmcblk0p6           18433       43008      196608  83 Linux
/dev/block/mmcblk0p7           43009       43520        4096  63 GNU HURD or Sys
V
/dev/block/mmcblk0p8           43521       43904        3072  58 Unknown
/dev/block/mmcblk0p9           44033       44544        4096  46 Unknown
/dev/block/mmcblk0p10          44545       44928        3072  4a Unknown
/dev/block/mmcblk0p11          45057       45440        3072  4b Unknown
/dev/block/mmcblk0p12          45569       94720      393216  83 Linux
/dev/block/mmcblk0p13          94721      193024      786432  83 Linux
/dev/block/mmcblk0p14         193025      193536        4096  47 Unknown
/dev/block/mmcblk0p15         193537      194560        8192  48 Unknown
/dev/block/mmcblk0p16         194561      197120       20480  60 Unknown
/dev/block/mmcblk0p17         197121      197632        4096  6c Unknown
/dev/block/mmcblk0p18         197633      207872       81920  83 Linux
/dev/block/mmcblk0p19         207874      268909      488288  83 Linux
/dev/block/mmcblk0p20         268911      317739      390632  83 Linux

Command (m for help): [6nn
n
First cylinder (16682-477184, default 16682): [6n317741
317741
Last cylinder or +size or +sizeM or +sizeK (317741-477184, default 477184): [6n

Using default value 477184

Command (m for help): [6np
p

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

              Device Boot      Start         End      Blocks  Id System
/dev/block/mmcblk0p1   *           1           3          20  4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2               3          41         300  45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3              41       16681      133120   c Win95 FAT32 (LB
A)
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4           16681      477184     3684031+  5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5           16897       18432       12288  6a Unknown
/dev/block/mmcblk0p6           18433       43008      196608  83 Linux
/dev/block/mmcblk0p7           43009       43520        4096  63 GNU HURD or Sys
V
/dev/block/mmcblk0p8           43521       43904        3072  58 Unknown
/dev/block/mmcblk0p9           44033       44544        4096  46 Unknown
/dev/block/mmcblk0p10          44545       44928        3072  4a Unknown
/dev/block/mmcblk0p11          45057       45440        3072  4b Unknown
/dev/block/mmcblk0p12          45569       94720      393216  83 Linux
/dev/block/mmcblk0p13          94721      193024      786432  83 Linux
/dev/block/mmcblk0p14         193025      193536        4096  47 Unknown
/dev/block/mmcblk0p15         193537      194560        8192  48 Unknown
/dev/block/mmcblk0p16         194561      197120       20480  60 Unknown
/dev/block/mmcblk0p17         197121      197632        4096  6c Unknown
/dev/block/mmcblk0p18         197633      207872       81920  83 Linux
/dev/block/mmcblk0p19         207874      268909      488288  83 Linux
/dev/block/mmcblk0p20         268911      317739      390632  83 Linux
/dev/block/mmcblk0p21         317741      477184     1275552  83 Linux

Command (m for help): [6n

now, last step, save all changes. before you do this ,make sure that no other partitions but old mmcblk0p19 are touched!

Command (m for help): [6nw

4. Format new partitions.

reboot to recovery again.

use adb..

adb shell
# mke2fs -T ext4 -b4096 -m 0 /dev/block/mmcblk0p20
# mke2fs -T ext4 -b4096 -m 0 /dev/block/mmcblk0p21

5. make a new rom for new partitons.

1). we need to edit boot.img. can use android kitchen,unpack boot.img  to edit init.rc, replace all mmcblk0p12 with mmcblk0p20

mmcblk0p13 to mmcblk0p21, then repack boot.img.

2).updater script in a zip rom (META-INF\com\google\android\updater-script)

add these 2 lines to the beginning

unmount("/data");
unmount("/system");

and replacement:

mmcblk0p12 >> mmcblock0p20
mmcblk0p13 >> mmcblk0p21
mmcblk0p15 >> mmcblk0p16

done. repack rom with new boot.img and flash it to second system...Then when you enter recovery, you actually booting the second android os.

Normal reboot will boot into default os.

 

There's a better way to switch os with script , will update later..

 

 

Here is the slimv13 rom I moded to fit new partitions,if you already done the repartition, flash this via recovery and then reboot into recovery, you should see it booting.

Moded ROM Download:

http://www.speedyshare.com/zJkZF/download/B952-slim-v13Moded-2ndOS.zip

Edited by Archer_cn
3

Share this post


Link to post
Share on other sites

Posted · Report post

Am curious if you get it working though I have no interest in going to GB from ICS. I found ICS (when overclocked and tweaked) performs great. Eg: Slim, Stock plus or MIUI 2.7.6 ROMs.

More of an issue with performance are newer MIUI V5 or JB ROMs. So would be curious on your findings as any success would allow me to keep running my production ICS OS and test newer revisions of those ROMs to see if they've improved performance.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Am curious if you get it working though I have no interest in going to GB from ICS. I found ICS (when overclocked and tweaked) performs great. Eg: Slim, Stock plus or MIUI 2.7.6 ROMs.

More of an issue with performance are newer MIUI V5 or JB ROMs. So would be curious on your findings as any success would allow me to keep running my production ICS OS and test newer revisions of those ROMs to see if they've improved performance.

Now I do find a way to do it. just use fdisk command to re-partition internal SD to 2 extra partition as System & Data for 2nd OS. and a little modification to the boot.img and CWM updater-script ,then can install ICS+ rom on internal memory.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Now I do find a way to do it. just use fdisk command to re-partition internal SD to 2 extra partition as System & Data for 2nd OS. and a little modification to the boot.img and CWM updater-script ,then can install ICS+ rom on internal memory.

 

Any chance of a tutorial/guide?

0

Share this post


Link to post
Share on other sites

Posted · Report post

any modification on bootloader.

did tou ported grub from linux to android?

0

Share this post


Link to post
Share on other sites

Posted · Report post

really? Is that safe? Cuz daz told that was possible but dangerous

0

Share this post


Link to post
Share on other sites

Posted · Report post

Now I do find a way to do it. just use fdisk command to re-partition internal SD to 2 extra partition as System & Data for 2nd OS. and a little modification to the boot.img and CWM updater-script ,then can install ICS+ rom on internal memory.

Lol, couldn't you make a video or something as this is a pretty big find?

2

Share this post


Link to post
Share on other sites

Posted · Report post

Wow, can you make tutorial or something like that?

1

Share this post


Link to post
Share on other sites

Posted · Report post

Yeah you have to make a tut or something , that's amazing :blink:

gingerbread and kitkat .. hmmm.

0

Share this post


Link to post
Share on other sites

Posted · Report post

yh. or just proove that it's not fake with a video. Seems hard to belive tbh

0

Share this post


Link to post
Share on other sites

Posted · Report post

no, I won't post a video, don't have time for that and no interest. But I'll update post with a short version of [how to]

 

yh. or just proove that it's not fake with a video. Seems hard to belive tbh

1

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Thank you for this tutorial! But is there any way to get recovery back? And can I use KitKat and GB together? If yes, which one should I install as second one?

Edited by ToKro
1

Share this post


Link to post
Share on other sites

Posted · Report post

Interesting, thanks for sharing! Looking forward to seeing the script boot method.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Any luck with the alternate method to retain the recovery?

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

You can boot 2nd os from bootloader instead of recovery i think.

Edit: sorry this isnt possible. Can we contact with boot manager app's developer?

Edited by vahit.lafci
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi guys i have 8gb class10 sd card. İ flashed system data and cache. İm using cm 10.1 rom is working fast enough. Also i modified TWRP fstab file i can flash zips and using backup restore function. It is awesome :)

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi guys i have 8gb class10 sd card. İ flashed system data and cache. İm using cm 10.1 rom is working fast enough. Also i modified TWRP fstab file i can flash zips and using backup restore function. It is awesome :)

So you created new partitions on sdcard insted of internal storage reserved for recovery? So you have 2 systems + recovery too? Can u make simple tutorial?

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.