Add androidx86 to grub

DON’T install a grub page when installing android x86!!

  1. Go into Ubuntu and Locate the android file (android-4.2-test in my case)Screenshot at 2013-08-21 20:54:18
  2. Open terminal and type in: gksudo gedit /etc/grub.d/40_custom
  3. Copy and paste the following code into the pop up file:
    • Find and Replace android-4.2-test to match the name of your Android folder found in Step 1
    • set root=(hd0, 3) means your android file is on the FIRST hard drive and THIRD parition: sda3
    • #!/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.
      
      menuentry "Android-x86 (MDPI)" {
      set root=(hd0,3)
      linux /android-4.2-test/kernel quiet root=/dev/ram0 androidboot_hardware=generic_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-4.2-test DATA= DPI=160
      initrd /android-4.2-test/initrd.img
      }
      
      menuentry "Android-x86 (HDPI)" {
      set root=(hd0,3)
      linux /android-4.2-test/kernel quiet root=/dev/ram0 androidboot_hardware=generic_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-4.2-test DATA= DPI=240
      initrd /android-4.2-test/initrd.img
      }
      
      menuentry "Android-x86 (VESA)" {
      set root=(hd0,3)
      linux /android-4.2-test/kernel quiet root=/dev/ram0 androidboot_hardware=generic_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-4.2-test DATA= vga=788
      initrd /android-4.2-test/initrd.img
      }
      
      menuentry "Android-x86 (Debug mode)" {
      set root=(hd0,3)
      linux /android-4.2-test/kernel root=/dev/ram0 androidboot_hardware=generic_x86 acpi_sleep=s3_bios,s3_mode DEBUG=1 vga=788 SRC=/android-4.2-test DATA=
      initrd /android-4.2-test/initrd.img
      }
      
  4. Save the file and close it.
  5. Lastly, we need to update grub by type in: sudo update-grub in the terminal.
Advertisements