I recently made a post discussing my move to Linux on Fedora, and it’s been going great. But today I think I have now become truly part of this community. I ran a command that borked my bootloader and had to do a fresh install. Learned my lesson with modifying the bootloader without first doing thorough investigation lol.
Fortunately I kept my /home on its own partition, so this shouldn’t be too bad to get back up and running as desired.

  • @catastrophicblues@lemmy.ca
    link
    fedilink
    256 months ago

    Borked your bootloader already? You’re a true Linux user lol. You’ll eventually learn to not do that (and back up regularly).

    Good choice with Fedora! I love dnf and the choices Fedora makes overall.

  • Jvrava9
    link
    fedilink
    216 months ago

    Timeshift for backups is a godsend in these situations

    • Dariusmiles2123
      link
      fedilink
      106 months ago

      OP should just know that TimeShift doesn’t work on Fedora Workstation without some tinkering.

  • glibg10b
    link
    fedilink
    15
    edit-2
    6 months ago

    borked my bootloader and had to do a fresh install

    That’s where you’re wrong :)

    • @Corr@lemm.eeOP
      link
      fedilink
      76 months ago

      You’re right. I spent a few hours trying to fix it before giving up and determined that reinstalling would be quicker lol

  • Friendo, I think once you understand exactly what an OS is, you’ll have fewer problems. An OS is just a layer on top of hardware with a lot of scripts and tools that enable that hardware to do things like move files, show graphics, and send audio in a desktop environment. Never issue a root or sudo command unless you understand exactly what it’s doing. Following this one simple rule will save you a lot of trouble, same as any Windows machine.

    • Dariusmiles2123
      link
      fedilink
      26 months ago

      Also, once your install is in a state you like, create a backup with CloneZilla.

      • Nah. This is old school thought. Use an immutable distro if this is your concern, and keep all your files on a NAS, or something else that can replay your files. Local images of your entire filesystem isn’t needed anymore.

          • They are two different things.

            A Clone of an OS install is not needed anymore, for a jillion reasons.

            Personal files do not relate to that.

            Perhaps you don’t understand how these are intended to work?

              • @deepdive@lemmy.world
                link
                fedilink
                English
                1
                edit-2
                6 months ago

                Heyha ! Read about dd on makeuseof after reading your post, to see how it works.

                Restoring from an image seems exactly what I was looking for as a full backup restore.

                However this kind of 1 command backup isn’t going to work on databases (mariadb, mysql…). How should I procede with my home directory where all my containers live and most of them having running databases?

                Does it work with logical volumes? Is it possible to copy evrything except /home of the logical volumes?

    • @Corr@lemm.eeOP
      link
      fedilink
      16 months ago

      This is reasonably valid. I think Windows makes it a bit harder to do real damage to your system, so I’m used to that. I also have borked installs in VMs before, but that’s never mattered because spinning up a new one takes no time. Definitely a valuable lesson to do more research before running commands, especially as sudo

  • @bulwark@lemmy.world
    link
    fedilink
    English
    66 months ago

    I’ve messed up my system so many times over the years that now I think I secretly get excited when it accidentally happens. Maybe I’m a masochist, but I actually enjoy trying to understand what went wrong. A USB stick with a light weight Linux distro and chroot you can usually get back in there and look around at the damage.

  • @LainOfTheWired@lemy.lol
    link
    fedilink
    English
    5
    edit-2
    6 months ago

    When you get more advanced you can use a distro like System Rescue to fix your bootloader instead of having to reinstall everything

  • @Fizz@lemmy.nz
    link
    fedilink
    46 months ago

    In my first few weeks of linux I screwed up mounting a hard drive and my pc wouldn’t boot past grub. 4x different times I tried and each time I broke it. Then a year later I revisted mounting the drive and it went smoothly.

    • NaN
      link
      fedilink
      English
      16 months ago

      Still possible to break your bootloader.

  • be_excellent_to_each_other
    link
    fedilink
    4
    edit-2
    6 months ago

    One of us! One of us!

    Although I think having to fix a borked bootloader is a good bit of experience, it’s probably not something you are always going to want to spend time on. I have used boot-repair only once, but it was like magic. Just throwing it out there for your future use and a general recommendation. :)

    https://sourceforge.net/p/boot-repair/home/Home/

  • @GustavoM@lemmy.world
    link
    fedilink
    English
    36 months ago

    Trial-and-error is a beautiful thing, isn’t it?

    t. Had to reinstall GNU/Linux several times through the course of months while trying new stuff and/or trying to improve the current ones.