Wednesday, May 16, 2012

Dual Boot Android-x86 and Ubuntu


android ubuntu
Wanted to run Android 4.0 Ice Cream Sandwich on your laptop/netbook like the Asus Transformer Android Tablet? A brief description for my scenario before setting up dual-booting environment with Android-x86 and Ubuntu. I have Ubuntu 12.04 Precise Pangolin running on my computer and going to dual boot with Android-x86 4.0 RC1 Ice Cream Sandwich. Be sure to read this if you want to dual boot Android-x86 and Microsoft Windows.

Things you will need:

Let's begin. Assuming you are running Ubuntu on your computer,
  1. Install UNetbootin from Ubuntu Software Center.
  2. Insert USB Pen Drive and run UNetbootin.
  3. Choose Diskimage radio button, then select the Android-x86 ISO. Click OK.
  4. After UNetbootin installed bootloader, click Reboot Now to restart computer.
  5. Enter into BIOS and change USB drive to first to boot USB Pen Drive when computer startup. Save the changes and it will restarts again.
  6. You arrived on the UNetbootin bootloader, choose Installation - Install Android-x86 to harddisk to install Android-x86.
  7. Choose the partition to install. You have to know your computer's harddisk partitions well. Example, sda1 = 1st partition, sda2 = 2nd partition, sda3 = 3rd partition, and so on.
  8. Select Do not format to keep existing data. Else, choose a filesystem to format. Android-x86 should works on ext2, ext3, fat32 and ntfs. Note that the filesystem must match the partition id.
  9. Choose Skip to skip boot loader GRUB installation. Otherwise, you will have to reinstall GRUB again with Live CD Ubuntu.
  10. Choose No, not to let /system be read-write. Choose Yes if it is necessary for you to debug.
  11. After Android-x86 installation is completed, it is optional to create a fake SD card. Having a fake SD card you are able to access apps which requires the existence of memory card like Gallery, Music Player, etc. 2046MB is the maximum size for fake SD card.
  12. Select Reboot to restart computer.
  13. Enter BIOS and change harddisk to boot first. Save and exit.
  14. Boot into Ubuntu and open 40_custom GRUB file by entering the command in terminal:
  15. gksu gedit /etc/grub.d/40_custom
  16. Add the following code at very bottom of the 40_custom GRUB file:
  17. menuentry "Android-x86 4.0 RC1" {
    set root='(hd0,3)'
    linux /android-4.0-RC1/kernel quiet root=/dev/ram0 androidboot.hardware=asus_laptop acpi_sleep=s3_bios,s3_mode SRC=/android-4.0-RC1 SDCARD=/data/sdcard.img
    initrd /android-4.0-RC1/initrd.img}
    Note for code above:
    • I installed Android x86 on sda3, so I use (hd0,3). For example, if you installed on sda5, change it to (hd0,5).
    • Change asus_laptop to which iso you download. For example, if you're using eeepc iso, change it to eeepc.
    • Remove SDCARD=/data/sdcard.img if didn't create fake SD card.
  18. Make it executable and update GRUB:
  19. sudo chmod +x /etc/grub.d/40_custom
    sudo update-grub
  20. Done. You should be able to dual boot Android-x86 and Ubuntu if you followed the steps above correctly. Note that you have to press and hold Shift key while your computer bootup in order to display GRUB menu. Otherwise, the menu won't shows up.

1 comment:

  1. this is very nice review but it says "error: you need to load the kernel first" and it doesnt boot.... what can i do??

    ReplyDelete