this post was submitted on 18 Dec 2023
121 points (94.2% liked)

Linux

48338 readers
403 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
 

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.

top 50 comments
sorted by: hot top controversial new old
[–] jwt@programming.dev 40 points 11 months ago (2 children)

I ran a command that borked my bootloader and had to do a fresh install.

Just wait until you learn the powers of chroot :)

[–] aoidenpa@lemmy.world 6 points 11 months ago

Few days ago I downgraded glibc(I'm dumdum) because it was recommended in a reddit thread for a problem I was having. I couldn't even chroot. Fortunately I could update with pacman --root

[–] Grass@sh.itjust.works 4 points 11 months ago

This is the way

[–] Ultimatenab@beehaw.org 27 points 11 months ago (1 children)

One of us, one of us. I did the same only 2-3 hours into my first ever Linux install.

[–] Corr@lemm.ee 6 points 11 months ago (1 children)

I feel your pain :P
I'm almost done getting everything back, I think!

[–] juli@programming.dev 10 points 11 months ago* (last edited 11 months ago) (1 children)

How long until you start doing backups? 😂

Edit: Took me some years btw

[–] Corr@lemm.ee 2 points 11 months ago

I was trying to set up snapper, so sorta on my way there lol

[–] catastrophicblues@lemmy.ca 25 points 11 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@lemmy.dbzer0.com 21 points 11 months ago (1 children)

Timeshift for backups is a godsend in these situations

[–] Dariusmiles2123@sh.itjust.works 10 points 11 months ago (1 children)

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

[–] Bluefruit@lemmy.world 1 points 11 months ago

Thats good to know because Fedora seems to be where im heading when i make the switch as well.

[–] glibg10b@lemmy.ml 15 points 11 months ago* (last edited 11 months ago) (1 children)

borked my bootloader and had to do a fresh install

That's where you're wrong :)

[–] Corr@lemm.ee 7 points 11 months ago (1 children)

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

[–] glibg10b@lemmy.ml 5 points 11 months ago (1 children)

Before you can fix a bootloader, you first need to learn how to install and set up a bootloader. I think most people learn that part when they try Arch

[–] AngryCommieKender@lemmy.world 1 points 11 months ago

Do it with Debian Unstable

[–] nia_the_cat@lemmy.blahaj.zone 13 points 11 months ago* (last edited 11 months ago)

Breaking your install within a few days is the rite of passage

[–] QaspR@lemmy.world 8 points 11 months ago

Congratulations soldier! You're one of us now.

[–] bulwark@lemmy.world 6 points 11 months ago (1 children)

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.

[–] Corr@lemm.ee 1 points 11 months ago

I think you may need help.... I bid you good luck on your recovery :P

[–] LainOfTheWired@lemy.lol 5 points 11 months ago* (last edited 11 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

[–] just_another_person@lemmy.world 5 points 11 months ago (10 children)

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.

[–] Valmond@lemmy.mindoki.com 1 points 11 months ago (1 children)

And a lot of configuration, or so I thought? I'm investing heavily but I'm scared for my investments :-)

Another Linux noob here, after a couple of Linux servers (Tenfingers, Lemmy) switched over (finally) my main PC, or well kids got the gaming machine and I'm on a Mint ThinkPad now :-) and a backup think centre tiny if the Lemmy server bails out.

I have this little windows box to print stuff (I didn't know I hated printers) and every time I use it I'm so happy I don't need windows in my personal life anymore...

Cheers and welcome OP!

[–] just_another_person@lemmy.world 2 points 11 months ago (1 children)

This comment isn't making any sense to me, but good on ya?

[–] Valmond@lemmy.mindoki.com 1 points 11 months ago

Except that I'm jumping ship to Linux fully, I'm thinking a lot about hardware failure, not the data but say the mobo, so maybe that's curious. Seemed you were knowledgeable about those things, or I'm explaining very badly.

Cheers

[–] Corr@lemm.ee 1 points 11 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

load more comments (8 replies)
[–] juli@programming.dev 4 points 11 months ago (1 children)

I'm on fedora silverblue and that won't ever happen again to me

[–] Bitrot@lemmy.sdf.org 1 points 11 months ago

Still possible to break your bootloader.

[–] drasticpotatoes@lemmy.dbzer0.com 4 points 11 months ago (1 children)

I love the enthusiasm. Enjoy your journey. Feel free to reach out to me directly if you need help.

[–] Corr@lemm.ee 2 points 11 months ago (1 children)

Thank you for the offer. I hope I never need to take advantage of it lol

[–] drasticpotatoes@lemmy.dbzer0.com 2 points 11 months ago

Good luck. 🤣

[–] be_excellent_to_each_other@kbin.social 4 points 11 months ago* (last edited 11 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/

[–] Fizz@lemmy.nz 4 points 11 months ago (1 children)

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.

[–] Corr@lemm.ee 2 points 11 months ago

Time heals all wounds :P

[–] GustavoM@lemmy.world 3 points 11 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.

[–] downhomechunk@midwest.social 2 points 11 months ago

Pro tip:

Create a separate partition for /home. Then it's all still there if need to do a fresh install.

[–] kevincox@lemmy.ml 2 points 11 months ago (1 children)

Keeping /home separate is a good call. I can also recommend backups to a different system. Also test those backups.

Playing with things can be fun if that is what you enjoy. Being careful is good but the best way to avoid serious issues is being able to recover from the worst case.

[–] glibg10b@lemmy.ml 1 points 11 months ago* (last edited 11 months ago) (2 children)

Why do you advocate for keeping /home separate?

I personally don't do it because the more partitions you have, the more often you need to fiddle around in GParted when one partition gets full. This is also why I use swap files instead of swap partitions

As far as I can tell, unless you distro-hop, separating /home doesn't have any advantages. Even then, sharing one /home directory between multiple desktop environments can cause some problems

I agree with making and testing backups, though. My current strategy is to back everything up to a 4.2 TiB ZFS pool with daily snapshots on my LAN, and back up the most important data on that to the cloud

[–] kevincox@lemmy.ml 1 points 11 months ago

I don't think it is critical to keep /home separate but if you need to reinstall it is really nice. You can reset the OS without touching your data or user-level configs. Either for the same distro because you fiddled around and broke it or another one for distro-hopping. It also makes encrypting it easy, although full-disk encryption is getting so easy that it probably isn't an issue. Good backups also mitigate this, although the recovery will be slower than just reinstalling while leaving your existing home there.

To be honest I don't actually keep home separate anymore. But that is mostly because I trust NixOS enough that I know I will never need to reinstall. I can always roll back or worst case install over top of the existing install from a live USB.

Overall I would say that the cost of doing so is fairly small as well. Unless you are running a lot of system services data outside of /home is usually fairly limited. Although I agree that getting the partition sizes wrong can be frustrating.

[–] lemmyvore@feddit.nl 2 points 11 months ago (1 children)

If you keep around a bootable rescue stick like System Rescue it has a boot menu entry that will boot the Linux installed on your machine. Once you do that you can run a command or two to reinstall the bootloader. You can search the net or whatever at leisure since it will work fully.

Alternatively, if your system Linux is borked harder, you can boot the rescue Linux and use more advanced methods, depending on what's wrong. The rescue Linux also has a graphical environment with browser if you need it.

At the very least sometimes you can figure out what went wrong. It may not be much comfort if you lost your system but at least you learn what not to do in the future. Too many people just say "oh, it just broke" and leave it at that.

[–] Corr@lemm.ee 1 points 11 months ago

I think I know what the issue was... I modified the grub.cfg file and ran grub2-mkconfig and I think it was saying it detected a Linux install at my root partition, but didn't seem to recognize my /boot or /boot/efi partitions and I couldn't figure out how to edit that via the grub cli. If that wasn't the case, then that's okay. I'll make sure to teach myself a bit more about the bootloader before trying to edit it again

[–] agent_flounder@lemmy.world 2 points 11 months ago (1 children)

Sweet, welcome! :) I know the feeling. I just finished reinstalling Nobara after being dumb and goofing up patching. Then I tried to fix it and made the system totally unusable and I gave up.

A while ago I jacked my grub config and decided to try to fix it manually. I managed to stumble through it and learned some stuff, though I am still fuzzy on some details.

I mostly want to just use the computer without a lot of headache and both Mint and Nobara have been great for coding (various), electronics design, 3d modeling and printing, graphics, photo editing, and such.

[–] Corr@lemm.ee 2 points 11 months ago (1 children)

This is why I gave up on fixing it yesterday lol. I spent a few days setting it up, I didn't wanna spend a few more days to try to figure out exactly what the issue was when I could just give in and then actually use it

[–] agent_flounder@lemmy.world 1 points 11 months ago

Totally valid! Theoretically with more experience it may be easier / faster to fix but...idk

See this is why I keep /home on a separate partition (or drive in some cases). I can reinstall or switch distros anytime without worrying about all my files (they're backed up, anyway but doing a restore is a pita).

load more comments
view more: next ›