Skip to content
June 15, 2016 / alancads

Insert Android Marshmallow x64 in Grub2

1 -Downloading ROM

$ wget -c https://www.fosshub.com/Android-x86.html/android-x86_64-6.0-rc1.iso

2 -Creating a bootable USB stick

$ sudo dd bs=4M if=android-x86_64-6.0-rc1.iso of=/dev/sdb status=progress && sync

3 –Create a partition of 15GB to install android and boot from the USB stick.

4 – Format the ext4 partition in my case is in /dev/sda3

5 – Caution! Skip every time you ask to install GRUB.

6 – Edit the 40_custom file and enter the text below:

$ sudo gksu gedit /etc/grub.d/40_custom

#!/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 Marshmallow 6.0‘ {
set root=’hd0,msdos3’
linux /android-6.0-rc1/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86_64 SRC=/android-6.0-rc1
initrd /android-6.0-rc1/initrd.img }

7 – Note that the parameter /dev/sda3 = hd0,msdos3

8 – Give execute permission to the file and update the grub.

$ sudo chmod +x /etc/grub.d/40_custom

$ sudo update-grub

ArchLinux: sudo pacman -S os-prober && sudo grub-mkconfig -o /boot/grub/grub.cfg

9 – Restart your machine and enjoy your android Marshmallow

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: