0

I used to be able to boot Ubuntu from my SSD drive on a duel boot machine but now it says “you need to load the kernel first”.

I have tried to set the boot drive.
I found the partition with lost+found/ boot/ swapfile etc/ media/ var/ … and so on. I believe this is my partition for boot/grub/ by what I’ve read online.

My problem might be that there is nothing in this path.
The Documentation says /boot/grub should contain “ grub.cfg and many *.mod files. If looking for a specific file, include the name in the search to limit the number of returns”.
But there is nothing in this path but a file named grubenv.

Also, I don’t know what this disk is named. In grub it is (hd2,gpt4) and I can get the UUID number, but isn’t there another name that is something like /dev/hd1? Do I not need this to set the kernel if I ever find it?

I’m using Ubuntu 20.04 5.11.0-41 generic.

1 Answer 1

1

The path may not be /boot/grub depending on how you installed things. Are you sure your using grub? Is your motherboard set to UEFI? (did you install using non-UEFI settings?) Have you tried the Ubuntu boot repair?

You never mentioned what version of Ubuntu is installed or how long it's been since you booted it. If this is an ancient Ubuntu 16.04 install then yeah perhaps grub. If it's something newer or current on an UEFI board perhaps not. The old way was /boot/grub on the root filesystem (docs are often very outdated) but these days the "path" you most likely need depending on how you answer my previous questions would be a separate partition mounted as /boot/efi

Dualbooting often sees Windows break the Linux boot setup but first thing to try is ye olde https://help.ubuntu.com/community/Boot-Repair

8
  • I’m using 5.11.0-41 generic Commented Jun 6, 2022 at 20:34
  • That's pretty old but also doesn't matter. Your kernel version isn't the issue ;) -unless you are giving that out as the Ubuntu version (it's the kernel version not the Ubuntu version) Commented Jun 6, 2022 at 20:35
  • I can only access the disk from grub. I can in no ways get to a terminal on the machine and do boot repair. Can I do boot repair from a USB somehow? Commented Jun 6, 2022 at 20:38
  • You've not answered any of my questions and sounds like you haven't read the boot-repair page either. You may want to do that if you want to get anywhere. Commented Jun 6, 2022 at 20:41
  • I changed from CSM to UEFI and I’m back in Ubuntu. Thank you. I guess it was a very easy fix but I didn’t know this was changed. I didn’t change it. Before I could toggle which OS to boot. Now I need to go change this in the BIOS each time, I guess. Commented Jun 6, 2022 at 20:48

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.