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:
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:
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:
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.