How to dual-boot Linux with android in 2 minutes

pc 1571963 1280

You may want to dual boot your existing Linux with android reason might be low spec device which can’t run Virtual machines. Here’s an easy and fast way to do it.

Select 32 bit or 64 bit of your choice and choose RPM file. For this we’re using android-x86-9.0-r2.x86_64.rpm which is android 9. And download it.

  • v7.1 for android 7
  • v8.1 for android 8
  • v9.1 for android 9

Install alien package convertor

First download alien which is a package converter around ~18 MB

sudo apt install alien

Need to get 5,002 kB of archives.
After this operation, 17.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up librpmsign8 ( …
Setting up dh-strip-nondeterminism (1.7.0-1) …
Setting up debugedit ( …
Setting up automake (1:1.16.1-4ubuntu6) …
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up rpm2cpio ( …
Setting up po-debconf (1.0.21) …
Setting up rpm ( …
Setting up libltdl-dev:amd64 (2.4.6-14) …
Setting up debhelper (12.10ubuntu1) …
Setting up dh-autoreconf (19) …
Setting up alien (8.95) …
Processing triggers for install-info (6.7.0.dfsg.2-5) …
Processing triggers for libc-bin (2.31-0ubuntu9.2) …
Processing triggers for man-db (2.9.1-1) …

Type sudo apt update to refresh

sudo apt update

Hit:1 stable InRelease
Hit:2 hirsute InRelease                           
Hit:3 stable InRelease                       
Get:4 hirsute-updates InRelease [109 kB]
Get:5 hirsute-backports InRelease [101 kB]
Hit:6 hirsute-security InRelease
Get:7 hirsute-updates/main amd64 Packages [266 kB]
Get:8 hirsute-backports/universe amd64 DEP-11 Metadata [9,144 B]
Fetched 485 kB in 3s (140 kB/s)             
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.

Change directory

Change your directory with cd to your file location. If it is download it might be in downloads folder type cd Downloads.

Install .rpm file with alien

alien -ci android-x86-9.0-r2.x86_64.rpm

replace ‘android-x86-9.0-r2.x86_64.rpm’ with name of your file

sudo alien -ci android-x86-9.0-r2.x86_64.rpm
dpkg --no-force-overwrite -i android-x86_9.0-1_amd64.deb
Selecting previously unselected package android-x86.
(Reading database … 222874 files and directories currently installed.)
Preparing to unpack android-x86_9.0-1_amd64.deb …
Unpacking android-x86 (9.0-1) …
Setting up android-x86 (9.0-1) …
Sourcing file /etc/default/grub' Sourcing file/etc/default/grub.d/init-select.cfg'
Generating grub configuration file …
Found linux image: /boot/vmlinuz-5.8.0-50-generic
Found initrd image: /boot/initrd.img-5.8.0-50-generic
Found linux image: /boot/vmlinuz-5.8.0-48-generic
Found initrd image: /boot/initrd.img-5.8.0-48-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings

If you’re not on Debian use

sudo alien -ci android-x86-9.0-r2.x86_64.rpm

replace ‘android-x86-9.0-r2.x86_64.rpm’ with your file name

It will take some time around 3-4 min in old devices.

Done! after this go to your boot menu and select android.

And your android will start booting.

choose android

continue with usual android set up


Here are some more pictures

Related Posts

2 thoughts on “How to dual-boot Linux with android in 2 minutes

Leave a Reply

Your email address will not be published.