Boot Ubuntu Linux into Rescue mode to fix system

by on December 6, 2006 · 18 comments· LAST UPDATED January 8, 2008

in

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.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 18 comments… read them below or add one }

1 ali August 12, 2008 at 8:50 am

i don’t have ubuntu cd. how to boot your system without ubuntu cd.

Reply

2 Naughty June 16, 2011 at 8:04 am

@Ali: If u don’t have ubuntu cd then recovering the broken system is not possible.. First avail an Ubuntu CD/ DVD then try it out.. It will work..

Reply

3 Chima February 24, 2009 at 12:19 am

Thanks, this is great. GOD Bless you.

Reply

4 tamer March 8, 2009 at 7:31 pm

how can you rescue your ubuntu desktop 8.4 if you do not have the rescue option to boot your computer to? spacialy if you lost the grub bootloader becuse of MS windows.

Reply

5 Waqar Afridi August 17, 2009 at 8:47 am

Hi

I have Ubuntu 9.04 and I installed it from live CD, Now I have Lost my Grub, how do i recover it using Live CD.

Reply

6 shahed October 26, 2009 at 6:08 am

how can you rescue your ubuntu desktop 8.4 if you do not have the rescue option to boot your computer to? spacialy if you lost the grub bootloader becuse of MS windows.

Reply

7 Santosh July 2, 2010 at 10:19 am

is data will going lose in ubantu rescue mode..?

Reply

8 sako February 13, 2011 at 12:22 pm

Hi

I have Ubuntu 9.04 and I installed it from live CD, Now I cannot start load ubuntu because of failed system.How can i manage it with ubuntu livecd?

Reply

9 Ibro Kh'lil Yah'ya March 2, 2011 at 7:47 am

My ubuntu does not load it gives me an error message ‘no module found
Aborted. Press any key to exit.

What is the problem and how do i fix this can’t even use my windos.
HELP some body, anybody.

Reply

10 vinz March 12, 2011 at 6:08 pm

I can’t see any Recover a broken system option. Ubuntu 9.10.

Reply

11 Ernie March 13, 2011 at 4:42 am

i have burned and used almost every ubuntu distro, and the only one i had ever seen the rescue mode option in was ubuntu studio 9.10

Reply

12 Raikoryu March 20, 2011 at 11:32 pm

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

Reply

13 len July 4, 2011 at 8:08 am

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

Reply

14 Isaac July 19, 2011 at 8:55 am

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 !!

Reply

15 notisaac December 20, 2011 at 7:47 pm

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.

Reply

16 dinesh January 16, 2012 at 9:22 am

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.

Reply

17 anonymouse March 29, 2012 at 3:56 pm

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

Reply

18 John Andrews September 23, 2012 at 11:30 pm

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.

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: