Install Dualboot: Android and Ubuntu | Config GRUB with 40_custom
Get(Free,Donate)
Not need Install any, just copy and config and run.
Remove/uninstall = just delete folder, file and reconfig(delete script).
#Get ISO Android X86(Free, donate,ads):
http://www.android-x86.org/download
Boot option for Ubuntu(grub)
This: 1st boot of android x86, tested with virtualbox.
i call it is "Android run as sub-system"
File: /etc/grub.d/40_custom
#This not need a new partition
#Just need 1 folder(ext4 partition, ubutnu, linuxmint, elementary, linux any....):
1. Get 4 files from ISO:
4 files(extracted from android ISO, using any Archive Manager: 7zip,winrar,...):
- initrd.img
- kernel
- ramdisk.img
- system.sfs
2. Create a folder and put that 4 files to.
#Eg: im put that 4 files to /home/lux/and
2.1 Create a folder named "data" (inside and folder).
3. Configure GRUB(/etc/grub.d/40_custom), script:
#line(5 lines)
menuentry "Android blabla"{
set root ='(hd0,1)'
linux /home/lux/and/kernel root=/dev/ram0 androidboot.device=android_x86 androidboot.selinux=permissive
initrd /home/lux/and/initrd.img
}
#hd0 with 0 = disk 1, if multi disk, 0 = 1 2 3...
#hd0,1 with 1 is partition, 1st = sda1, 2 if = sda2...
#Next mod file: /etc/default/grub to show boot menu with android.
Change: Number time from 0 to 10 and "true" to "false".
Eg: GRUB_TIMEOUT="10"
GRUB_HIDDEN_TIMEOUT_QUIET="false"
#Update GRUB to Update for BOOT:
$sudo update-grub
#Dont worry if it not show "Android name"
#Reboot and see, check again.
If boot menu not show, just press Shift to show.
$sudo gedit /etc/grub.d/40_custum
and add code to end file:
#Check internet(LAN):
OK
#Check Version Android
7.1.2
#Check Google Apps:
Play Store, Youtube, Gmail,...
#Check Download and store:
Download: OK
Store: OK, now check in data folder(from ubuntu,.. linux): Yes, data folder had data...