
Eu tenho um PC antigo que não uso há cerca de 10 anos. Possui Ubuntu 11.04 e Windows instalados. Eu queria instalar o Lubuntu nele e poder usar o grub para escolher o que inicializar.
Instalei o Lubuntu 20.04 LTS e a instalação correu bem. Eu tenho 3 discos no PC e Ubuntu e Lubuntu estão em/dev/sdc. Quando instalei o Lubuntu pela primeira vez, não havia nenhuma entrada no grub para ele. Em seguida, executei boot-repair e adicionei algumas entradas. Por exemplo:
Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os 'gnulinux-simple-xxxxxxxxxsome-guidxxxxxx (on dev/sda8)
Quando tentei selecionar o item acima, recebi o seguinte:
error: file not found.
error: you need to load the kernel first
Não tenho certeza de que tipo de informação de diagnóstico seria útil.
Editar: executei sudo grub-mkconfig -o /boot/grub/grub.cfg.new
e obtive a seguinte saída. Observe que não há nenhum novo kernel Linux listado:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-10-generic
Found initrd image: /boot/initrd.img-2.6.38-10-generic
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sdc1
done
Responder1
grub-mkconfig -o /boot/grub/grub.cfg
Atualize seu arquivo grub, ele deve resolver esse problema.