How to install a universal grub2 to a usb having android x86 lineageos ?
1 Attachment(s)
Help a newbie please...Sorry for my Botched English though...
I have installed a latest android_X86 #LineageOS to a USB Drive. I tried Android Live for a while and decided to INSTALL the OS on another PENDRIVE[Lineage-USB] because i want to use android portably. While installing i did chose the option install GRUB2 to the drive but when i reboot the system at the end of installtion, my pc cant able to boot it. I did a small search and found a live system called SuperGrub2 which is basically a universal Grub capable of booting whatever operating system installed on any connected device.And i've installed the latter on an other usb[SUPERGRUB2-USB]. SUPERGRUB2-USB boots the Lineage-USB successfully on every devices i have and runs like a charm. Its quite ok for a while using two pendrives simultaneously to boot a single OS but later it seems just WIERD. So now all i need is a Similar Grub setup for my Lineage-USB so that i can boot it from any available pc/laptop/sbc etc. FYI: # Attached Screeshot of SuperGrub2 Menu showing installed bootable Android Os. # Lineage-USB is in EXT4 file system | GPT | created using Gparted on a linux host # GRUB folder does present on that Lineage-USB after andoid_x86 installation. That folder has only one file called "grub.cfg". The list of command inside that grub.cfg file are as follows:- set timeout=10 menuentry "Android-x86 14.1-rc1" { search --set=root --file /cm-x86-14.1-rc1/kernel linux /cm-x86-14.1-rc1/kernel quiet root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug initrd /cm-x86-14.1-rc1/initrd.img } menuentry "Android-x86 14.1-rc1 (DEBUG mode)" { search --set=root --file /cm-x86-14.1-rc1/kernel linux /cm-x86-14.1-rc1/kernel root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug DEBUG=2 initrd /cm-x86-14.1-rc1/initrd.img } I dont know why grub did'nt shows up when i boot the Lineage-USB. Help me.. |
Quote:
When you installed Grub to the pendrive, did you get an option to install to the MBR or the partition on which Android was? If so, which did you select? If it is GPT, did you create a BIOS boot partition as part of the install or are you doing an EFI boot? You indicate there is no Grub folder but that you have a grub.cfg file, where (in what folder) is it? |
Quote:
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
IT WORKS !!! But i can use the USB only on a UEFI system. As you've mentioned earlier i need the same boot code in MBR to make the USB work in different computers .how to do that ? Any Ideas. |
I've never tried this but you might try installing Grub to the MBR of the pendrive pointing to the /boot/grub directory or wherever the grub.cfg file is. No idea if this will work.
|
Thank you but how can i do that?
|
All times are GMT -5. The time now is 11:07 AM. |