104
submitted 6 months ago by joel_feila@lemmy.world to c/linux@lemmy.ml

I now see this when i boot up. I just restarted my pc and now i get this.

all 50 comments
sorted by: hot top controversial new old
[-] einkorn@feddit.de 110 points 6 months ago

Pretty unhelpful responses so far. Enter

exit

to exit the current screen and return to a selection of installed OS/Kernels. You should be able to boot normally from there on. Once logged in, try

update-grub 

which should repair your bootloader config.

[-] user224@lemmy.sdf.org 39 points 6 months ago

Note: If update-grub isn't present, it's fine as it's basically just a short script for grub-mkconfig -o /boot/grub/grub.cfg

[-] kawa@reddeet.com 63 points 6 months ago

I raise you "what happened to my bus ?"

[-] SomeBoyo@feddit.de 52 points 6 months ago
[-] Quazatron@lemmy.world 53 points 6 months ago

Achievement unlocked.

If you can fix it you unlock another one. If you manage to boot the system without using a rescue USB pen you unlock another one.

[-] kryllic@programming.dev 13 points 6 months ago

Eventually Linus himself will come and personally re-write your cfg file for you

[-] Quazatron@lemmy.world 13 points 6 months ago

Once level up enough you'll be writing a GRUB replacement yourself. Now that would be a massive achievement.

[-] DrDominate@lemmy.world 8 points 6 months ago

Is that the platinum trophy?

[-] mexicancartel@lemmy.dbzer0.com 2 points 6 months ago

Elements can't define achivement levels because you have so much achivements in linux but only 118 elements

[-] pastermil@sh.itjust.works 46 points 6 months ago

Your system is fucked, that's what happened.

More specifically, it cannot find the config file (/boot/grub/grub.cfg) it uses to load the menu & stuff to boot.

Usually it means one (or more) of:

  • the grub.cfg got moved/deleted
  • grub directory got moved/deleted
  • /boot directory got moved/deleted
  • boot partition failed to load
[-] VinesNFluff@pawb.social 23 points 6 months ago

Welcome, this is the Linux user equivalent of popping your cherry.

You have a few options, but the easiest is to just use a rescue thing like Rescatux on a USB drive that automates most of the process. If you haven't the means of flashing a USB drive (like another computer) but still have your linux installation USB drive, most distros offer a "rescue existing install" option somewhere in their installer/liveUSB. But you'll have to search around.

[-] joel_feila@lemmy.world 3 points 6 months ago

Same thing happened to my windiws oc way back in 2002. Hdd crash wrecked its boot loader

[-] MyTurtleSwimsUpsideDown@fedia.io 23 points 6 months ago

You’ve got some schmutz on your screen.

[-] TimeSquirrel@kbin.social 24 points 6 months ago
[-] liforra@endlesstalk.org 2 points 6 months ago

Are you alright joel?

How to i @ someone lmao

[-] ricdeh@lemmy.world 1 points 6 months ago
[-] liforra@endlesstalk.org 1 points 6 months ago

Thank you :) makes sense

[-] Hiro8811@lemmy.world 22 points 6 months ago

ACHIEVEMENT UNLOCKED

[-] Mango@lemmy.world 20 points 6 months ago
[-] MR_GABARISE@lemmy.world 8 points 6 months ago

Solar eclipse-caused bit flip.

[-] aulin@lemmy.world 4 points 6 months ago

Related. I actually thought it was a sun related thing, like a solar flare, in the comic. Turns out it was butterflies.

[-] possiblylinux127@lemmy.zip 17 points 6 months ago

What were you doing before you got this? If the systems intact you can just boot your machine manually with grub commands.

Here's a guide I found: https://www.unix-ninja.com/p/Manually_booting_the_Linux_kernel_from_GRUB

[-] mvirts@lemmy.world 17 points 6 months ago* (last edited 6 months ago)

Dont forget to play around with grub while its like this. Tab completion works great, try '(' the press tab to maybe see your disks as grub sees them. I think help lists commands and most of them are harmless.

[-] user224@lemmy.sdf.org 14 points 6 months ago

Dont forget to play around with grub while its like this. Tab completion works great, try ‘(’ the press tab to maybe see your disks as grub sees them.

Is this a joke like sudo rm -rf --no-preserve-root / to speed up the PC? Because it kinda sounds that way.

[-] caseyweederman@lemmy.ca 21 points 6 months ago

No. It's a little shell that you can explore with commands. If needed, you can mount and boot your OS just with commands in the grub shell.

[-] Atemu@lemmy.ml 3 points 6 months ago* (last edited 6 months ago)

The process for this is that you want to set your prefix to the /boot partition in the (hd1, gpt1) syntax (use ls) and then load the "normal" module. From then on, you should have regular GRUB again and should be able to boot your OS to properly fix GRUB.

[-] Trainguyrom@reddthat.com 2 points 6 months ago

Sounds like you'd love configuring network hardware then! You can get a peek into that in Linux with frr since it has a mode to configure your linux machine like you've just SSHed into a Catalyst switch, or just hop on ebay and buy a 20 year old switch for peanuts

[-] db2@lemmy.world 12 points 6 months ago

It isn't booting a kernel, you're in the bootloader.

[-] joel_feila@lemmy.world 5 points 6 months ago

How do i get it to load the kernal

[-] Oisteink@feddit.nl 10 points 6 months ago

Have you tried turning it off and back on again?

If that doesn’t help boot with a live-cd or rescue, and check that your grub config points to a valid kernel.

Your hdd might be the culprit but it’s very hard to say from that screen. Maybe the one previously that can show your boot command

[-] UndulyUnruly@lemmy.world 14 points 6 months ago

Have you tried turning it off and back on again?

Witchcraft!! They’re speaking in tongues, get them!!

[-] db2@lemmy.world 4 points 6 months ago

It depends, is this a new install? Did you just update something?

[-] fluffery@lemmy.ml 2 points 6 months ago

Sheer hope, and a warrior's bravery

[-] lemmyreader@lemmy.ml 9 points 6 months ago

I think I remember that a non geek friend of mine had good luck with this for fixing their Grub : https://www.supergrubdisk.org

Another option : https://www.system-rescue.org/disk-partitioning/Repairing-a-damaged-Grub/

[-] MsFlammkuchen@lemmy.blahaj.zone 9 points 6 months ago* (last edited 6 months ago)

Can you give a little more background info? What distro are you using, are you dual booting, is it a new install, did you make changes to your kernel, your partitions or grub before that?

While it's clear that grub couldn't find a kernel to boot, we need these Infos to help you find a solution.

[-] joel_feila@lemmy.world 6 points 6 months ago

Im using kde I did not even use my pc the last few days I came home it froze and when i rebooted i got this I do NOT have any duel boot

[-] marcos@lemmy.world 9 points 6 months ago

You may want to replace the disk on that computer after you fix your boot. (As people said, with a recovery drive, probably the same one you use to install.)

After your computer is back, get a SMART client (like smartmontools) and check your disk status.

[-] joel_feila@lemmy.world 3 points 6 months ago
[-] mvirts@lemmy.world 5 points 6 months ago

Could also be a bad update that broke grub, the smart data will show if your drive is dying

[-] Hawke@lemmy.world 5 points 6 months ago

Probably, yeah. Depends on a few other things (drive age, SMART test results, how risk-averse you are…)

But at least it’s worth thinking about.

[-] Atemu@lemmy.ml 1 points 6 months ago

It's too early to tell; you must investigate further.

[-] Oisteink@feddit.nl 3 points 6 months ago

Well - the screen seems to indicate that it might wanna duel you anyway

[-] callyral@pawb.social 4 points 6 months ago* (last edited 6 months ago)

Burn a live Linux system onto a USB (can be one with just a terminal, like Arch Linux). If you don't have another computer to plug the USB into, this can be done on an Android phone using EtchDroid.

Then, boot from that USB and mount your main filesystem. Inside of the Live system, chroot into the mounted filesystem and run sudo grub-mkconfig -o /boot/grub/grub.cfg which should fix the bootloader.

After that, you can just exit the USB system and return back to your OS which should boot now.

(If you don't know how to mount a filesystem or chroot, I would explain but I forgot how to do it. If someone else could explain that would be neat)

[-] thoughtsinuserspace@mastodon.social 3 points 6 months ago* (last edited 6 months ago)
[-] lemmyvore@feddit.nl 1 points 6 months ago

I also like https://www.system-rescue.org/, it also has a menu entry that will detect and boot into installed Linux systems.

Remember that you can use Ventoy as a super simple method of using these tools. Ventoy will prepare a flash drive with a tool that, when booted, will give you a menu of all the ISO images on the drive and lets you boot any of them. You can have a drive with a collection of rescue tools, install ISO's, whatever you want, and it's as easy as dropping the ISO's on there. You can also use that partition to store your own files or whatever you want, it doesn't mind.

[-] DaveX64@lemmy.ca 2 points 6 months ago

Some good tips on this thread, saved for later.

this post was submitted on 10 Apr 2024
104 points (91.9% liked)

Linux

47964 readers
1033 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