Boot Ubuntu Linux into Rescue mode to fix system

Q. How do I boot my Ubuntu Linux server into Rescue mode to fix system?


A. You can boot Ubuntu Linux into rescue mode when things go wrong, there are several ways to work on fixing them. However, you must understand your system and what to fix in case of emergency.

Use this mode only if your system is unbootable. It is also recommended that you make backup of important data.

=> Start Computer / reboot computer

=> Put your Ubuntu install CD

=> Make sure BIOS is set to boot from CD

=> Now booting will start from Ubuntu install CD

=> You will see various option screen – select Recover a broken system

You will system is booting in to rescue mode; system will ask about Network and other information. This is required to setup rescue environment.

Now you will prompted to select root partition or device.

Next it will try to mount root device and it will notify the same.

Now you will see common rescue mode option such as Reinstall GRUB or open / execute a shell etc.

Now you are in rescue mode and you need to use your own knowledge to rescue the system. When things go wrong, there are several ways to work on fixing them.

Few things to remember….

The rescue-mode CD mounts your root filesystem at /target directory. Open or execute a shell and change directory to /target
# ls /target
# cd /target
# mount

If you need to run fsck command use fdisk -l command to find out partition name. Usually they are located at /dev/discs/discX/partY. For example repair 2nd partition (not mounted as /target) you may type command:
# ls -l /dev/discs/disc0
# fsck.ext3 /dev/discs/disc0/part1

To exit type command :
# sync ;sync
# exit
# reboot

As I said earlier in rescue mode, there is no single command that I can recommend to fix problem. You need to use your own knowledge to rescue the system and don’t forget to read command documentation before using any command.

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

18 comments… add one
  • Raikoryu Mar 20, 2011 @ 23:32

    Not working. I only have Try Ubuntu or Install Ubuntu options and neither of them offers a recovery.

  • len Jul 4, 2011 @ 8:08

    my gnome-session of Ubuntu 11.04 crashed as i accidentally remove pm-utils . Now i am able to access console but without internet . please help

  • Isaac Jul 19, 2011 @ 8:55

    can you guys help me one thing? i got problem in my Pc, and i use Ubuntu for while and now what i got is , The hard disk get full of file and suddenly , it show me command line which is that i have to remove files but i am not good at it and still, iam not using it ! i need help who know more about Ubuntu just contact me i will show you each and every message by mail . please help !!

  • notisaac Dec 20, 2011 @ 19:47

    Isaac, just do this:
    rm /var/log/*.gz
    then you should be able to boot normally and clean out your drive with a nice UI.

  • dinesh Jan 16, 2012 @ 9:22

    I upgraded from 9.10 to 10.04 through internet. so i dont have a live cd. is it possible to rescue grub without a live cd? if so, please let me know how.

  • anonymouse Mar 29, 2012 @ 15:56

    This is badly outdated and does not work anymore. Latest ubuntu doesn’t provide fsck in rescue mode. Ubuntu fail. Get a real distro.

  • John Andrews Sep 23, 2012 @ 23:30

    I upgraded from 10.o LTS to 12.04. Now it only boots from the rescue mode/root. Not from live cd but from ( recovery mode). It works normally but it’s running in Root mode.
    It doesn’t work right booting in user mode. What did I do wrong? Initially all my Home files were owned by root.I changed that to my user but it still only starts from root.I updated to grub2 (which doesn’t chain load correctly).I can’t find the answer.

Leave a Reply

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

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.