aboutsummaryrefslogtreecommitdiff
path: root/content/blog/2024-02-13-ubuntu-emergency-mode.org
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-09-01 22:03:26 -0500
committerChristian Cleberg <hello@cleberg.net>2024-09-01 22:03:26 -0500
commita0578880ef14f54647d7cfd96382395ab1e3cddb (patch)
tree3b48908939708db6580a90d99bf88ff045311e9d /content/blog/2024-02-13-ubuntu-emergency-mode.org
parent17d0e7fa0f46eae4ef284af4593e33ad24da3bef (diff)
downloadcleberg.net-a0578880ef14f54647d7cfd96382395ab1e3cddb.tar.gz
cleberg.net-a0578880ef14f54647d7cfd96382395ab1e3cddb.tar.bz2
cleberg.net-a0578880ef14f54647d7cfd96382395ab1e3cddb.zip
format 2024 blog posts
Diffstat (limited to 'content/blog/2024-02-13-ubuntu-emergency-mode.org')
-rw-r--r--content/blog/2024-02-13-ubuntu-emergency-mode.org43
1 files changed, 21 insertions, 22 deletions
diff --git a/content/blog/2024-02-13-ubuntu-emergency-mode.org b/content/blog/2024-02-13-ubuntu-emergency-mode.org
index e910468..e02c6ec 100644
--- a/content/blog/2024-02-13-ubuntu-emergency-mode.org
+++ b/content/blog/2024-02-13-ubuntu-emergency-mode.org
@@ -5,12 +5,12 @@
* The Problem
-I recently [[../zfs/][migrated my hard drives to a ZFS pool]] and found
-myself stuck in Ubuntu's emergency mode after the first reboot I
-performed after creating the ZFS pool.
+I recently [[../zfs/][migrated my hard drives to a ZFS pool]] and found myself stuck in
+Ubuntu's emergency mode after the first reboot I performed after creating the
+ZFS pool.
-My server was stuck in the boot process and showed the following error
-on the screen:
+My server was stuck in the boot process and showed the following error on the
+screen:
#+begin_src txt
You are in emergency mode.
@@ -19,34 +19,33 @@ After logging in, type "journalctl -xb" to view system logs,
or ^D to try again to boot into default mode".
#+end_src
-After rebooting the server and watching the logs scroll on a monitor, I
-noticed the root cause was related to a very long search for certain
-drives. I kept seeing errors like this:
+After rebooting the server and watching the logs scroll on a monitor, I noticed
+the root cause was related to a very long search for certain drives. I kept
+seeing errors like this:
#+begin_src txt
[ TIME ] Timed out waiting of device dev-disk-by/[disk-uuid]
#+end_src
-I realized that I had not removed the =/etc/fstab= references that asked
-Ubuntu to mount two disks on boot, but I had recently changed those
-disks to be part of my ZFS pool instead. Therefore, Ubuntu was trying to
-identify and mount a disk that was not available.
+I realized that I had not removed the =/etc/fstab= references that asked Ubuntu
+to mount two disks on boot, but I had recently changed those disks to be part of
+my ZFS pool instead. Therefore, Ubuntu was trying to identify and mount a disk
+that was not available.
Now that we have an idea of the issue, let's move to solution.
* The Solution
-In order to fix the issue, I waited until I was allowed to type the root
-user's password, and then I executed the following command:
+In order to fix the issue, I waited until I was allowed to type the root user's
+password, and then I executed the following command:
#+begin_src sh
nano /etc/fstab
#+end_src
-Within the =fstab= file, I needed to comment/remove the following lines
-at the bottom of the file. You can comment-out a line by prepending a
-=#= symbol at the beginning of the line. You can also delete the line
-entirely.
+Within the =fstab= file, I needed to comment/remove the following lines at the
+bottom of the file. You can comment-out a line by prepending a =#= symbol at the
+beginning of the line. You can also delete the line entirely.
#+begin_src conf
# What it looked like when running into the issue:
@@ -58,8 +57,8 @@ UUID=E69867E59867B32B /mnt/white-02 ntfs-3g uid=1000,gid=1000 0 0
# UUID=E69867E59867B32B /mnt/white-02 ntfs-3g uid=1000,gid=1000 0 0
#+end_src
-Once removing the lines above from the =/etc/fstab= file, save and exit
-the file by hitting the =Ctrl= + =x= key combo.
+Once removing the lines above from the =/etc/fstab= file, save and exit the file
+by hitting the =Ctrl= + =x= key combo.
You can now hit =Ctrl= + =D= to continue, or reboot:
@@ -67,5 +66,5 @@ You can now hit =Ctrl= + =D= to continue, or reboot:
systemctl reboot
#+end_src
-Once rebooted, I was able to watch the machine boot properly and launch
-to the TTY login screen without errors!
+Once rebooted, I was able to watch the machine boot properly and launch to the
+TTY login screen without errors!