Sample Header Ad - 728x90

How to show GRUB menu instead of command line?

2 votes
0 answers
2525 views
I try to install Ubuntu 18.04 on a Lenovo Ideapad 320 , but the installer always hangs at installing the
package. So I ran the installer with
-b
(no bootloader) and it installs fine. I thought this way I could install grub manually. When I boot, grub drops to the
>
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
-install /dev/sda
,
-update
, I tried modifying the
/etc/default/grub
configuration file, etc. But I keep getting the
>
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=""
Asked by nc404 (121 rep)
Jul 22, 2019, 11:33 AM
Last activity: Jul 22, 2019, 05:26 PM