99
submitted 1 year ago* (last edited 1 year ago) by otter@lemmy.ca to c/linux@lemmy.ml

Update from this post from the other day: What to know before Dual Booting Windows + Linux?

TLDR: I got it working, started learning, tried to fix a grub issue and borked the whole system.


So after considering all the advice, I went and disabled/prepped/backed up, and started the process. I managed to get Fedora KDE installed on another partition and everything was looking ok. I installed some programs, started learning for a few hours, but there was one small issue. The grub configuration from the video didn't really work. Windows wasn't booting by default, and when I tried to do the GRUB_SAVEDEFAULT=true to have it boot the last OS, it also didn't work. When booting windows, a message would flash by saying '/EFI/fedora/grubenv' not found.

Looking more into it, the video says to use sudo grub2-mkconfig -o boot/efi/EFI/fedora/grub.cfg but I think the correct one now is grub2-mkconfig -o /boot/grub2/grub.cfg? I found this thread, but I couldn't run the first command because it gave a conflict error, and I think there were two versions of grub2 installed?

So anyways, I tried running the setup again, thought it was ok and did a reboot to test... and got hit with a black screen with minimal BASH like line editing is supported.

At this point I'm a little worried and lost, thinking maybe I wasn't ready to try this, and trying to get it back the way it was. I found this guide, but I get stuck trying to mount the EFI partition.

Any tips on where to go from here? Right now I plugged in the USB I used earlier, booted Fedora from it, and opened the terminal. Past that I'm a bit lost on how to fix grub.

you are viewing a single comment's thread
view the rest of the comments
[-] otter@lemmy.ca 5 points 1 year ago* (last edited 1 year ago)

More specific questions might be better than my mess above:

The guide I mentioned above seems to be the guide a few other forums reference. Is there a boot repair tool for Fedora KDE Plasma?

Alternatively, I am able to make it to the last step of the regular guide, where I need to run

sudo grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu --target=x86_64-efi --efi-directory=/mnt/boot/efi

I get a sudo: grub-install: command not found message. Since I'm on Fedora and not Ubuntu, what would be the correct command for me, assuming that's the reason. I didn't think it would work, but I tried just swapping 'fedora' for 'ubuntu' and got the same error



edit: Got a little further by using grub2 instead: sudo grub2-install --boot-directory=/mnt/boot --bootloader-id=ubuntu --target=x86_64-efi --efi-directory=/mnt/boot/efi, but got a new error:

grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist



edit: Got a little further by running sudo dnf install grub2-efi-x64-modules. Now when I run that command, error is

grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot.

secure boot is definitely off, so I'm stuck again

[-] cytye@lemmy.wtf 2 points 1 year ago

Did you try: sudo update-grub

this post was submitted on 24 Aug 2023
99 points (96.3% liked)

Linux

48335 readers
453 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS