Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When booting to the graphical desktop fails we sometimes are recommended to boot into a "root shell" or to boot in "recovery mode".

How do I do that?

share|improve this question
add comment

2 Answers

up vote 23 down vote accepted

for 12.04.3 LTS and later

During boot press and hold the left Shift key or any other key. This will bring up the Grub2 menu from where we can select "Advanced options for Ubuntu".

enter image description here

After that we will be able to select the kernel we wish to boot in "Recovery mode":

enter image description here

This will lead us to the advanced options. By selecting "Enable networking" we gain access to our network and the internet for upgrades or downloads, and we will also mount our hard drives in read/write mode in case we need to edit files.

enter image description here

After the network has loaded, and fielsystems were mounted we will be presented again with the menu, from where we can choose "Drop to a root shell propmpt":

enter image description here

Note that we are root in this shell. Hence no sudo is needed for administrative tasks. This also means we have full access to all files, and we may cause irreversible damage to our system if we made a mistake.

If we had not enabled read/write access with "Enable networking" the filesystem will be mounted read only, and we are unable to edit files.

From the root shell type exit to go back to the menu.

for 12.04.0 LTS or earlier

During the boot process of the computer we press and hold the left Shift key. This will bring up the Grub2 boot menu from where we can select "recovery mode" (usually the second boot entry).

enter image description here

This will lead to the Grub2 recovery menu:

enter image description here

"Drop to root shell prompt" gives you a command line root environment from where you can access your files as root (no sudo required). After having done your work on your files you can leave the command line shell by


Choose "Resume normal boot" to proceed booting as usual.

Note: see this question for a solution when the Grub recovery menu does not load the shell.

share|improve this answer
Good Answer! :-) –  Ionică Bizău Aug 12 '13 at 16:39
I just installed 12.04 LTS, and it looks like I have the recovery menu listed under ">= 12.10". So I just followed those instructions instead and everything worked fine. –  tir38 Sep 22 '13 at 16:07
@tir38: oh good point, thank you. It has changed with the updated LTS release then. –  Takkat Sep 22 '13 at 16:47
after enable networking, it doesn't goes back to menu again. Need help –  Sanjeev Kumar Dangi Oct 22 '13 at 19:30
@SanjeevKumarDangi: try with exit. –  Takkat Oct 22 '13 at 21:34
add comment

This will work if your file system is intact. The question is "why would I want to be on the console at this boot level?" If for example: your fstab has wrong entries, because you followed one of those tutorials or you have just experimenting, you are major hosed. Ubuntu insists to load the wrong file system although there is a message saying to Press 'S' to skip etc. which does absolutely nothing. Try it, you could be sitting there and waiting for something to happen for day's. The dead keyboard maybe related to a USB keyboard, but this is a very far fetched guess. If the loader isn't catching on that there is an error, there is absolutely no way that you could fix it from the console, even though there is an option to drop to a root shell that has absolutely no privileges. Should be called "GUEST" shell instead. That's my two cents and thoughts. My Point: the recovery option with such a scenario is absolutely useless, get ready to wipe and re-install.....

share|improve this answer
You "answered" about the utility of recovery mode, not how to get into it. And for instance it has its utilities it is not there for nothing, I already used it several times. –  Rodrigo Martins May 16 '13 at 1:30
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.