I had the same issue apart from that it was booting not at all.
Reason: My fresh install of Ubuntu 18.04, 17.10 and Mate 18.04 had all put the wrong uuid
in /boot/efi/EFI/ubuntu/grub.cfg
.
Version 1 (grub-cmd):
From grub shell, find root folder by peeking into the outputs of ls
(e.g. ls (hd0,gpt2)/
) and make sure to know on which partition your system was installed! For me, it was sda2
since ESP
is recommended to be the first.
set root=(hd0,gpt2)
linux /boot/vmlinuz-number-generic root=/dev/sda2
initrd /boot/initrd.img-number-generic
boot
If booting is successful now, you can get your uuid
's (not partuuid
) by typing blkid
and verify that the correct one is noted in /boot/efi/EFI/ubuntu/grub.cfg
.
For me:
search.fs_uuid <uuid> root hd0,gpt2
...
Version 2 (install-stick):
If you happen to have a bootable linux-stick, you can also boot that, mount your ESP
and change the uuid
there:
# Create folder to mount ESP
mkdir /tmp/esp
# Mount ESP (assuming sda1) to esp
sudo mount /dev/sda1 /tmp/esp
# Get UUID's of devices
sudo blkid
# Ensure correct `uuid` is set in `/tmp/esp/efi/EFI/ubuntu/grub.cfg`
reboot
sudo update-grub