At least the images till 4.3 from Android-x86 I tested still used the GRUB legacy bootloader, I don't know why. I already posted this, but I have some new functions and so it's not neccessary to lick around to old posts. Google Code is unclearly enough. Of course, the settings are used from my Thinkpad x61t and it's older, so replace the entries with your system and image infos.
1. Integration into GRUB2 bootloaderThis will be a guide to install Android to HD, and how to integrate it
into another Linux GRUB2 bootloader. So an operating system using GRUB2
is neccessary. If you want to install Android to a hard drive, you'll
need a EXT3 formatted partition, no matter if it's primary or logical.
DON'T INSTALL GRUB from the Android installer, otherwise you can't boot
only Android. Booting Android from hard drive from is much faster, but
it has one disadvantage: It doesn't allow booting from another
installation from an USB stick, because it always searches for the first
Android folder, and this is always the one on the harddisk. But it is
possible to install more than one Android installation on one partition,
you just have to use other names for the Android root directory.
Actually
after a fresh installation without Android GRUB can't boot Android at
all, you'll need an operating system which uses GRUB2. These are the
most operating systems, I'm using AROS, but all Ubuntu versions have it
and other Linux distros, too. These are the entries for
grub.cfg to make Android bootable:
submenu "Android x86 4.0 RC2" {menuentry "Android x86 4.0 RC2" --class android --class linux --class os {
set root="(hd0,7)"
linux
/android-4.0-RC2/kernel root=/dev/ram0 androidboot.hardware=thinkpad
quiet video=1400x1050 dpi=145 i915downclock=1 i915.powersave=1 usbcore.autosuspend=2
SRC=/android-4.0-RC2/
initrd /android-4.0-RC2/initrd.img
}menuentry "Android x86 4.0 RC2 text output" --class android --class linux --class os {
set root="(hd0,7)"
linux /android-4.0-RC2/kernel root=/dev/ram0 androidboot.hardware=thinkpad video=1400x1050 dpi=145 i915downclock=1 i915.powersave=1 usbcore.autosuspend=2
SRC=/android-4.0-RC2/
initrd /android-4.0-RC2/initrd.img
}
menuentry "Android x86 4.0 RC2 debug mode" --class android --class linux --class os {
set root="(hd0,7)"
linux /android-4.0-RC2/kernel root=/dev/ram0 androidboot.hardware=thinkpad video=1400x1050 dpi=145 i915downclock=1 i915.powersave=1 usbcore.autosuspend=2
SRC=/android-4.0-RC2/ DEBUG=1
initrd /android-4.0-RC2/initrd.img
}
}
This
entry creates a submenu with the three entries to boot Android normal,
with text output, or in debug mode. You have to change these settings if
you are not using a Thinkpad:
"Android x86 4.0 RC2" - This is the name of the submenu displayed in GRUB."Android x86 4.0 RC2" - This is the name of the boot entries.
(hd0,7)-This
is your drive/partition in which Android is installed. hd0,1 - hd0,3
are primary partitions, the first logical partition begins with hd0,5 /android-4.0-RC2/ - This is the path where Android is installed.
androidboot.hardware=thinkpad - This is your hardware model. You have to replace 'thinkpad' with your model, you could get the name from the file
/isolinux/isolinux.cfg from your Android installation CD.
video=1400x1050 - I'm not sure if this option has effect, change the value to your displays native resolution.dpi=145
- I'm also not sure if that option has effect, check if you find
something about your displays density value. You also can skip this
option. The standard 1024x768 displays of the Thinkpads have 106 dpi.To modify your grub bootlist in Ubuntu, open a Terminal or press Alt-F2. Then enter
gksu nautilus and your password, to get full read/write access. A new desktop window will pop up, and navigate to the
/boot/grub/grub.cfg. Best make a copy of
grub.cfg
first, then open it and add the entries above. Fix the shown vales to
your system, save the file. After a reboot one Android entry should
appear. If you open it, a submenu with three entries will open, these
are the boot entries. Press Escape to return to the main menu. If your
bootloader is messed up or won't work at all, boot from the Live DVD,
make the system read/writeable and check
<ubuntu partition>/boot/grub/grub.cfg, or restore it from the backup.
2. Integrating Android into LinuxI prefer this method because you don't need another partition and you can share a larger Linux partition with Android. However, you can't access files on the Linux partitions, but you can modify Android from Linux. That makes editing much easier. I have ZorinOS 7 installed, it is based on Ubuntu 13. I have used the ext3 filesytem because there was no ext4 listed in the Android installer, maybe it wouldn't be compatible. I don't know about much about Linux. So install Android-x86 into your Linux partition, but don't format or install GRUB. Boot into Linux. Gain root access for your filesystem and copy (not move!) the Android folder to another place, I used my home folder. Now rename the uninstalled Android-x86 folder, f.e. using _bak. So you don't need another installation if your system isn't working, just copy the files back again. It's useful to rename it, so you can install a new Android-x86 without overwriting the older version. Now modify your GRUB2 entry of your Linux partition that the Android-x86 boot entries are available.
3. Integrate Android-x86 in the EasyBCD bootloaderEasyBCD is the one Windows 7 uses. I like it because it's very fast and it has a config program - although it has a few quirks. You need to have a Windows and the 100 MB Windows system partition. It is also possibly to use this partition better, I'll post it later. Install EasyBCD on your Windows and write the bootloader. This will overwrite the graphical Windows 8 bootloader, but that's better because EasyBCD is much faster. You'll find your Windows partitions, or use 'Add new entry'. Select 'NeoGrub' and click 'Configure. You'll get an editor window with the configuration entries for NeoGrub. It's wonderful because Lecgacy GRUB, GRUB2 and NeoGrub are all incompatible.
These are my entries:
# NeoSmart NeoGrub Bootloader Configuration File
#
# This is the NeoGrub configuration file, and should be located at D:\NST\menu.lst
# Please see the EasyBCD Documentation for information on how to create/modify entries:
# http://neosmart.net/wiki/display/EBCD/
default=2
timeout=6
title Android-x86 4.3
root (hd0,4)
kernel /home/kernel quiet root=/home androidboot.hardware=android_x86 pcie_aspm=force usbcore.autosuspend=2 video=-16 SRC=/home quiet
initrd /home/initrd.img
title Android-x86 4.3 ramroot
root (hd0,4)
kernel /home/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 pcie_aspm=force usbcore.autosuspend=2 video=-16 SRC=/home quiet
initrd /home/initrd.imgMy partition is hd0,4, this it's the second logical partition in the extended partition of my MBR harddisk. I have used
root=/home and
root=/dev/ram0, both works. Save your entries in the editor, change the name and position in the EasyBCD editor and save the settings. Now try to reboot, if it works you are lucky, otherwise check all entries or take a look at the NeoGrub site for more information.
4. Integrate Linux in the EasyBCD bootloaderYou also can integrate Linux in EasyBCD by 'AutoNeoGrub'. It maybe not work the first time, check out the extended options or take a look at the EasyBCD site. It is working, on my system I have a working multiboot system with Windows XP 64bit, Windows 7 Ultimate 64 bit, Windows 8.1 Professional 64 bit, ZorinOS 7.1 Ultimate 64 bit and Android-x86.
5. Make better use of the Windows 'System' partitionIf you're installing a new Windows, it creates a 100 MB system partition for the bootloader. This wastes a full primary partition on a MBR harddisk. So use it simply for a second Windows! Go in the advanced hard drives settings of the Windows installation and create a partition for your Windows 7 or 8. It will automatically create the 100 MB system partition and the main Windows partition. Now delete the main Windows partition and resize the system partition. You can use a Windows XP for compatibility reasons, 35 GB will be enough. After this create your Windows partition again. Now don't install Windows 7 or 8, make a reset! Get your Windows XP CD and install, without formatting the partition again. Windows XP can't be installed on harddisks with 4K sectors from itself, newer Windows installers have to align the partition to 4K sector borders. Make sure that you have AHCI drivers for your system. Some mainboards can force-mount an USB stick as floppy for installing the drivers before the installation (press F6) or use WinSetupFromUSB, it can integrate boot drivers to an Windows XP installation. It's also possible to create USB boot sicks to install Windows Vista/7/8 on GPT partitions, and it's much faster than from DVD. After installing and quick configuring XP, install your newer Windows. It will integrate Windows XP as 'older version of Windows' and you can select the one you want to boot from. YOu can modify the boot entries with EasyBCD.
Easier uses for the resized system partition are are simple data partition, or as 'Swap Partition'. Windows usually puts the pagefile.sys on C:/, this wastes a lot of space, makes problems while defragmenting and if you want to make a block-based backup (f.e. via TrueImage) you have to turn it off all the way. So I'm using always swap partitions. They always have to be 1,5x the size of the real memory, so if you have 16 GB RAM, it must be about 24 GB. It's Windows standard with the 1.5x size. In Windows use the drive letters S: (Swap) or T: (Temp) for it. Set the pagefile in the virtual memory settings to this partition and disable it on partition C:/. Use as start and end size the full size, no automatic resizing. With tools like TuneUp Utilities you can use an option that specific drive letters aren't shown on the desktop. Also disable the 'no free drive space left' notification.
6. Use real Administrator as your accountIf you're creating your Windows account, it is an administrator account, but not the full administrator account. But it is possible to use it as own account. On Windows XP you have to log off and press Ctrl-Alt-Del twice. You'll get the old text-based login window. Log in with name 'Administrator' and no password. Windows will begin with this account as it is just created, so it will display the Windows tour and so on. Create yourself a password, and delete the account you've create during the installation. Check out the net how you can do this. In Windows 7 and 8 this works a bit different: Go to 'Computer', right-click and use 'Manage...'. Select there users and groups. There is your account, 'Guest', and 'Administrator'. Click on it, and you'll see that it is not active/hidden. Make it active, log out and log in as Administrator. You can delete your account from this. In Windows 8 it works the same, but - it's incredible - you can't start apps in Administrator mode, not even Internet Explorer. It also installs much less Apps by default. YOu can use these registry entries to allow starting Apps as administrator:
Allow starting Apps as Administrator:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"FilterAdministratorToken"=dword:00000001Deny starting Apps as Administrator:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"FilterAdministratorToken"=dword:00000000you can save them directly as .reg files to integrate them into the registry. I've tested this successful on Windows 8.1 Professional 64 bit.
So, that's a lot of stuff. Check out what you need.
Greets, RAM.