I have a PC with Win7, and Ubuntu.
I recently installed Android, but because Win7 is on the second partition, there were already 3(+1 extended) partitions, so I could only install Android within the extended partition, and only on a logical partition, and now Android isn't showing up in GRUB.
I tried to use Android's GRUB, but that doesn't show Ubuntu. I tried a custom script in the /etc/grub.d/40_custom
file, but it doesn't do anything; I mean the /boot/grub/grub.cfg
normally automatically adds the custom scripts to itself but that isn't happening for me.
custom script (contents of the 40_custom file):
#!/bin/sh
exec tail -n +3 $0
#This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
set root='(hd0,6)'
linux /android-4.4-r1/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-4.4-r1
initrd /android-4.4-r1/initrd.img
My Android version is Android 4.4 r1 (not rc1)