I had a hard drive die today. I shut it down and pulled the drive from the computer, but it didn’t boot and I still couldn’t SSH into it to figure out what was wrong. Finally had to setup a monitor and keyboard to figure out Ubuntu was in emergency mode because the mount failed.

Is there a way to have Ubuntu 22.04 ignore this problem and boot? Or is there a way to enable SSH in emergency mode?

  • pnutzh4x0r@lemmy.ndlug.org
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    You can try booting into Rescue Mode (instead of getting into Emergency Mode):

    https://ostechnix.com/how-to-boot-into-rescue-mode-or-emergency-mode-in-ubuntu-18-04/

    That said, once in Emergency Mode, it may be possible to mount the disk with the root partition and then continue the boot sequence as noted in the article above (simply exit the emergency shell).

    Hopefully that will get the machine booted and you can SSH. Otherwise, you can at least examine the machine in Emergency Mode and perhaps change the /etc/fstab file on the root partition to ignore the partitions from the failed hard drive.