Computer >> Computer tutorials >  >> System >> Linux

How to Enter Rescue Mode on Ubuntu – Quick Troubleshooting Guide

How to Enter Rescue Mode on Ubuntu – Quick Troubleshooting Guide

How to Enter Rescue Mode on Ubuntu – Quick Troubleshooting Guide

Published Oct 15, 2023, 3:45 PM EDT

Sharqa is a technical content writer who specializes in creating high-quality, valuable, and SEO-optimized content. She has delivered content related to different operating systems, programming languages, GUI-based apps, IT, and Technology.

Sign in to your MakeUseOf account

Ubuntu is known for its stability and reliability, but occasionally, you may run into issues that prevent your system from booting properly. In such situations, Ubuntu offers a powerful tool called Rescue mode.

Whether you're a seasoned Linux user or a newcomer facing a system hiccup, Rescue mode can be your lifeline to get your Ubuntu installation back on track. Here’s how to boot your Ubuntu system into Rescue or Emergency mode.

Boot Into Rescue Mode on Ubuntu

To boot into Rescue or Emergency mode, first, reboot your Linux system. Consequently, you will see the following GRUB menu:

How to Enter Rescue Mode on Ubuntu – Quick Troubleshooting Guide

Highlight the Ubuntu entry and hit the E key to edit its boot parameters.

Now, use the arrow keys to move to the end of the file and find the line starting with linux. Then, add this:

systemd.unit=rescue.target
How to Enter Rescue Mode on Ubuntu – Quick Troubleshooting Guide

To boot into Emergency mode, add:

systemd.unit=emergency.target
How to Enter Rescue Mode on Ubuntu – Quick Troubleshooting Guide

Press Ctrl + X or F10 to boot into your preferred mode.

How to Enter Rescue Mode on Ubuntu – Quick Troubleshooting Guide

Press Ctrl + D or Enter for maintenance. For instance, now you can mount the root file system with:

mount -n -o remount, rw /

Moreover, view and analyze system logs with:

journalctl -n 10
How to Enter Rescue Mode on Ubuntu – Quick Troubleshooting Guide

Exiting Rescue Mode or Emergency Mode

To exit from the Emergency or Rescue mode, press Ctrl + D or run:

exit

After some time, the system will boot normally.

After reboot, the GRUB boot parameters will be automatically reverted.

Get Back on Track With Ubuntu's Rescue Mode

With Rescue Mode, you have the means to recover your Ubuntu system and keep it running smoothly. Whether you're facing a minor glitch or a major system error, mastering Linux troubleshooting is an essential skill that can save the day when your Ubuntu installation faces adversity.