Please help! I can't boot! Emergency mode?

I tried to turn on my mini PC today, and I got an error saying it was going into Emergency Mode. I tried to follow the instructions here: https://docs.bazzite.gg/Advanced/rescue-and-emergency-mode/ Unfortunately, I wasn't able to get to the boot menu from there, and pressing Ctrl + D just gave me the error shown in red. I'm still a noob, so I'm pretty lost. Can anyone please help me get my system up and running again? Thank you!
Booting to Rescue & Emergency Mode - Bazzite Documentation
Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices.
No description
71 Replies
LivesForever
LivesForeverOP•2mo ago
I just found these updated instructions, but I'm still stuck. When I type "exit", it just gives me the same error. Is my system totally broken? https://universal-blue.discourse.group/t/booting-to-rescue-emergency-mode-improved/562
Universal Blue
Booting to Rescue & Emergency Mode - Improved
Fedora already has a built-in mechanism (provided by systemd) for booting into rescue and emergency modes. However, those documents have limitations as by default, Fedora (and thus Universal Blue systems), do not set a root password during install. Thus, when the emergency or rescue mode is reached, the user is shown the error: Cannot open acc...
nagito || Knight of Emilia
hmm yeah it goes into emergency mode when something breaks what broke though did you try using the other ostree option in the boot menu? there are 2 of those by default for cases when somethig breaks the other OSTree is another OS both OSes share your user data though if you can boot the other OS update & that should fix things if not well then we use emergency mode to figure out what happened & fix it
LivesForever
LivesForeverOP•2mo ago
So, when I restart it, it does pop up with 2 options for booting, but they look identical. I tried both, and I get the same result. I have no idea what could have broken. The machine was just being used in Game mode.
nagito || Knight of Emilia
hmm we can take a look from within emergency mode
LivesForever
LivesForeverOP•2mo ago
Thank you! How can I do that?
nagito || Knight of Emilia
try running this in emergency mode ostree fsck
LivesForever
LivesForeverOP•2mo ago
No description
LivesForever
LivesForeverOP•2mo ago
I hit enter for maintenance, then typed the command. Do I need to do something differently?
nagito || Knight of Emilia
oh what does it say if you run lsblk
LivesForever
LivesForeverOP•2mo ago
command not found
nagito || Knight of Emilia
what about blkid
LivesForever
LivesForeverOP•2mo ago
No description
LivesForever
LivesForeverOP•2mo ago
I have a windows drive in there too.
nagito || Knight of Emilia
ok now try btrfs check /dev/nvme0n1p3
LivesForever
LivesForeverOP•2mo ago
No description
LivesForever
LivesForeverOP•2mo ago
Sorry for the delay
nagito || Knight of Emilia
be back in a bit
LivesForever
LivesForeverOP•2mo ago
No prob! This is not an emergency, but thank you so much for the help!
nagito || Knight of Emilia
look where it says no errors so the system drive isn't corrupted
LivesForever
LivesForeverOP•2mo ago
that sounds like a good thing. 🙂
nagito || Knight of Emilia
it is we can mount the drive & access files from there move stuff around maybe to fix whatever this is
LivesForever
LivesForeverOP•2mo ago
OK, cool
nagito || Knight of Emilia
mount /dev/nvme0n1p3 /sysroot
LivesForever
LivesForeverOP•2mo ago
No description
LivesForever
LivesForeverOP•2mo ago
got an error^
nagito || Knight of Emilia
hmm interesting indeed
LivesForever
LivesForeverOP•2mo ago
darn, "interesting" sounds less good, haha
nagito || Knight of Emilia
the check program doesn't say it's corrupted or damaged at all but it won't mount & so is inaccessible at the moment seems very related to the problem run dmesg as it said
LivesForever
LivesForeverOP•2mo ago
ok whoa, it gave a big spew. Hold on.
LivesForever
LivesForeverOP•2mo ago
No description
LivesForever
LivesForeverOP•2mo ago
That was the end of it. I don't see how to go back and see the rest
nagito || Knight of Emilia
hmm let's try doing a repair of it anyways
LivesForever
LivesForeverOP•2mo ago
ok, how do I do that?
nagito || Knight of Emilia
btrfs check --repair /dev/nvme0n1p3
LivesForever
LivesForeverOP•2mo ago
it's doing something...
LivesForever
LivesForeverOP•2mo ago
No description
LivesForever
LivesForeverOP•2mo ago
Hmmm... Doesn't seem to have repaired anything?
nagito || Knight of Emilia
hmm does the previous command work now?
LivesForever
LivesForeverOP•2mo ago
which one? mount?
nagito || Knight of Emilia
yes mount
LivesForever
LivesForeverOP•2mo ago
No description
nagito || Knight of Emilia
GOOD
LivesForever
LivesForeverOP•2mo ago
no error?
nagito || Knight of Emilia
no error is GOOD
LivesForever
LivesForeverOP•2mo ago
🙂
nagito || Knight of Emilia
now you can ls /sysroot to see the files on the main drive
LivesForever
LivesForeverOP•2mo ago
says: home root var
nagito || Knight of Emilia
home is where your user files are let's check that's all intact now ls /sysroot/home see what that shows
LivesForever
LivesForeverOP•2mo ago
[myname] deck linuxbrew
nagito || Knight of Emilia
it may very well be fixed now
LivesForever
LivesForeverOP•2mo ago
sweet! how do I restart from here?
nagito || Knight of Emilia
let's unmount the drive first i guess
LivesForever
LivesForeverOP•2mo ago
ok
nagito || Knight of Emilia
umount /sysroot should do now just exit
LivesForever
LivesForeverOP•2mo ago
it briefly showed some error, but now it's restarting! It's running! THANK YOU!!!! I thought I was gonna have to nuke it all and start over. Any idea what may have happened? Also, I'm guessing you are just a kind-hearted volunteer, so seriously- thank you. I appreciate it a ton.
nagito || Knight of Emilia
not sure what happened but glad it was fixed
LivesForever
LivesForeverOP•2mo ago
Indeed... Maybe my kid shut if off wrong or something...
nagito || Knight of Emilia
interesting how it didn't show any errors but didn't mount/was fixed by the repair command anyways
LivesForever
LivesForeverOP•2mo ago
sounds good Though confusing...
nagito || Knight of Emilia
try doing a normal reboot to make sure it works now
LivesForever
LivesForeverOP•2mo ago
ok Works! Thanks again!
nagito || Knight of Emilia
oh i noticed something that seems related dmesg had a no such file or directory error about the "log" & the repair command asked you if you wanted to clear the log which you answered or was automatically answered with y which is yes
LivesForever
LivesForeverOP•2mo ago
Ok
nagito || Knight of Emilia
a log seems the equivalent of a journal in other filesystems the journal is what protects against corruption when power outages/crashes happen but somehow the thing meant to protect against corruption got corrupted here clearing the log isn't really much of an issue it stores data for like 30 seconds so at most you lost a bit of data that was there 30 seconds before the problem happened
LivesForever
LivesForeverOP•2mo ago
Ah, if the thing that prevents corruption got corrupted, is it likely to happen again?
nagito || Knight of Emilia
i'd hope/think not didn't really use btrfs much but the time i did use it never had this happen
LivesForever
LivesForeverOP•2mo ago
OK. I guess I'll report back if it does!
nagito || Knight of Emilia
also there's a more specific command to JUST clear out the log btrfs rescue zero-log DEVICE DEVICE in your case being /dev/nvme0n1p3
nagito || Knight of Emilia
it's all documented in the btrfs docs
No description
LivesForever
LivesForeverOP•2mo ago
OK, good to know, thank you! I will bookmark it!

Did you find this page helpful?