Read the first couple of lines in that file, they provide a vital clue as to where you should be looking and what you should be doing.
Linux
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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Sorry, I think I forgot to update my original post to mention this, but I think I somehow overwrote this file with the contents of grub.cfg so that file is no help to me.
Don’t you go and reinstall, learn how to fix this
It stinks: https://youtu.be/SHcqNVjGJN4
How have I never seen that before. It’s perfection
Here is an alternative Piped link(s):
https://piped.video/SHcqNVjGJN4
Piped is a privacy-respecting open-source alternative frontend to YouTube.
I'm open-source; check me out at GitHub.
sudo mv /etc/default/grub /root/old_etcdefaultgrub
to get it out of the way, then sudo dnf reinstall /etc/default/grub
to reinstall the package that provides it, giving you a fresh unmodified copy. Should work for practically any config file on Fedora.
I did this and it worked! Thanks so much !
superuser.com/questions/469249/how-can-i-restore-grub-for-fedora ... maybe try rming that file, then /sbin/grub-install. All else fails, use package manager to purge and reinstall grub
I was helping you there and asked you to back up configs and post some information.
Once you've done that I think actually getting things back the way they should be will go fine.
Oops, sorry, I must have missed that. Tomorrow I'll try grubby, and if that doesn't work I'll get that information back to you.
Fedora uses grubby to edit grub. Read documentation. Do some research.
Cool, thanks I'll check this out.
Did you even try? A bunch of people, including myself, gave you plenty of suggestions.
If you're expecting to have your hand held and the solutions spoon-fed, consider Windows or macOS. If you want to use Linux, you have to help yourself, or at least help us help you.
I am sorry, I have been very busy and was planning on getting back to this when I have the time. I have done a lot of searching over the past months, and the comments on this post have mostly been very helpful and seem like they will work, so that's great actually. I am sorry if my post comes off as lazy or something, because that is not my intent.
No you should not reinstall the system.
You use grubby to change grub configs afaik