this post was submitted on 22 Jan 2024
89 points (95.9% liked)

Linux

48376 readers
2098 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
 

Tinkering is all fun and games, until it's 4 am, your vision is blurry, and thinking straight becomes a non-option, or perhaps you just get overly confident, type something and press enter before considering the consequences of the command you're about to execute... And then all you have is a kernel panic and one thought bouncing in your head: "damn, what did I expect to happen?".

Off the top of my head I remember 2 of those. Both happened a while ago, so I don't remember all the details, unfortunately.

For the warmup, removing PAM. I was trying to convert my artix install to a regular arch without reinstalling everything. Should be kinda simple: change repos, install systemd, uninstall dinit and it's units, profit. Yet after doing just that I was left with some PAM errors... So, I Rdd-ed libpam instead of just using --overwrite. Needless to say, I had to search for live usb yet again.

And the one at least I find quite funny. After about a year of using arch I was considering myself a confident enough user, and it so happened that I wanted to install smth that was packaged for debian. A reasonable person would, perhaps, write a pkgbuild that would unpack the .deb and install it's contents properly along with all the necessary dependencies. But not me, I installed dpkg. The package refused to either work or install complaining that the version of glibc was incorrect... So, I installed glibc from Debian's repos. After a few seconds my poor PC probably spent staring in disbelief at the sheer stupidity of the meatbag behind the keyboard, I was met with a reboot, a kernel panic, and a need to find another PC to flash an archiso to a flash drive ('cause ofc I didn't have one at the time).

Anyways, what are your stories?

(page 3) 50 comments
sorted by: hot top controversial new old
[–] rattking@lemmy.ml 2 points 10 months ago

Ok! So in Gentoo you cant install sed without sed! Now I cant even remember how I unmerged sed in the first place, but don't do it.

[–] Jean_le_Flambeur@discuss.tchncs.de 2 points 10 months ago* (last edited 10 months ago)

Types

rm -r -f Presses strg+v (instead of strg + shift + v)

Hits enter

Maschine proceeds to delete the home folder as the garbage that comes when pressing normal strg+v gets interpreted so...

[–] ArmainAP@programming.dev 2 points 10 months ago

Somehow I found ways to remove and break the GUI multiple times in multiple ways in multiple distros.

Different scenarios, different times, different issues trying to "fix". My usual fix after this was always to copy what I think I still had important and then move on with a reinstall.

Recently I have been playing with ZorinOS and broke it in the same way by fidgeting with pipewire. Distro hoped to Fedora Silverblue due to the immutable filesystem. I wonder if I will break this one in a way I cannot revert it easily with rpm-ostree. I almost feel challenged.

[–] Kanedias@lemmy.ml 2 points 10 months ago (1 children)

Just straight up overwriting boot sector and superblock of my hard drive thinking it's the USB drive.

Udev tried to warn me, saying there's no permission, and I just typed sudo without thinking.

Then after a second I remembered USB block devices are usually writable by users, but it was too late.

load more comments (1 replies)
[–] fl42v@lemmy.ml 1 points 10 months ago

Oh, I just remembered another one or three. So, resizing the partitions. My install at the time had a swap partition that I didn't need anymore. Should be simple, right? Remove the partition and the corresponding fstab entry, resize root, profit. Well, the superblock disagreed. Fortunately, I was lucky enough to be able to re-create the scheme as it was, and then take my time to read the wiki and do the procedure properly (e2fsck, resize2fs and all that stuff).

Some people I've met since, unfortunately, weren't so lucky (as far as I remember, both tried to shrink and were past mkfs already) and had to reinstall. The moral is, one does simply mess with superblocks; read the wiki first!

[–] Engywuck@lemm.ee 1 points 10 months ago

"Updating" a 5.2 RedHat install with a 6.0 Mandrake CD-ROM (or the opposite, can't remember right now...). Fun stuff.

[–] BlueEther@no.lastname.nz 1 points 10 months ago

I've broken systems far too many times in the last 24 years, since Mandrake 6.x, to count:

  • I've dd a disk or more
  • I've rm *
  • I've chmod
  • I've brought down the network, with every intention tar it would come back - on a remote box
  • I've failed to RTFM far too many times
[–] glibg10b@lemmy.ml 1 points 10 months ago

I wanted to use fio to benchmark my root drive. I had seen a tutorial saying that the file= parameter should point to the device file, so I pointed it at /dev/sda. As you might expect, the write test didn't go so well.

[–] Kjev@discuss.tchncs.de 1 points 10 months ago (2 children)

Somehow convinced a person to run sudo chmod -x /usr/bin/*

I don't remember the exact command so it could be a bit different but it did the job. It was a fun evening.

[–] rem26_art@kbin.social 1 points 10 months ago

The first time I read this, i thought "shouldn't all that be executable anyway?"

And then I read it again and realized, minus x

[–] avidamoeba@lemmy.ca 1 points 10 months ago* (last edited 10 months ago)

An intern nuked their workstation by sudo chmod -R 777 /. Turns out adding exec to everything isn't good either.

[–] jordanlund@lemmy.world 1 points 10 months ago

Not me, but one I saw... dude used chmod to lock down permissions across the board... including root... including the chmod command.

"What do I do?"

🤔

"Re-install?"

[–] reallyzen@lemmy.ml 1 points 10 months ago* (last edited 10 months ago)

Generated my grub configuration as grub.conf

This one took a stupid amount of time to debug - but on the other hand, when grub failed it did with "can't find any bootable thingy" and not "missing configuration file" as, in my later opinion, it should.

~~Life~~ Linux is a harsh mistresses, sometimes.

[–] StorageAware@lemmings.world 1 points 10 months ago

It was only in a container on a Chromebook, but I'll share it anyway. One time, I had installed Android Studio but found it mildly annoying that I got a line when using apt about Android Studio and some error on a certain line of this one file. I believe the file was something related to dpkg, and after changing some things within the file, I seemed to have broken apt. Luckily, I had a backup, but it was a few days old, so I had to reinstall some apps.

[–] Black616Angel@feddit.de 1 points 10 months ago

sudo usermod -a cdrom

Forgot the -G and wasn't sudo anymore...

I did recover eventually, but it was not nice.

[–] med@sh.itjust.works 1 points 10 months ago

Ubuntu GUI/apt fail

Back when I used ubuntu, Unity was stuck with old gnome packages. This meant that the version gnome-terminal packaged with ubuntu (up to at least 18.04) didn't have text reflow on window size changes.

You could add the upstream sources, upgrade the specific text reflow package only, and then disable the sources.

I forgot to disable the sources, or typed dist-upgrade (this happened multiple times...). Broke the whole desktop/lightdm setup with half upgraded packages, and half removed packages (for preparation to install new versions). Way easier to reinstall the os than to disentangle. Unity was a mess then anyway.

Moral: Actually read the package change summaries when doing updates/removes/installs, and [ y/N ] means actually check what the fuck you think you're agreeing to.

BtrFS snapshots for idiots

I've also run automated snapshots on my btrfs partition, then run out of space doing multi-hop system upgrade on fedora (dnf has a plugin that creates a snapshot every time it kicks in.

You can imagine there were many changes happenning per snapshot, and I effectively could have rolled back 4 major fedora versions... Til I ran out of space.

I couldn't get a replacement drive in time, and I had an hour to rebuild my laptop before needing to be on a customer site, so sadly I couldn't preserve my drive for later investigation. My best guess is the high-water-mark was configured incorrectly, and somehow it was able to 'write' data past the extents of the filesystem.

Rollback did work for my home partition, but I had to mount it from another OS to get it to work - so no data loss!

By that time I'd already reinstalled the os to the root partition/subvolume however, so I couldn't determine the exact cause of failure :(

Moral: Snapshots are not backups, and 'working' is not 'tested'

[–] emly_sh_@sh.itjust.works 1 points 10 months ago

I've not broken my setup (yet), but I've came close to it one time when I accidentally made a lesser fork bomb.

I was writting a function that would display how many jobs I currently had in the command prompt, but when writting the function instead of calling jobs I called the function itself, sourced .bashrc and now everything was laggy (my pc only has 4GB). Thankfully I was able to shut down the terminal before my swap got completely consumed.

[–] lemmyreader@lemmy.ml 1 points 10 months ago

Years ago a friend mistakenly typed in killall5 as root on a remote server. Didn't break things but resulted in extra work and effort.

[–] rhys@mastodon.rhys.wtf 1 points 10 months ago

@fl42v I have thousands from my early days, but my only recent-ish one was pretty funny.

On an Arch install that hadn't been updated for a while, in a rush, had an app that needed OpenSSL 3. Instead of updating the whole system, I just updated the openssl package.

*Everything* broke immediately. Turns out a lot of stuff depends on openssl. Who knew?

To fix, booted to the arch installer, chrooted into my env, and reverted to the previous version of the package — then updated properly.

[–] inetknght@lemmy.ml 1 points 10 months ago

I was running Fedora. Something like 27 or so. I needed drivers. I don't remember if it was AMD or Nvidia, but they were only available on RedHat.

So I downloaded the RedHat drivers for the GPU and forced it to install. It worked! It was great.

Then when I updated the distro to the next release... everything failed. It was dropping into grub, but no video was output. Ooof.

So I ended up enabling a terminal console and connecting to it via a serial port to debug. I had to completely uninstall that RPM and I was never happy that it was properly gone. So a few months later I ended up reinstalling the whole OS.

On the plus side, I learned a lot about grub and serial consoles. Worth it.

[–] acow@programming.dev 1 points 10 months ago

I've had the typical disasters with partition tables and boot loader mixups, but the one I keep coming back to is updating my Nvidia drivers too eagerly. Whether something gets messed up with an external monitor, or the laptop starts resisting switching away from the integrated GPU, or an electron app I use regularly that makes heavy use of 3D acceleration breaks, or I just need to bump the driver version in a reproducible system state record... it's just bad news.

[–] Petter1@lemm.ee 1 points 10 months ago

For me, it was a simple enabling of AUR im manjaro, twice Now I use arch, lol.

[–] FollowingTheTao@lemmy.dbzer0.com 1 points 10 months ago

I wanted my top bar in DWM toshow the time, so I put the script directly into the .xinitrc file instead of the path to the script.

[–] DrillingStricken@programming.dev 1 points 10 months ago

Once I succumbed to a proprietary software's allure, post-usage, I felt like a digital pariah! To rid myself of the taint, I wiped my system clean – reinstall time!

load more comments
view more: ‹ prev next ›