Autor Tópico: Problemas para inserir Remix OS no Grub2 do Ubuntu 16.04 64 bits ... [RESOLVIDO]  (Lida 2648 vezes)

Offline arcanjoebc

  • Usuário Ubuntu
  • *
  • Mensagens: 87
    • Ver perfil
Amigos, passei o domingo todo tentando colocar uma entrada para dar acesso a outro sistema operacional chamado Remix OS (Android para PC), nova versão, 3.0. Quando eu tinha a versão 2.0, bastava eu colocar uma entrada em "/etc/grub.d/40_custom" como mostro abaixo:

Código: [Selecionar]
menuentry 'Remix OS - Android para PC' --class android-x86 {
        insmod part_gpt
        insmod ext2
        set root='(hd0,gpt7)'
        search --file --no-floppy --set=root /Remix-OS/system.img
        linux /Remix-OS/kernel root=/dev/sda7 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive CMDLINE
        initrd /Remix-OS/initrd.img
}

E aplicar um sudo update-grub /dev/sda e o problema estava resolvido. Porém, agora, lançaram a versão 3.0 que, rodando do PenDrive é bem interessante, mas eu queria instalar no HD e fiz isso, criando uma partição EXT4 e criando uma pasta nela, chamada "Remix-OS", contendo o kernel, o initrd o system.sfs e outros arquivos, conforme mostrado abaixo:

Código: [Selecionar]
everaldo@positivo:/media/everaldo/REMIXOS/Remix-OS$ ls -la
total 1133400
drwxr-xr-x 3 root root       4096 Jul 31 12:27 .
drwxr-xr-x 4 root root       4096 Jul 31 12:27 ..
-rwxr-xr-x 1 root root         36 Jul 31 12:27 cid.sys
drwxr-xr-x 2 root root       4096 Jul 31 12:27 data
-rwxr-xr-x 1 root root    5302794 Jul 31 12:27 initrd.img
-rwxr-xr-x 1 root root    4127706 Jul 31 12:27 install.img
-rwxr-xr-x 1 root root    5228624 Jul 31 12:27 kernel
-rwxr-xr-x 1 root root    1415967 Jul 31 12:27 ramdisk.img
-rwxr-xr-x 1 root root        105 Jul 31 12:27 remixos_meta.sys
-rwxr-xr-x 1 root root 1144492032 Jul 31 12:27 system.sfs
-rwxr-xr-x 1 root root       2196 Jul 31 12:27 TRANS.TBL
everaldo@positivo:/media/everaldo/REMIXOS/Remix-OS$

A questão é que, agora, quando eu rodo o comando grub-update, dá erro e eu não sei como corrigir isso, será que os amigos poderiam me ajudar? Abaixo o erro reportado pelo grub:

Código: [Selecionar]
everaldo@positivo:~$ sudo update-grub /dev/sda
Generating grub configuration file ...
Encontrado imagem linux: /boot/vmlinuz-4.4.0-31-generic
Encontrado imagem initrd: /boot/initrd.img-4.4.0-31-generic
Encontrado imagem linux: /boot/vmlinuz-4.4.0-28-generic
Encontrado imagem initrd: /boot/initrd.img-4.4.0-28-generic
Encontrado imagem linux: /boot/vmlinuz-4.4.0-24-generic
Encontrado imagem initrd: /boot/initrd.img-4.4.0-24-generic
Found Windows Boot Manager em /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Found Fedora release 24 (Twenty Four) em /dev/sda8
/etc/grub.d/40_custom: 1: /etc/grub.d/40_custom: menuentry: not found
insmod: ERROR: could not load module part_gpt: No such file or directory
insmod: ERROR: could not load module ext2: No such file or directory
/etc/grub.d/40_custom: 5: /etc/grub.d/40_custom: search: not found
/etc/grub.d/40_custom: 6: /etc/grub.d/40_custom: linux: not found
/etc/grub.d/40_custom: 7: /etc/grub.d/40_custom: initrd: not found
/etc/grub.d/40_custom: 8: /etc/grub.d/40_custom: Syntax error: "}" unexpected
everaldo@positivo:~$

Aguardo ansiosamente alguma resposta e, desde já, sou-lhes grato por futura ajuda.




« Última modificação: 04 de Agosto de 2016, 20:08 por arcanjoebc »

Offline arcanjoebc

  • Usuário Ubuntu
  • *
  • Mensagens: 87
    • Ver perfil
Re:Problemas para inserir Remix OS no Grub2 do Ubuntu 16.04 64 bits ...
« Resposta #1 Online: 04 de Agosto de 2016, 20:07 »
Bem, eu acabei achando a resposta para meu problema. O Remix OS 3.0 é um pouco diferente do 2.0. Modificaram um arquivo do sistema e a entrada no "/etc/grub.d/40_custom" deve conter as linhas abaixo:

Código: [Selecionar]
#!/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 'Remix OS' --class android-x86 {
    insmod part_gpt
    insmod ext2
    search --file --no-floppy --set=root /RemixOS/kernel
    linux /RemixOS/kernel root=/dev/ram0 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive quiet SERIAL=random logo.showlogo=1 DATA= SRC=RemixOS CREATE_DATA_IMG=1
    initrd /RemixOS/initrd.img
}

Está resovido o problema!

Everaldo