I messed up a spell. Anyone know how to fix it?

Radioactive Radio@lemm.ee to Linux@lemmy.ml – 482 points –
59

I still remember when I tried to run a binary on a different architecture and got the message: "Bad elf magic"

First you need to put on your robe and wizard hat.

That's for when the world is in danger. This isn't a serious enough issue for that.

More context please: What happened? What were you doing? What does you setup look like?

It's an acer laptop i5 GeForce mx 130, basically I updated the linux firmware and put it on suspend but nvidia GPU did it's thing and it didn't wake up from sleep. So I has to power it off directly and it booted up to this.

From the looks of it, grub is grumpy. Do you get this after choosing a boot option? If so, can you try choosing recovery vs regular boot? If not, you may need to get a live USB plugged in and reinstall grub.

Edit: on further searching, this might be a zfs error. Are you using openzfs?

Thanks it's fixed, i booted into an old kernel.

If you're using ZFS, make sure you're using an LTS kernel.

Oh look, another old laptop with Nvidia Optimus having trouble with suspension.

You needed to roll a 13, but you rolled an 8, that's why your spell failed, should work next turn.

Consult the ancient tome of the Arch Wiki

Is that for archmages?

Primarily, but lower magicians can likey find some wisdom there as well.

There's actually a distro called Sourcemage with commands like cast/dispel/summon and packages stored in grimoires. I ran it for awhile on my servers. The command structure is quite fun.

So, I have been doing a system with my pc where I have a case full of different nvme ssds with different OSes on them. I might have to do that on one of them.

Have you thought about just running KVM on a machine and building out virtual images there? Then you don't have to swap hardware and you can reach them from your desktop through VNC.

Sure, but I prefer running bare metal also I then can move it around between various computers. Each one is used a regular system, just different purposes. So, running in a virtual machine doesn't make much sense for me. I'll use nothing but openbsd for a week, then I'll swap over to arch to play some games, then I go into gentoo or something else for whatever other task I'm feeling.

Gotcha! No worries, I just thought I'd mention it since some people don't seem to even know that's an option.

It's all good it's definitely a good option, I've done it before. I also just get a level of amusement out of swapping sticks out. Gives me the same feeling as swapping out floppies for different software.

Oh someone who remembers floppies... Yeah those were the days, things were a lot easier back then.

1 more...
1 more...
1 more...
1 more...

Okay guys it's fixed! I had to reboot into an older kernel, that did it. I was kinda panicking, cuz i have to use it for work.

This is really odd, I hit this same issue recently. Booting into an old kernel also fixed it for me. What distro are you using? I'm on Ubuntu.

Maybe it replaces the kernel during reboot. But since i powered it off directly, the magic disappeared.

Jokes aside, you either installed for the wrong architecture, or you're fucked hard.

Press any key to "exit"

If I needed to press a key with called "any", it would say "Press the any key", for the same reason you say "in the eighth grade".

Easy, just refill or replace your soul gems

I got "invalid magic number" when trying to set up grub

IDK but it was my fault, I was a noob and was trying to run Ubuntu server from live usb with one (1) month of Linux experience, at least I experimented Idk, that's the point I guess.

at least I experimented Idk, that’s the point I guess.

That's absolutely the point.

I've done most of my learning after messing up my system (or at least learnt the lessons that stuck the most).

Update: for anyone who's having the nvidia suspend issue and finds this post. Apparently turning off OS prober in the grub config fixes that. Good day, and keep practicing the magic!