Android x86 Multiboot with Win7 and Ubuntu on Acer1825

Most of you know that nice Androidx86 release from arobase for the Acer1825, but a lot of you asked for installation on hard-disk. I have done it and here comes, how it works:

First my start configuration: I had a installation of Windows7 (seldom used) (NTFS) and Ubuntu 10.10 on LVM(ext4), no free space for a new partition.

First and absolutely necessary: BACKUP YOUR WHOLE HARDDISK!!!!! If you work with partitions  you could run into terrible problems.

I used the clonezilla distribution and did a backup over LAN to my desktop pc.

Next I needed a new partition for Android, but I had no free space, so I used gparted (This tool is very easy to use, I think a explanation is not necessary) under Ubuntu to shrink the Windows 7 disk. I shrinked about 12GB, but the android installation only takes some hundreds megabyte, so you could use a smaller partition. I would suggest at least 4GB.

After shrinking the Windows 7 partition I created a new ext3 partition on the free space and booted the newested android iso (beta 3) from usb (created with unetbootin).

Next the install procedure as screenshot gallery. Important: DO NOT INSTALL GRUB, IT WILL NOT DETECT YOUR EXISTING OS

[nggallery id=13]

After the installation reboot to Ubuntu .You have not another choice because android is not listed in grub, but that’s what we do next:

Please check with gparted or another partition tool how many partitions do you have and which partition is that one you installed android to.

Next you need to edit that file:

/etc/grub.d/40_custom

1
sudo gedit /etc/grub.d/40_custom

and replace the content with next listing:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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 2.2 (MDPI)" {
set root=(hd0,4)
linux /android-2011-03-28/kernel quiet root=/dev/ram0 androidboot_hardware=aspire1825 acpi_sleep=s3_bios,s3_mode SRC=/android-2011-03-28 DATA= DPI=160
initrd /android-2011-03-28/initrd.img
}

menuentry "Android-x86 2.2 (HDPI)" {
set root=(hd0,4)
linux /android-2011-03-28/kernel quiet root=/dev/ram0 androidboot_hardware=aspire1825 acpi_sleep=s3_bios,s3_mode SRC=/android-2011-03-28 DATA= DPI=240
initrd /android-2011-03-28/initrd.img
}

menuentry "Android-x86 2.2 (VESA)" {
set root=(hd0,4)
linux /android-2011-03-28/kernel quiet root=/dev/ram0   androidboot_hardware=aspire1825 acpi_sleep=s3_bios,s3_mode SRC=/android-2011-03-28 DATA= vga=788
initrd /android-2011-03-28/initrd.img
}

menuentry "Android-x86 2.2 (Debug mode)" {
set root=(hd0,4)
linux /android-2011-03-28/kernel root=/dev/ram0 androidboot_hardware=aspire1825 acpi_sleep=s3_bios,s3_mode DEBUG=1  vga=788 SRC=/android-2011-03-28 DATA=
initrd /android-2011-03-28/initrd.img
}

You need to change that listing, if your android partition is not number 4. Check the number ( see above ) and change all occurrence of “set root=(hd0,YOUR_PARTITION_NUMBER)”

depending on your partition number. If you don`t know, try all numbers starting on zero, you could not damage something, it will only not boot.

If you use another laptop than a Acer1825 you need another androidx86 image from http://www.android-x86.org/ and than you need to change all occurrences of androidboot_hardware=aspire1825 e.g. for androidboot_hardware=eeepc or something like this. What you need to specify could you see if you boot from the corresponding live iso of androidx86 (fitting your hardware) and pressing TAB to see the boot options.

If you use another androidx86 image than I mentioned above you need to change the path to android on the partition respecting to the folder structure on the disk. In my case it is a folder with “android-2011-03-28″…You could look after that with your Ubuntu file manger which could read the android partition. The advantage of that special folder structure is, that you could install several android images the same time on the same partition because most use a special sub-folder, but than you need to add more entries to above grub file.

If you do not want all that menu entries above, you could uncomment single ones like DEBUG or HDPI or ….

The listing above adds the entries for androidx86 to you existing grub after you did:

1
sudo update-grub

If something is not clear do you feel free do ask.

 

Sources:

http://www.franklinstrube.com/blog/dual-booting-ubuntu-netbook-remix-and-android-x86-on-an-asus-eee-pc/

About Christopher

See http://www.ceh-photo.de/blog/?page_id=2
This entry was posted in Android-x86, Computer Science and tagged , , , , , , , , . Bookmark the permalink.