this post was submitted on 28 Jul 2023
10 points (100.0% liked)

Linux

48002 readers
901 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
 

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?

top 3 comments
sorted by: hot top controversial new old
[–] EinfachUnersetzlich@lemm.ee 16 points 1 year ago

Try the nofail mount option in fstab.

[–] pnutzh4x0r@lemmy.ndlug.org 9 points 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.

[–] twelve12@lemmy.ml 5 points 1 year ago

It's a config flag in /etc/fstab