Live USB error "you need to load the kernel first"
I've got an mkusb live USB (Ubuntu 18.04 with persistence) that boots fine on some of my computers. On one laptop I get the following error:
error: disk `hd0,4' not found.
error: you need to load the kernel first.
What do I need to do to, "load the kernel first"?
EDIT: An SD card occupying an SD slot was causing this issue. Removing the SD card allows mkusb to boot properly, and eliminates the error. Once booted I reinsert the SD card into the SD slot if I need to use it.
If you get to a grub
prompt, it means that grub
can't find the boot files that it expects. The sequence of commands to load the files and boot when grub
doesn't do that for you goes something like this. First, find all partitions that grub
sees:
grub> ls (hd0) (hd0,msdos2) (hd0,msdos1)
This lists disks and partitions on the disks. One of these partitions holds your Linux system. Say it is (hd0,1)
. Then do:
grub> set root=(hd0,1) grub> linux /boot/vmlinuz-4.15.0-45-generic root=/dev/sda1
Replace (hd0,1)
, the version number and the partition (/dev/sda1
) by what is valid for your system. In the case of vmlinuz
you can just type vmlinuz-
and press Tab.
grub> initrd /boot/initrd.img-3.13.0-29-generic
The version string should be identical to the one for vmlinuz
.
grub> boot
should now boot up your system.
When that happened to me I just had to disable secure boot and it worked.