yashsingh1/xdaforums huggingface dataset:
[LG Optimus 3D] dreccon:
Guys, I've noticed that, under certain circumstances, my "Full format" and "Factory Reset" scripts cause the secondary ROM to get stuck at bootanimation. I'm working on a fix in the v2.0. Until then, don't use these two scripts.

For now, you can use ADB. The last command set in the partitioning instructions is how you format your partitions (mke2fs). Follow the partitioning instructions up to the first "print" command. This way you'll find out what filesystem is used on each partition. Then use the "mke2fs" command to format the partition you need using the filesystem you found from "print".

For factory reset, you format mmcblk1p3 and 4. For full wipe, you also format mmcblk1p2.

That's all for now. I'm making progress with v2.0, so stay tuned...

Sent from my dual-booting ICS/JB O3D!
[LG Optimus 3D] daveferry:
hi dreccon, I realized that with your method for partitioning some Rom do not work .. in particular cyanogenmod10 and miui 4.1.2 , they stuck on respective logo... this is due to the ext4 filesystem, I used the method that creates Berni (ext3) and instead go. with your method are fine rom based on 4.2.2. I use a Sandisk 16GB UHS-I class10 card
[LG Optimus 3D] dreccon:
That also has to do with my above post. I have updated 1st post to format as ext3.

Thanks!

Sent from my dual-booting ICS/JB O3D!
[LG Optimus 3D] dreccon:
v2.0 is up!

v2.0 is up! ;)

I took OS_Hacking's advice and integrated all scripts into one "Recovery" equivalent. The tool is smart. It detects the path in which it's running, weather it's ROM1 or ROM2 active and the current OS (CM or Stock) and it acts accordingly.

Also, there is only one "Switch_ROM" script. It automatically detects the current ROM and reboots to the other one!

I have tested this with ICS v30a as primary ROM and with CM10 and PACv22 as secondary and haven't found any bugs. If you find one, please report so I can fix it.
[LG Optimus 3D] HenrikSwe:
Thank you for work on dual booting with a simple script! I just have a small problem that I need help with before i can use dual booting.

The problem is when i start the script for the first time the phone freezes. when i restart, i first see the grey LG logo and some text in the upper left corner. After that the screen is full with different colours. Do you or anyone else know why this is happening?

I have successfully format my card acording to Bernie's instructions. I also installed my second rom http://xdaforums.com/showthread.php?t=2136618

after that i installed the ics 30a kernel. My primary rom is Xballs ICS 30A rooted ROM.

Sincerely Henrik
[LG Optimus 3D] dreccon:
[MENTION=4981174]HenrikSwe[/MENTION]

1. Have you installed Wkpark's bootloader?

2. Have you used cm10_pac.zip to extract your boot2.img? This is what goes with your ROM.

The screen with colors that you mentioned is GPU ghosting and it is common in all CM10/10.1 ROMs. Don't worry about it.

Sent from my dual-booting ICS/JB O3D!
[LG Optimus 3D] HenrikSwe:
Thank you for your answer.

Yes I have installed Wkpark's bootloaders. http://xdaforums.com/showthread.php?t=2190261

I also copied the boot.img both from 30A and cm10_pac.zip to the "img" folder.

Am I suppsed to flash both the ICS 30A kernel and the cm10_pac.zip or just the first one?

I noticed when flashing the second ROM that the installation went very fast, around 10 seconds, is that to fast?

Sincerely Henrik
[LG Optimus 3D] dreccon:
One way to swap ROM is to flash its kernel.zip in recovery (no point in flashing both zips at the same time). The other way is to copy boot1.img and boot2.img to the img folder and use my swap script.

Flashing the kernel is very fast, but the secondary ROM should take as long to install as the primary. Have you edited the updater-script properly?

Sent from my dual-booting ICS/JB O3D!
[LG Optimus 3D] HenrikSwe:
Thank you for your tip!

I downloaded my secondary ROM again and edited the updater-script with Notepad++. The previous times I used the simple text editor that comes with windows 7. When I switched text editor everything worked great!

Now I have dual booting! :D :good:

Sincerely Henrik
[LG Optimus 3D] medohatem:
THNX alot but i cant do the frist part when i type adb shell in cmd it says ['ADB' is not recognized as an internal or external command,

operable program or batch file.] can you help me
[LG Optimus 3D] dreccon:
To install and use ADB, try this.

Sent from my dual-booting ICS/JB O3D!
[LG Optimus 3D] medohatem:
yes it work thanks but when i flash secend rom give me error status 6 what to do

---------- Post added at 01:11 AM ---------- Previous post was at 12:21 AM ----------

found fix here http://boardreader.com/thread/update_zip_error_status_6_677jjXi0hq.html
[LG Optimus 3D] dreccon:
Exactly! You need to use Notepad++ instead of the Windows Notepad.

Sent from my ICS/JB O3D!
[LG Optimus 3D] medohatem:
yes but i have another problem when i flashed second rom when i reboot to work on it

it stun on lg logo sliver

what to do

second rom is optimusRs v2 cm10
[LG Optimus 3D] dreccon:
You need to use cm10_pac kernel from Berni's page.

Sent from my 3D phone
[LG Optimus 3D] dreccon:
New version 2.1

Version 2.1 is up!

There are no new features

Compatibility issues with Gingerbread have been solved.

Link to version 1.1 remains for historic reasons.
[LG Optimus 3D] medohatem:
can you add fix permission in the script it would be good i think

---------- Post added at 04:49 PM ---------- Previous post was at 04:28 PM ----------

and i cant instal gapps when edit update sqript and flash it its install nothing could upload for me an update sqript already edit for gapps cm10 or tell me how :o :good:
[LG Optimus 3D] dreccon:
I know, but I need to do research first to find what permissions go where and my spare time is very limited. Anyway, it's in my to-do list.

For a CM10 based ROM you need gapps-jb-20121011-signed.zip. Editing the updater-script for gapps is described in Berni's page.

Sent from my 3D phone
[LG Optimus 3D] medohatem:
i know the gapps but when i edit it and flash it nothing happened like i have never edit it

i dont know where is the wrong

can you write asample to updater-script how it would be after the edit just to know what is the wrong that i have done :confused:
[LG Optimus 3D] dreccon:
I give up. Here you go!

ui_print("***********************************************");
ui_print(" Google Apps for Android 4.1.2");
ui_print("***********************************************");

ui_print("Mounting system...");
mount("ext4", "EMMC", "/dev/block/mmcblk1p2", "/system");
show_progress(1, 15);
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk");
ui_print("Copying files...");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Fixing Permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");

Sent from my 3D phone
[LG Optimus 3D] medohatem:
THANK YOU MAN I DONT KNOW HOW TO THANK YOU :good: :highfive:
[LG Optimus 3D] alanhenrique:
good job !

is a great tool! Thank you!

one big doubt ....

I can install the rom then migrate primary Normal / Backup ROM2

and then I install another rom on primary. then restore the ROM2 (it was my old primary), so I doing the dual boot? :confused: from what I understand, if this function above works, will not be Necessary to change scripts to install the secondary rom!

my problem is I can only install ROM jelly bean above GB partitions! when I'm in the ICS partitions does not install! I tried to dual boot, formatted my external card, I modified the rom to install external, but only shows the same-I have error When trying to install the above in ics!

in my case i want use ICS rom first and Second CM10 ROM Jellybean, PacMan or jellybam! the SD card is formatted for any rom and CM.

I have understood something wrong, so I apologize if I have said crazy!

sorry my english, i dont speak english:(, more i try. LoL:laugh:
[LG Optimus 3D] dreccon:
[MENTION=4655618]alanhenrique[/MENTION]

That's true. You can install CM10 normally as a primary rom, then use the migrate option to make a backup of it and then restore it as your secondary ROM. This way you don't have to edit the updater-script. You still have to put the right boot1.img and boot2.img in the img folder.

Sent from the 3rd dimension!
[LG Optimus 3D] alanhenrique:
thanks @@@

hmm this is good, last questions... i need to leave ICS rom primary and secondary JB, Which boot.img I use for each? and which folder I leave boot2.img ? when I flash GB, I lose big partitions!is possible to leave large partitions,with the GB?
[LG Optimus 3D] dreccon:
It's all written in 1st post and Berni's page. Please read them carefully.

If you have large partitions, migration of primary ROM will probably not work. I haven't tried, so I can't be sure.

Sent from the 3rd dimension!
[LG Optimus 3D] Mohhamad Rehan:
[MENTION=2863096]dreccon[/MENTION] I have done for 16 GB card should I make a thread for that I did a 16 GB dualboot
[LG Optimus 3D] dreccon:
Why?

Sent from the 3rd dimension!
[LG Optimus 3D] Mohhamad Rehan:
What i did I included the gapps and cynogenmod and made a one zip file and also did the v30c kernel I was dualbooting it with stock v 30c and cynogenmod and I don't own the phone anymore and with the trackrecord that I have ppl don't believe me
[LG Optimus 3D] dreccon:
I'm sorry but I don't understand what you're saying. If you want to start a new thread about dual boot, you're free to do it. I hope you have something new to offer!

Sent from the 3rd dimension!
[LG Optimus 3D] dreccon:
Ilie321 and Defcomg have made a working FM radio app for ICS and JB. Attached at the end of 1st post there is a modified flashable zip that installs the radio straight into a secondary CM10 ROM. Use it after every nightly upgrade.
[LG Optimus 3D] cyclonmaster:
Is it possible to have this dualboot: http://xdaforums.com/showthread.php?t=2423559

for our O3D? Seem to look much convenience.
[LG Optimus 3D] dreccon:
It looks possible. I bet it could work after fiddling with it a bit. I don't think I'm doing it though because all it adds to the existing switcher is a requester asking what ROM you want to boot into. It's quite obvious to me that, if you run the switcher while running one ROM, you will want to switch to the other. So what's the point of the requester?

As for the ROM installation part, yes it is easier because you don't have to partition your external SD. Sadly our p920 doesn't have a large cache partition that could host a whole android system, so this can't be done. On the other hand, Berni's way (our way) has the advantage of making partitions as large as you want (for example, making a large data partition would allow you to install a lot more apps without running out of space)!

An easy alternative to partitioning your card in command-line would be to remove the card from your phone, put it in a card reader in your PC and use "EASEUS Partition Master" or other free partitioning software. The result would be the same. I know I should add this to the guide as soon as I finish my vacations.

___

It's always nice to say thanks,

but it's waaay better to hit it!
[LG Optimus 3D] dreccon:
[NEW] Dual Boot BT-Fixed CM10.1 Kernel

I just uploaded a new Dual Boot CM10.1 Kernel. It's the one with working Bluetooth. I can't test it on all CM10.1 based variants, but it should work fine. Please report if you have any problems.
[LG Optimus 3D] ljv004:
Again, I know this is not a thread for my device but, would it work for a LG P720h Optimus 3D max? Looking for a dual boot method for it. Thnx in advance for any guidance to achieve it.
[LG Optimus 3D] dreccon:
(You need to have a working ADB first)

1. Reboot your phone to recovery

2. Connect it to your PC

3. Open a command shell on the PC (push Start Menu and type: cmd)

4. Type: adb shell

5. Type: parted mmcblk0

6. Type: print

7. The last command will give you some output. Copy and paste all of it here so I can read it.

Sent from the 3rd dimension!
[LG Optimus 3D] ljv004:
Excuse my ignorance, but the cmd terminal does not recognize adb command. What should install to achieve it.
[LG Optimus 3D] dreccon:
There's a link to a simple ADB installer on 2nd post.

Please read the first two posts and try to search and learn what you don't understand.

The prerequisites for p920 are also true for the p720 (ADB, CWM, Unlocked bootloader), so make sure you also find and read those threads first.

That's right, there's a lot of reading involved if you want to achieve anything, so prepare yourself first and then come back here and help me help you!

Sent from the 3rd dimension!
[LG Optimus 3D] ljv004:
Good day. Although especific device driver is installed pc does not recognize device i recovery mode and adb shell says device not found. So no shell command could be sent. Instead tryed with device normaly working and adb recogniza phone but when command parted is sent mmcblk0 nor mmcblk1 is recognized. Read the posts and can't find my failiure. Could you give a hint. Would read anything you want me to search or read.
[LG Optimus 3D] ljv004:
Sorry. Shame on me. Didn't realize adb should be already install before installing the minimal adv version. :o
[LG Optimus 3D] dreccon:
The answer to your problem is at the last paragraph of 1st post. Please install the driver as described.

Sent from the 3rd dimension!
[LG Optimus 3D] ljv004:
Already read it. The issue is that even having device in clockwork mode it is not seen by pc but as hard drives. Don't get what is happening. To do what you suggest at the end in post 1, device should be seen as others device. But is not happening. Just show itself as hard drives
[LG Optimus 3D] dreccon:
Then I have no idea. Anyone else with a p720?

Anyway, just give me the link to a CM10/10.1 ROM that you want to use as secondary and I'll see what I can do.

Sent from the 3rd dimension!
[LG Optimus 3D] ljv004:
The link to the cyanogenmod is

http://download.cyanogenmod.com/?device=p720
[LG Optimus 3D] dreccon:
OK, I see that we have different partition tables, so you must NEVER use my p920 Dual Boot Recovery Tools. I'll try to make a simple Dual Boot system half-blindly since I don't have all the information I need. Then I'll put up a new guide so that users don't get confused and brick their devices. It will take some time, so don't ask for ETAs.

Sent from the 3rd dimension!
[LG Optimus 3D] ljv004:
Thanks. Very appreciated. It's great to have people so considerated.
[LG Optimus 3D] dreccon:
I extracted your boot.IMG today to edit its mount-points. I can see that your phone has a partition called 'persist' that the p920 doesn't have. I need the info from the parted print command, otherwise I can't give you correct instructions.

So, let's try another way. Install Terminal Emulator on your phone, run it and type the following commands:

su

cat /proc/partitions

(I need the output of this)

df

(I need the output of this too)

Hopefully I will be able to read what I need.

Sent from the 3rd dimension!
[LG Optimus 3D] troopii:
remove the harddrive driver manual in devices manager, when it appear as unknown device install the driver manual.
[LG Optimus 3D] ljv004:
Thanks again your support. Following your instructions below you'll find requested info.

$ su

# /proc/partitions

major minor #blocks name

7 0 10427 loop0

7 1 20822 loop1

7 2 2111 loop2

7 3 28098 loop3

7 4 4190 loop4

7 5 21861 loop5

7 6 3150 loop6

7 7 2111 loop7

179 0 7766016 mmcblk0

179 1 384 mmcblk0p1

179 2 1024 mmcblk0p2

179 3 15360 mmcblk0p3

179 4 256 mmcblk0p4

179 5 256 mmcblk0p5

179 6 15360 mmcblk0p6

179 7 716800 mmcblk0p7

179 8 1048576 mmcblk0p8

179 9 20480 mmcblk0p9

179 10 153600 mmcblk0p10

179 11 2048 mmcblk0p11

179 12 4096 mmcblk0p12

179 13 131072 mmcblk0p13

179 14 1024 mmcblk0p14

179 15 5618688 mmcblk0p15

179 16 7680 mmcblk0p16

179 17 16384 mmcblk0p17

179 18 2048 mmcblk0p18

179 19 10240 mmcblk0p19

179 32 31166976 mmcblk1

179 33 31165952 mmcblk1p1

254 0 10426 dm-0

254 1 20821 dm-1

254 2 2110 dm-2

254 3 28098 dm-3

254 4 4189 dm-4

254 5 21861 dm-5

254 6 3150 dm-6

254 7 2110 dm-7

7 8 5229 loop8

254 8 5229 dm-8

7 9 61362 loop9

254 9 61362 dm-9

7 10 24980 loop10

254 10 24979 dm-10

7 11 3150 loop11

254 11 3150 dm-11

7 12 12506 loop12

254 12 12505 dm-12

7 13 5229 loop13

254 13 5229 dm-13

# df

Filesystem Size Used Free Blksize

/dev 463M 60K 463M 4096

/mpt 15M 9M 5M 1024

/drm 1M 1M 958K 1024

/persist 7M 1M 5M 1024

/mnt/asec 463M 0K 463M 4096

/mnt/extasec 463M 0K 463M 4096

/mnt/obb 463M 0K 463M 4096

/system 688M 635M 53M 4096

/data 1007M 512M 495M 4096

/cache 145M 5M 139M 1024

/mnt/sdcard 5G 3G 2G 32768

/mnt/secure/asec 5G 3G 2G 32768

/mnt/sdcard/_ExternalSD 29G 13G 16G 32768

/mnt/extsecure/extasec 29G 13G 16G 32768

/mnt/asec/com.jrummy.liberty.toolboxpro-1 10M 8M 1M 8192

/mnt/asec/com.opera.browser.classic-1 20M 19M 1M 8192

/mnt/asec/com.descargarmp3-1 2M 56K 1M 8192

/mnt/asec/org.mozilla.firefox-1 27M 25M 1M 8192

/mnt/asec/eu.thedarken.sdm-1 4M 3M 1M 8192

/mnt/asec/com.happymaau.MathRef-1 21M 19M 2M 8192

/mnt/asec/com.ghisler.android.TotalCommander-1 3M 1M 1M 8192

/mnt/asec/org.mobilism.android-1 2M 704K 1M 8192

/mnt/asec/com.koushikdutta.rommanager-1 5M 3M 1M 8192

/mnt/asec/com.navitel-1 59M 57M 2M 8192

/mnt/asec/com.tap4fun.ge-1 24M 22M 1M 8192

/mnt/asec/com.opera.mini.android-1 3M 1M 1M 8192

/mnt/asec/com.whatsapp-1 12M 11M 1M 8192

/mnt/asec/com.quoord.tapatalkxdapre.activity-1 5M 3M 1M 8192

#

---------- Post added at 12:11 PM ---------- Previous post was at 11:23 AM ----------

Ok. Will try. Thanks
[LG Optimus 3D] dreccon:
That was useful!

Now, you'll have to download and install Minitool Partition Wizzard on the PC. Remove the SD from your phone and put it on the PC using an adapter (if you don't have one, you can search on ebay, it's very cheap).

Now, copy the contents of your external SD to your PC just in case...

OK, let's get down to work:

1. Run Minitool and select the main (and only) partition of your SD.

2. Shrink it by 2 GB. The empty 2 GB should be at the end of your space.

3. Create a new 700MB Primary ext4 partition named "System2" at the beginning of the empty space.

4. Create a new 1200MB Primary ext4 partition named "Data2" right next to the previous one

5. Create a new 70 to 90MB (approximately) Primary ext4 partition named "Cache2" right next to the previous one and make sure you leave 10 MB free at the end.

6. Create a new 10MB Primary ext4 partition named "Persist2" using the rest of the free space.

7. Press "Apply" so that the changes you made get... well, applied!

8. Safely remove your SD from the PC and put it back into your phone.

...

9. Wait for me to finish my work and give you further instructions (hopefully tomorrow).
[LG Optimus 3D] dreccon:
You should probably know that if you want to thank somebody around here, you don't type it, you press the button!

:svetius:
[LG Optimus 3D] dreccon:
I'm back with the rest of the procedure.

1. Boot to Recovery and backup your current ROM. Reboot to Android.

2. Find your backup folder using a File Manager. In there you should find boot.img.

3. Copy boot.img to a folder of your choice (I use /sdcard/DualBoot/img).

4. Rename boot.img to p720stockBoot.img or something else that reminds you of what it's for.

5. Go to your PC and download CM and GApps.

6. Also, download the zip attached at the end of this post.

7. Unzip all 3 files.

8. Copy the my updater-script to the CMROM/META-INF/com/google/android/ overwriting the file that exists there.

9. Go to the same path in the extracted GApps and edit the updater-script as instructed by Berni987654321 in his DualBoot page.

10. Zip the edited ROM and GApps and transfer them to your phone.

11. Transfer my p720CM10dualboot.img to the same folder you copied your own boot.img in step 3.

12. You can now reboot to recovery and flash CM and GApps. Reboot to Android.

13. You are still on your primary ROM. Download and install Flashify (for root users) from PlayStore.

14. Run Flashify and press Boot image. Browse to where you saved my modified boot image, flash it and reboot.

15. You are now at your secondary ROM. Set it up and install Flashify here too. Run it and flash your own boot.img to return to your primary ROM.

That's all! Simple?
[LG Optimus 3D] ljv004:
Ok. Sounds easy. Will do it and comaback later.
[LG Optimus 3D] ljv004:
What would happen to external sd ruunning apps
[LG Optimus 3D] ljv004:
Partition process could not be completed given the fact that minitool says that "there are no more MBR slot in disk"
[LG Optimus 3D] dreccon:
It will be read and written to more often, so theoretically it will wear out more quickly but that's too theoretical. I've been using dual boot for more than a year now and nothing bad has happened to the phone or the card!

You could try creating the last partition as logical but I've never tried it, so I don't know if Android can see it. You're going to have to try it.

If it doesn't work, then you'll have to dump the Persist2 partition alltogether and make the Cache2 partition fill all of the unallocated space (so you'll be creating 3 instead of 4 new partitions). If you do, then you can't use the boot image I uploaded. I'll have to make another one.

I'll wait for your results.
[LG Optimus 3D] ljv004:
Ok. Will try

---------- Post added at 02:34 PM ---------- Previous post was at 01:52 PM ----------

Would be make any difference if instead of using sd adapter used as pendrive?
[LG Optimus 3D] dreccon:
No. I should have thought of this earlier. You can't create more than 4 primary partitions on any single drive.

The problem is that I don't know what the persist partition is used for and if it can be shared between two operating systems without problems. If anyone reading this ( [MENTION=4516732]berni987654321[/MENTION] ) has any clue, please enlighten us!

Sent from the 3rd dimension!
[LG Optimus 3D] ljv004:
Nop. Android can't see logical partitions. Already tryied. Any other suggestion would be appretiated.

---------- Post added at 10:38 PM ---------- Previous post was at 10:05 PM ----------

Could the limit of 4 partition be solved using linux???
[LG Optimus 3D] dreccon:
Most Linux installations (that usually coexist with windows ones) use the MBR partitioning system. Android uses the GUID Partitioning Table (GPT) which allows for up to 128 primary partitions. This is why you can see your internal storage divided into so many ones.

Your best shot would be to fix ADB while in recovery and do your partitioning as per OP. An alternative to ADB would be to use TWRP's command line interface and do the partitioning from the phone itself without the need of a computer. Be aware that some commands must be issued with a slightly different syntax in this case.

So, first undo the changes to your card using MiniTool, then put it into your phone and format it from the Android settings menu (to be sure no remnants of MBR are left) and then proceet to create a GPT partition table.

EDIT: I just found out that MiniTool can also handle GPT partitions but first you have to wipe all pre-existing ones. For instructions read here.

Sent from the 3rd dimension!
[LG Optimus 3D] ljv004:
Ok. So, using using the same too l will let the sdcard become a gpt disk and after that must follow second part of instructions as indicated before, right?

---------- Post added at 08:29 AM ---------- Previous post was at 08:27 AM ----------

Is the second part of instruction brick safe?