cross-posted from: https://pawb.social/post/7200764

I can’t edit /etc/default/grub

I’m trying to update my grub boot order back to booting the first option instead of the second, so I run sudo nano /etc/default/grub, but it brings up this, which is not the file I want to edit.

I’m on fedora 38

It has been solved!

  • Dave.
    link
    fedilink
    199 months ago

    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.

    • @[email protected]OP
      link
      fedilink
      29 months ago

      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.

    • @thantik
      link
      English
      1
      edit-2
      9 months ago

      This guy right here…he knows what he’s doing. :)

      We used to just say “RTFM”, but this is nicer.

      Try grub2-mkconfig