Boot Ubuntu Linux into Rescue mode to fix system

by Vivek Gite on December 6, 2006 · 16 comments

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.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 16 comments… read them below or add one }

1 ali August 12, 2008

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

Reply

2 Naughty June 16, 2011

@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

Thanks, this is great. GOD Bless you.

Reply

4 tamer March 8, 2009

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

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

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

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

Reply

8 sako February 13, 2011

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

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

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

Reply

11 Ernie March 13, 2011

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

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

Reply

13 len July 4, 2011

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

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

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

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

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 13 + 10 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: