How to Get Out of Emergency Mode in Ubuntu Without a Bootable Disk

If your Ubuntu system has entered emergency mode, this file system is likely to be due to errors, incorrect fstab entries, or disk failures. One common cause is a missing or faulty hard drive referenced in /etc/fstab. In this guide, I’ll show you how to resolve this issue without using a bootable USB or CD.

Step 1: Access Emergency Mode Shell

  1. When the system enters emergency mode, it will provide a shell prompt.
  2. Log in with the root password or the administrative user.

Step 2: Identify the Issue

Check the system logs for errors:

journalctl -xb

Look for errors related to disk mounting or fstab misconfiguration.

Step 3: Edit fstab in Emergency Mode

If you removed a hard drive but didn’t update fstab, it may contain an invalid entry. To fix this:

  1. Remount the root filesystem in read/write mode:
mount -o remount,rw /
  1. Open fstab for editing:
nano /etc/fstab
  1. Locate lines referencing missing drives and comment them out by adding # at the beginning:
# UUID=xxx-xxxx-xxxx /mnt/old_drive ext4 defaults 0 2
  1. Save and exit (Ctrl + X, then Y and Enter).

Step 4: Reboot the System

Restart the system with:

reboot

Additional Troubleshooting

If the issue persists:

  • Run a file system check: fsck -y /
  • Check logs again: journalctl -xb
  • Force system reboot: systemctl reboot -f

By following these steps, you should be able to resolve emergency mode issues without needing a bootable USB or CD. Let me know if you need further assistance!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top