I'm pretty new to Linux and I'm using CachyOS with Hyprland. I was running the command `sudo systemctl restart systemd-logind` when my power unexpectedly went out, shutting down my computer. Now, when I boot it up, I'm faced with an emergency shell that says, "failed to mount disk on real root." I've tried checking the partition with another Linux distro, but I can't seem to mount it. Is there a way to fix this without losing my data? Did the power outage damage my NVMe drive? Please keep the solutions simple!
5 Answers
You might want to boot from a live USB and install GParted to check your partition for any errors. It's a handy tool for this kind of troubleshooting!
It's unlikely that the power outage actually damaged your NVMe drive; usually, the power supply should handle these situations. However, an abrupt shutdown can corrupt data in unexpected ways, even if it doesn't happen often. Unfortunately, fixing it might not be straightforward, and I'm curious—do you have your NVMe encrypted?
Try using the CachyOS ISO to boot into your system and reinstall `cachyos-chroot` from there. You can also run `fsck` on your install partition to check for errors. That might help get things sorted out!
While I can't give you a fix for this specific issue, I can suggest investing in an Uninterruptible Power Supply (UPS) for future safety. Brands like CyberPower or Tripp Lite are solid choices. Getting one with Pure Sinewave output is ideal for protecting your computer components, and it gives you time to shut things down properly during a power outage.
If you have an Arch-based ISO handy, that could be useful. Boot from it, use Archstrap or similar tools to chroot into your system, and take a closer look. It might let you troubleshoot the issue effectively!
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures