this post was submitted on 17 Mar 2025
615 points (99.2% liked)

linuxmemes

23785 readers
2686 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    all 36 comments
    sorted by: hot top controversial new old
    [–] Abnorc@lemm.ee 2 points 2 days ago

    Is the grub in trouble?

    [–] tomkatt@lemmy.world 93 points 5 days ago* (last edited 4 days ago) (4 children)

    Important Edit

    The information below applies to emergency mode boot when grub is intact but OS isn’t booting. It doesn’t apply to grub rescue. Sorry about that folks, I screwed up here and don’t wanna misinform.

    —————-

    Protip: If you see this error, press”e” on grub boot to edit your commands and add the following to the end of the kernel line in grub:

    fsck.repair=yes
    

    Then boot.

    Fixes the issue like 90% of the time.

    [–] brokenlcd@feddit.it 24 points 5 days ago (1 children)

    dd would like to have a word about that... But still, another tool in the arsenal is always useful.

    Thanks for the tip.

    [–] tomkatt@lemmy.world 13 points 5 days ago* (last edited 5 days ago)

    Yeah, that’s the other 10%. 😂

    Doing dd wrong or rm -rf on / aren’t gonna be salvaged this way, but if it’s a bad disk sector or somehow corrupted system file the above command will sort it out. You wouldn’t believe how many customers VMs I’ve had to use that on in the past when they were in a panic. It’s a 2 minute fix in most cases.

    It’s kind of the Linux equivalent to Windows sfc/scannow, chkdsk, and dism restorehealth in one.

    [–] Eyck_of_denesle@lemmy.zip 13 points 5 days ago (2 children)
    [–] tomkatt@lemmy.world 28 points 5 days ago (2 children)

    It’s only needed is the OS isn’t booting. Running a repair every boot is not needed.

    [–] Moshpirit@lemmy.world 2 points 3 days ago

    Why not adding some conditional to enable it? Like fsck.rescue = $grub-error. If grub-error = yes, then fsck.rescue = yes too and then try again. If keeps failing then show the message. Otherwise it keeps being no and boot as usual.

    [–] Eyck_of_denesle@lemmy.zip 5 points 5 days ago

    Oh, thanks for the info

    [–] ByteJunk@lemmy.world 6 points 5 days ago

    Anytime I've seen this error is because I'm messing about with partitions, the last time was a few months ago when migrating to a larger disk, so I'm not too sure about those 90%.

    In any case, sounds like a very helpful tip if the error just shows up out of the blue.

    [–] TheGreatSnacku@lemm.ee 3 points 5 days ago (1 children)

    If it's going to grub rescue then that's before it can even get to the grub menu (thus no kernel line at this point). It's usually easiest to boot to live/rescue ISO and reinstall grub. Sometimes you can manually load grub modules from lib to manually boot from the grub rescue shell to the normal grub shell, but that's more advanced.

    [–] tomkatt@lemmy.world 6 points 5 days ago* (last edited 5 days ago) (1 children)

    Not true, it’s grub rescue, appears after grub if the OS can’t boot. I’ve encountered this countless times at work over the years in customer environments.

    [–] TheGreatSnacku@lemm.ee 4 points 4 days ago* (last edited 4 days ago) (1 children)

    This is false and there's a simple way to show it.

    Remove the grub.cfg file and the system will boot to the grub prompt (not grub rescue). You can manually boot past this by inputting the Linux and initramfs lines.

    Then test again but leave grub.cfg intact. Remove an important module like normal.mod and test booting - system will land at grub rescue instead of the normal grub prompt.

    Once you test it would be good if you edit your posts so that you aren't sharing bad information with others

    [–] tomkatt@lemmy.world 3 points 4 days ago (1 children)

    Well shit. You’re right, I’m mixing up grub rescue and emergency mode. Yeah, you would need a USB rescue disk to fix this most likely.

    My bad, I’ll update the original comment to avoid confusion.

    [–] TheGreatSnacku@lemm.ee 2 points 2 days ago

    All good! Thanks for updating.

    [–] Kolanaki@pawb.social 14 points 4 days ago* (last edited 4 days ago)

    I remember my dad telling me a joke about FSCK and the reason it looks like a censored form of "FUCK" is because if you ever had to use it, you were basically fucked.

    Personally, I had never had a problem with it. It just repaired errors on the disk or at least searched for them, IIRC. It's been a long ass time since I even heard the joke, let alone used the tool. This just reminded me of it.

    [–] HStone32@lemmy.world 16 points 4 days ago (3 children)

    I know it's a meme, but I've never had this happen to me. What causes this?

    [–] cm0002@lemmy.cafe 20 points 4 days ago

    Usually anything where the BIOS can find and boot Grub itself but Grub can't finish the boot chain for whatever reason, like /boot being on a separate partition and your main partition gets corrupted or something

    [–] possiblylinux127@lemmy.zip 2 points 3 days ago

    Bad boot config

    Chances are you need to update grub.cfg

    [–] ikidd@lemmy.world 4 points 4 days ago

    Touching yourself.

    [–] 299792458ms@lemmy.zip 9 points 4 days ago* (last edited 4 days ago)
    [–] possiblylinux127@lemmy.zip 3 points 3 days ago

    It isn't bad

    However, I'm thankful for systemd boot

    [–] iopq@lemmy.world 19 points 5 days ago (1 children)

    I never run into this. Mostly because I don't use grub

    [–] addie@feddit.uk 9 points 5 days ago (2 children)

    After having used Grub for about twenty years (eek) I was uncertain about the alternatives, but systemd-boot is absurdly better. Much better configuration, much better documentation, fixes a while pile of bugs that Grub team had as "won't fix" for years and years. No reason to ever go back.

    [–] ChilledPeppers@lemmy.world 3 points 4 days ago* (last edited 4 days ago)

    I use rEFInd for the UI, and tbh, im not looking back either lol

    [–] umbrella@lemmy.ml 7 points 4 days ago

    Bailing out, you are on your own now. Good luck.

    /$ _

    [–] LaggyKar@programming.dev 14 points 5 days ago (1 children)

    I've only gotten that when I've mistyped the encryption password. They really should improve the handling of that.

    [–] communism@lemmy.ml 1 points 4 days ago
    cryptomount -a
    insmod normal
    normal
    

    But yes, it's super annoying. Especially if you mistype it multiple times and you have to type that in multiple times.

    [–] communism@lemmy.ml 7 points 4 days ago

    In general if your OS is intact you can just boot into a live USB and chroot and reinstall grub, worst case scenario if you can't fix it in a less destructive way.

    [–] thr0w4w4y2@sh.itjust.works 6 points 5 days ago

    “Time to go to your backups”

    [–] Engywuck@lemm.ee 3 points 5 days ago

    I never ever knew what do do at that point. The only way I had to solve was to download a rescued cd and chroot...

    if u updated your kernel check if there is still the old kernel name in the grub file

    [–] devfuuu@lemmy.world -2 points 4 days ago (2 children)

    Imagine still using grub in 2025.

    [–] janus2@lemmy.zip 3 points 4 days ago

    duh, we all use grub2 obvs

    [–] mittorn@masturbated.one 3 points 4 days ago

    @devfuuu @cm0002 still using grub installation and configs i generated in 2011. Questions?