2

I try to install Ubuntu 18.04 on a Lenovo Ideapad 320, but the installer always hangs at installing the grub2 package. So I ran the installer with ubiquity -b (no bootloader) and it installs fine. I thought this way I could install grub manually.

When I boot, grub drops to the grub> command line prompt. I can boot using the following commands:

set root=hd0,msdos5
linux /vmlinuz root=/dev/sda5
initrd /initrd.img
boot

I tried getting a normal grub menu in many ways, but none seem to work. I ran grub-install /dev/sda, grub-update, I tried modifying the /etc/default/grub configuration file, etc. But I keep getting the grub> prompt. How do I get the menu?

Edit: This is what /etc/default/grub looks like:

GRUB_DEFAULT=0
#GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
nc404
  • 121
  • 4

0 Answers0