linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

BCsven, in My First Month of Linux

Welcome to a larger world. IF you ever need dual boot working well on linux, I found the best robust method is install Windows first, leave space for more partitions. install Linux and make a separate boot efi partition. Many distros offer to probe for foreign OS. this will find windows and add a chainloader entry to grub. Set the Linux partition as the boot one in BIOS/EFI. Grub will start and if you choose Windows it handsover the boot to Windows boot ( and Windows doesn’t know it). Windows will leave your EFi linux boot alone. You can also share a ntfs partition between them if needed

Dekkia,
@Dekkia@this.doesnotcut.it avatar

Windows will leave your EFi linux boot alone.

I wish that was True. Windows loves to overwrite boot partitions during major updates in my experience.

TCB13,
@TCB13@lemmy.world avatar

www.rodsbooks.com/refind/ is your friend.

BCsven,

Thats why you have two. windows efi and linux efi on separate partitions. Windows never knows the other one exists and ignores the rest of what it sees as unalloated space. it even lets you shut down a windows update, boot linux and come back to windows later which continues the update. I have been running this way for 7 years, Windows has not touched my other EFi partition.

Dekkia,
@Dekkia@this.doesnotcut.it avatar

Oh, I see. I had it on different disks with one efi partition at the start of each. Windows didn’t like that.

BCsven,

Should still be fine if you set BIOS/EFI to only boot from the Linux EFI, and it has chainload entry to Windows. If you left it up to some Windows Dual boot thing it will wreck you for sure

samalves, in what's a normie KDE distro?

Debian 12 stable with KDE is smooth sailing

jordanlund, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@jordanlund@lemmy.world avatar

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?”

Kjev,
@Kjev@discuss.tchncs.de avatar

oh… uh…

elkalbil,
@elkalbil@jlai.lu avatar

You could boot on an USB, mount the filesystem and change the permissions. But if the dude changed a whole lot of permissions, reinstalling might be the smart thing to do…

jordanlund,
@jordanlund@lemmy.world avatar

Changed it all to 000. ಠ⁠_⁠ಠ

stackoverflow.com/…/who-can-access-a-file-with-oc…

cmnybo,

I managed to do that back when I was new. Luckily it was a fresh install, so I didn’t lose much when I had to reinstall.

So far, that has been the only time I really screwed something up outside of a virtual machine.

captainjaneway,
@captainjaneway@lemmy.world avatar

There’s got to be other tools though that could change the file permissions on chmod, right? Though I suppose you’d need permission to use them and/or download them.

fl42v,

You can dump the permissions from the working system and restore them. Quite useful when working with archives that don’t support those attributes or when you run random stuff from the web 😁

Petter1, (edited )

Many distros offer a automated file/directory ownership restore feature on their liveOS

fl42v,

Yeah, a very unfortunate one: probably, the most painful to recover from. I’d just reinstall, honesty 😅 At least with mine I could simply add the necessary stuff from chroot or pacstrap and not spend a metric ton of time tracking all the files with incorrect permissions

rhys,
@rhys@rhys.wtf avatar

@jordanlund @fl42v I think this one could be recoverable if they had a terminal still active by using the dynamic loader to call chmod — or by booting from a liveCD and chmodding from there.

That'd likely get you to a 'working' state quickly, but it'd take forever to get back to a 'sane' state with correct permissions on everything.

jordanlund, (edited )
@jordanlund@lemmy.world avatar

Exactly. There’s no way to even know what the previous permissions were for everything.

They were TRYING to recursively change permissions in a single directory, accidentally hit the whole system. :(

banazir, in What software is best to have in a flatpak on tumbleweed?
@banazir@lemmy.ml avatar

I like Bottles. Makes Wine less of a hassle.

d950, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

When Ubuntu 16.04 had just been released, I tried upgrading my 14.04, the whole system broke and I had to install another os (Manjaro won).

That day I learned Ubuntu too can be a bit stupid.

Static_Rocket,
@Static_Rocket@lemmy.world avatar

This is where someone tracks down an upgrade path chart you didn’t know existed and points out some goofy intermediary release, not an lts for some reason, that you were supposed to upgrade to first…

captainjaneway, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@captainjaneway@lemmy.world avatar

Linux Mint: removed all taskbars from the desktop. I was hoping it would just allow me to reset them to the default. But in reality, it breaks the GUI and it’s very hard to reset from the GUI. Suddenly my keystrokes weren’t being detected and I couldn’t open up applications with any sort of regularity. After a lot of dicking around, I got the terminal working so I could reset Cinnamon.

It’s not the worst way I’ve broken a machine. But it was one of the most annoying.

Petter1,

Always remember, there is always a “terminal” accessible: Don’t forget poor tty

Nibodhika,

One thing I learnt a while back is that if you break your GUI you can always use Ctrl+Alt+F<1-9> to go to different terminals to try to solve it. Worst case scenario I would do something like mv .config .config.bkp and sudo systemctl restart that should hopefully get you back to default settings on the UI.

Source: been there, done that. Not exactly your error but similar enough.

Kjev, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@Kjev@discuss.tchncs.de avatar

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.

fl42v, (edited )

Daaem, I guess the poor dude at the receiving end did not consider it particularly fun. Well, at least they had sbin working, so probably possible to recover without a live cd. Huh, guess who’s now spinning up a VM to check it out 🤣

Checked it out: on arch that results in inability to run tty on reboot, then you’re dropped into initramfs’s rescue shell where you can simply +x new_root’s /usr/bin/* and be back up and running

avidamoeba, (edited )
@avidamoeba@lemmy.ca avatar

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

glibg10b, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

Before installing Arch on a USB flash drive, I disabled ext4 journaling in order to reduce disk reads and writes, being fully aware of the implications (file corruption after unexpected power loss). I was confident that I would never have to pull the plug or the drive without issuing a normal shutdown first. Unfortunately, there was one possibility I hadn’t considered: sometimes, there’s that one service preventing your PC from turning off, and at that stage there’s no way to kill it (besides waiting for systemd to time out, but I was impatient).

So I pulled the plug. The system booted fine, but was missing some binaries. Unfortunately, I couldn’t use pacman to restore them because some of the files it relied on were also destroyed.

This was not the last time I went through this. Luckily I’ve learned my lesson by now

SSUPII, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

Debian sid a few years ago: Uninstalled Python2, system became unusable and couldn’t neither reinstall from APT neither recompile it

luk,

Did it on Ubuntu and nothing worked anymore. Somehow managed to recover.

SSUPII,

I was much more inexperienced in Linux at the time, I could probably fix it now if the same thing happened again.

krimson, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@krimson@feddit.nl avatar

Many many years ago I wanted to clean up my freshly installed Slackware system by removing old files.

find / -mtime +30 -exec rm -f {};

Bad idea.

glibg10b, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

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.

fl42v, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

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!

9488fcea02a9, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

I didnt break anything, but there was this one time i was setting up a new lxc container i had just spun up. I installed nginx, and a bunch of other packages, started writing new config files… Then i noticed my prompt was user@desktop$ instead of user@server$

Whoops… I was in the wrong terminal window, typing commands into my desktop instead of the container i was setting up.

avidamoeba, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@avidamoeba@lemmy.ca avatar

Tried to convert Ubuntu to Debian by replacing the repos in sources.list and apt dist-upgrading. 💣 Teenagers…

Empricorn,

I’m as nerdy as they come, but… I don’t think you did teenage rebellion right.

Dagamant,

I thought about trying something like this the other day and quickly reconsidered

jws_shadotak, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

Not quite catastrophic but:

I’m in the process of switching my main server over from windows to Linux

I went with Deb 12 and it all works smoothly but I don’t have enough room to back up data to change the drive formats so they’re still NTFS. I was looking at my main media HDD and thought “oh, I’ll at least delete those windows partitions and leave the main partition intact.”

I found out the hard way that NTFS partitions can’t just reclaim space like that. It shuffles all the data when you change the partition. It’s currently 23 hours into the job and it’s 33% done.

I did this to reclaim 30 MB of space on a 14 TB drive.

fl42v,

You mean you’ve removed the service partitions used by windows and grown the main one into the freed space? Than yes, it’s not the way. 'Cause creating a new partition instead of growing the existing one shouldn’t have touched the latter at all :/

jws_shadotak,

Yes, I grew the existing one. Lesson learned I guess. 30.5 hours into it and it’s at 41%.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #