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
- When the system enters emergency mode, it will provide a shell prompt.
- 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:
- Remount the root filesystem in read/write mode:
mount -o remount,rw /
- Open
fstab
for editing:
nano /etc/fstab
- 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
- Save and exit (
Ctrl + X
, thenY
andEnter
).
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!