Adding to GRUB2

64 views
Skip to first unread message

sukuma...@gmail.com

unread,
Jan 12, 2016, 12:53:02 PM1/12/16
to Remix OS for PC
Is it possible to add it to a a second partition on my HDD and have it as an entry in GRUB2 boot menu?

segi...@gmail.com

unread,
Jan 12, 2016, 2:14:02 PM1/12/16
to Remix OS for PC
It's possible to install as a subdirectory of your Linux install and add to GRUB2.

Make directories /android and /android/data

Copy initrd.img, kernel, ramdisk.img, and system.img to /android

Create GRUB2 entry using command-line from Remix OS's bootloader config (isolinux.cfg, open in vim)
E.g.:

linux /android/kernel ...
initrd /android/initrd.img

Make sure that SRC= kernel command-line value is set to SRC=/android or else you will not get past "Detecting Android-x86..."

Also, same steps work for Android-x86.

ilpo...@gmail.com

unread,
Jan 12, 2016, 2:16:26 PM1/12/16
to Remix OS for PC
I  installed remix   on a partition --- Grub2 as always doesn't see android....trying to add at the menu but no chance....

segi...@gmail.com

unread,
Jan 12, 2016, 2:50:05 PM1/12/16
to Remix OS for PC
On Tuesday, January 12, 2016 at 1:16:26 PM UTC-6, ilpo...@gmail.com wrote:
I  installed remix   on a partition --- Grub2 as always doesn't see android....trying to add at the menu but no chance....

Follow my instructions above. You'll also need to know how GRUB 2 config scripts work, etc.

Here's a template (you need to add your own values) for you to use as /etc/grub.d/40_custom

http://paste.dott.co.in/#29640cd96757b9243cc537031714a8abttTY1Isr

You'll need to replace "$grubroot" in the template with the appropriate partition, e.g. "(hd2,gpt1)" and replace "$voluuid" with the UUID of the appropriate partition. (run the "blkid" command as root under your desktop Linux install) 

Sukumar Patel

unread,
Jan 13, 2016, 12:33:20 AM1/13/16
to Remix OS for PC
Can I specify a folder to act as /data? or it has to be a img?

Matheus Silagi

unread,
Jan 13, 2016, 1:00:57 AM1/13/16
to Remix OS for PC
This is almost what i wanted, what if my Android is installed on a second partition (like outside linux, on sda2 for example), what would i need to change?
Im kinda new to GRUB

Thisara Kasun

unread,
Jan 13, 2016, 1:23:54 AM1/13/16
to Remix OS for PC
Then you need to specify in which partition remix is installed.

Open /etc/grub.d/40_custom and add something like below. you need to replace "hd0,msdos1" with the relevant partition.you can find it yourself by typing c at grub to enter commandline and then type ls to list all devices and partitions. note that you should replace 'android-2016-01-12'  with the folder name you installed the os.

menuentry "Remix Os"{
set root=(hd0,msdos1)
linux /android-2016-01-12/kernel quiet root=/dev/ram0 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive SRC=/android-2016-01-12
initrd /android-2016-01-12/initrd.img
}

Matheus Silagi

unread,
Jan 13, 2016, 9:03:07 AM1/13/16
to Remix OS for PC
Thanks a lot but it didnt work, update-grub is still not detecting the entry.
Message has been deleted

Jon West

unread,
Jan 13, 2016, 9:08:26 AM1/13/16
to Remix OS for PC
I used the folder method on my setup. Booting and running just fine on my SP3 :)

menuentry 'RemixOS-x86_64' --class android-x86 {
search --file --no-floppy --set=root /AndroidOS/system.img
linux /AndroidOS/kernel root=/dev/sdb1 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive DPI=220 quiet DATA=/AndroidOS
initrd /AndroidOS/initrd.img
}

Thisara Kasun

unread,
Jan 13, 2016, 9:12:57 AM1/13/16
to Remix OS for PC
This worked for me. update-grub shows nothing different,but an entry was added to the grub menu. how did you install it,from a USB? i didn't need a USB too. simply extracted the iso to a folder in my home directory in linux and added a entry to grub to access the install mode. if you follwed every single step well,i can verfy that it will work like a charm.

Sukumar Patel

unread,
Jan 13, 2016, 11:41:32 AM1/13/16
to Remix OS for PC
Dis you create /Android OS under / or under your home folder?

Matheus Silagi

unread,
Jan 13, 2016, 11:47:13 AM1/13/16
to Remix OS for PC
Fixed, i did like the script above and it worked.
Now only if i could get more than 2GB of data. That would be amazing

Sukumar Patel

unread,
Jan 13, 2016, 12:42:16 PM1/13/16
to Remix OS for PC
I added the below entry and it will not work. What am I doing wrong.

1. Created a folder RemixOs in my home folder and extracted the ISO into it.
$ pwd
/home/sukumar/RemixOs

$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 389G 203G 167G 55% /home

2. Created a folder data under RemixOs
3. Edited 40-custom as below

menuentry 'RemixOS-x86_64' --class android-x86 {
search --file --no-floppy --set=root /home/sukumar/RemixOs/system.img
linux /home/sukumar/RemixOs/kernel root=/dev/sda5 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive DPI=220 quiet DATA=/home/sukumar/RemixOs/data
initrd /home/sukumar/RemixOs/initrd.img
}

4. Ran sudo grub update

I can see the menu entry, but selecting it reboots the PC.

Please suggest what's incorrect

Sukumar Patel

unread,
Jan 13, 2016, 12:55:37 PM1/13/16
to Remix OS for PC
I also tried adding the partition uuid of /dev/sda5 to the root flag and it still didn't work.

vishal...@gmail.com

unread,
Jan 13, 2016, 12:58:58 PM1/13/16
to Remix OS for PC
This worked like charm, thanks! (:

Thisara Kasun

unread,
Jan 13, 2016, 9:03:14 PM1/13/16
to Remix OS for PC
for the installation grub entry should be as follows,
linux /home/thisara/remix/kernel quiet root=/dev/ram0 SRC=/home/thisara/remix androidboot.hardware=remix_x86_64 androidboot.selinux=permissive INSTALL=1 DEBUG=

And after the installation change it to the previous lines i said to boot to the OS..

Prafull Kumar

unread,
Jan 13, 2016, 9:31:41 PM1/13/16
to Remix OS for PC
Reply all
Reply to author
Forward
0 new messages